From 9c84bfe9b496a36e6265c8516c5c682f342c6de4 Mon Sep 17 00:00:00 2001 From: Ben Durrant Date: Tue, 23 Jun 2026 14:19:36 +0100 Subject: [PATCH 1/2] bump deps --- package.json | 6 +- pnpm-lock.yaml | 520 +++++++++++++++++++++---------------------- pnpm-workspace.yaml | 2 +- schemas/package.json | 4 +- 4 files changed, 266 insertions(+), 266 deletions(-) diff --git a/package.json b/package.json index 7cc7ce23..973f841a 100644 --- a/package.json +++ b/package.json @@ -23,10 +23,10 @@ }, "devDependencies": { "@types/node": "catalog:", - "knip": "^6.17.1", + "knip": "^6.17.2", "lefthook": "^2.1.9", - "oxfmt": "^0.55.0", - "oxlint": "^1.70.0", + "oxfmt": "^0.56.0", + "oxlint": "^1.71.0", "oxlint-tsgolint": "^0.23.0", "playwright": "catalog:", "typescript": "catalog:" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a40db089..aff83f19 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -16,8 +16,8 @@ catalogs: specifier: ^19.2.3 version: 19.2.3 '@typescript/native-preview': - specifier: 7.0.0-dev.20260619.1 - version: 7.0.0-dev.20260619.1 + specifier: 7.0.0-dev.20260622.1 + version: 7.0.0-dev.20260622.1 '@typia/unplugin': specifier: ^12.1.1 version: 12.1.1 @@ -67,17 +67,17 @@ importers: specifier: 24.0.0 version: 24.0.0 knip: - specifier: ^6.17.1 - version: 6.17.1 + specifier: ^6.17.2 + version: 6.17.2 lefthook: specifier: ^2.1.9 version: 2.1.9 oxfmt: - specifier: ^0.55.0 - version: 0.55.0 + specifier: ^0.56.0 + version: 0.56.0 oxlint: - specifier: ^1.70.0 - version: 1.70.0(oxlint-tsgolint@0.23.0) + specifier: ^1.71.0 + version: 1.71.0(oxlint-tsgolint@0.23.0) oxlint-tsgolint: specifier: ^0.23.0 version: 0.23.0 @@ -123,7 +123,7 @@ importers: version: 24.0.0 '@typescript/native-preview': specifier: 'catalog:' - version: 7.0.0-dev.20260619.1 + version: 7.0.0-dev.20260622.1 schemas: dependencies: @@ -167,8 +167,8 @@ importers: specifier: ^3.21.4 version: 3.21.4 effect___beta: - specifier: npm:effect@^4.0.0-beta.84 - version: effect@4.0.0-beta.84 + specifier: npm:effect@^4.0.0-beta.85 + version: effect@4.0.0-beta.85 fp-ts: specifier: ^2.16.11 version: 2.16.11 @@ -191,8 +191,8 @@ importers: specifier: ^11.0.0-alpha.8 version: 11.0.0-alpha.8 typebox: - specifier: ^1.2.17 - version: 1.2.17 + specifier: ^1.3.0 + version: 1.3.0 typia: specifier: ^12.1.1 version: 12.1.1(@types/node@24.0.0)(typescript@6.0.3) @@ -211,13 +211,13 @@ importers: version: 24.0.0 '@typescript/native-preview': specifier: 'catalog:' - version: 7.0.0-dev.20260619.1 + version: 7.0.0-dev.20260622.1 '@typia/unplugin': specifier: 'catalog:' version: 12.1.1(rollup@4.62.2)(typia@12.1.1(@types/node@24.0.0)(typescript@6.0.3))(vite@8.0.16(@types/node@24.0.0)(esbuild@0.28.1)(jiti@2.7.0)(terser@5.48.0)(yaml@2.9.0)) tsdown: specifier: ^0.22.3 - version: 0.22.3(@typescript/native-preview@7.0.0-dev.20260619.1)(oxc-resolver@11.21.3)(typescript@6.0.3) + version: 0.22.3(@typescript/native-preview@7.0.0-dev.20260622.1)(oxc-resolver@11.21.3)(typescript@6.0.3) typescript: specifier: 'catalog:' version: 6.0.3 @@ -241,7 +241,7 @@ importers: version: 19.2.17 '@typescript/native-preview': specifier: 'catalog:' - version: 7.0.0-dev.20260619.1 + version: 7.0.0-dev.20260622.1 '@vitest/browser-playwright': specifier: 'catalog:' version: 4.1.9(msw@2.14.6(@types/node@24.0.0)(typescript@6.0.3))(playwright@1.61.0)(vite@8.0.16(@types/node@24.0.0)(esbuild@0.28.1)(jiti@2.7.0)(terser@5.48.0)(yaml@2.9.0))(vitest@4.1.9) @@ -425,7 +425,7 @@ importers: version: 19.2.3(@types/react@19.2.17) '@typescript/native-preview': specifier: 'catalog:' - version: 7.0.0-dev.20260619.1 + version: 7.0.0-dev.20260622.1 '@vitejs/plugin-react': specifier: ^6.0.2 version: 6.0.2(vite@8.0.16(@types/node@24.0.0)(esbuild@0.28.1)(jiti@2.7.0)(terser@5.48.0)(yaml@2.9.0)) @@ -2046,8 +2046,8 @@ packages: '@emnapi/core': ^1.7.1 '@emnapi/runtime': ^1.7.1 - '@netlify/ai@0.4.1': - resolution: {integrity: sha512-ETLtV/9taYrcGhszwO+BLFgFJJ2MCnJp8BwxfwV6Z/+z3SsaUG4ExC8x4xzNCdB2GPWxXrXkvR2LFNsPFSLcRA==} + '@netlify/ai@0.4.2': + resolution: {integrity: sha512-PWHLAEKG16KCUE+O+je+aoXEUs/tUsXPoMcHfzYxFgJ4xczTIY97iaqu62cW9kf9KzZ27TV/t6gqTAX5NKO6ww==} engines: {node: '>=20.6.1'} '@netlify/api@14.0.19': @@ -2768,124 +2768,124 @@ packages: cpu: [x64] os: [win32] - '@oxfmt/binding-android-arm-eabi@0.55.0': - resolution: {integrity: sha512-+rFDOqQe5LOWgxrAJaZgLRudr6GQm0wGI6gtu7vVkrdLGjNMUSGbAlaCr8j7F2H2Er97vYQCU8WDb30onqMM1g==} + '@oxfmt/binding-android-arm-eabi@0.56.0': + resolution: {integrity: sha512-CSCxi7ovYojgfdPOdUb9T508HKeAdDIKeRGg7x8IZwVJrWz9gVgX7MbUnFqtQAE4QvoNo07mj2JlwnOzJw4qqA==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm] os: [android] - '@oxfmt/binding-android-arm64@0.55.0': - resolution: {integrity: sha512-ctulLq8s3x8Zmvw6+iccB09TIKERAklRSmbJ10gk8mlAn05qZxoyo52dj3Hi9IJcmDSwF54fQaTVh2CbL6PInw==} + '@oxfmt/binding-android-arm64@0.56.0': + resolution: {integrity: sha512-HYJFnd+PkDwf6S9ZPGzXXtjNqvRWFnnhdbWaouh4mi/SxU8wmDuzlMn3xo/wDTGnr4Q1VA7ZzOaE/D4biW0W6A==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [android] - '@oxfmt/binding-darwin-arm64@0.55.0': - resolution: {integrity: sha512-xDQczLH9pw/RBk1h/GH0qcGMm8hQtmtVHBNLSH3lk1gEIR09hZ4L+mJQl4VqiVAvPK9VG9PYrWWuSQLt7xTbiA==} + '@oxfmt/binding-darwin-arm64@0.56.0': + resolution: {integrity: sha512-sftR/bEOr+t1gs+evwsHi/Xbq2FAPA2uU3VMr8n6ZU9PoK/IMSfnfu7+OEe/uy1+knhrFl4Wvy7Vkm3uo9mJ7g==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [darwin] - '@oxfmt/binding-darwin-x64@0.55.0': - resolution: {integrity: sha512-JaNoFCkF2CJdGgpPSMbuO9HVyXyoNGIhMHPvp6NYAjeVKw9XEYc0HcUWJLPQa3Q69WV5wMa9m5jPMJPtbLtcRg==} + '@oxfmt/binding-darwin-x64@0.56.0': + resolution: {integrity: sha512-z66SdjLqa3MUPKvTp3Mbb5nSjKSbnYxJGeB+Wx987s8T5hPcIRiBMfnJ6zcPgYtQn3x5xjvdzNVkXrSeYH6ZFg==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [darwin] - '@oxfmt/binding-freebsd-x64@0.55.0': - resolution: {integrity: sha512-DNbszhpg6S2MIzax5azdHFTTBIVkR5xr8yyRZuA4yoDAwOkzIp3tmldgKZM2+VlT+hJIG0xUksA+elISzMEAfA==} + '@oxfmt/binding-freebsd-x64@0.56.0': + resolution: {integrity: sha512-t2tkrV1vtZyaItSQ71dTi2ZVKZEI39b/LqLT12V5KMfIeXK6N32TUC1jhOXKVQmhECq9j2ZXMQV3JeT1kh9Vmg==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [freebsd] - '@oxfmt/binding-linux-arm-gnueabihf@0.55.0': - resolution: {integrity: sha512-2snoaoRfFFyGnbOcKUK36rREBYxe/Xgz3uHbiA5zbCB/s6R4DQj4mHqYAaWWhgizCUSDxV8cE9zAZ0XleNpKGw==} + '@oxfmt/binding-linux-arm-gnueabihf@0.56.0': + resolution: {integrity: sha512-+gCy+Tp3RHeXQ9y/QrS76lXIpZkbziTyp6hIgjB2MssCwfMph3vG/GEfkhO34Rai1vhYIaUkvv8UT1BcDorJPw==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm] os: [linux] - '@oxfmt/binding-linux-arm-musleabihf@0.55.0': - resolution: {integrity: sha512-q1aktHF/WRpSK81BX1dE/9vWrS2jGw1Nax2kb4DBLGAewubCLcoNyp4Zl/NSMgbv3vUS46Z33wIQkBVYOP3PYg==} + '@oxfmt/binding-linux-arm-musleabihf@0.56.0': + resolution: {integrity: sha512-0kKkVvQ2I+FJ2sxQyUu1zJ0yWP5kcWse/yVFnGQSFCXMwSSkfEaUGu0dW774O7nyy3jrcBGap7OSc8dZmU/CdA==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm] os: [linux] - '@oxfmt/binding-linux-arm64-gnu@0.55.0': - resolution: {integrity: sha512-VD0y36aENezl/3tsclA/4G53Cc7iV+7Uoh7gz4yvcOTaEYBtJpQsE6PKDGTtUtOvGS4kv51ybfXY/nWZejO5IA==} + '@oxfmt/binding-linux-arm64-gnu@0.56.0': + resolution: {integrity: sha512-npkA2siMbyWRh+wEhi1aTAx4RirukGcGNt8V4Ch86pG+xU9aurqS1MZOnKYMu03ISwat3rB6zkQx51SsB9obNw==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [linux] libc: [glibc] - '@oxfmt/binding-linux-arm64-musl@0.55.0': - resolution: {integrity: sha512-r8xlKJFcsRmn0H5jZrdORae6RX9jDBrZVvOoxF+bCQtampQJClv80aZEHsv+NsLsp2KCE5ql79O7DpPVzYWpXA==} + '@oxfmt/binding-linux-arm64-musl@0.56.0': + resolution: {integrity: sha512-UekqOjGkV4/MkqreCV9SPIB2jlR3/HbXrmhV1rVXJZ9wfDXMyCMriLtq3tHqLY4PkbVWNtfcm1kMojJ26KLSJw==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [linux] libc: [musl] - '@oxfmt/binding-linux-ppc64-gnu@0.55.0': - resolution: {integrity: sha512-GRKv/HXHcwIVld/WU61rF0g0R16hl5EJ+ScKdpjevT57lnLnagj/U2YUbXf2mT+2Pg1uCzWC+mvGicPV3CDdLQ==} + '@oxfmt/binding-linux-ppc64-gnu@0.56.0': + resolution: {integrity: sha512-XSzveSpeZMD5XJpew5lRFVtNnT04xd3rJxENXmk7wkZzN9oWzv2aFJyoNDhOtoz69BYaS/fg4SYl+CfEZRpB0Q==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [ppc64] os: [linux] libc: [glibc] - '@oxfmt/binding-linux-riscv64-gnu@0.55.0': - resolution: {integrity: sha512-rdv57enTiPtpSYRMKfAiEbQb0Puw5t9N7isVinDoo5qeLDScro2gznmZqSgSWbVZRzLisTeCTW8Qwgw0bOHv3A==} + '@oxfmt/binding-linux-riscv64-gnu@0.56.0': + resolution: {integrity: sha512-EkQ0nJa7k7HDDIVuPF7WY+k4k+bzdclLYtyIXNt7/OqVghfNiMym6YGppFBgx1XRIHW6QylxBz5OogumPjPJbQ==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [riscv64] os: [linux] libc: [glibc] - '@oxfmt/binding-linux-riscv64-musl@0.55.0': - resolution: {integrity: sha512-7v1nNrlD43VY6+sYQ6efYyb3lE6QY182304PD/768ZxTjOmFd/3dQa3u/nGBUAXYdGSWOQc5N3PnS0QzUXyEIA==} + '@oxfmt/binding-linux-riscv64-musl@0.56.0': + resolution: {integrity: sha512-dyjAGW8jKRge0ik6U/dgvQG0nVpA3iBlRskQTz5qJLvQWIrySxX5jpqzPetLBNIIZ231KA82fDdi1nLTk8ENCw==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [riscv64] os: [linux] libc: [musl] - '@oxfmt/binding-linux-s390x-gnu@0.55.0': - resolution: {integrity: sha512-f4lJLUSPOgScjFl9LiflKCTocyNRwE25JmTMbN4XQdDjoZzEHjqf3wA3VESF1/csg7i8m7+EQLbrZyYDqe10UQ==} + '@oxfmt/binding-linux-s390x-gnu@0.56.0': + resolution: {integrity: sha512-60ZGH3LtfqlW8X6vcLdSFY4lvCQYINurttYBKaALnHCDVAUCYJ1LsUgS6p1XOzVlzEDx3yNUZvDF1Lvt59zoZw==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [s390x] os: [linux] libc: [glibc] - '@oxfmt/binding-linux-x64-gnu@0.55.0': - resolution: {integrity: sha512-MihqiPziJNoWy4MqNSV+jVA1g+07iQDjZiR0vaCaDoPgFEiJpCMsxamktzLV07cEeQsSJ04vQaU4CzCQwIvtDA==} + '@oxfmt/binding-linux-x64-gnu@0.56.0': + resolution: {integrity: sha512-u1suj1tgJHK4ZqB7buCtdbNef2n8+d0lXTPJwLHNmtyK6p+DTpsaoDvmqhQrA56fgKYv4LuRxNtL8YooebKOew==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [linux] libc: [glibc] - '@oxfmt/binding-linux-x64-musl@0.55.0': - resolution: {integrity: sha512-Yqghym7KYAVjP9MmSrNZiDeerMuoejNjo0r3ox5H3GDKk8eAfl8VyJm9i+pWCLDCTnAbcTUMMN2ZKjUYXH1v3g==} + '@oxfmt/binding-linux-x64-musl@0.56.0': + resolution: {integrity: sha512-aYGLvlQHt80y+qKEtfJY/Nm27G0125Lv+qyh9SJ4Cjc6lXnXjD+ndfhqQnbV24POpMi7rNRi0jvx/0d70FRpCQ==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [linux] libc: [musl] - '@oxfmt/binding-openharmony-arm64@0.55.0': - resolution: {integrity: sha512-s5SDvVVSbyQl1V5UU3Yl12M+XLUQ3rl5SglNqgAA2K4PXUtQhyNSS00wivONPEnNo5W01rCou8WkDNyvI/RGHg==} + '@oxfmt/binding-openharmony-arm64@0.56.0': + resolution: {integrity: sha512-H/re/gO+7ysVc+kywHNuzY3C33EN9sQcZhg0kp1ZwOZl7y998ZE5mhnBiuGR/nYI0pqLL5xQfrHVUOJ/cIJsCA==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [openharmony] - '@oxfmt/binding-win32-arm64-msvc@0.55.0': - resolution: {integrity: sha512-7p9FB5R32tw2KyyNX3wpQrR2WHwEHvMEiBlGXxeTCaRMCVNx3UtFMAUbaQ/pRNWIrEUZmYhJ6tcUH52uPTRYjQ==} + '@oxfmt/binding-win32-arm64-msvc@0.56.0': + resolution: {integrity: sha512-6qLNXfXmtAs8jXDvYMkxk6Wec5SUJoew+ZX1uOZmqaR7ks0EJFbAohuOCELDyJMWyVlxotVG8Xf8m74Bfq0O2w==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [win32] - '@oxfmt/binding-win32-ia32-msvc@0.55.0': - resolution: {integrity: sha512-ZYqj3fDnOT1IaVGMP5kpmkQl4F3tQIm2ZyAxvqkJYmI0xgWWak4ss4XYwv3VDfM+TWXeC9K4uQ/wW5jm/5XABA==} + '@oxfmt/binding-win32-ia32-msvc@0.56.0': + resolution: {integrity: sha512-UXEXuKphAe15bsob4AswNMArCw38XSmUIs3wk1s6e6MX9OWGW/IRWU95s1hZDiVg09STy1jHgyN2qkqbu1FT0w==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [ia32] os: [win32] - '@oxfmt/binding-win32-x64-msvc@0.55.0': - resolution: {integrity: sha512-eEYT5tivGnGbPHuOHuQpi6CGLObhh0re/5jcNQHihD2GRYkTM85dyi5a19zjP8Q00t1uqAx+/QGLUGdHeqzWyg==} + '@oxfmt/binding-win32-x64-msvc@0.56.0': + resolution: {integrity: sha512-HPyNDjky+NIOuaMvHZflR+kst3YWdUOH2JUQYkf99grqZ5mEBTQM6h9iGy501Z8Xt5xMScrwHOuVCOlqDrktRw==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [win32] @@ -2920,124 +2920,124 @@ packages: cpu: [x64] os: [win32] - '@oxlint/binding-android-arm-eabi@1.70.0': - resolution: {integrity: sha512-zFh0P4cswmRvw6nkyb89dr18rRanuaCPAsEXsFDoQY8WdaquI8Pt4NWFjaMJg6L23cy5NeN8J9cBnREbWzZhaw==} + '@oxlint/binding-android-arm-eabi@1.71.0': + resolution: {integrity: sha512-ImGmd1njEg4FEJH03jhRnveEegtO3czCtfptvaHivKAZQIYATbVFBrrzbaYMYv0oJioTnxZAZVSyV+oL7W8S2g==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm] os: [android] - '@oxlint/binding-android-arm64@1.70.0': - resolution: {integrity: sha512-qI8o4HZjeGiBrWv+pJv4lH0Yi2Gl/JSp/EumBUApezJprIKa5PS4nU0lQsQngtky8k+SplQIOjv6hwu0SSxeyg==} + '@oxlint/binding-android-arm64@1.71.0': + resolution: {integrity: sha512-4A5BEexBrwY1YFF8Kiq/lp/wQPRG79G3BWIE1FuWaM5MvmpYSd+7ZySVcKkHdwo0UDzdQGddp6pD9mpctMqLnw==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [android] - '@oxlint/binding-darwin-arm64@1.70.0': - resolution: {integrity: sha512-8KjgVVHI5F9nVwHCRwwA78Ty7zNKP4Wd9OeN5PSv3iu/F/u1RVXoOCgLhWqust6HmwQG6xc8c+RCyaWENy24+w==} + '@oxlint/binding-darwin-arm64@1.71.0': + resolution: {integrity: sha512-9wJA9GJulLwS2usU3CEisI/ESDO1n1z9eyTCvApMDrAkbJ1ve0mORgTMjcWWsKxkzkeZ2N/Gpra5IQE7x8tYgQ==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [darwin] - '@oxlint/binding-darwin-x64@1.70.0': - resolution: {integrity: sha512-WVydssv5PSUBXFJTdNBWlmGkbNmvPGaFt/2SUT/EZRB6bq6bEOHmMlbnupZD5jmlEvi9+mZJHi8TCw15lyfSfQ==} + '@oxlint/binding-darwin-x64@1.71.0': + resolution: {integrity: sha512-PlLCjS06V0PeJMAJwzjrExw1sYNW9Gch3JtNlcwwZDXGlTYDuwHNN89zYH8LTXFfgkVtsYvs2nv0FqrzyuFDzg==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [darwin] - '@oxlint/binding-freebsd-x64@1.70.0': - resolution: {integrity: sha512-hJucmUf8OlinHNb1R7fI4Fw6WsAstOz7i8nmkWQfiHoZXtbufNm+MxiDTIMk1ggh2Ro4vLzgQ+bKvRY54MZoRA==} + '@oxlint/binding-freebsd-x64@1.71.0': + resolution: {integrity: sha512-Lhil7bWre0ncxbUoDoxfS0JzpTz17BRQKW7iwoAUY8GJ66+WwJEfYPCFJ1P0WgVZR5/O/b3Q2pENlHOjeXLOGQ==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [freebsd] - '@oxlint/binding-linux-arm-gnueabihf@1.70.0': - resolution: {integrity: sha512-1BnS7wbCYDSXwWzJJ+mc3NURoha6m6m6RT5c6vgAY3oz7C3OVXP+S0awo2mRq97arrJkVvO3qRQfyAHL+76xtQ==} + '@oxlint/binding-linux-arm-gnueabihf@1.71.0': + resolution: {integrity: sha512-Oo9/L58PYD3RC0x05d2upAPLllHytTjHQGsnC06P6Ynn7jKkp5mdImQxXdJ3+FnBaKspNpGogzgVsi6g872LiA==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm] os: [linux] - '@oxlint/binding-linux-arm-musleabihf@1.70.0': - resolution: {integrity: sha512-yKy/UdbR55+M2yEcuiV5DCNC/gdQAjr/GioUy50QwBzSrKm8ueWADqyRLS9Xk+qjNeCYGg6A8FvUBds56ttfqg==} + '@oxlint/binding-linux-arm-musleabihf@1.71.0': + resolution: {integrity: sha512-mSHfyfgJrEbyIR29ejaeS50BdPk+GoNPlC1dckpDiUZbJAIel68sjSMdOt4WY0/gva+ECC7FNITQkxMJU+vSBw==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm] os: [linux] - '@oxlint/binding-linux-arm64-gnu@1.70.0': - resolution: {integrity: sha512-0A5XJ4alvmqFUFP/4oYSyaO+qLto/HrKEWTSaegiVl+HOufFngK2BjYw9x4RbwBt/du5QG6l5q1zeWiJYYG5yg==} + '@oxlint/binding-linux-arm64-gnu@1.71.0': + resolution: {integrity: sha512-n9yY4M2tiy3aij4AqtlnspzpfdpeT5JQfK2/w2d8oyp5W0FRwOb1dIeX99nORNcxGr08iD9bH8N5XFz3I2iy8w==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [linux] libc: [glibc] - '@oxlint/binding-linux-arm64-musl@1.70.0': - resolution: {integrity: sha512-JiylyurlB0CLSedNtx1gzv3FvfWPF1h/2Y3BJszPLNt5XQFlBsH5ke0Jle3iJb3uqu5m2e7A/DwzpuCAHdiU+A==} + '@oxlint/binding-linux-arm64-musl@1.71.0': + resolution: {integrity: sha512-fJZrs5sDZtTaPIOiemRQQmo82Ezy+vOGXemPc4Ok7iVVsYsFa7SlW6Z5XN819VfsqBHRm3NJ3rTdnR8+bJYJdQ==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [linux] libc: [musl] - '@oxlint/binding-linux-ppc64-gnu@1.70.0': - resolution: {integrity: sha512-J8VPG7I3/HmgaU4u8pNU2kFx2+0U+vPLS1dXFxXOaR/2TQ0f8AC7DRz0SRGRI1bfphnX2hVYTTtLuhL4nYKL+Q==} + '@oxlint/binding-linux-ppc64-gnu@1.71.0': + resolution: {integrity: sha512-cwl7VKGERIy9p+G+AvZdfy/06q0aHXaTt/mMRReC751iuNYJgqKjB7NydXSS30nBT9vtr2tunciOtrR4fD6FUA==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [ppc64] os: [linux] libc: [glibc] - '@oxlint/binding-linux-riscv64-gnu@1.70.0': - resolution: {integrity: sha512-N2+4lV2KLN+oXTIIIwmWDhwkrnvqf5oX7Hw0zPjk+RuIVgiBQSOlJWF7uQoFx2siEYX0ZQ5cfSbEAHm+J3t7Wg==} + '@oxlint/binding-linux-riscv64-gnu@1.71.0': + resolution: {integrity: sha512-eZ8ieVXvzGi8jr7+ybQGPK2STw3mldfxZlgA2738iflfB/rzA69sE6m5rDRpQaxC7dpm745Enlh1Tod0QAk9Gg==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [riscv64] os: [linux] libc: [glibc] - '@oxlint/binding-linux-riscv64-musl@1.70.0': - resolution: {integrity: sha512-1e2L7cFCvx9QDzq6NPP+0tABKb5z6nWHyddWTNKprEsjO9xNrAtPowuCGpjNXxkTdsMiZ4jc8YQ5SstZd4XK6g==} + '@oxlint/binding-linux-riscv64-musl@1.71.0': + resolution: {integrity: sha512-puMDbQYe6+NXwfMusojoA7CXGn2b3utukmd23PQqc1E3XhVCwyZ+FueSMzDYeNgDV2dUfIVXAAKZBcFDeCL6sA==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [riscv64] os: [linux] libc: [musl] - '@oxlint/binding-linux-s390x-gnu@1.70.0': - resolution: {integrity: sha512-Kwu/l/8GcYibCWA9m9N5pRXMIKVSsL/YbgpLzYkqDhWTiqdRfnNJ/+nqIKRKQiFbHWsdlHEhzMwruJK+qcEruA==} + '@oxlint/binding-linux-s390x-gnu@1.71.0': + resolution: {integrity: sha512-4NJLxBs1ujISCt3L/1FcywLs73PWtJuw+piD6feK2V6h6OS6P7xu9/sWt1DTRLibe6QCzmfZzmM/2HPORoV/Lg==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [s390x] os: [linux] libc: [glibc] - '@oxlint/binding-linux-x64-gnu@1.70.0': - resolution: {integrity: sha512-tap04CsHYOl0nSAQJfPNIuBxqEPB2HnhQqwaOXLg1jnp2XfRo8Fa814dA4QC4zpvTWXCjAAaCY1W5LOORkEQuQ==} + '@oxlint/binding-linux-x64-gnu@1.71.0': + resolution: {integrity: sha512-cFDaiR8L3430qp88tfZnvFlt3KotFhR/DlbIL0nHOMMYiG/9Wy4l+6f7t8G8pTa9bd8Lt8+M0y/qjRQ/xcB74g==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [linux] libc: [glibc] - '@oxlint/binding-linux-x64-musl@1.70.0': - resolution: {integrity: sha512-hzJa/WgvtJpbBD9rgfy0qe+MjbxOXNUT0bfR1S6EQQzfTtBFA9xg5q8KSwRrQ2QfSS+TaP4j+4mVPQrfNc6UNg==} + '@oxlint/binding-linux-x64-musl@1.71.0': + resolution: {integrity: sha512-orfixdt76KlpNly9z0PkWBBNfwjKz+JFVLP/7wnVchlKNU9Dpt9InU/ZggeSej6fC7qwHmHNOGlhLnQXcYoGuA==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [linux] libc: [musl] - '@oxlint/binding-openharmony-arm64@1.70.0': - resolution: {integrity: sha512-xbsaNSNzVSnaJACCUYr1HQMyY/Q/Q1LkePmHG3UvZPvGCYGNxrsZp9OmtA6ick8xH47ltRRbRrPCM1YXYcyC+A==} + '@oxlint/binding-openharmony-arm64@1.71.0': + resolution: {integrity: sha512-9emQu2lAp6yhPB3XuI+++vR+l/o6JR1X+EpxwcumPdQXBWXEPAsquPGL7l158EqU8SebQMXTUa/S5zN98juyHw==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [openharmony] - '@oxlint/binding-win32-arm64-msvc@1.70.0': - resolution: {integrity: sha512-icAEsUI7JbW1TMRdEXV83mVAInhRVQYuuAlPpxdGwJ95chNdnCzjloRW8GglT0WvzOEZSio6fnYSk2DJ2Hv7LQ==} + '@oxlint/binding-win32-arm64-msvc@1.71.0': + resolution: {integrity: sha512-bd5kI8spYwTm3BILDtGhi73zoup5dw8MlPQNT8YB3BD5UIsjNe3K9/4ctrzQMX4SZMoK5HgzVLkLJzacEXB7fA==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [win32] - '@oxlint/binding-win32-ia32-msvc@1.70.0': - resolution: {integrity: sha512-FHMSWbVsPVs/f+Jcl04ws4JJ2wUnauyTzlpxWRG/lSO/8GpX08Fo2gQZqdA6CrRFI+zvkxl+N/KwJGWfUwYVZA==} + '@oxlint/binding-win32-ia32-msvc@1.71.0': + resolution: {integrity: sha512-W4HvOHGzVLHcrmFu+bMrJlho+/yrlX5ZNdJZqGe8MEldkQG+RHYhxxad9P4jvWAYFmIqUA5i9DQ8QsJqSU9GIw==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [ia32] os: [win32] - '@oxlint/binding-win32-x64-msvc@1.70.0': - resolution: {integrity: sha512-ptOlKwCz7n4AKs5VweMqG6DAg677FmKOK+vBkkL9DMNgFATIQ+upqUYBTOEwRQyRAx1ncGlPlXleV2hIcm3z4g==} + '@oxlint/binding-win32-x64-msvc@1.71.0': + resolution: {integrity: sha512-D2kyEIPHk/G/wiZLnwTVC/sVst+T/lKldVOjAFpgTIBUAOlry72e5OiapDbDBF4LfJLkN5ypJb/8Eu6yJzkveQ==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [win32] @@ -4263,50 +4263,50 @@ packages: resolution: {integrity: sha512-6fJ9MHWtK14C1DSkiMlHUSOmrVebL7150xZJBlJiL62jjhIA4JmOq6flwBgDxIdBKKdoiZRel+dfPD5MLfny3w==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - '@typescript/native-preview-darwin-arm64@7.0.0-dev.20260619.1': - resolution: {integrity: sha512-i07qdTFQEBYotjg/Iy0GAfARSFyKAjXmP5BNPo6+QXGOp5hJNnmXSxGyhIlooqbDXluTQRhESEmzVAuvYryKCA==} + '@typescript/native-preview-darwin-arm64@7.0.0-dev.20260622.1': + resolution: {integrity: sha512-g/fjmdh/i/ngSmUeWNHh98iuONzW+kUaqwZRaZCmGkssBJ6ZrJAsyg85cm1t4aK9ne5nNjbjNPzJFTZ+QNMSRw==} engines: {node: '>=16.20.0'} cpu: [arm64] os: [darwin] - '@typescript/native-preview-darwin-x64@7.0.0-dev.20260619.1': - resolution: {integrity: sha512-WVetqm9ypzLv+b/8+SRYuO6bJDC4AaQmT/1EcYh8iP6y5vZl3h13iscJ+45eHc4Y3yMyoDHOivfOTyTIMH2Vrw==} + '@typescript/native-preview-darwin-x64@7.0.0-dev.20260622.1': + resolution: {integrity: sha512-AqRrnPQCR+7j6u6uC6eQpacJ/btxZW6ktpWxPj7byoyk6kGSSgUb0YNcZ2Iao2brdbYw4LOxVcrVW4mP+K7sxg==} engines: {node: '>=16.20.0'} cpu: [x64] os: [darwin] - '@typescript/native-preview-linux-arm64@7.0.0-dev.20260619.1': - resolution: {integrity: sha512-peEnXecjZsnsW24GutRasmZlIgRLbyXPoR0inMkzXT1h7/+Ns5tM8RPnuxelXoC10dg4Ajo8I9BlUAgX45LwEQ==} + '@typescript/native-preview-linux-arm64@7.0.0-dev.20260622.1': + resolution: {integrity: sha512-sxo7AlhQiX5J5WYWBxSBjJ02nA2kiO8j+K51fuF24nmbQRtSLjTa8/BimpYbBywTAsSps8vgnJjsLONf243HYw==} engines: {node: '>=16.20.0'} cpu: [arm64] os: [linux] - '@typescript/native-preview-linux-arm@7.0.0-dev.20260619.1': - resolution: {integrity: sha512-mqUzZ9htNWH0su9+A5QqnHJ25hQ+E8Cq5qOOmfdQjiCQnPT69HQZ9MiUozQc1qk0i9/UaXouYDK48Pe0oUvUOw==} + '@typescript/native-preview-linux-arm@7.0.0-dev.20260622.1': + resolution: {integrity: sha512-XnDHJZWFY2M8DCzxXj598Ql9op+zYpk6k5X3FYB4KeOXpdzjAke2H9wKW7UKeYfvPJyAgvyS+IapcvogCwx13A==} engines: {node: '>=16.20.0'} cpu: [arm] os: [linux] - '@typescript/native-preview-linux-x64@7.0.0-dev.20260619.1': - resolution: {integrity: sha512-vZhIHvtpQE4ZICMIzIrOVOl/YYOLJjA91CsJMyetNNzvuQCCtll7CWUsS6Sp1IdRqJdwM6seJrdDEAtWkEMFkA==} + '@typescript/native-preview-linux-x64@7.0.0-dev.20260622.1': + resolution: {integrity: sha512-41TR69UuB1be2DmjcavcUMoFipIQNVpqsm1FvVCtGnscL41pDa/ijXHnSwzn7v8EbCgAI7hRUhRsPNPGY3OCKQ==} engines: {node: '>=16.20.0'} cpu: [x64] os: [linux] - '@typescript/native-preview-win32-arm64@7.0.0-dev.20260619.1': - resolution: {integrity: sha512-pRdZDV9Q3IzBKOi5WrIaEnlkVLB0w3zVj2/BliPV/oQ8r8N+4LmSCuyy8PbL5bMw8SznTlmiIfv5gvoEx2SpEw==} + '@typescript/native-preview-win32-arm64@7.0.0-dev.20260622.1': + resolution: {integrity: sha512-TMdYylCqBvQOVz6x5dT1HQ/49eLBijNE/uMGD2CA3YR4Hp4NkG+Rqg46NZiaO48D2+sjZws2uoNtPhfefN9IdA==} engines: {node: '>=16.20.0'} cpu: [arm64] os: [win32] - '@typescript/native-preview-win32-x64@7.0.0-dev.20260619.1': - resolution: {integrity: sha512-sOvPE+lA/+SU/cnva+MXA1oq70HO0lLajsj9ZA10T1CN1PUGgaC1Zw7V0objTJsZ9ri6I3Ldp+Fh4Onz3mLDXw==} + '@typescript/native-preview-win32-x64@7.0.0-dev.20260622.1': + resolution: {integrity: sha512-ROz8ncFZsMC2nn8ClBZ3wLNXpea6BbdMYyNTWx8xYrikhOIgFlkmAdc10PA/MiOh78RraUbdWvwbXNe19He+iQ==} engines: {node: '>=16.20.0'} cpu: [x64] os: [win32] - '@typescript/native-preview@7.0.0-dev.20260619.1': - resolution: {integrity: sha512-YDmSiD6l+nikPoqrwDKn9wkCFUDFJCfkKcOKrYVycX5plwu6H03JWKyW1h1HjEfrMVw4Mq/Qk12VTsXJWP4TDQ==} + '@typescript/native-preview@7.0.0-dev.20260622.1': + resolution: {integrity: sha512-t4XoYz/Jr1Jt7wkaHwe4e/r3OcYgKxvL0dqfZsnBmqG8HsJ57VpOwd0PINU5b5umcb4g9akVto028L70lAJUpA==} engines: {node: '>=16.20.0'} hasBin: true @@ -4746,8 +4746,8 @@ packages: resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==} engines: {node: '>=8'} - browserslist@4.28.2: - resolution: {integrity: sha512-48xSriZYYg+8qXna9kwqjIVzuQxi+KYWp2+5nCYnYKPTr0LvD89Jqk2Or5ogxz0NUMfIjhh2lIUX/LyX9B4oIg==} + browserslist@4.28.4: + resolution: {integrity: sha512-MTc8i/x9jBQd1iMw2CFGS+rwMa07eYjLR0CCTLDACl9xhxy+nIs3KeML/biicXtk9JrZ6dnnTatmc7ErPXIxqw==} engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} hasBin: true @@ -4842,8 +4842,8 @@ packages: character-reference-invalid@2.0.1: resolution: {integrity: sha512-iBZ4F4wRbyORVsu0jPV7gXkOsGYjGHPmAyv+HiHG8gi5PtC9KI2j1+v8/tlibRvjoWX027ypmG/n0HtO5t7unw==} - chardet@2.1.1: - resolution: {integrity: sha512-PsezH1rqdV9VvyNhxxOW32/d75r01NY7TQCmOqomRo15ZSOKbpTFVsfjghxo6JloQUCGnH4k1LGu0R4yCLlWQQ==} + chardet@2.2.0: + resolution: {integrity: sha512-rddelWYNPRrXq6PtNEN2S3f6t9ILzvqaN5pVgi4kqt9jHQaXIial9PznB5iSPVlQSLNaaH22ItWz3EJtQ10+OA==} check-error@2.1.3: resolution: {integrity: sha512-PAJdDJusoxnwm1VwW07VWwUN1sl7smmC3OKggvndJFadxxDRyFJBX/ggnu/KE4kQAB7a3Dp8f/YXC1FlUprWmA==} @@ -5410,8 +5410,8 @@ packages: effect@3.21.4: resolution: {integrity: sha512-B89v/xSgPbl1J2Ai2u18jxq3odpFauU1rC6/eSs4FeNHi72kwKdJp12VGigvRV2lK+kRnx+OOz41XV8guZd4gQ==} - effect@4.0.0-beta.84: - resolution: {integrity: sha512-zWwFI9WZ4TsddBmtcuuAO2IXGR0Dp56xIUt8cX29ZeyOEtErXqP6muDaVpro08lGiMSOGMqSpuH/C1TUxHsRAA==} + effect@4.0.0-beta.85: + resolution: {integrity: sha512-Cjv9YQyv4CiIccmRAQIWAoeESCpCpiuHYY8zb5vqiYs3Ac2yE5RQAnKq7z4Ir/3VJYZb8kxh6rS8czDDnpTdkQ==} ejs@3.1.10: resolution: {integrity: sha512-UeJmFfOrAQS8OJWPZ4qtgHyWExa088/MtK5UEyoJGFH67cDEXkZSviOiKRCZ4Xij0zxI3JECgYs3oKx+AizQBA==} @@ -5637,8 +5637,8 @@ packages: resolution: {integrity: sha512-knvyeauYhqjOYvQ66MznSMs83wmHrCycNEN6Ao+2AeYEfxUIkuiVxdEa1qlGEPK+We3n0THiDciYSsCcgW/DoA==} engines: {node: '>=12.0.0'} - exsolve@1.0.8: - resolution: {integrity: sha512-LmDxfWXwcTArk8fUEnOfSZpHOJ6zOMUJKOtFLFqJLoKJetuQG874Uc7/Kki7zFLzYybmZhp1M7+98pfMqeX8yA==} + exsolve@1.1.0: + resolution: {integrity: sha512-D+42+T12DdIlJM3uepa55qGiL3sYdLBOxIl2ifQCzCHz4c7eiolaHsi3BIqEr7JxBzxv2pYZQX9kw16ziMcEmw==} extend-shallow@2.0.1: resolution: {integrity: sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==} @@ -6449,8 +6449,8 @@ packages: resolution: {integrity: sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==} engines: {node: '>=0.10.0'} - knip@6.17.1: - resolution: {integrity: sha512-HcQsZSQ4Ymhuay4BVzJtM5pFZNDSomYYqcNCZOSITPQh9g18a09DqziWAxSt2G+BH9wGlG+0ZjWpEnaFlnKseQ==} + knip@6.17.2: + resolution: {integrity: sha512-TkjaPEg0No9aDCofdCLdB9+wxfrczvZNim15E/iLd+kz5lub90nZuwjiYqZg7xHTvQSITF2M6L3Bv9ydBkx28g==} engines: {node: ^20.19.0 || >=22.12.0} hasBin: true @@ -6963,8 +6963,8 @@ packages: resolution: {integrity: sha512-dkEJPVvun4FryqBmZ5KhDo0K9iDXAwn08tMLDinNdRBNPcYEDiWYysLcc6k3mjTMlbP9KyylvRpd4wFtwrT9rw==} engines: {node: ^20.17.0 || >=22.9.0} - nanoid@3.3.13: - resolution: {integrity: sha512-sPdqC6ByMVVGvF1ynvvMo0/o+oD1VX7DaHhijt1bFgjvBkHBib4t49GoNDhf2NDta4oeUNlaGbSt5K7qjZ955Q==} + nanoid@3.3.15: + resolution: {integrity: sha512-y7Wygv/7mEOvxTuEQDB8StXdMRBWf1kR/tlhAzBRUFkB2jfcLOAxO/SHmOO2zgz1pVgK29/kyupn059/bCHdjA==} engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} hasBin: true @@ -7150,8 +7150,8 @@ packages: oxc-resolver@11.21.3: resolution: {integrity: sha512-2Mx3fKQz7+xgrBONjsxOgCGtMHOn38/HxMzW1I5efwXB5a4lRN0Vp40gYUJFBWJslcrvwoofTrqoTnLbwTd3pA==} - oxfmt@0.55.0: - resolution: {integrity: sha512-jSj2wCTakwgPMxkfiVZX0jf+nX+Nz6xlyAZjqNE0qXTFdCBPYlP6JAN+ODjmealw7DXBjOzYbdsqwBMAZnPZ6A==} + oxfmt@0.56.0: + resolution: {integrity: sha512-9Dv0wV3zKiyvhjD7bRKaInKmHQ1sPx3RGOjQkGFJbbdQ16576yf8qhMSO9Q9cvHcs+1NpBsRTkuDDYFFPTJ6gw==} engines: {node: ^20.19.0 || >=22.12.0} hasBin: true peerDependencies: @@ -7167,8 +7167,8 @@ packages: resolution: {integrity: sha512-3mBv3CoPbh8dFbzfDGIWa2ytZjn2v+3EX4aKRXjIhsoGFzG8GCjfRirz3rwZf1wYbZzsNLTSgpw8VjQuWdp/jA==} hasBin: true - oxlint@1.70.0: - resolution: {integrity: sha512-D6JgHtzkhRwvEC+A0Nw5AEc5bk8x5i1pHzvZIEf/a0C4hOzmAACNGtkDGPyFaxxX3ZVGxCPeig3P3rMM8XU3/g==} + oxlint@1.71.0: + resolution: {integrity: sha512-U1m1X+C0vDj7DC1e13IoZULzEcPczE7UOMTs8VlZGHUEIUaSTZKo5qkPsQEfzpgnQ29Pea/w3Xntk62UCecxZw==} engines: {node: ^20.19.0 || >=22.12.0} hasBin: true peerDependencies: @@ -7914,8 +7914,8 @@ packages: resolution: {integrity: sha512-RQsvleCbF8cVHEv+xuDGaA4pOizFqJ0GgjtMSRo6oP8pnN7WsigHgVGey6aILRBKv4W2YOMHLqbKdnB6hpB9fw==} engines: {node: '>=20.0.0'} - smol-toml@1.6.1: - resolution: {integrity: sha512-dWUG8F5sIIARXih1DTaQAX4SsiTXhInKf1buxdY9DIg4ZYPZK5nGM1VRIYmEbDbsHt7USo99xSLFu5Q1IqTmsg==} + smol-toml@1.7.0: + resolution: {integrity: sha512-aqVvWoyO21L23mb+drl4RmMXbf6N7FdHjAhTRA9ZBL7apWBgfWC16KjrASI+1p9GAroljyMHj6fK67i0UiTNvQ==} engines: {node: '>= 18'} snake-case@3.0.4: @@ -8123,8 +8123,8 @@ packages: peerDependencies: react: ^16.11.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 - tabbable@6.4.0: - resolution: {integrity: sha512-05PUHKSNE8ou2dwIxTngl4EzcnsCDZGJ/iCLtDflR/SHB/ny14rXc+qU5P4mG9JkusiV7EivzY9Mhm55AzAvCg==} + tabbable@6.5.0: + resolution: {integrity: sha512-wieBHXygIm7OyQOu5hQlkk62/WyCFYGlWg7L6/ZCUZwx0o398Zkn4pVmMyfYhfMG8kGrj/Krt8eIk6UKC6VzwA==} tagged-tag@1.0.0: resolution: {integrity: sha512-yEFYrVhod+hdNyx7g5Bnkkb0G6si8HJurOoOEgC8B/O0uXLHlaey/65KRv6cuWBNhBgHKAROVpc7QyYqE5gFng==} @@ -8178,8 +8178,8 @@ packages: resolution: {integrity: sha512-FlHoQpcFvCzeXK5kVPvV7IVgW/hs/B36QWTz876iSdeJguBDfdTSRQmYmaHX+fQNt4hp+gEFB2XXw+8hT4/y8A==} engines: {node: '>=20.0.0'} - tinyclip@0.1.14: - resolution: {integrity: sha512-F1oWdz8tjT17qe1d5JgDK6z03WGOhYYAN0lK3/D/fzNiy93xswLLEw7pk+3g05onhAy6Bsc6PLNUGhdgVjemMQ==} + tinyclip@0.1.15: + resolution: {integrity: sha512-uo33abH+Ays0xYaDysoBt494Hb3hsEczMpcC0MwFl773pazORx4fmvKhclhR1wonUbB6vvpRsvVMwnhfqeMc+A==} engines: {node: ^16.14.0 || >= 17.3.0} tinyexec@1.2.4: @@ -8340,8 +8340,8 @@ packages: resolution: {integrity: sha512-1URUxUqfHFM1c+zfSPsa3gnkO7Aq21qyH75SIduNYz4SzY964rn1X2vCMQaHSHhktiw+0kPa2iyb6PUpXqB6Vg==} engines: {node: '>=20'} - typebox@1.2.17: - resolution: {integrity: sha512-FHB10V5OI+MBKQ9N4CS4FTpdTiPwjAwkS9cjXt4uBULFE2zNOYu4A6iAR4GZVPcujSD6uCQjY1fqnOsjn/SLPQ==} + typebox@1.3.0: + resolution: {integrity: sha512-3HaX5iZ13wSzcLSflDH1UJwaXnRghtc8LhQtKnq8qnlcnZvmGOpBOM6rY9PdyPBKNOYBpDHfE9r6BmI41fvp4g==} typed-array-buffer@1.0.3: resolution: {integrity: sha512-nAYYwfY3qnzX30IkA6AQZjVbtK6duGontcQm1WSG1MD94YLqK0515GNApXkoxKOWMusVssAHWLh9SeaoefYFGw==} @@ -8573,8 +8573,8 @@ packages: util-deprecate@1.0.2: resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==} - uuid@14.0.0: - resolution: {integrity: sha512-Qo+uWgilfSmAhXCMav1uYFynlQO7fMFiMVZsQqZRMIXp0O7rR7qjkj+cPvBHLgBqi960QCoo/PH2/6ZtVqKvrg==} + uuid@14.0.1: + resolution: {integrity: sha512-6ZxzVpzDXDa3bJWaHilVayA+BH/1zmxCJoVgvmqJnid/gPoKHxUrS/aC/T6LGQtNHT+XHG9fXPJB4d+IrU30Ew==} hasBin: true valibot@1.4.1: @@ -9039,7 +9039,7 @@ snapshots: dependencies: '@babel/compat-data': 7.29.7 '@babel/helper-validator-option': 7.29.7 - browserslist: 4.28.2 + browserslist: 4.28.4 lru-cache: 5.1.1 semver: 6.3.1 @@ -10081,7 +10081,7 @@ snapshots: '@floating-ui/utils': 0.2.11 react: 19.2.7 react-dom: 19.2.7(react@19.2.7) - tabbable: 6.4.0 + tabbable: 6.5.0 '@floating-ui/utils@0.2.11': {} @@ -10242,7 +10242,7 @@ snapshots: '@inquirer/external-editor@1.0.3(@types/node@24.0.0)': dependencies: - chardet: 2.1.1 + chardet: 2.2.0 iconv-lite: 0.7.2 optionalDependencies: '@types/node': 24.0.0 @@ -10426,7 +10426,7 @@ snapshots: '@tybys/wasm-util': 0.10.2 optional: true - '@netlify/ai@0.4.1': + '@netlify/ai@0.4.2': dependencies: '@netlify/api': 14.0.19 @@ -10503,7 +10503,7 @@ snapshots: '@netlify/dev@4.18.7(rollup@4.62.2)(srvx@0.11.17)': dependencies: - '@netlify/ai': 0.4.1 + '@netlify/ai': 0.4.2 '@netlify/blobs': 10.7.9 '@netlify/config': 24.6.0 '@netlify/database-dev': 0.10.1 @@ -11161,61 +11161,61 @@ snapshots: '@oxc-resolver/binding-win32-x64-msvc@11.21.3': optional: true - '@oxfmt/binding-android-arm-eabi@0.55.0': + '@oxfmt/binding-android-arm-eabi@0.56.0': optional: true - '@oxfmt/binding-android-arm64@0.55.0': + '@oxfmt/binding-android-arm64@0.56.0': optional: true - '@oxfmt/binding-darwin-arm64@0.55.0': + '@oxfmt/binding-darwin-arm64@0.56.0': optional: true - '@oxfmt/binding-darwin-x64@0.55.0': + '@oxfmt/binding-darwin-x64@0.56.0': optional: true - '@oxfmt/binding-freebsd-x64@0.55.0': + '@oxfmt/binding-freebsd-x64@0.56.0': optional: true - '@oxfmt/binding-linux-arm-gnueabihf@0.55.0': + '@oxfmt/binding-linux-arm-gnueabihf@0.56.0': optional: true - '@oxfmt/binding-linux-arm-musleabihf@0.55.0': + '@oxfmt/binding-linux-arm-musleabihf@0.56.0': optional: true - '@oxfmt/binding-linux-arm64-gnu@0.55.0': + '@oxfmt/binding-linux-arm64-gnu@0.56.0': optional: true - '@oxfmt/binding-linux-arm64-musl@0.55.0': + '@oxfmt/binding-linux-arm64-musl@0.56.0': optional: true - '@oxfmt/binding-linux-ppc64-gnu@0.55.0': + '@oxfmt/binding-linux-ppc64-gnu@0.56.0': optional: true - '@oxfmt/binding-linux-riscv64-gnu@0.55.0': + '@oxfmt/binding-linux-riscv64-gnu@0.56.0': optional: true - '@oxfmt/binding-linux-riscv64-musl@0.55.0': + '@oxfmt/binding-linux-riscv64-musl@0.56.0': optional: true - '@oxfmt/binding-linux-s390x-gnu@0.55.0': + '@oxfmt/binding-linux-s390x-gnu@0.56.0': optional: true - '@oxfmt/binding-linux-x64-gnu@0.55.0': + '@oxfmt/binding-linux-x64-gnu@0.56.0': optional: true - '@oxfmt/binding-linux-x64-musl@0.55.0': + '@oxfmt/binding-linux-x64-musl@0.56.0': optional: true - '@oxfmt/binding-openharmony-arm64@0.55.0': + '@oxfmt/binding-openharmony-arm64@0.56.0': optional: true - '@oxfmt/binding-win32-arm64-msvc@0.55.0': + '@oxfmt/binding-win32-arm64-msvc@0.56.0': optional: true - '@oxfmt/binding-win32-ia32-msvc@0.55.0': + '@oxfmt/binding-win32-ia32-msvc@0.56.0': optional: true - '@oxfmt/binding-win32-x64-msvc@0.55.0': + '@oxfmt/binding-win32-x64-msvc@0.56.0': optional: true '@oxlint-tsgolint/darwin-arm64@0.23.0': @@ -11236,61 +11236,61 @@ snapshots: '@oxlint-tsgolint/win32-x64@0.23.0': optional: true - '@oxlint/binding-android-arm-eabi@1.70.0': + '@oxlint/binding-android-arm-eabi@1.71.0': optional: true - '@oxlint/binding-android-arm64@1.70.0': + '@oxlint/binding-android-arm64@1.71.0': optional: true - '@oxlint/binding-darwin-arm64@1.70.0': + '@oxlint/binding-darwin-arm64@1.71.0': optional: true - '@oxlint/binding-darwin-x64@1.70.0': + '@oxlint/binding-darwin-x64@1.71.0': optional: true - '@oxlint/binding-freebsd-x64@1.70.0': + '@oxlint/binding-freebsd-x64@1.71.0': optional: true - '@oxlint/binding-linux-arm-gnueabihf@1.70.0': + '@oxlint/binding-linux-arm-gnueabihf@1.71.0': optional: true - '@oxlint/binding-linux-arm-musleabihf@1.70.0': + '@oxlint/binding-linux-arm-musleabihf@1.71.0': optional: true - '@oxlint/binding-linux-arm64-gnu@1.70.0': + '@oxlint/binding-linux-arm64-gnu@1.71.0': optional: true - '@oxlint/binding-linux-arm64-musl@1.70.0': + '@oxlint/binding-linux-arm64-musl@1.71.0': optional: true - '@oxlint/binding-linux-ppc64-gnu@1.70.0': + '@oxlint/binding-linux-ppc64-gnu@1.71.0': optional: true - '@oxlint/binding-linux-riscv64-gnu@1.70.0': + '@oxlint/binding-linux-riscv64-gnu@1.71.0': optional: true - '@oxlint/binding-linux-riscv64-musl@1.70.0': + '@oxlint/binding-linux-riscv64-musl@1.71.0': optional: true - '@oxlint/binding-linux-s390x-gnu@1.70.0': + '@oxlint/binding-linux-s390x-gnu@1.71.0': optional: true - '@oxlint/binding-linux-x64-gnu@1.70.0': + '@oxlint/binding-linux-x64-gnu@1.71.0': optional: true - '@oxlint/binding-linux-x64-musl@1.70.0': + '@oxlint/binding-linux-x64-musl@1.71.0': optional: true - '@oxlint/binding-openharmony-arm64@1.70.0': + '@oxlint/binding-openharmony-arm64@1.71.0': optional: true - '@oxlint/binding-win32-arm64-msvc@1.70.0': + '@oxlint/binding-win32-arm64-msvc@1.71.0': optional: true - '@oxlint/binding-win32-ia32-msvc@1.70.0': + '@oxlint/binding-win32-ia32-msvc@1.71.0': optional: true - '@oxlint/binding-win32-x64-msvc@1.70.0': + '@oxlint/binding-win32-x64-msvc@1.71.0': optional: true '@parcel/watcher-android-arm64@2.5.6': @@ -12117,7 +12117,7 @@ snapshots: '@tanstack/router-plugin': 1.168.18(@tanstack/react-router@1.170.16(react-dom@19.2.7(react@19.2.7))(react@19.2.7))(vite@8.0.16(@types/node@24.0.0)(esbuild@0.28.1)(jiti@2.7.0)(terser@5.48.0)(yaml@2.9.0)) '@tanstack/router-utils': 1.162.2 '@tanstack/start-server-core': 1.169.15(crossws@0.4.6(srvx@0.11.17)) - exsolve: 1.0.8 + exsolve: 1.1.0 lightningcss: 1.32.0 pathe: 2.0.3 picomatch: 4.0.4 @@ -12499,36 +12499,36 @@ snapshots: '@typescript-eslint/types': 8.61.1 eslint-visitor-keys: 5.0.1 - '@typescript/native-preview-darwin-arm64@7.0.0-dev.20260619.1': + '@typescript/native-preview-darwin-arm64@7.0.0-dev.20260622.1': optional: true - '@typescript/native-preview-darwin-x64@7.0.0-dev.20260619.1': + '@typescript/native-preview-darwin-x64@7.0.0-dev.20260622.1': optional: true - '@typescript/native-preview-linux-arm64@7.0.0-dev.20260619.1': + '@typescript/native-preview-linux-arm64@7.0.0-dev.20260622.1': optional: true - '@typescript/native-preview-linux-arm@7.0.0-dev.20260619.1': + '@typescript/native-preview-linux-arm@7.0.0-dev.20260622.1': optional: true - '@typescript/native-preview-linux-x64@7.0.0-dev.20260619.1': + '@typescript/native-preview-linux-x64@7.0.0-dev.20260622.1': optional: true - '@typescript/native-preview-win32-arm64@7.0.0-dev.20260619.1': + '@typescript/native-preview-win32-arm64@7.0.0-dev.20260622.1': optional: true - '@typescript/native-preview-win32-x64@7.0.0-dev.20260619.1': + '@typescript/native-preview-win32-x64@7.0.0-dev.20260622.1': optional: true - '@typescript/native-preview@7.0.0-dev.20260619.1': + '@typescript/native-preview@7.0.0-dev.20260622.1': optionalDependencies: - '@typescript/native-preview-darwin-arm64': 7.0.0-dev.20260619.1 - '@typescript/native-preview-darwin-x64': 7.0.0-dev.20260619.1 - '@typescript/native-preview-linux-arm': 7.0.0-dev.20260619.1 - '@typescript/native-preview-linux-arm64': 7.0.0-dev.20260619.1 - '@typescript/native-preview-linux-x64': 7.0.0-dev.20260619.1 - '@typescript/native-preview-win32-arm64': 7.0.0-dev.20260619.1 - '@typescript/native-preview-win32-x64': 7.0.0-dev.20260619.1 + '@typescript/native-preview-darwin-arm64': 7.0.0-dev.20260622.1 + '@typescript/native-preview-darwin-x64': 7.0.0-dev.20260622.1 + '@typescript/native-preview-linux-arm': 7.0.0-dev.20260622.1 + '@typescript/native-preview-linux-arm64': 7.0.0-dev.20260622.1 + '@typescript/native-preview-linux-x64': 7.0.0-dev.20260622.1 + '@typescript/native-preview-win32-arm64': 7.0.0-dev.20260622.1 + '@typescript/native-preview-win32-x64': 7.0.0-dev.20260622.1 '@typia/core@12.1.1': dependencies: @@ -13049,13 +13049,13 @@ snapshots: dependencies: fill-range: 7.1.1 - browserslist@4.28.2: + browserslist@4.28.4: dependencies: baseline-browser-mapping: 2.10.38 caniuse-lite: 1.0.30001799 electron-to-chromium: 1.5.376 node-releases: 2.0.48 - update-browserslist-db: 1.2.3(browserslist@4.28.2) + update-browserslist-db: 1.2.3(browserslist@4.28.4) buffer-crc32@0.2.13: {} @@ -13137,7 +13137,7 @@ snapshots: character-reference-invalid@2.0.1: {} - chardet@2.1.1: {} + chardet@2.2.0: {} check-error@2.1.3: {} @@ -13252,7 +13252,7 @@ snapshots: core-js-compat@3.49.0: dependencies: - browserslist: 4.28.2 + browserslist: 4.28.4 core-util-is@1.0.3: {} @@ -13685,7 +13685,7 @@ snapshots: '@standard-schema/spec': 1.1.0 fast-check: 3.23.2 - effect@4.0.0-beta.84: + effect@4.0.0-beta.85: dependencies: '@standard-schema/spec': 1.1.0 fast-check: 4.8.0 @@ -13695,7 +13695,7 @@ snapshots: msgpackr: 2.0.4 multipasta: 0.2.7 toml: 4.1.1 - uuid: 14.0.0 + uuid: 14.0.1 yaml: 2.9.0 ejs@3.1.10: @@ -14075,7 +14075,7 @@ snapshots: expect-type@1.3.0: {} - exsolve@1.0.8: {} + exsolve@1.1.0: {} extend-shallow@2.0.1: dependencies: @@ -14971,7 +14971,7 @@ snapshots: kind-of@6.0.3: {} - knip@6.17.1: + knip@6.17.2: dependencies: fdir: 6.5.0(picomatch@4.0.4) formatly: 0.3.0 @@ -14980,7 +14980,7 @@ snapshots: oxc-parser: 0.135.0 oxc-resolver: 11.21.3 picomatch: 4.0.4 - smol-toml: 1.6.1 + smol-toml: 1.7.0 strip-json-comments: 5.0.3 tinyglobby: 0.2.17 unbash: 4.0.1 @@ -15125,7 +15125,7 @@ snapshots: node-forge: 1.4.0 pathe: 2.0.3 std-env: 4.1.0 - tinyclip: 0.1.14 + tinyclip: 0.1.15 ufo: 1.6.4 untun: 0.1.3 uqr: 0.1.3 @@ -15663,7 +15663,7 @@ snapshots: mute-stream@3.0.0: {} - nanoid@3.3.13: {} + nanoid@3.3.15: {} natural-compare@1.4.0: {} @@ -15935,29 +15935,29 @@ snapshots: '@oxc-resolver/binding-win32-arm64-msvc': 11.21.3 '@oxc-resolver/binding-win32-x64-msvc': 11.21.3 - oxfmt@0.55.0: + oxfmt@0.56.0: dependencies: tinypool: 2.1.0 optionalDependencies: - '@oxfmt/binding-android-arm-eabi': 0.55.0 - '@oxfmt/binding-android-arm64': 0.55.0 - '@oxfmt/binding-darwin-arm64': 0.55.0 - '@oxfmt/binding-darwin-x64': 0.55.0 - '@oxfmt/binding-freebsd-x64': 0.55.0 - '@oxfmt/binding-linux-arm-gnueabihf': 0.55.0 - '@oxfmt/binding-linux-arm-musleabihf': 0.55.0 - '@oxfmt/binding-linux-arm64-gnu': 0.55.0 - '@oxfmt/binding-linux-arm64-musl': 0.55.0 - '@oxfmt/binding-linux-ppc64-gnu': 0.55.0 - '@oxfmt/binding-linux-riscv64-gnu': 0.55.0 - '@oxfmt/binding-linux-riscv64-musl': 0.55.0 - '@oxfmt/binding-linux-s390x-gnu': 0.55.0 - '@oxfmt/binding-linux-x64-gnu': 0.55.0 - '@oxfmt/binding-linux-x64-musl': 0.55.0 - '@oxfmt/binding-openharmony-arm64': 0.55.0 - '@oxfmt/binding-win32-arm64-msvc': 0.55.0 - '@oxfmt/binding-win32-ia32-msvc': 0.55.0 - '@oxfmt/binding-win32-x64-msvc': 0.55.0 + '@oxfmt/binding-android-arm-eabi': 0.56.0 + '@oxfmt/binding-android-arm64': 0.56.0 + '@oxfmt/binding-darwin-arm64': 0.56.0 + '@oxfmt/binding-darwin-x64': 0.56.0 + '@oxfmt/binding-freebsd-x64': 0.56.0 + '@oxfmt/binding-linux-arm-gnueabihf': 0.56.0 + '@oxfmt/binding-linux-arm-musleabihf': 0.56.0 + '@oxfmt/binding-linux-arm64-gnu': 0.56.0 + '@oxfmt/binding-linux-arm64-musl': 0.56.0 + '@oxfmt/binding-linux-ppc64-gnu': 0.56.0 + '@oxfmt/binding-linux-riscv64-gnu': 0.56.0 + '@oxfmt/binding-linux-riscv64-musl': 0.56.0 + '@oxfmt/binding-linux-s390x-gnu': 0.56.0 + '@oxfmt/binding-linux-x64-gnu': 0.56.0 + '@oxfmt/binding-linux-x64-musl': 0.56.0 + '@oxfmt/binding-openharmony-arm64': 0.56.0 + '@oxfmt/binding-win32-arm64-msvc': 0.56.0 + '@oxfmt/binding-win32-ia32-msvc': 0.56.0 + '@oxfmt/binding-win32-x64-msvc': 0.56.0 oxlint-tsgolint@0.23.0: optionalDependencies: @@ -15968,27 +15968,27 @@ snapshots: '@oxlint-tsgolint/win32-arm64': 0.23.0 '@oxlint-tsgolint/win32-x64': 0.23.0 - oxlint@1.70.0(oxlint-tsgolint@0.23.0): + oxlint@1.71.0(oxlint-tsgolint@0.23.0): optionalDependencies: - '@oxlint/binding-android-arm-eabi': 1.70.0 - '@oxlint/binding-android-arm64': 1.70.0 - '@oxlint/binding-darwin-arm64': 1.70.0 - '@oxlint/binding-darwin-x64': 1.70.0 - '@oxlint/binding-freebsd-x64': 1.70.0 - '@oxlint/binding-linux-arm-gnueabihf': 1.70.0 - '@oxlint/binding-linux-arm-musleabihf': 1.70.0 - '@oxlint/binding-linux-arm64-gnu': 1.70.0 - '@oxlint/binding-linux-arm64-musl': 1.70.0 - '@oxlint/binding-linux-ppc64-gnu': 1.70.0 - '@oxlint/binding-linux-riscv64-gnu': 1.70.0 - '@oxlint/binding-linux-riscv64-musl': 1.70.0 - '@oxlint/binding-linux-s390x-gnu': 1.70.0 - '@oxlint/binding-linux-x64-gnu': 1.70.0 - '@oxlint/binding-linux-x64-musl': 1.70.0 - '@oxlint/binding-openharmony-arm64': 1.70.0 - '@oxlint/binding-win32-arm64-msvc': 1.70.0 - '@oxlint/binding-win32-ia32-msvc': 1.70.0 - '@oxlint/binding-win32-x64-msvc': 1.70.0 + '@oxlint/binding-android-arm-eabi': 1.71.0 + '@oxlint/binding-android-arm64': 1.71.0 + '@oxlint/binding-darwin-arm64': 1.71.0 + '@oxlint/binding-darwin-x64': 1.71.0 + '@oxlint/binding-freebsd-x64': 1.71.0 + '@oxlint/binding-linux-arm-gnueabihf': 1.71.0 + '@oxlint/binding-linux-arm-musleabihf': 1.71.0 + '@oxlint/binding-linux-arm64-gnu': 1.71.0 + '@oxlint/binding-linux-arm64-musl': 1.71.0 + '@oxlint/binding-linux-ppc64-gnu': 1.71.0 + '@oxlint/binding-linux-riscv64-gnu': 1.71.0 + '@oxlint/binding-linux-riscv64-musl': 1.71.0 + '@oxlint/binding-linux-s390x-gnu': 1.71.0 + '@oxlint/binding-linux-x64-gnu': 1.71.0 + '@oxlint/binding-linux-x64-musl': 1.71.0 + '@oxlint/binding-openharmony-arm64': 1.71.0 + '@oxlint/binding-win32-arm64-msvc': 1.71.0 + '@oxlint/binding-win32-ia32-msvc': 1.71.0 + '@oxlint/binding-win32-x64-msvc': 1.71.0 oxlint-tsgolint: 0.23.0 p-event@6.0.1: @@ -16134,7 +16134,7 @@ snapshots: pkg-types@2.3.1: dependencies: confbox: 0.2.4 - exsolve: 1.0.8 + exsolve: 1.1.0 pathe: 2.0.3 playwright-core@1.61.0: {} @@ -16192,7 +16192,7 @@ snapshots: postcss@8.5.15: dependencies: - nanoid: 3.3.13 + nanoid: 3.3.15 picocolors: 1.1.1 source-map-js: 1.2.1 @@ -16612,7 +16612,7 @@ snapshots: robust-predicates@3.0.3: {} - rolldown-plugin-dts@0.26.0(@typescript/native-preview@7.0.0-dev.20260619.1)(oxc-resolver@11.21.3)(rolldown@1.1.2)(typescript@6.0.3): + rolldown-plugin-dts@0.26.0(@typescript/native-preview@7.0.0-dev.20260622.1)(oxc-resolver@11.21.3)(rolldown@1.1.2)(typescript@6.0.3): dependencies: '@babel/generator': 8.0.0 '@babel/helper-validator-identifier': 8.0.2 @@ -16624,7 +16624,7 @@ snapshots: obug: 2.1.3 rolldown: 1.1.2 optionalDependencies: - '@typescript/native-preview': 7.0.0-dev.20260619.1 + '@typescript/native-preview': 7.0.0-dev.20260622.1 typescript: 6.0.3 transitivePeerDependencies: - oxc-resolver @@ -16881,7 +16881,7 @@ snapshots: smob@1.6.2: {} - smol-toml@1.6.1: {} + smol-toml@1.7.0: {} snake-case@3.0.4: dependencies: @@ -17117,7 +17117,7 @@ snapshots: react: 19.2.7 use-sync-external-store: 1.6.0(react@19.2.7) - tabbable@6.4.0: {} + tabbable@6.5.0: {} tagged-tag@1.0.0: {} @@ -17183,7 +17183,7 @@ snapshots: tinybench@6.0.2: {} - tinyclip@0.1.14: {} + tinyclip@0.1.15: {} tinyexec@1.2.4: {} @@ -17260,7 +17260,7 @@ snapshots: minimist: 1.2.8 strip-bom: 3.0.0 - tsdown@0.22.3(@typescript/native-preview@7.0.0-dev.20260619.1)(oxc-resolver@11.21.3)(typescript@6.0.3): + tsdown@0.22.3(@typescript/native-preview@7.0.0-dev.20260622.1)(oxc-resolver@11.21.3)(typescript@6.0.3): dependencies: ansis: 4.3.1 cac: 7.0.0 @@ -17271,7 +17271,7 @@ snapshots: obug: 2.1.3 picomatch: 4.0.4 rolldown: 1.1.2 - rolldown-plugin-dts: 0.26.0(@typescript/native-preview@7.0.0-dev.20260619.1)(oxc-resolver@11.21.3)(rolldown@1.1.2)(typescript@6.0.3) + rolldown-plugin-dts: 0.26.0(@typescript/native-preview@7.0.0-dev.20260622.1)(oxc-resolver@11.21.3)(rolldown@1.1.2)(typescript@6.0.3) semver: 7.8.5 tinyexec: 1.2.4 tinyglobby: 0.2.17 @@ -17303,7 +17303,7 @@ snapshots: dependencies: tagged-tag: 1.0.0 - typebox@1.2.17: {} + typebox@1.3.0: {} typed-array-buffer@1.0.3: dependencies: @@ -17518,9 +17518,9 @@ snapshots: upath@1.2.0: {} - update-browserslist-db@1.2.3(browserslist@4.28.2): + update-browserslist-db@1.2.3(browserslist@4.28.4): dependencies: - browserslist: 4.28.2 + browserslist: 4.28.4 escalade: 3.2.0 picocolors: 1.1.1 @@ -17540,7 +17540,7 @@ snapshots: util-deprecate@1.0.2: {} - uuid@14.0.0: {} + uuid@14.0.1: {} valibot@1.4.1(typescript@6.0.3): optionalDependencies: diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 058b1537..28c76256 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -17,7 +17,7 @@ catalog: "@types/node": 24.0.0 "@types/react": ^19.2.17 "@types/react-dom": ^19.2.3 - "@typescript/native-preview": 7.0.0-dev.20260619.1 + "@typescript/native-preview": 7.0.0-dev.20260622.1 "@typia/unplugin": ^12.1.1 "@vitest/browser-playwright": ^4.1.9 "@vitest/expect": ^4.1.9 diff --git a/schemas/package.json b/schemas/package.json index 51c9b2bf..31eef606 100644 --- a/schemas/package.json +++ b/schemas/package.json @@ -28,7 +28,7 @@ "decoders": "^2.9.3", "dedent": "catalog:", "effect": "^3.21.4", - "effect___beta": "npm:effect@^4.0.0-beta.84", + "effect___beta": "npm:effect@^4.0.0-beta.85", "fp-ts": "^2.16.11", "io-ts": "^2.2.22", "io-ts-types": "^0.5.19", @@ -36,7 +36,7 @@ "runtypes": "^7.0.4", "superstruct": "^2.0.2", "sury": "^11.0.0-alpha.8", - "typebox": "^1.2.17", + "typebox": "^1.3.0", "typia": "^12.1.1", "valibot": "catalog:", "yup": "^1.7.1", From ef9f0bba7a9c2acb597d699c3ddfeb114e3c54f8 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 23 Jun 2026 13:41:00 +0000 Subject: [PATCH 2/2] Update bench results --- bench/bench.json | 2 +- bench/download.json | 2 +- bench/stack.json | 2 +- .../@beta/download_compiled/minified.js | 6 +- .../@beta/download_compiled/unminified.js | 295 +-- .../download_compiled/compile/minified.js | 20 +- .../download_compiled/compile/unminified.js | 1598 +++++++---------- .../typebox/download_compiled/minified.js | 12 +- .../namespace + compile/minified.js | 8 +- .../namespace + compile/unminified.js | 1543 +++++++--------- .../download_compiled/namespace/minified.js | 6 +- .../download_compiled/namespace/unminified.js | 1324 ++++++-------- .../schema + compile/minified.js | 4 +- .../schema + compile/unminified.js | 436 +++-- .../download_compiled/schema/minified.js | 2 +- .../download_compiled/schema/unminified.js | 415 ++--- .../download_compiled/script/minified.js | 14 +- .../download_compiled/script/unminified.js | 1086 +++++------ .../typebox/download_compiled/unminified.js | 1448 ++++++--------- .../typia/download_compiled/unminified.js | 4 +- 20 files changed, 3508 insertions(+), 4719 deletions(-) diff --git a/bench/bench.json b/bench/bench.json index 6956f26e..885a050a 100644 --- a/bench/bench.json +++ b/bench/bench.json @@ -1 +1 @@ -{"initialization":[{"id":"65c6cc8b-e18c-4ef7-9d32-092602107679","libraryName":"typia","version":"12.1.1","note":"createIs","snippet":"typia.createIs()","mean":0.00006408798119638111,"optimizeType":"precompiled","type":"initialization"},{"id":"4ca90a13-0169-47e4-8b92-734ff3e18568","libraryName":"typia","version":"12.1.1","note":"createValidate","snippet":"typia.createValidate()","mean":0.00012654659217696133,"optimizeType":"precompiled","type":"initialization"},{"id":"bfff582a-76ed-4fd4-852d-2532de7f93b2","libraryName":"@railway-ts/pipelines","version":"0.1.29","snippet":"object(...)","mean":0.0011948042924479923,"optimizeType":"none","type":"initialization"},{"id":"ed806752-bffa-45cf-b51a-e7fb5bff1f00","libraryName":"io-ts","version":"2.2.22","snippet":"t.type(...)","mean":0.003044030662502629,"optimizeType":"none","type":"initialization"},{"id":"b7c73f26-fc82-4440-8bfd-fe8a220384b6","libraryName":"superstruct","version":"2.0.2","snippet":"object(...)","mean":0.004107530375099559,"optimizeType":"none","type":"initialization"},{"id":"9859d8a7-a3e1-4abe-810a-ffd045ff1a83","libraryName":"sury","version":"11.0.0-alpha.8","snippet":"S.schema(...)","mean":0.006033151944784448,"optimizeType":"jit","type":"initialization"},{"id":"ecd783e0-01fd-43c2-acf0-29b4e74cd574","libraryName":"decoders","version":"2.9.3","snippet":"object(...)","mean":0.006175754931002927,"optimizeType":"none","type":"initialization"},{"id":"62aee6fc-b4f3-46eb-98d3-fea953eceddf","libraryName":"typebox","version":"1.2.17","snippet":"Type.Object(...)","mean":0.010343166864913779,"optimizeType":"jit","type":"initialization"},{"id":"e9b868d0-4508-44e1-9eac-80c50a2ab760","libraryName":"ata-validator","version":"0.21.0","snippet":"new Validator({...})","mean":0.03202492744872394,"optimizeType":"jit","type":"initialization"},{"id":"bcb798e3-b163-464c-b35c-df57968ef1c6","libraryName":"@sapphire/shapeshift","version":"4.0.0","snippet":"s.object(...)","mean":0.036939155956543276,"optimizeType":"none","type":"initialization"},{"id":"a6e5b257-3ab7-4d2a-849d-1eed8e8f7fac","libraryName":"zod/v3","version":"4.4.3","snippet":"z.object(...)","mean":0.0468175258426945,"optimizeType":"none","type":"initialization"},{"id":"38ee37b8-347f-46dc-a4f6-bbf09666a38c","libraryName":"valibot","version":"1.4.1","snippet":"v.object(...)","mean":0.055670529532244245,"optimizeType":"none","type":"initialization"},{"id":"cebffb90-106e-48da-a3d4-554ee811757d","libraryName":"yup","version":"1.7.1","snippet":"object(...)","mean":0.10267735349075893,"optimizeType":"none","type":"initialization"},{"id":"b63bc11e-6d30-4ed1-8672-a5c2bd7e64f4","libraryName":"sury","version":"11.0.0-alpha.8","note":"parser","snippet":"S.parser(S.schema(...))","mean":0.15359359146060736,"optimizeType":"jit","type":"initialization"},{"id":"63478183-9316-4ed4-8497-68e1ae8723bb","libraryName":"effect@beta","version":"4.0.0-beta.84","note":"decodeUnknownOption","snippet":"Schema.decodeUnknownOption(\n Schema.struct(...)\n)","mean":0.15562874011827466,"optimizeType":"none","type":"initialization"},{"id":"32c83e0e-bdf4-4585-a5b3-00c61c6c9ea7","libraryName":"effect@beta","version":"4.0.0-beta.84","snippet":"Schema.struct(...)","mean":0.17112329055441386,"optimizeType":"none","type":"initialization"},{"id":"ca77d02b-c95e-415d-bb15-9c4c587e39af","libraryName":"joi","version":"18.2.3","snippet":"object(...)","mean":0.20758771564965103,"optimizeType":"none","type":"initialization"},{"id":"b174119d-1272-4b73-8e27-7a05abc7a692","libraryName":"zod/mini","version":"4.4.3","snippet":"z.object(...)","mean":0.2111490183699315,"optimizeType":"jit","type":"initialization"},{"id":"0917dbd5-eac7-4b6e-a80e-d75c85139b6d","libraryName":"arktype","version":"2.2.1","snippet":"type(...)","mean":0.3758785050732822,"optimizeType":"jit","type":"initialization"},{"id":"8d86abd1-e5f6-441f-8ff3-0b70813e1b36","libraryName":"effect","version":"3.21.4","snippet":"Schema.struct(...)","mean":0.40198038562874283,"optimizeType":"none","type":"initialization"},{"id":"3f68b732-f267-4fbb-87b9-d506b97013f2","libraryName":"effect","version":"3.21.4","note":"decodeUnknownEither","snippet":"Schema.decodeUnknownEither(\n Schema.struct(...)\n)","mean":0.4905294016674951,"optimizeType":"none","type":"initialization"},{"id":"1d2aabf0-597a-4b6e-bcb5-5e4f23cc425c","libraryName":"zod","version":"4.4.3","snippet":"z.object(...)","mean":0.5293756102320714,"optimizeType":"jit","type":"initialization"},{"id":"27715f8e-4879-4c82-9f6c-7003930d0bda","libraryName":"typebox","version":"1.2.17","note":"schema compile","snippet":"Schema.Compile(Type.Object(...))","mean":0.6404029193341914,"optimizeType":"jit","type":"initialization"},{"id":"c86e0200-3805-4abd-adb8-83e6868c7ad9","libraryName":"typebox","version":"1.2.17","note":"compile","snippet":"Compile(Type.Object(...))","mean":0.6703408748326387,"optimizeType":"jit","type":"initialization"},{"id":"568b1cee-167a-4ee2-9a93-4e7cc11c7a76","libraryName":"runtypes","version":"7.0.4","snippet":"Object({...})","mean":1.0255540102458887,"optimizeType":"none","type":"initialization"},{"id":"99f65a8d-fab1-4d49-a516-d32778403ad3","libraryName":"typebox","version":"1.2.17","note":"script","snippet":"Type.Script(...)","mean":2.1335550810234745,"optimizeType":"jit","type":"initialization"},{"id":"06563da3-51ce-4ae9-a71f-71d32943a4a4","libraryName":"typebox","version":"1.2.17","note":"script compile","snippet":"Schema.Compile(Type.Script(...))","mean":2.5717323547558126,"optimizeType":"jit","type":"initialization"},{"id":"ffc28d17-181d-4918-8c15-9e049105c689","libraryName":"ajv","version":"8.20.0","snippet":"ajv.compile({...})","mean":3.8034155665399285,"optimizeType":"jit","type":"initialization"}],"parsing":{"valid":[{"id":"9b2100be-ca3b-46d8-a9ef-4bfa51b8c8c1","libraryName":"ata-validator","version":"0.21.0","snippet":"schema.validate(data)","mean":0.00017680219001274742,"optimizeType":"jit","type":"parsing","errorType":"allErrors"},{"id":"521ed20c-02b7-4b7f-bc2b-6a753e889634","libraryName":"typia","version":"12.1.1","note":"createValidate","snippet":"// const validate = typia.createValidate();\nvalidate(data);","mean":0.0011236102603480519,"optimizeType":"precompiled","type":"parsing","errorType":"allErrors"},{"id":"c0c0093f-0213-43c1-8e35-4f3aa0d65ca8","libraryName":"typia","version":"12.1.1","note":"validate","snippet":"typia.validate(data)","mean":0.0012216199898356552,"optimizeType":"precompiled","type":"parsing","errorType":"allErrors"},{"id":"d29586f8-dd21-49dd-8dd9-a06291da02c2","libraryName":"sury","version":"11.0.0-alpha.8","snippet":"// const parser = S.parser(S.schema(...));\nparser(data);","throws":true,"mean":0.002052997626735214,"optimizeType":"jit","type":"parsing","errorType":"allErrors"},{"id":"e4cbf87e-9bba-411b-abea-aa2c0030ce97","libraryName":"sury","version":"11.0.0-alpha.8","note":"safe","snippet":"S.safe(() => parser(data))","mean":0.002208295907144836,"optimizeType":"jit","type":"parsing","errorType":"allErrors"},{"id":"db363fe4-dcac-44c5-918e-48aa0fa34c00","libraryName":"typebox","version":"1.2.17","note":"schema compile","snippet":"// const compiledSchema = Schema.Compile(schema);\ncompiledSchema.Parse(data);","throws":true,"mean":0.0030556469995082266,"optimizeType":"jit","type":"parsing","errorType":"allErrors"},{"id":"deb193d1-f4c9-4b94-b2b9-bfc5d9e3198b","libraryName":"typebox","version":"1.2.17","note":"script compile","snippet":"// const compiledScriptSchema = Schema.Compile(scriptSchema);\ncompiledScriptSchema.Parse(data);","throws":true,"mean":0.003074162029801619,"optimizeType":"jit","type":"parsing","errorType":"allErrors"},{"id":"c4566ccb-c854-4657-a128-1ce813deee3d","libraryName":"typebox","version":"1.2.17","note":"compile","snippet":"// const compiled = Compile(schema);\ncompiled.Parse(data);","throws":true,"mean":0.0031317985913170542,"optimizeType":"jit","type":"parsing","errorType":"allErrors"},{"id":"6395f819-3906-4371-89bf-52dbf1265ca6","libraryName":"io-ts","version":"2.2.22","snippet":"schema.decode(data)","mean":0.006069516205584971,"optimizeType":"none","type":"parsing","errorType":"allErrors"},{"id":"9b0468c0-115d-4d16-81ad-ad921c7f2366","libraryName":"arktype","version":"2.2.1","snippet":"schema(data)","mean":0.008204323299446798,"optimizeType":"jit","type":"parsing","errorType":"allErrors"},{"id":"93317a10-3280-4880-92f9-1f1b29bb9206","libraryName":"zod","version":"4.4.3","snippet":"schema.safeParse(data)","mean":0.009448479959935637,"optimizeType":"jit","type":"parsing","errorType":"allErrors"},{"id":"2ed3ed83-fd49-4fe5-af3c-3731eea70415","libraryName":"valibot","version":"1.4.1","snippet":"v.safeParse(schema, data, { abortEarly: true })","mean":0.012094942271408837,"optimizeType":"none","type":"parsing","errorType":"abortEarly"},{"id":"d3357120-e5da-41d7-84fd-0bca9b7d1e8b","libraryName":"valibot","version":"1.4.1","snippet":"v.safeParse(schema, data)","mean":0.012339020075517288,"optimizeType":"none","type":"parsing","errorType":"allErrors"},{"id":"b39c5cb8-5302-4d96-bff0-3e8896702e6e","libraryName":"valibot","version":"1.4.1","note":"abortPipeEarly only","snippet":"v.safeParse(schema, data, { abortPipeEarly: true })","mean":0.012416545655466151,"optimizeType":"none","type":"parsing","errorType":"abortEarly"},{"id":"1be93622-cf8c-4b85-8e23-e70c2933c769","libraryName":"zod/v3","version":"4.4.3","snippet":"schema.safeParse(data)","mean":0.014802160454719172,"optimizeType":"none","type":"parsing","errorType":"allErrors"},{"id":"be9a183f-29e9-4753-97d0-b3092877db9c","libraryName":"zod/mini","version":"4.4.3","note":"jitless","snippet":"schema.safeParse(data, { jitless: true })","mean":0.015045721627921796,"optimizeType":"none","type":"parsing","errorType":"allErrors"},{"id":"267060df-38ac-4c54-81d6-4d02b71133c0","libraryName":"zod/mini","version":"4.4.3","snippet":"schema.safeParse(data)","mean":0.015106532652531923,"optimizeType":"jit","type":"parsing","errorType":"allErrors"},{"id":"1d2ff6f7-4271-400d-bc39-736748bed20b","libraryName":"zod","version":"4.4.3","note":"jitless","snippet":"schema.safeParse(data, { jitless: true })","mean":0.015700434882954514,"optimizeType":"none","type":"parsing","errorType":"allErrors"},{"id":"8e15cc54-6bd2-49d6-9597-21a195acffd4","libraryName":"decoders","version":"2.9.3","snippet":"schema.decode(data)","mean":0.01591906037982082,"optimizeType":"none","type":"parsing","errorType":"allErrors"},{"id":"5753cbb4-9f06-4b22-9f9a-74a89f16f717","libraryName":"effect@beta","version":"4.0.0-beta.84","snippet":"// const decode = Schema.decodeUnknownOption(schema);\ndecode(data, { errors: \"all\" })","mean":0.016999246859433038,"optimizeType":"none","type":"parsing","errorType":"allErrors"},{"id":"53f87a3e-b7db-47b0-8abf-372c3d53e624","libraryName":"effect@beta","version":"4.0.0-beta.84","snippet":"// const decode = Schema.decodeUnknownOption(schema);\ndecode(data, { errors: \"first\" })","mean":0.01704155704571729,"optimizeType":"none","type":"parsing","errorType":"abortEarly"},{"id":"d5a7eb2d-1e0b-4edd-be50-8fd3790951eb","libraryName":"@railway-ts/pipelines","version":"0.1.29","snippet":"validate(data, schema, { abortEarly: true })","mean":0.017503375481338974,"optimizeType":"none","type":"parsing","errorType":"abortEarly"},{"id":"9992eea0-bddb-4625-8971-1313bbf2019c","libraryName":"@railway-ts/pipelines","version":"0.1.29","snippet":"validate(data, schema)","mean":0.017581379050259468,"optimizeType":"none","type":"parsing","errorType":"allErrors"},{"id":"270a9c04-72a6-4f36-9c2c-d9069034beac","libraryName":"effect","version":"3.21.4","snippet":"// const decodeFirst = Schema.decodeUnknownEither(\n// schema, \n// { errors: \"first\" }\n// );\ndecodeFirst(data)","mean":0.017862176457980182,"optimizeType":"none","type":"parsing","errorType":"abortEarly"},{"id":"be4f6518-9ad9-47b6-a8a2-c3cd009deb4b","libraryName":"effect","version":"3.21.4","snippet":"// const decodeAll = Schema.decodeUnknownEither(\n// schema, \n// { errors: \"all\" }\n// );\ndecodeAll(data)","mean":0.018697651702411947,"optimizeType":"none","type":"parsing","errorType":"allErrors"},{"id":"a628bcad-0c57-4d2c-8ebb-dcd833fdfac5","libraryName":"@sapphire/shapeshift","version":"4.0.0","snippet":"schema.parse(data)","throws":true,"mean":0.023125041092405155,"optimizeType":"none","type":"parsing","errorType":"allErrors"},{"id":"df2681c6-da43-4e90-b8ae-4d3660f1b9c0","libraryName":"@sapphire/shapeshift","version":"4.0.0","note":"run","snippet":"schema.run(data)","mean":0.023198856029322815,"optimizeType":"none","type":"parsing","errorType":"allErrors"},{"id":"05614c48-3f55-4fe8-b9fc-b693eab49119","libraryName":"joi","version":"18.2.3","snippet":"schema.validate(data, { abortEarly: false })","mean":0.03866841537450392,"optimizeType":"none","type":"parsing","errorType":"allErrors"},{"id":"88f8e8b1-37b7-4730-a19c-67d0beee65e6","libraryName":"joi","version":"18.2.3","snippet":"schema.validate(data, { abortEarly: true })","mean":0.039166421376248074,"optimizeType":"none","type":"parsing","errorType":"abortEarly"},{"id":"b61e23f8-88f2-4099-b9f6-dcddd095bf48","libraryName":"superstruct","version":"2.0.2","snippet":"const [error] = schema.validate(data);\nfor (const failure of error.failures()) {\n // ...\n}","mean":0.05078422064798508,"optimizeType":"none","type":"parsing","errorType":"allErrors"},{"id":"a8ab0aa1-9f26-4308-bf85-e174a9cf4280","libraryName":"superstruct","version":"2.0.2","snippet":"const [error] = validate(data, schema);\nfor (const failure of error.failures()) {\n // ...\n}","mean":0.05083556593127032,"optimizeType":"none","type":"parsing","errorType":"allErrors"},{"id":"6f214e98-4aff-49a8-945b-49f575882fe1","libraryName":"superstruct","version":"2.0.2","note":"schema.validate","snippet":"schema.validate(data)","mean":0.0510244649216774,"optimizeType":"none","type":"parsing","errorType":"abortEarly"},{"id":"800f98e0-ef78-4b23-8b9c-041e6f721f04","libraryName":"superstruct","version":"2.0.2","snippet":"validate(data, schema)","mean":0.05149690256964543,"optimizeType":"none","type":"parsing","errorType":"abortEarly"},{"id":"19e791b5-0318-4a8f-9dd5-73efb83a95c7","libraryName":"runtypes","version":"7.0.4","snippet":"schema.parse(data)","throws":true,"mean":0.0690983087818704,"optimizeType":"none","type":"parsing","errorType":"abortEarly"},{"id":"0fbbe347-f9cf-42d0-9613-8aa9bdbb7c48","libraryName":"runtypes","version":"7.0.4","snippet":"schema.inspect(data)","mean":0.07037187763000871,"optimizeType":"none","type":"parsing","errorType":"abortEarly"},{"id":"175503f0-1bdc-4c9f-8100-9e063f770724","libraryName":"typebox","version":"1.2.17","snippet":"Value.Parse(schema, data)","throws":true,"mean":0.08492013918134923,"optimizeType":"jit","type":"parsing","errorType":"allErrors"},{"id":"126e4a7c-f1b6-4666-bc3b-e9b7298c9ea1","libraryName":"typebox","version":"1.2.17","note":"schema","snippet":"Schema.Parse(schema, data)","throws":true,"mean":0.08493020492568244,"optimizeType":"jit","type":"parsing","errorType":"allErrors"},{"id":"8b2489d8-f030-4d19-a5f3-7ea3a57980c7","libraryName":"yup","version":"1.7.1","snippet":"schema.validateSync(data, { abortEarly: true })","throws":true,"mean":0.13289119720929887,"optimizeType":"none","type":"parsing","errorType":"abortEarly"},{"id":"1d74be36-3a9e-46e2-b090-9be75ef116aa","libraryName":"yup","version":"1.7.1","snippet":"schema.validateSync(data, { abortEarly: false })","throws":true,"mean":0.13302508379887668,"optimizeType":"none","type":"parsing","errorType":"allErrors"}],"invalid":[{"id":"16364d15-c88f-465b-9eef-adf3ea727e99","libraryName":"@railway-ts/pipelines","version":"0.1.29","snippet":"validate(data, schema, { abortEarly: true })","mean":0.0006296473069058467,"optimizeType":"none","type":"parsing","errorType":"abortEarly"},{"id":"6810db56-09a3-4aa6-a796-9f900e534410","libraryName":"valibot","version":"1.4.1","snippet":"v.safeParse(schema, data, { abortEarly: true })","mean":0.0007323151296961925,"optimizeType":"none","type":"parsing","errorType":"abortEarly"},{"id":"c5acb02d-9f08-4c08-b311-8fa3325c689c","libraryName":"effect@beta","version":"4.0.0-beta.84","snippet":"// const decode = Schema.decodeUnknownOption(schema);\ndecode(data, { errors: \"first\" })","mean":0.0012930634815971178,"optimizeType":"none","type":"parsing","errorType":"abortEarly"},{"id":"dc95bdc4-5574-4993-9e0c-9fde63fd857b","libraryName":"joi","version":"18.2.3","snippet":"schema.validate(data, { abortEarly: true })","mean":0.004050932094288653,"optimizeType":"none","type":"parsing","errorType":"abortEarly"},{"id":"d16de0e2-27e9-4d72-acc7-e79651f35808","libraryName":"typia","version":"12.1.1","note":"createValidate","snippet":"// const validate = typia.createValidate();\nvalidate(data);","mean":0.005425536953245375,"optimizeType":"precompiled","type":"parsing","errorType":"allErrors"},{"id":"94b2dbda-066f-4f43-acf4-0b70598afabe","libraryName":"typia","version":"12.1.1","note":"validate","snippet":"typia.validate(data)","mean":0.005922916960843449,"optimizeType":"precompiled","type":"parsing","errorType":"allErrors"},{"id":"3995f618-92de-46fe-a11e-dec35a458ccc","libraryName":"io-ts","version":"2.2.22","snippet":"schema.decode(data)","mean":0.006042455974766813,"optimizeType":"none","type":"parsing","errorType":"allErrors"},{"id":"277c903c-93ca-4ed0-b579-a0c9566fd031","libraryName":"sury","version":"11.0.0-alpha.8","snippet":"// const parser = S.parser(S.schema(...));\nparser(data);","throws":true,"mean":0.00811232089721797,"optimizeType":"jit","type":"parsing","errorType":"allErrors"},{"id":"2febd427-41e0-4471-97b8-8c7f93bb0418","libraryName":"sury","version":"11.0.0-alpha.8","note":"safe","snippet":"S.safe(() => parser(data))","mean":0.008670965134224818,"optimizeType":"jit","type":"parsing","errorType":"allErrors"},{"id":"a055deef-ea39-444e-962e-bbe36b5a31d5","libraryName":"effect","version":"3.21.4","snippet":"// const decodeFirst = Schema.decodeUnknownEither(\n// schema, \n// { errors: \"first\" }\n// );\ndecodeFirst(data)","mean":0.010390218536029786,"optimizeType":"none","type":"parsing","errorType":"abortEarly"},{"id":"36dcd0c6-344e-46d3-a34c-789b8f59aa74","libraryName":"superstruct","version":"2.0.2","snippet":"validate(data, schema)","mean":0.01063206170791911,"optimizeType":"none","type":"parsing","errorType":"abortEarly"},{"id":"3f8125bb-d488-49e4-9a1e-efe01f883225","libraryName":"superstruct","version":"2.0.2","note":"schema.validate","snippet":"schema.validate(data)","mean":0.010883054545852441,"optimizeType":"none","type":"parsing","errorType":"abortEarly"},{"id":"16b44004-0ff3-44e8-9acc-a68a02ecdebb","libraryName":"effect@beta","version":"4.0.0-beta.84","snippet":"// const decode = Schema.decodeUnknownOption(schema);\ndecode(data, { errors: \"all\" })","mean":0.021126657603418978,"optimizeType":"none","type":"parsing","errorType":"allErrors"},{"id":"80c3c7aa-31b4-4a7b-b797-31433b5a92f2","libraryName":"valibot","version":"1.4.1","note":"abortPipeEarly only","snippet":"v.safeParse(schema, data, { abortPipeEarly: true })","mean":0.029288495518981033,"optimizeType":"none","type":"parsing","errorType":"abortEarly"},{"id":"295c5add-8be0-4808-acf8-209b80804563","libraryName":"valibot","version":"1.4.1","snippet":"v.safeParse(schema, data)","mean":0.029393327111867,"optimizeType":"none","type":"parsing","errorType":"allErrors"},{"id":"48204530-bf0e-4f0f-be4f-eff70c490622","libraryName":"effect","version":"3.21.4","snippet":"// const decodeAll = Schema.decodeUnknownEither(\n// schema, \n// { errors: \"all\" }\n// );\ndecodeAll(data)","mean":0.030359111111105577,"optimizeType":"none","type":"parsing","errorType":"allErrors"},{"id":"fd1110fa-7b18-46a0-a3e0-83d74a38146b","libraryName":"ata-validator","version":"0.21.0","snippet":"schema.validate(data)","mean":0.030817442711867028,"optimizeType":"jit","type":"parsing","errorType":"allErrors"},{"id":"e6972f16-2c8d-4293-bee5-8021a3268dc3","libraryName":"@railway-ts/pipelines","version":"0.1.29","snippet":"validate(data, schema)","mean":0.03084121141094667,"optimizeType":"none","type":"parsing","errorType":"allErrors"},{"id":"4fd77d02-5ff7-4064-a8c7-e7155d9a7ef6","libraryName":"zod/v3","version":"4.4.3","snippet":"schema.safeParse(data)","mean":0.039531044090388975,"optimizeType":"none","type":"parsing","errorType":"allErrors"},{"id":"6451cdde-c981-43b5-9d16-49952a407373","libraryName":"joi","version":"18.2.3","snippet":"schema.validate(data, { abortEarly: false })","mean":0.05588732753995224,"optimizeType":"none","type":"parsing","errorType":"allErrors"},{"id":"3a6c517f-5427-4836-9bbb-0d5ea0b83b89","libraryName":"zod/mini","version":"4.4.3","note":"jitless","snippet":"schema.safeParse(data, { jitless: true })","mean":0.05888462533120584,"optimizeType":"none","type":"parsing","errorType":"allErrors"},{"id":"59f216a3-e94f-4cda-a00b-7ebc209f8857","libraryName":"zod/mini","version":"4.4.3","snippet":"schema.safeParse(data)","mean":0.05909692199503124,"optimizeType":"jit","type":"parsing","errorType":"allErrors"},{"id":"9d564a2d-8b62-4f69-a714-51182ad85fc9","libraryName":"decoders","version":"2.9.3","snippet":"schema.decode(data)","mean":0.06171480591212367,"optimizeType":"none","type":"parsing","errorType":"allErrors"},{"id":"ad54510f-4d7a-45dc-b515-76d3ea04ff85","libraryName":"zod","version":"4.4.3","snippet":"schema.safeParse(data)","mean":0.06374408012494232,"optimizeType":"jit","type":"parsing","errorType":"allErrors"},{"id":"dd4905e5-eaaf-4b29-b4d6-c8560c3dd7c6","libraryName":"zod","version":"4.4.3","note":"jitless","snippet":"schema.safeParse(data, { jitless: true })","mean":0.07058893414272206,"optimizeType":"none","type":"parsing","errorType":"allErrors"},{"id":"f28e15a8-346b-415b-bc8f-17b81adebe8e","libraryName":"superstruct","version":"2.0.2","snippet":"const [error] = schema.validate(data);\nfor (const failure of error.failures()) {\n // ...\n}","mean":0.0742121979220747,"optimizeType":"none","type":"parsing","errorType":"allErrors"},{"id":"7805ccc5-327e-49d3-b5cd-110b2ccf0d7d","libraryName":"superstruct","version":"2.0.2","snippet":"const [error] = validate(data, schema);\nfor (const failure of error.failures()) {\n // ...\n}","mean":0.07561759183365578,"optimizeType":"none","type":"parsing","errorType":"allErrors"},{"id":"b689c643-b9e4-442b-b274-3259df16a118","libraryName":"typebox","version":"1.2.17","note":"schema compile","snippet":"// const compiledSchema = Schema.Compile(schema);\ncompiledSchema.Parse(data);","throws":true,"mean":0.08363075313602074,"optimizeType":"jit","type":"parsing","errorType":"allErrors"},{"id":"a1ce6b44-2cae-46e7-80b2-9649e3e8d990","libraryName":"yup","version":"1.7.1","snippet":"schema.validateSync(data, { abortEarly: true })","throws":true,"mean":0.08826992126400861,"optimizeType":"none","type":"parsing","errorType":"abortEarly"},{"id":"e753bd2f-8563-4fd3-a244-bf9874451991","libraryName":"typebox","version":"1.2.17","note":"schema","snippet":"Schema.Parse(schema, data)","throws":true,"mean":0.08847338936566308,"optimizeType":"jit","type":"parsing","errorType":"allErrors"},{"id":"084ba692-f0ba-49aa-a631-cdfd987b6e64","libraryName":"arktype","version":"2.2.1","snippet":"schema(data)","mean":0.09057244878182302,"optimizeType":"jit","type":"parsing","errorType":"allErrors"},{"id":"0ba6d91c-0cf4-464d-870a-3f0e2eb4fc04","libraryName":"typebox","version":"1.2.17","note":"compile","snippet":"// const compiled = Compile(schema);\ncompiled.Parse(data);","throws":true,"mean":0.09370865995123291,"optimizeType":"jit","type":"parsing","errorType":"allErrors"},{"id":"b1348a04-e4f8-4975-a31c-427f2beee830","libraryName":"typebox","version":"1.2.17","note":"script compile","snippet":"// const compiledScriptSchema = Schema.Compile(scriptSchema);\ncompiledScriptSchema.Parse(data);","throws":true,"mean":0.09479121004741997,"optimizeType":"jit","type":"parsing","errorType":"allErrors"},{"id":"f78004d4-6048-4733-9125-8791bf80a9e0","libraryName":"typebox","version":"1.2.17","snippet":"Value.Parse(schema, data)","throws":true,"mean":0.10004586784708713,"optimizeType":"jit","type":"parsing","errorType":"allErrors"},{"id":"f664e405-d2e9-4963-b9ea-732b9caa38ac","libraryName":"runtypes","version":"7.0.4","snippet":"schema.inspect(data)","mean":0.163951208360663,"optimizeType":"none","type":"parsing","errorType":"abortEarly"},{"id":"669b6982-e4a8-4a45-adc9-35fcaafe0304","libraryName":"runtypes","version":"7.0.4","snippet":"schema.parse(data)","throws":true,"mean":0.1737716429192053,"optimizeType":"none","type":"parsing","errorType":"abortEarly"},{"id":"bbfb1350-b926-4e73-b285-4b9bb25da029","libraryName":"@sapphire/shapeshift","version":"4.0.0","snippet":"schema.parse(data)","throws":true,"mean":0.30694143984037325,"optimizeType":"none","type":"parsing","errorType":"allErrors"},{"id":"9fda9310-8c49-42f3-a341-0b727ac4452b","libraryName":"@sapphire/shapeshift","version":"4.0.0","note":"run","snippet":"schema.run(data)","mean":0.3125802971874935,"optimizeType":"none","type":"parsing","errorType":"allErrors"},{"id":"55b40b38-e1cc-413e-8be2-c23c1369b555","libraryName":"yup","version":"1.7.1","snippet":"schema.validateSync(data, { abortEarly: false })","throws":true,"mean":0.5581739732142619,"optimizeType":"none","type":"parsing","errorType":"allErrors"}]},"validation":{"valid":[{"id":"f0a1dab8-3e92-486b-96d9-9518c5f4e820","libraryName":"ata-validator","version":"0.21.0","snippet":"schema.isValidObject(data)","mean":0.00014533178429046927,"optimizeType":"jit","type":"validation"},{"id":"15b2538c-1d61-49b4-b2d4-9fd44fcd1dae","libraryName":"typia","version":"12.1.1","note":"createIs","snippet":"// const is = typia.createIs();\nis(data);","mean":0.0011010696910819205,"optimizeType":"precompiled","type":"validation"},{"id":"9b370d05-20c0-447e-bd63-0ae033b56bf9","libraryName":"typia","version":"12.1.1","note":"is","snippet":"typia.is(data)","mean":0.0011491665808615863,"optimizeType":"precompiled","type":"validation"},{"id":"2f660a03-64ca-479a-baf1-0836200e240a","libraryName":"sury","version":"11.0.0-alpha.8","snippet":"S.is(S.schema(...), data)","mean":0.0025826304264170105,"optimizeType":"jit","type":"validation"},{"id":"edaa9b3b-1647-4aca-8cb6-ea2620c039ea","libraryName":"io-ts","version":"2.2.22","snippet":"schema.is(data)","mean":0.0029803205418209356,"optimizeType":"none","type":"validation"},{"id":"fd3d6b2f-def6-4b78-aef5-e9e9921fd301","libraryName":"typebox","version":"1.2.17","note":"compile","snippet":"// const compiled = Compile(schema);\ncompiled.Check(data);","mean":0.003112410454564374,"optimizeType":"jit","type":"validation"},{"id":"05b20b6f-8725-4bfe-8293-836d8c9c38ba","libraryName":"typebox","version":"1.2.17","note":"script compile","snippet":"// const compiledScriptSchema = Schema.Compile(scriptSchema);\ncompiledScriptSchema.Check(data);","mean":0.0031184493923735825,"optimizeType":"jit","type":"validation"},{"id":"62c01d36-8898-4f38-8587-add36ef086ff","libraryName":"ajv","version":"8.20.0","note":"compile","snippet":"// const validate = ajv.compile(schema);\nvalidate(data);","mean":0.0032015528175214267,"optimizeType":"jit","type":"validation"},{"id":"fcf0a99a-4100-44e1-aa1e-774fb22be4fb","libraryName":"typebox","version":"1.2.17","note":"schema compile","snippet":"// const compiledSchema = Schema.Compile(schema);\ncompiledSchema.Check(data);","mean":0.0032081136473006626,"optimizeType":"jit","type":"validation"},{"id":"fb2b4919-1d19-49ca-905a-2ba570abe365","libraryName":"ajv","version":"8.20.0","note":"validate","snippet":"ajv.validate(schema, data)","mean":0.003240226779772071,"optimizeType":"jit","type":"validation"},{"id":"9eff77bd-8160-4b44-a22b-2abbf8919ab0","libraryName":"arktype","version":"2.2.1","snippet":"schema.allows(data)","mean":0.008346084186716677,"optimizeType":"jit","type":"validation"},{"id":"042e1bfc-94a1-498d-94ea-a8f85a811e02","libraryName":"valibot","version":"1.4.1","snippet":"v.is(schema, data)","mean":0.01199801983250733,"optimizeType":"none","type":"validation"},{"id":"ac6fb7b4-0464-476f-9f9a-3d9da9bf0256","libraryName":"effect@beta","version":"4.0.0-beta.84","snippet":"// const is = Schema.is(schema);\nis(data);","mean":0.017475940584546556,"optimizeType":"none","type":"validation"},{"id":"471ec6d0-555b-41af-89cd-ff7220deff33","libraryName":"@railway-ts/pipelines","version":"0.1.29","snippet":"is(data, schema)","mean":0.018109963092409007,"optimizeType":"none","type":"validation"},{"id":"2c40b095-c41b-4277-a4de-de38821305ed","libraryName":"effect","version":"3.21.4","snippet":"// const is = Schema.is(schema);\nis(data);","mean":0.020914734952107362,"optimizeType":"none","type":"validation"},{"id":"2949adfc-fa10-46b7-a36c-b5aa04d7dd90","libraryName":"@sapphire/shapeshift","version":"4.0.0","snippet":"schema.is(data)","mean":0.023007915378244086,"optimizeType":"none","type":"validation"},{"id":"b7e45e98-b9f4-4be4-ae67-d9c3329066cb","libraryName":"superstruct","version":"2.0.2","note":"schema.is","snippet":"schema.is(data)","mean":0.05159064599669938,"optimizeType":"none","type":"validation"},{"id":"e4ef1986-be90-4bcd-ad56-8d623bdff0ea","libraryName":"superstruct","version":"2.0.2","snippet":"is(data, schema)","mean":0.054500756171998246,"optimizeType":"none","type":"validation"},{"id":"9c4ddb3e-e883-48c9-816f-1ff2b532aa3f","libraryName":"runtypes","version":"7.0.4","snippet":"schema.guard(data)","mean":0.06890562316543841,"optimizeType":"none","type":"validation"},{"id":"33b3d227-358f-46b4-95d0-e3c1e2ca3a9f","libraryName":"typebox","version":"1.2.17","note":"schema","snippet":"Schema.Check(schema, data)","mean":0.08342912538585188,"optimizeType":"jit","type":"validation"},{"id":"c5f24d18-55b2-4ba5-9b49-24b5c50c1034","libraryName":"typebox","version":"1.2.17","snippet":"Value.Check(schema, data)","mean":0.08456239100287036,"optimizeType":"jit","type":"validation"},{"id":"b6ef198d-f46a-4a5e-ad13-259ee08bda39","libraryName":"yup","version":"1.7.1","snippet":"schema.isValidSync(data)","mean":0.13532456433499934,"optimizeType":"none","type":"validation"}],"invalid":[{"id":"f952560e-b85e-4c61-8e4d-4b7b635e6ee5","libraryName":"typia","version":"12.1.1","note":"createIs","snippet":"// const is = typia.createIs();\nis(data);","mean":0.00005215971115242929,"optimizeType":"precompiled","type":"validation"},{"id":"59da40d2-4bfa-4ec5-81ff-117802feca44","libraryName":"ata-validator","version":"0.21.0","snippet":"schema.isValidObject(data)","mean":0.000053432646973007224,"optimizeType":"jit","type":"validation"},{"id":"4c0c85eb-68a0-4b96-893f-c7a8256ae90e","libraryName":"typebox","version":"1.2.17","note":"compile","snippet":"// const compiled = Compile(schema);\ncompiled.Check(data);","mean":0.00006295593154136137,"optimizeType":"jit","type":"validation"},{"id":"5843e39e-d96f-4958-8393-d36b6f2b1ac3","libraryName":"typebox","version":"1.2.17","note":"schema compile","snippet":"// const compiledSchema = Schema.Compile(schema);\ncompiledSchema.Check(data);","mean":0.0000637361892287554,"optimizeType":"jit","type":"validation"},{"id":"d471de47-9902-474b-924e-5c45fbc71a72","libraryName":"typia","version":"12.1.1","note":"is","snippet":"typia.is(data)","mean":0.0000682860601260503,"optimizeType":"precompiled","type":"validation"},{"id":"a34eea10-b3be-462f-b798-85b42d0d968f","libraryName":"typebox","version":"1.2.17","note":"script compile","snippet":"// const compiledScriptSchema = Schema.Compile(scriptSchema);\ncompiledScriptSchema.Check(data);","mean":0.00007569314084746184,"optimizeType":"jit","type":"validation"},{"id":"cdcc4bce-00b4-467d-9b97-eedd1a5b45ba","libraryName":"ajv","version":"8.20.0","note":"compile","snippet":"// const validate = ajv.compile(schema);\nvalidate(data);","mean":0.00009560389710150506,"optimizeType":"jit","type":"validation"},{"id":"c32b457c-6e32-4c80-bb8d-ea771e73cf8a","libraryName":"ajv","version":"8.20.0","note":"validate","snippet":"ajv.validate(schema, data)","mean":0.00012321532086365732,"optimizeType":"jit","type":"validation"},{"id":"c066f51d-88bc-4433-bbed-9d907b1b916e","libraryName":"io-ts","version":"2.2.22","snippet":"schema.is(data)","mean":0.00012723131541510484,"optimizeType":"none","type":"validation"},{"id":"573b7c1c-2e22-4ac2-b113-0f317f37efef","libraryName":"@railway-ts/pipelines","version":"0.1.29","snippet":"is(data, schema)","mean":0.000640574822976837,"optimizeType":"none","type":"validation"},{"id":"27abfd15-3529-47b7-92b6-5572b1b60e61","libraryName":"effect","version":"3.21.4","snippet":"// const is = Schema.is(schema);\nis(data);","mean":0.0006544706937970032,"optimizeType":"none","type":"validation"},{"id":"6f33910d-0fd1-447b-bb54-0d72ccfdd285","libraryName":"valibot","version":"1.4.1","snippet":"v.is(schema, data)","mean":0.0007190274150683274,"optimizeType":"none","type":"validation"},{"id":"51398be2-5eaa-4a5c-9298-c7b439354926","libraryName":"arktype","version":"2.2.1","snippet":"schema.allows(data)","mean":0.000901896087216713,"optimizeType":"jit","type":"validation"},{"id":"04d55989-625b-4741-addc-6ec36f029be8","libraryName":"effect@beta","version":"4.0.0-beta.84","snippet":"// const is = Schema.is(schema);\nis(data);","mean":0.0014267823629783563,"optimizeType":"none","type":"validation"},{"id":"0c19ee3c-58f1-4890-8123-5773836391fb","libraryName":"typebox","version":"1.2.17","snippet":"Value.Check(schema, data)","mean":0.004580274967018944,"optimizeType":"jit","type":"validation"},{"id":"f45a80a7-50c3-4170-9fe7-5540937348e5","libraryName":"typebox","version":"1.2.17","note":"schema","snippet":"Schema.Check(schema, data)","mean":0.0050083240579338354,"optimizeType":"jit","type":"validation"},{"id":"673ce530-437a-4493-9695-1839f07e9843","libraryName":"sury","version":"11.0.0-alpha.8","snippet":"S.is(S.schema(...), data)","mean":0.008886905159697017,"optimizeType":"jit","type":"validation"},{"id":"fca00531-a268-4320-ab2d-1fdc128196f4","libraryName":"superstruct","version":"2.0.2","snippet":"is(data, schema)","mean":0.011584285505770531,"optimizeType":"none","type":"validation"},{"id":"901c758b-6e73-4812-99d2-4ea4535c94b8","libraryName":"superstruct","version":"2.0.2","note":"schema.is","snippet":"schema.is(data)","mean":0.011839756541402947,"optimizeType":"none","type":"validation"},{"id":"442c91b9-5c4d-473e-b92c-4b1bf264d1a3","libraryName":"yup","version":"1.7.1","snippet":"schema.isValidSync(data)","mean":0.08887072940548682,"optimizeType":"none","type":"validation"},{"id":"879626f6-6620-4eb5-9d28-2070dc491698","libraryName":"runtypes","version":"7.0.4","snippet":"schema.guard(data)","mean":0.16586093217247885,"optimizeType":"none","type":"validation"},{"id":"227407ed-e8c6-4cc8-9a8a-f1d281c3ae29","libraryName":"@sapphire/shapeshift","version":"4.0.0","snippet":"schema.is(data)","mean":0.3005272827523836,"optimizeType":"none","type":"validation"}]},"standard":{"valid":[{"id":"eacae139-9227-4b6a-b2f5-5c3c8a99fbe5","libraryName":"ata-validator","version":"0.21.0","snippet":"upfetch(url, { schema })","mean":0.00017622923843552073,"optimizeType":"jit","errorType":"allErrors","type":"standard"},{"id":"e2037782-a89a-4513-a779-6cd91b28722b","libraryName":"typia","version":"12.1.1","snippet":"// const validate = typia.createValidate();\nupfetch(url, { schema: validate })","mean":0.0011042376239919147,"optimizeType":"precompiled","errorType":"allErrors","type":"standard"},{"id":"5d637879-8441-4008-86c8-edd5dd6e9eea","libraryName":"sury","version":"11.0.0-alpha.8","snippet":"upfetch(url, { schema })","mean":0.002457216043149311,"optimizeType":"jit","errorType":"allErrors","type":"standard"},{"id":"82f4464e-1975-4d4e-a95f-1667007585fc","libraryName":"arktype","version":"2.2.1","snippet":"upfetch(url, { schema })","mean":0.00826625014465753,"optimizeType":"jit","errorType":"allErrors","type":"standard"},{"id":"9205c3c2-513e-4b64-8b8d-28c762851811","libraryName":"zod","version":"4.4.3","snippet":"upfetch(url, { schema })","mean":0.00952029575681705,"optimizeType":"jit","errorType":"allErrors","type":"standard"},{"id":"ecfd37f3-7335-4c3a-bb0b-2097d0ca827e","libraryName":"valibot","version":"1.4.1","snippet":"upfetch(url, { schema })","mean":0.012125850549903578,"optimizeType":"none","errorType":"allErrors","type":"standard"},{"id":"1a91bea2-754b-4915-8047-54680741d5e2","libraryName":"zod/v3","version":"4.4.3","snippet":"upfetch(url, { schema })","mean":0.014805902725752001,"optimizeType":"none","errorType":"allErrors","type":"standard"},{"id":"5b212413-59dd-4bef-a829-9ca89e502c6a","libraryName":"zod/mini","version":"4.4.3","snippet":"upfetch(url, { schema })","mean":0.015041000360984793,"optimizeType":"jit","errorType":"allErrors","type":"standard"},{"id":"7d5e3f1e-0dca-4f07-9a12-ff8a7dd918e5","libraryName":"decoders","version":"2.9.3","snippet":"upfetch(url, { schema })","mean":0.01653889124106872,"optimizeType":"none","errorType":"allErrors","type":"standard"},{"id":"7bcace6a-147b-45b8-8dd3-55030513408f","libraryName":"@railway-ts/pipelines","version":"0.1.29","snippet":"upfetch(url, { schema })","mean":0.01744538795946064,"optimizeType":"none","errorType":"allErrors","type":"standard"},{"id":"125c24e5-d849-4d1d-b091-68378ea84e7e","libraryName":"effect@beta","version":"4.0.0-beta.84","snippet":"// const standardSchema = Schema.toStandardSchemaV1(\n// schema, \n// { parseOptions: { errors: \"first\" } }\n// );\nupfetch(url, { schema: standardSchema });","mean":0.017938954632704573,"optimizeType":"none","errorType":"abortEarly","type":"standard"},{"id":"d7cf5e63-2380-474a-8b0e-4cd1a5d7992a","libraryName":"effect@beta","version":"4.0.0-beta.84","snippet":"// const standardSchema = Schema.toStandardSchemaV1(\n// schema, \n// { parseOptions: { errors: \"all\" } }\n// );\nupfetch(url, { schema: standardSchema });","mean":0.018034892730258,"optimizeType":"none","errorType":"allErrors","type":"standard"},{"id":"109a095c-9f3b-4850-ab9d-16f6d00ad0b6","libraryName":"effect","version":"3.21.4","snippet":"// const standardSchema = Schema.standardSchemaV1(\n// schema, \n// { errors: \"first\" }\n// );\nupfetch(url, { schema: standardSchema });","mean":0.018533078746432573,"optimizeType":"none","errorType":"abortEarly","type":"standard"},{"id":"bb1d4437-63d0-491e-9082-b4a8e592007f","libraryName":"effect","version":"3.21.4","snippet":"// const standardSchema = Schema.standardSchemaV1(\n// schema, \n// { errors: \"all\" }\n// );\nupfetch(url, { schema: standardSchema });","mean":0.018719113754632644,"optimizeType":"none","errorType":"allErrors","type":"standard"},{"id":"15e0f556-72bd-4275-8386-e80542f68fba","libraryName":"joi","version":"18.2.3","snippet":"upfetch(url, { schema })","mean":0.038806647056543415,"optimizeType":"none","errorType":"allErrors","type":"standard"},{"id":"1fa02d6c-c0d9-4e34-aa79-9ae83a826a02","libraryName":"yup","version":"1.7.1","snippet":"upfetch(url, { schema })","mean":0.1339113521692534,"optimizeType":"none","errorType":"allErrors","type":"standard"}],"invalid":[{"id":"d2e3efa5-934e-4885-b78b-1ae369763003","libraryName":"joi","version":"18.2.3","snippet":"upfetch(url, { schema })","mean":0.004632949371311268,"optimizeType":"none","errorType":"allErrors","type":"standard"},{"id":"a1342ada-7336-4d81-99d3-f0e8f3eeab1c","libraryName":"effect","version":"3.21.4","snippet":"// const standardSchema = Schema.standardSchemaV1(\n// schema, \n// { errors: \"first\" }\n// );\nupfetch(url, { schema: standardSchema });","mean":0.004978357002043556,"optimizeType":"none","errorType":"abortEarly","type":"standard"},{"id":"7198c200-bc0d-4d93-a5c9-0f0384a2fa95","libraryName":"sury","version":"11.0.0-alpha.8","snippet":"upfetch(url, { schema })","mean":0.008511003046936857,"optimizeType":"jit","errorType":"allErrors","type":"standard"},{"id":"e4930d31-8160-4f9d-85dc-ecd1e5e92998","libraryName":"typia","version":"12.1.1","snippet":"// const validate = typia.createValidate();\nupfetch(url, { schema: validate })","mean":0.010056923688080302,"optimizeType":"precompiled","errorType":"allErrors","type":"standard"},{"id":"d5b93f33-1239-4c7f-84b5-44a311fe56c4","libraryName":"valibot","version":"1.4.1","snippet":"upfetch(url, { schema })","mean":0.028969652423298794,"optimizeType":"none","errorType":"allErrors","type":"standard"},{"id":"dd08e0e4-42af-4dee-8d58-256c91157d6c","libraryName":"effect@beta","version":"4.0.0-beta.84","snippet":"// const standardSchema = Schema.toStandardSchemaV1(\n// schema, \n// { parseOptions: { errors: \"first\" } }\n// );\nupfetch(url, { schema: standardSchema });","mean":0.029154623148692126,"optimizeType":"none","errorType":"abortEarly","type":"standard"},{"id":"d82a6d67-6aaf-434b-ae03-558bffe21b5e","libraryName":"effect@beta","version":"4.0.0-beta.84","snippet":"// const standardSchema = Schema.toStandardSchemaV1(\n// schema, \n// { parseOptions: { errors: \"all\" } }\n// );\nupfetch(url, { schema: standardSchema });","mean":0.029203736559301908,"optimizeType":"none","errorType":"allErrors","type":"standard"},{"id":"0f38cab7-0121-4a7b-b61d-0df637df611c","libraryName":"@railway-ts/pipelines","version":"0.1.29","snippet":"upfetch(url, { schema })","mean":0.031361148085431986,"optimizeType":"none","errorType":"allErrors","type":"standard"},{"id":"465ed4e6-aad8-4265-b025-65e2790f36c3","libraryName":"zod/v3","version":"4.4.3","snippet":"upfetch(url, { schema })","mean":0.035138830528124866,"optimizeType":"none","errorType":"allErrors","type":"standard"},{"id":"3ee3f1b1-9cdc-4419-a473-b5c6ef432808","libraryName":"ata-validator","version":"0.21.0","snippet":"upfetch(url, { schema })","mean":0.04177725713331135,"optimizeType":"jit","errorType":"allErrors","type":"standard"},{"id":"74061ce0-fd95-4ec3-8689-836907d6df90","libraryName":"zod","version":"4.4.3","snippet":"upfetch(url, { schema })","mean":0.056030074630214616,"optimizeType":"jit","errorType":"allErrors","type":"standard"},{"id":"2b9627ad-b5dc-459e-9085-d4b5c081c98c","libraryName":"zod/mini","version":"4.4.3","snippet":"upfetch(url, { schema })","mean":0.05844593062942124,"optimizeType":"jit","errorType":"allErrors","type":"standard"},{"id":"00774323-4fc5-41e9-8677-61db7f488a88","libraryName":"effect","version":"3.21.4","snippet":"// const standardSchema = Schema.standardSchemaV1(\n// schema, \n// { errors: \"all\" }\n// );\nupfetch(url, { schema: standardSchema });","mean":0.06616470259362318,"optimizeType":"none","errorType":"allErrors","type":"standard"},{"id":"e9b8e702-f8cc-427a-921b-1019ff686ad9","libraryName":"decoders","version":"2.9.3","snippet":"upfetch(url, { schema })","mean":0.07564571076690821,"optimizeType":"none","errorType":"allErrors","type":"standard"},{"id":"a8577e56-0825-4ec7-85df-8f03162e177a","libraryName":"arktype","version":"2.2.1","snippet":"upfetch(url, { schema })","mean":0.08991086415535951,"optimizeType":"jit","errorType":"allErrors","type":"standard"},{"id":"6e404221-7c42-4843-a7b8-0a80c498251b","libraryName":"yup","version":"1.7.1","snippet":"upfetch(url, { schema })","mean":0.5719798982275429,"optimizeType":"none","errorType":"allErrors","type":"standard"}]},"string":{"date-time":{"valid":[{"id":"ed6c20d0-6b82-4560-af1a-11fd45fcd636","libraryName":"sury","version":"11.0.0-alpha.8","snippet":"S.isoDateTime","mean":0.00010348926661100592,"optimizeType":"jit","type":"string"},{"id":"d96ea430-f618-4209-8ae8-2cbe93460222","libraryName":"typia","version":"12.1.1","snippet":"string & tags.Format<\"date-time\">","mean":0.00011498485810453027,"optimizeType":"precompiled","type":"string"},{"id":"02182c69-f785-4ec2-bcbf-5e5fd8c69f3b","libraryName":"arktype","version":"2.2.1","snippet":"type(\"string.date.iso\")","mean":0.000172645566271876,"optimizeType":"jit","type":"string"},{"id":"444d6f52-7957-4a32-88e1-add7d44d67c5","libraryName":"zod/mini","version":"4.4.3","snippet":"z.iso.datetime()","mean":0.0002178296091378069,"optimizeType":"jit","type":"string"},{"id":"820c0b76-3d0f-4acb-8c01-c833ba65e358","libraryName":"zod","version":"4.4.3","snippet":"z.iso.datetime()","mean":0.00023070360654371482,"optimizeType":"jit","type":"string"},{"id":"1bd84aab-41d0-4adc-98f4-3bdfc9d96d55","libraryName":"ata-validator","version":"0.21.0","snippet":"{ type: \"string\", format: \"date-time\" }","mean":0.0002680522162935754,"optimizeType":"jit","type":"string"},{"id":"5ae0cb00-019d-4807-9f79-ea6318efa298","libraryName":"zod/v3","version":"4.4.3","snippet":"z.string().datetime()","mean":0.0009818132601684575,"optimizeType":"none","type":"string"},{"id":"0a60ed13-46dc-4472-9b0a-d9591b47f82f","libraryName":"@railway-ts/pipelines","version":"0.1.29","snippet":"chain(string(), isoDateTime())","mean":0.0014199587416860709,"optimizeType":"none","type":"string"},{"id":"9d267dcd-f80f-419f-b615-5cba8ad3bc95","libraryName":"yup","version":"1.7.1","snippet":"yup.string().datetime()","mean":0.0020863098540400775,"optimizeType":"none","type":"string"},{"id":"b8337466-a1fe-4fc0-a5e5-c0764cb7054d","libraryName":"typebox","version":"1.2.17","snippet":"Type.String({ format: \"date-time\" })","mean":0.002155110095819576,"optimizeType":"jit","type":"string"},{"id":"3f8e9cac-22e0-4dda-85ae-d19dac82d118","libraryName":"joi","version":"18.2.3","snippet":"Joi.string().isoDate()","mean":0.004519302787494016,"optimizeType":"none","type":"string"}],"invalid":[{"id":"c9133aff-1c87-4294-9b17-43d3bd03cd06","libraryName":"typia","version":"12.1.1","snippet":"string & tags.Format<\"date-time\">","mean":0.00007116542851729057,"optimizeType":"precompiled","type":"string"},{"id":"8268586f-474f-493b-9b06-fbbbf20e605b","libraryName":"ata-validator","version":"0.21.0","snippet":"{ type: \"string\", format: \"date-time\" }","mean":0.00007594766955022521,"optimizeType":"jit","type":"string"},{"id":"9ae3565f-6f23-4ecb-8547-3570171aae41","libraryName":"arktype","version":"2.2.1","snippet":"type(\"string.date.iso\")","mean":0.00008825763761681973,"optimizeType":"jit","type":"string"},{"id":"980a7408-650b-4475-b4e9-51fe57fe2bbe","libraryName":"@railway-ts/pipelines","version":"0.1.29","snippet":"chain(string(), isoDateTime())","mean":0.0001683327495563206,"optimizeType":"none","type":"string"},{"id":"86d372a1-3119-4be2-a328-a8bd44302f75","libraryName":"typebox","version":"1.2.17","snippet":"Type.String({ format: \"date-time\" })","mean":0.0009333123562159087,"optimizeType":"jit","type":"string"},{"id":"c348e81e-2f8e-4010-ac92-99f429428087","libraryName":"joi","version":"18.2.3","snippet":"Joi.string().isoDate()","mean":0.00225869037686048,"optimizeType":"none","type":"string"},{"id":"6ec3990c-6558-486f-b1e3-d6297c362716","libraryName":"zod/v3","version":"4.4.3","snippet":"z.string().datetime()","mean":0.0024254131762975134,"optimizeType":"none","type":"string"},{"id":"f419d699-85aa-43cc-93d2-4d2e25890c70","libraryName":"sury","version":"11.0.0-alpha.8","snippet":"S.isoDateTime","mean":0.007967406471092562,"optimizeType":"jit","type":"string"},{"id":"6af0d50a-16c3-4343-9bce-44c9fd13c8b0","libraryName":"zod/mini","version":"4.4.3","snippet":"z.iso.datetime()","mean":0.011869830346115228,"optimizeType":"jit","type":"string"},{"id":"2820dc43-f147-4c4f-9305-c14c9c3777ff","libraryName":"zod","version":"4.4.3","snippet":"z.iso.datetime()","mean":0.015841584459401373,"optimizeType":"jit","type":"string"},{"id":"2ffc66e6-cabc-403f-9d0c-3d1d4b5ab437","libraryName":"yup","version":"1.7.1","snippet":"yup.string().datetime()","mean":0.024815613951067468,"optimizeType":"none","type":"string"}]},"date":{"valid":[{"id":"f283d33b-cbee-42d4-9dce-abe2bb265f9e","libraryName":"typia","version":"12.1.1","snippet":"string & tags.Format<\"date\">","mean":0.00008457389263076766,"optimizeType":"precompiled","type":"string"},{"id":"42e68e64-42e7-4383-97b3-7935779abb4c","libraryName":"ata-validator","version":"0.21.0","snippet":"{ type: \"string\", format: \"date\" }","mean":0.0001619632061707954,"optimizeType":"jit","type":"string"},{"id":"3d81b9f6-8c5d-43cf-8341-87cfa30b42f4","libraryName":"valibot","version":"1.4.1","snippet":"v.pipe(v.string(), v.isoDate())","mean":0.00016225422802040084,"optimizeType":"none","type":"string"},{"id":"4bbdc4d6-c57d-4c18-b9e7-9b57ec918370","libraryName":"@sapphire/shapeshift","version":"4.0.0","snippet":"s.string().date()","mean":0.00019119528263945079,"optimizeType":"none","type":"string"},{"id":"5a3d014d-0423-47f0-b15c-83999d01ecf1","libraryName":"zod","version":"4.4.3","snippet":"z.iso.date()","mean":0.0002229581730539039,"optimizeType":"jit","type":"string"},{"id":"175f704c-990d-45a7-a6c1-6c0255ee03c8","libraryName":"zod/mini","version":"4.4.3","snippet":"z.iso.date()","mean":0.00023213992929485387,"optimizeType":"jit","type":"string"},{"id":"2ed8727a-f936-4baf-8218-71c1a5bb6ef1","libraryName":"zod/v3","version":"4.4.3","snippet":"z.string().date()","mean":0.00027958154498967675,"optimizeType":"none","type":"string"},{"id":"a8621f29-418a-447f-8c63-96c4642e41b9","libraryName":"@railway-ts/pipelines","version":"0.1.29","snippet":"chain(string(), isoDate())","mean":0.0011369738245970828,"optimizeType":"none","type":"string"},{"id":"3d58e4d9-acd7-4446-8c6a-24e28461f88e","libraryName":"typebox","version":"1.2.17","snippet":"Type.String({ format: \"date\" })","mean":0.001629355792355508,"optimizeType":"jit","type":"string"}],"invalid":[{"id":"4e151c0e-4365-4a01-9bf2-74ccc0e42a00","libraryName":"ata-validator","version":"0.21.0","snippet":"{ type: \"string\", format: \"date\" }","mean":0.000056038129519841915,"optimizeType":"jit","type":"string"},{"id":"37370b12-5e77-41e0-968c-e6c6be6a3298","libraryName":"typia","version":"12.1.1","snippet":"string & tags.Format<\"date\">","mean":0.00006669372853701309,"optimizeType":"precompiled","type":"string"},{"id":"14c0af4f-f428-420d-be78-da6f0a012684","libraryName":"@railway-ts/pipelines","version":"0.1.29","snippet":"chain(string(), isoDate())","mean":0.00018949446969673448,"optimizeType":"none","type":"string"},{"id":"2a00385d-9cc7-42e3-b84d-af2d11c0c5fb","libraryName":"valibot","version":"1.4.1","snippet":"v.pipe(v.string(), v.isoDate())","mean":0.000303581733609476,"optimizeType":"none","type":"string"},{"id":"cd0e27bb-d4e5-4cae-ae83-468d8165f9fb","libraryName":"typebox","version":"1.2.17","snippet":"Type.String({ format: \"date\" })","mean":0.0009099107450418211,"optimizeType":"jit","type":"string"},{"id":"76d8bd03-c227-46d3-a919-e0c3928b5b82","libraryName":"zod/v3","version":"4.4.3","snippet":"z.string().date()","mean":0.0015994152010144903,"optimizeType":"none","type":"string"},{"id":"36099154-4b06-4b05-bb72-47be9e211341","libraryName":"@sapphire/shapeshift","version":"4.0.0","snippet":"s.string().date()","mean":0.008154134909243913,"optimizeType":"none","type":"string"},{"id":"bf1c93ad-daa9-43d2-b311-63157f5440ea","libraryName":"zod/mini","version":"4.4.3","snippet":"z.iso.date()","mean":0.011350065546051048,"optimizeType":"jit","type":"string"},{"id":"3f9d5472-e725-4666-981e-ed5336f3437e","libraryName":"zod","version":"4.4.3","snippet":"z.iso.date()","mean":0.015481671016965171,"optimizeType":"jit","type":"string"}]},"time":{"valid":[{"id":"cfe79370-2b65-476d-86fb-5efdba6d325c","libraryName":"typia","version":"12.1.1","snippet":"string & tags.Format<\"time\">","mean":0.00007826927595889596,"optimizeType":"precompiled","type":"string"},{"id":"e8f09cee-abaa-4b69-9801-89a66d376202","libraryName":"ata-validator","version":"0.21.0","snippet":"{ type: \"string\", format: \"time\" }","mean":0.00008314432873839103,"optimizeType":"jit","type":"string"},{"id":"f8bce75a-7243-442c-9347-1cef32fd0355","libraryName":"@railway-ts/pipelines","version":"0.1.29","snippet":"chain(string(), isoTime())","mean":0.00032628834589441336,"optimizeType":"none","type":"string"},{"id":"247b4e77-b189-4b77-b6d8-cca296134ca8","libraryName":"typebox","version":"1.2.17","snippet":"Type.String({ format: \"time\" })","mean":0.0017133313287361512,"optimizeType":"jit","type":"string"}],"invalid":[{"id":"9ad8b1f0-ff7c-4ddf-8177-e1367f0f0dd3","libraryName":"typia","version":"12.1.1","snippet":"string & tags.Format<\"time\">","mean":0.00006648572239149024,"optimizeType":"precompiled","type":"string"},{"id":"21e4e7f3-a93a-4708-8b2c-850e6d9fafa2","libraryName":"ata-validator","version":"0.21.0","snippet":"{ type: \"string\", format: \"time\" }","mean":0.00007030130815917133,"optimizeType":"jit","type":"string"},{"id":"f9e5cdc1-1261-45ab-892c-948246f94226","libraryName":"@railway-ts/pipelines","version":"0.1.29","snippet":"chain(string(), isoTime())","mean":0.00015731348074149245,"optimizeType":"none","type":"string"},{"id":"f61e1dd9-3e83-4ba9-90f7-0fb79142cfa7","libraryName":"typebox","version":"1.2.17","snippet":"Type.String({ format: \"time\" })","mean":0.0009478788934113687,"optimizeType":"jit","type":"string"}]},"duration":{"valid":[{"id":"bd43fab0-dd00-411b-b34a-a12238fb380e","libraryName":"ata-validator","version":"0.21.0","snippet":"{ type: \"string\", format: \"duration\" }","mean":0.00010224715837271803,"optimizeType":"jit","type":"string"},{"id":"32dda037-ef41-4ee6-a3c1-41cff2a540a3","libraryName":"typia","version":"12.1.1","snippet":"string & tags.Format<\"duration\">","mean":0.00010422724789746235,"optimizeType":"precompiled","type":"string"},{"id":"acebdd2a-aaa6-4a6c-980e-38a538193ae5","libraryName":"@railway-ts/pipelines","version":"0.1.29","snippet":"chain(string(), duration())","mean":0.0001871116774146288,"optimizeType":"none","type":"string"},{"id":"fcbad489-40b9-463d-8aae-08e2ddf232c4","libraryName":"zod/mini","version":"4.4.3","snippet":"z.iso.duration()","mean":0.0002881606802949049,"optimizeType":"jit","type":"string"},{"id":"d2a484f8-9a91-4ed1-9da6-ac7610c87b44","libraryName":"zod/v3","version":"4.4.3","snippet":"z.string().duration()","mean":0.0003027441869333091,"optimizeType":"none","type":"string"},{"id":"4da69175-5405-4297-81de-f1a652ff0587","libraryName":"zod","version":"4.4.3","snippet":"z.iso.duration()","mean":0.0003120736709088294,"optimizeType":"jit","type":"string"},{"id":"85a87466-ee1c-4fb9-bcc1-702d554e0d72","libraryName":"joi","version":"18.2.3","snippet":"Joi.string().isoDuration()","mean":0.0005196871832187371,"optimizeType":"none","type":"string"},{"id":"813b2c84-ebcf-4a5c-9bb8-5422870301a1","libraryName":"typebox","version":"1.2.17","snippet":"Type.String({ format: \"duration\" })","mean":0.0014730107087843997,"optimizeType":"jit","type":"string"}],"invalid":[{"id":"04207fe0-0be6-4ac5-a48f-abdd73bb9540","libraryName":"ata-validator","version":"0.21.0","snippet":"{ type: \"string\", format: \"duration\" }","mean":0.00006902442339568988,"optimizeType":"jit","type":"string"},{"id":"9aafcb23-39dd-4819-8335-8e2b966c64b8","libraryName":"typia","version":"12.1.1","snippet":"string & tags.Format<\"duration\">","mean":0.00006982247147918127,"optimizeType":"precompiled","type":"string"},{"id":"1fb14605-c672-454e-befe-510dab7441ea","libraryName":"@railway-ts/pipelines","version":"0.1.29","snippet":"chain(string(), duration())","mean":0.00014642072204403936,"optimizeType":"none","type":"string"},{"id":"2da97a1d-30c3-473e-b2c4-05050484823c","libraryName":"typebox","version":"1.2.17","snippet":"Type.String({ format: \"duration\" })","mean":0.000937681897113294,"optimizeType":"jit","type":"string"},{"id":"20f83db2-519e-4fec-9e72-cbd159bc5381","libraryName":"zod/v3","version":"4.4.3","snippet":"z.string().duration()","mean":0.0015955177501297583,"optimizeType":"none","type":"string"},{"id":"e8140bfb-f1d5-4906-9a62-5c2e8b321d01","libraryName":"joi","version":"18.2.3","snippet":"Joi.string().isoDuration()","mean":0.002221794313102242,"optimizeType":"none","type":"string"},{"id":"e308300d-406f-4c7c-9ada-b545bf6c4676","libraryName":"zod/mini","version":"4.4.3","snippet":"z.iso.duration()","mean":0.011266288730406136,"optimizeType":"jit","type":"string"},{"id":"02315dbb-13f7-4386-89de-f63ce0458f13","libraryName":"zod","version":"4.4.3","snippet":"z.iso.duration()","mean":0.015035885066449352,"optimizeType":"jit","type":"string"}]},"email":{"valid":[{"id":"f5f7f97f-6db9-442e-b2f4-051e63140910","libraryName":"ata-validator","version":"0.21.0","snippet":"{ type: \"string\", format: \"email\" }","mean":0.00007101416455595035,"optimizeType":"jit","type":"string"},{"id":"9c51f079-7f82-457b-bbad-243a5dc78b7d","libraryName":"typia","version":"12.1.1","snippet":"string & tags.Format<\"email\">","mean":0.00011005345075890168,"optimizeType":"precompiled","type":"string"},{"id":"6125797a-c235-4b4e-a3f3-fb06ea2d4309","libraryName":"arktype","version":"2.2.1","snippet":"type(\"string.email\")","mean":0.00013449160752358253,"optimizeType":"jit","type":"string"},{"id":"663a9f7a-bddd-4e92-84a2-9832e41b578d","libraryName":"sury","version":"11.0.0-alpha.8","snippet":"S.email","mean":0.0001607959608698845,"optimizeType":"jit","type":"string"},{"id":"e07a11a9-4d69-44a9-93ce-37e74efe38d7","libraryName":"valibot","version":"1.4.1","snippet":"v.pipe(v.string(), v.email())","mean":0.00020371164619243295,"optimizeType":"none","type":"string"},{"id":"6b0c4db9-3869-41fb-8b07-73f53e777045","libraryName":"@railway-ts/pipelines","version":"0.1.29","snippet":"chain(string(), email())","mean":0.00020660502930175352,"optimizeType":"none","type":"string"},{"id":"1c8c9981-9f58-4170-8b27-ac5a7321f79c","libraryName":"zod/v3","version":"4.4.3","snippet":"z.string().email()","mean":0.00029757761716608043,"optimizeType":"none","type":"string"},{"id":"ea44f755-8649-4c8b-9752-77a837698016","libraryName":"zod","version":"4.4.3","snippet":"z.email()","mean":0.0003010145660918724,"optimizeType":"jit","type":"string"},{"id":"64d3de46-3bd1-4829-891d-f08edf021174","libraryName":"zod/mini","version":"4.4.3","snippet":"z.email()","mean":0.00030831959975285295,"optimizeType":"jit","type":"string"},{"id":"b201ccd3-c4d3-4199-a891-e73a9be0aa10","libraryName":"@sapphire/shapeshift","version":"4.0.0","snippet":"s.string().email()","mean":0.0007532358644050226,"optimizeType":"none","type":"string"},{"id":"8abd0411-47ba-4c59-a62a-ecc066c0805d","libraryName":"yup","version":"1.7.1","snippet":"yup.string().email()","mean":0.0012162667257770573,"optimizeType":"none","type":"string"},{"id":"18ac269f-7344-49a9-bcdd-d3085d92597d","libraryName":"typebox","version":"1.2.17","snippet":"Type.String({ format: \"email\" })","mean":0.0015452640252001293,"optimizeType":"jit","type":"string"},{"id":"1594f055-1ac3-4396-9c5d-f395dd2b4eb3","libraryName":"joi","version":"18.2.3","snippet":"Joi.string().email()","mean":0.002582612851078534,"optimizeType":"none","type":"string"}],"invalid":[{"id":"562cf2fe-6e9b-4c8e-a934-0cdc26fac4ab","libraryName":"ata-validator","version":"0.21.0","snippet":"{ type: \"string\", format: \"email\" }","mean":0.00006231859407157075,"optimizeType":"jit","type":"string"},{"id":"fc88c47f-eb46-4ffd-8ef2-435fc2271f11","libraryName":"typia","version":"12.1.1","snippet":"string & tags.Format<\"email\">","mean":0.00008571225641739191,"optimizeType":"precompiled","type":"string"},{"id":"7e9a330e-b997-4d65-acea-618d4ea4ce76","libraryName":"arktype","version":"2.2.1","snippet":"type(\"string.email\")","mean":0.000123735540172263,"optimizeType":"jit","type":"string"},{"id":"f12b65a4-34dd-49dd-9648-e9b81146ffdb","libraryName":"@railway-ts/pipelines","version":"0.1.29","snippet":"chain(string(), email())","mean":0.00017352608973239916,"optimizeType":"none","type":"string"},{"id":"32b14604-b46f-42cc-9360-dde9af3be2a4","libraryName":"valibot","version":"1.4.1","snippet":"v.pipe(v.string(), v.email())","mean":0.000316357822800006,"optimizeType":"none","type":"string"},{"id":"75a7bffa-758e-4d48-8512-499525c34673","libraryName":"typebox","version":"1.2.17","snippet":"Type.String({ format: \"email\" })","mean":0.0010007232658409157,"optimizeType":"jit","type":"string"},{"id":"f76ab7e7-14ad-493c-be90-1723b0fb2619","libraryName":"zod/v3","version":"4.4.3","snippet":"z.string().email()","mean":0.0015944350555348189,"optimizeType":"none","type":"string"},{"id":"f0a03bce-bce2-4af8-8726-47acdfced2a7","libraryName":"joi","version":"18.2.3","snippet":"Joi.string().email()","mean":0.002283230519478665,"optimizeType":"none","type":"string"},{"id":"28d37c39-beff-40c5-9547-57b9e3be8519","libraryName":"sury","version":"11.0.0-alpha.8","snippet":"S.email","mean":0.007571737610831153,"optimizeType":"jit","type":"string"},{"id":"5a21bf60-7778-4df3-8be2-bacc16131f3f","libraryName":"@sapphire/shapeshift","version":"4.0.0","snippet":"s.string().email()","mean":0.008832982978982135,"optimizeType":"none","type":"string"},{"id":"b2c78e57-9a53-48d3-959d-54cc71b398ba","libraryName":"zod/mini","version":"4.4.3","snippet":"z.email()","mean":0.01129883075532713,"optimizeType":"jit","type":"string"},{"id":"460553ab-2b98-4948-835d-beb3c56bf54e","libraryName":"zod","version":"4.4.3","snippet":"z.email()","mean":0.014803597450861329,"optimizeType":"jit","type":"string"},{"id":"f34fb57e-0a56-4fa7-b1b1-7130c37ee8bb","libraryName":"yup","version":"1.7.1","snippet":"yup.string().email()","mean":0.02665523695925147,"optimizeType":"none","type":"string"}]},"url":{"valid":[{"id":"6cddc716-6648-49f3-b8af-6542d4d8914b","libraryName":"typia","version":"12.1.1","snippet":"string & tags.Format<\"url\">","mean":0.0001809682380836289,"optimizeType":"precompiled","type":"string"},{"id":"dcb3b424-67a5-493f-a385-60de629002dc","libraryName":"arktype","version":"2.2.1","snippet":"type(\"string.url\")","mean":0.000255299747891499,"optimizeType":"jit","type":"string"},{"id":"58dcf140-fba7-4f3e-9396-3c58cfb31b6a","libraryName":"@sapphire/shapeshift","version":"4.0.0","snippet":"s.string().url()","mean":0.00045219162975280915,"optimizeType":"none","type":"string"},{"id":"b0cd3a61-ffcf-4c64-b4ee-d839988f0c07","libraryName":"sury","version":"11.0.0-alpha.8","snippet":"S.url","mean":0.00046142664793783633,"optimizeType":"jit","type":"string"},{"id":"1a49a0b6-9927-42a5-ad07-2b2182b281b6","libraryName":"valibot","version":"1.4.1","snippet":"v.pipe(v.string(), v.url())","mean":0.0005261641221397082,"optimizeType":"none","type":"string"},{"id":"8e251ccc-8c24-4a81-8756-fe4837c9d959","libraryName":"@railway-ts/pipelines","version":"0.1.29","snippet":"chain(string(), url())","mean":0.0005635959598075033,"optimizeType":"none","type":"string"},{"id":"faa1678a-9c0d-407e-afda-505b422e3db9","libraryName":"zod/v3","version":"4.4.3","snippet":"z.string().url()","mean":0.0006172628989361845,"optimizeType":"none","type":"string"},{"id":"dec868c9-8819-4103-acc6-a5d309197b0d","libraryName":"joi","version":"18.2.3","snippet":"Joi.string().uri()","mean":0.0006453776922716691,"optimizeType":"none","type":"string"},{"id":"d11911ed-5ec4-41bf-821d-6664d66b02eb","libraryName":"zod","version":"4.4.3","snippet":"z.url()","mean":0.0006994851803590448,"optimizeType":"jit","type":"string"},{"id":"31e10c16-60c2-4456-83ea-4ffd86b8cc9b","libraryName":"zod/mini","version":"4.4.3","snippet":"z.url()","mean":0.0007272079726688126,"optimizeType":"jit","type":"string"},{"id":"9b44213b-9204-4bae-a414-f5a9db7931a9","libraryName":"yup","version":"1.7.1","snippet":"yup.string().url()","mean":0.0015691190410809977,"optimizeType":"none","type":"string"},{"id":"6990fad6-8dac-4398-9638-6d2736f7f99a","libraryName":"typebox","version":"1.2.17","snippet":"Type.String({ format: \"url\" })","mean":0.001586404447006996,"optimizeType":"jit","type":"string"}],"invalid":[{"id":"b88c0ff7-251d-436d-8a95-eecd6322fb8c","libraryName":"typia","version":"12.1.1","snippet":"string & tags.Format<\"url\">","mean":0.00006652848952691779,"optimizeType":"precompiled","type":"string"},{"id":"6ba8327d-1409-488b-a3ad-83e0609fa881","libraryName":"arktype","version":"2.2.1","snippet":"type(\"string.url\")","mean":0.00012703596057657684,"optimizeType":"jit","type":"string"},{"id":"e839f58b-bfeb-4316-a074-d0b794195327","libraryName":"typebox","version":"1.2.17","snippet":"Type.String({ format: \"url\" })","mean":0.0008895726833744314,"optimizeType":"jit","type":"string"},{"id":"84ab6980-e0e5-4e2b-8705-2e5d31e60b72","libraryName":"joi","version":"18.2.3","snippet":"Joi.string().uri()","mean":0.002286452635017945,"optimizeType":"none","type":"string"},{"id":"cdcff531-c091-45b8-9734-8de44a18b163","libraryName":"valibot","version":"1.4.1","snippet":"v.pipe(v.string(), v.url())","mean":0.009337336965530909,"optimizeType":"none","type":"string"},{"id":"e9ff7ff5-e0e7-4ecc-9e46-f060d9d3ef4e","libraryName":"@railway-ts/pipelines","version":"0.1.29","snippet":"chain(string(), url())","mean":0.010437881905951954,"optimizeType":"none","type":"string"},{"id":"de85291f-bc47-407d-a1c9-163d40823e53","libraryName":"zod/v3","version":"4.4.3","snippet":"z.string().url()","mean":0.011986891039841487,"optimizeType":"none","type":"string"},{"id":"01e1e899-0634-41cf-aa6f-482eeda91804","libraryName":"sury","version":"11.0.0-alpha.8","snippet":"S.url","mean":0.01564905356639684,"optimizeType":"jit","type":"string"},{"id":"97465d78-1f5c-4d31-8710-5b720eabaf0e","libraryName":"@sapphire/shapeshift","version":"4.0.0","snippet":"s.string().url()","mean":0.016967490676491597,"optimizeType":"none","type":"string"},{"id":"196df16f-428b-4b01-b67b-40f81bc9c840","libraryName":"zod/mini","version":"4.4.3","snippet":"z.url()","mean":0.020855040749922244,"optimizeType":"jit","type":"string"},{"id":"42fec62f-2827-4534-8bcf-6e7764076f8f","libraryName":"zod","version":"4.4.3","snippet":"z.url()","mean":0.024129778804614258,"optimizeType":"jit","type":"string"},{"id":"c2d63158-cb19-4eae-82d7-ee8c5b2fcceb","libraryName":"yup","version":"1.7.1","snippet":"yup.string().url()","mean":0.025282879655143076,"optimizeType":"none","type":"string"}]},"uuid":{"valid":[{"id":"82af5f33-58d5-4d47-81fe-fb5ec182c772","libraryName":"arktype","version":"2.2.1","snippet":"type(\"string.uuid\")","mean":0.0001446361114703623,"optimizeType":"jit","type":"string"},{"id":"54dd8c87-c0f4-475f-a2c4-fb82a0665b79","libraryName":"typia","version":"12.1.1","snippet":"string & tags.Format<\"uuid\">","mean":0.0001649540024229977,"optimizeType":"precompiled","type":"string"},{"id":"2ae843ba-fbff-4fa7-b3f2-45642c23b6f1","libraryName":"ata-validator","version":"0.21.0","snippet":"{ type: \"string\", format: \"uuid\" }","mean":0.00016594285459259776,"optimizeType":"jit","type":"string"},{"id":"b01962e2-7046-4a5d-af4e-48b9e7bb516e","libraryName":"@sapphire/shapeshift","version":"4.0.0","snippet":"s.string().uuid()","mean":0.00017864317919769786,"optimizeType":"none","type":"string"},{"id":"2826aea1-9643-41a7-9f1c-4b6924d76178","libraryName":"sury","version":"11.0.0-alpha.8","snippet":"S.uuid","mean":0.00020003910544208394,"optimizeType":"jit","type":"string"},{"id":"83bdd893-140d-4c80-a9f9-60241f2f1a23","libraryName":"valibot","version":"1.4.1","snippet":"v.pipe(v.string(), v.uuid())","mean":0.0002414780780178399,"optimizeType":"none","type":"string"},{"id":"a194c49e-08e0-4541-8ed4-3436262036a2","libraryName":"@railway-ts/pipelines","version":"0.1.29","snippet":"chain(string(), uuid())","mean":0.0002709438872624717,"optimizeType":"none","type":"string"},{"id":"7b8e0387-c624-4edf-8956-1eaa72082c54","libraryName":"zod/v3","version":"4.4.3","snippet":"z.string().uuid()","mean":0.0002816658314315654,"optimizeType":"none","type":"string"},{"id":"58d95ace-6490-4168-9348-5b0e7752662c","libraryName":"zod","version":"4.4.3","snippet":"z.uuid()","mean":0.0002937914328082466,"optimizeType":"jit","type":"string"},{"id":"9fcac947-0825-48f9-a4a8-15c9498a7a91","libraryName":"zod/mini","version":"4.4.3","snippet":"z.uuid()","mean":0.0002992986042201716,"optimizeType":"jit","type":"string"},{"id":"c8999b0c-40be-460c-acc7-c6c357740b3b","libraryName":"joi","version":"18.2.3","snippet":"Joi.string().uuid()","mean":0.0006838223457970068,"optimizeType":"none","type":"string"},{"id":"98c4ee1a-edf6-4aca-9d54-9df00b1e9e96","libraryName":"yup","version":"1.7.1","snippet":"yup.string().uuid()","mean":0.001257687619322439,"optimizeType":"none","type":"string"},{"id":"f2779bbd-0192-4db6-a6ff-6ea75f0ca3d4","libraryName":"typebox","version":"1.2.17","snippet":"Type.String({ format: \"uuid\" })","mean":0.0015441318856684854,"optimizeType":"jit","type":"string"}],"invalid":[{"id":"db7758f3-3c2c-47e1-9033-75ae6db5a6d8","libraryName":"ata-validator","version":"0.21.0","snippet":"{ type: \"string\", format: \"uuid\" }","mean":0.00005656653035464197,"optimizeType":"jit","type":"string"},{"id":"5185bd46-4dc5-4028-b064-e5b3e4a233ba","libraryName":"typia","version":"12.1.1","snippet":"string & tags.Format<\"uuid\">","mean":0.0000644399404252551,"optimizeType":"precompiled","type":"string"},{"id":"262ea649-dfab-4ba3-a348-23561419bb5a","libraryName":"arktype","version":"2.2.1","snippet":"type(\"string.uuid\")","mean":0.00007083127078577592,"optimizeType":"jit","type":"string"},{"id":"5e9443c4-32e8-4a16-806d-8307fc7f8b23","libraryName":"@railway-ts/pipelines","version":"0.1.29","snippet":"chain(string(), uuid())","mean":0.00014999326875289988,"optimizeType":"none","type":"string"},{"id":"ebfac108-6c69-4341-964a-c522ca38a1ae","libraryName":"valibot","version":"1.4.1","snippet":"v.pipe(v.string(), v.uuid())","mean":0.0002904286642010221,"optimizeType":"none","type":"string"},{"id":"8ca528d3-6408-477f-be66-52c383296c58","libraryName":"typebox","version":"1.2.17","snippet":"Type.String({ format: \"uuid\" })","mean":0.0008896055401083412,"optimizeType":"jit","type":"string"},{"id":"0e02a26d-1ea9-4e3b-a6a5-8139a1d51c9a","libraryName":"zod/v3","version":"4.4.3","snippet":"z.string().uuid()","mean":0.0015474662729953541,"optimizeType":"none","type":"string"},{"id":"0c8be79a-c9b5-402b-8bd3-7509fcdebc52","libraryName":"joi","version":"18.2.3","snippet":"Joi.string().uuid()","mean":0.0022212210536142777,"optimizeType":"none","type":"string"},{"id":"d3096ea5-0ac3-4600-a7b5-252a0850547d","libraryName":"sury","version":"11.0.0-alpha.8","snippet":"S.uuid","mean":0.007497641899594256,"optimizeType":"jit","type":"string"},{"id":"2579e1aa-2d99-4145-b37c-8b4b29f4addf","libraryName":"@sapphire/shapeshift","version":"4.0.0","snippet":"s.string().uuid()","mean":0.008088059349719748,"optimizeType":"none","type":"string"},{"id":"e29d9d7a-9494-416e-a6e0-a4553e60ebfb","libraryName":"zod/mini","version":"4.4.3","snippet":"z.uuid()","mean":0.01126432434439839,"optimizeType":"jit","type":"string"},{"id":"43df6e8e-cfc9-4520-a04d-44c12ff7bbc3","libraryName":"zod","version":"4.4.3","snippet":"z.uuid()","mean":0.014708753114558831,"optimizeType":"jit","type":"string"},{"id":"ce2df31f-6369-457c-a461-4a2face13168","libraryName":"yup","version":"1.7.1","snippet":"yup.string().uuid()","mean":0.025025890838096823,"optimizeType":"none","type":"string"}]},"ipv4":{"valid":[{"id":"c116b998-30ea-48f7-bf7a-5a7750065b47","libraryName":"typia","version":"12.1.1","snippet":"string & tags.Format<\"ipv4\">","mean":0.000076666317301275,"optimizeType":"precompiled","type":"string"},{"id":"98fa603f-b25e-47f5-b0b9-6941f159059b","libraryName":"arktype","version":"2.2.1","snippet":"type(\"string.ip.v4\")","mean":0.00012152954480417357,"optimizeType":"jit","type":"string"},{"id":"3102777a-186f-4733-b0ce-7934ee2db5d2","libraryName":"@sapphire/shapeshift","version":"4.0.0","snippet":"s.string().ipv4()","mean":0.00014124075939487153,"optimizeType":"none","type":"string"},{"id":"dd4e91df-5d57-40c2-930e-e0b6f9e771c3","libraryName":"valibot","version":"1.4.1","snippet":"v.pipe(v.string(), v.ipv4())","mean":0.00016517209047689876,"optimizeType":"none","type":"string"},{"id":"b0bfdec7-1a4f-4009-8e44-d917770749bd","libraryName":"ata-validator","version":"0.21.0","snippet":"{ type: \"string\", format: \"ipv4\" }","mean":0.00019709289421203756,"optimizeType":"jit","type":"string"},{"id":"7582fc50-a902-4e79-aec2-0a668f8cef00","libraryName":"zod/mini","version":"4.4.3","snippet":"z.ipv4()","mean":0.00021557879123306677,"optimizeType":"jit","type":"string"},{"id":"5deaf4d9-a938-454d-95cb-684805ea849d","libraryName":"zod","version":"4.4.3","snippet":"z.ipv4()","mean":0.00024064383606503374,"optimizeType":"jit","type":"string"},{"id":"f75a952f-e7be-4206-a974-3f582936586b","libraryName":"zod/v3","version":"4.4.3","snippet":"z.string().ip({ version: \"v4\" })","mean":0.0002608857362294946,"optimizeType":"none","type":"string"},{"id":"5c922d21-1903-451e-bf9c-3e0aa41a8e73","libraryName":"joi","version":"18.2.3","snippet":"Joi.string().ip({ version: \"ipv4\" })","mean":0.0004980333866544005,"optimizeType":"none","type":"string"},{"id":"abe752ce-801e-4b0c-8c7a-d3f6633487dc","libraryName":"typebox","version":"1.2.17","snippet":"Type.String({ format: \"ipv4\" })","mean":0.001407676620344338,"optimizeType":"jit","type":"string"}],"invalid":[{"id":"8d5b147a-5618-4e63-9533-ee1e1c20c685","libraryName":"typia","version":"12.1.1","snippet":"string & tags.Format<\"ipv4\">","mean":0.00006597640677437023,"optimizeType":"precompiled","type":"string"},{"id":"7fbf299c-e63f-4b1b-ae52-6cf218a74074","libraryName":"ata-validator","version":"0.21.0","snippet":"{ type: \"string\", format: \"ipv4\" }","mean":0.00010649486210445579,"optimizeType":"jit","type":"string"},{"id":"26a49ec1-cff5-415b-b267-e4c5ffd6a287","libraryName":"arktype","version":"2.2.1","snippet":"type(\"string.ip.v4\")","mean":0.00011262155666699073,"optimizeType":"jit","type":"string"},{"id":"63e51fa8-0629-40d1-85b8-e9f68b883763","libraryName":"valibot","version":"1.4.1","snippet":"v.pipe(v.string(), v.ipv4())","mean":0.0003963726036796625,"optimizeType":"none","type":"string"},{"id":"4bb022db-3dc7-4d67-b432-eccefeedd5cb","libraryName":"typebox","version":"1.2.17","snippet":"Type.String({ format: \"ipv4\" })","mean":0.0008722497293890911,"optimizeType":"jit","type":"string"},{"id":"e245758f-a746-44d2-a5e5-51ee19af67f5","libraryName":"zod/v3","version":"4.4.3","snippet":"z.string().ip({ version: \"v4\" })","mean":0.0016142758812695895,"optimizeType":"none","type":"string"},{"id":"e5b7abe5-2e73-4408-85cb-9e15c6b020e4","libraryName":"joi","version":"18.2.3","snippet":"Joi.string().ip({ version: \"ipv4\" })","mean":0.0027944580077803173,"optimizeType":"none","type":"string"},{"id":"53760676-6897-4a75-a724-dac74147f6cc","libraryName":"@sapphire/shapeshift","version":"4.0.0","snippet":"s.string().ipv4()","mean":0.008024086130386276,"optimizeType":"none","type":"string"},{"id":"ad7f76ef-6e3c-4acf-9fd6-1c035b7b7d4e","libraryName":"zod/mini","version":"4.4.3","snippet":"z.ipv4()","mean":0.01174721500816857,"optimizeType":"jit","type":"string"},{"id":"2d38b528-c5bb-41f6-b790-9cdd78eb8e87","libraryName":"zod","version":"4.4.3","snippet":"z.ipv4()","mean":0.014785704985220378,"optimizeType":"jit","type":"string"}]},"ipv6":{"valid":[{"id":"e9ffbd2c-9369-4b12-8049-4ecca0097cf0","libraryName":"arktype","version":"2.2.1","snippet":"type(\"string.ip.v6\")","mean":0.00017723195513010107,"optimizeType":"jit","type":"string"},{"id":"ef4f8b47-c0b5-4cf2-a28f-65eea9e0d5dd","libraryName":"@sapphire/shapeshift","version":"4.0.0","snippet":"s.string().ipv6()","mean":0.00020103415428879563,"optimizeType":"none","type":"string"},{"id":"7adf153b-ef04-484b-a3c8-2c9fd6d87a78","libraryName":"ata-validator","version":"0.21.0","snippet":"{ type: \"string\", format: \"ipv6\" }","mean":0.0002012746914198667,"optimizeType":"jit","type":"string"},{"id":"cd681c78-5a83-44c1-be95-238537e78b49","libraryName":"valibot","version":"1.4.1","snippet":"v.pipe(v.string(), v.ipv6())","mean":0.00020212048887378363,"optimizeType":"none","type":"string"},{"id":"74f1b473-b8b0-49e6-874a-4c4523832b97","libraryName":"typia","version":"12.1.1","snippet":"string & tags.Format<\"ipv6\">","mean":0.00032720027399718067,"optimizeType":"precompiled","type":"string"},{"id":"fb11c4da-1528-4f23-a2d4-f0d306083e55","libraryName":"zod/v3","version":"4.4.3","snippet":"z.string().ip({ version: \"v6\" })","mean":0.0003901586630824036,"optimizeType":"none","type":"string"},{"id":"a9a93a82-4c4b-40bc-9739-416e5aba39ae","libraryName":"joi","version":"18.2.3","snippet":"Joi.string().ip({ version: \"ipv6\" })","mean":0.0005340552164903611,"optimizeType":"none","type":"string"},{"id":"36fc45a2-5098-48bd-ac0b-91301a0199b6","libraryName":"zod/mini","version":"4.4.3","snippet":"z.ipv6()","mean":0.0007207282704064515,"optimizeType":"jit","type":"string"},{"id":"28371990-917e-490c-bedd-2235cd91acbf","libraryName":"zod","version":"4.4.3","snippet":"z.ipv6()","mean":0.0007362206518641581,"optimizeType":"jit","type":"string"},{"id":"5d69775a-8fa2-440f-bcea-510cc721d104","libraryName":"typebox","version":"1.2.17","snippet":"Type.String({ format: \"ipv6\" })","mean":0.0015280951146925369,"optimizeType":"jit","type":"string"}],"invalid":[{"id":"faf37851-d5eb-4779-8c8c-70103e9757be","libraryName":"ata-validator","version":"0.21.0","snippet":"{ type: \"string\", format: \"ipv6\" }","mean":0.0000753192709232914,"optimizeType":"jit","type":"string"},{"id":"16e53f57-1870-46bd-8f6a-4090237c410b","libraryName":"arktype","version":"2.2.1","snippet":"type(\"string.ip.v6\")","mean":0.00013063045338168898,"optimizeType":"jit","type":"string"},{"id":"a3783c2e-4007-4754-9bd5-6af8d83e61ee","libraryName":"typia","version":"12.1.1","snippet":"string & tags.Format<\"ipv6\">","mean":0.00022455671584547474,"optimizeType":"precompiled","type":"string"},{"id":"a831960c-09f4-41dc-bf71-8523a9264649","libraryName":"valibot","version":"1.4.1","snippet":"v.pipe(v.string(), v.ipv6())","mean":0.00033668813019754824,"optimizeType":"none","type":"string"},{"id":"ad277ec3-fb28-4275-82c0-eb293f9b3b0d","libraryName":"typebox","version":"1.2.17","snippet":"Type.String({ format: \"ipv6\" })","mean":0.0008979705088703207,"optimizeType":"jit","type":"string"},{"id":"24b117c4-e021-461e-83af-1dc7cde76970","libraryName":"zod/v3","version":"4.4.3","snippet":"z.string().ip({ version: \"v6\" })","mean":0.001807296257276137,"optimizeType":"none","type":"string"},{"id":"d1e84203-9907-4435-b63e-da4986542238","libraryName":"joi","version":"18.2.3","snippet":"Joi.string().ip({ version: \"ipv6\" })","mean":0.0028548674627957753,"optimizeType":"none","type":"string"},{"id":"ff71ef7e-90e9-4a09-be8b-2908f9b1b2c7","libraryName":"@sapphire/shapeshift","version":"4.0.0","snippet":"s.string().ipv6()","mean":0.008084431003679065,"optimizeType":"none","type":"string"},{"id":"11cf6808-538e-4c2d-b466-d846191dcd0a","libraryName":"zod/mini","version":"4.4.3","snippet":"z.ipv6()","mean":0.02153630774862247,"optimizeType":"jit","type":"string"},{"id":"2282ae9c-0496-49b5-9f1b-fbba1953a361","libraryName":"zod","version":"4.4.3","snippet":"z.ipv6()","mean":0.024193636893677293,"optimizeType":"jit","type":"string"}]}},"codec":[{"id":"2c6eeb2e-0c7f-4386-8a9f-554f4cc3a560","libraryName":"io-ts","version":"2.2.22","optimizeType":"none","encode":{"snippet":"// const DateFromString = new t.Type(...)\nDateFromString.encode(data)","mean":0.0005250323083833262},"decode":{"snippet":"// const DateFromString = new t.Type(...)\nDateFromString.decode(data)","mean":0.0002573144482562658},"type":"codec"},{"id":"638d6914-517b-4bcf-b318-b0e177188a6f","libraryName":"sury","version":"11.0.0-alpha.8","optimizeType":"jit","encode":{"snippet":"// const encoder = S.encoder(S.date, S.string);\nencoder(data)","mean":0.0005277438986234107},"decode":{"snippet":"// const decoder = S.decoder(S.string, S.date);\ndecoder(data)","mean":0.0002751610184350518},"type":"codec"},{"id":"6412f017-f1a8-4915-a7cf-9bd60e80f36e","libraryName":"zod/mini","version":"4.4.3","optimizeType":"jit","encode":{"snippet":"z.encode(codec, data)","mean":0.0008845954146121383},"decode":{"snippet":"z.decode(codec, data)","mean":0.0005633591301081297},"type":"codec"},{"id":"e7ad15f6-f014-42e7-bccd-834b7a721a55","libraryName":"zod","version":"4.4.3","optimizeType":"jit","encode":{"snippet":"z.codec(...).encode(data)","mean":0.000910351619566489},"decode":{"snippet":"z.codec(...).decode(data)","mean":0.0005409255005209032},"type":"codec"},{"id":"415e0c61-8def-46b4-b0e4-d0c73f8e9ec3","libraryName":"effect","version":"3.21.4","note":"unknown","optimizeType":"none","encode":{"snippet":"Schema.encodeUnknownSync(Schema.Date)(data)","mean":0.0012005702105078273},"decode":{"snippet":"Schema.decodeUnknownSync(Schema.Date)(data)","mean":0.0008258366008941764},"type":"codec","acceptsUnknown":true},{"id":"7738b9a8-2aa6-4e82-9357-95833fd5772f","libraryName":"effect","version":"3.21.4","optimizeType":"none","encode":{"snippet":"Schema.encodeSync(Schema.Date)(data)","mean":0.001206250910717892},"decode":{"snippet":"Schema.decodeSync(Schema.Date)(data)","mean":0.0008424144566638759},"type":"codec"},{"id":"ff468029-2b63-40f6-8248-e63762bcf97e","libraryName":"effect@beta","version":"4.0.0-beta.84","optimizeType":"none","encode":{"snippet":"// const DateFromString = Schema.Date.pipe(...);\nSchema.encodeSync(DateFromString)(data)","mean":0.0025024682937699644},"decode":{"snippet":"// const DateFromString = Schema.Date.pipe(...);\nSchema.decodeSync(DateFromString)(data)","mean":0.001975366625448743},"type":"codec"},{"id":"1f684b00-6a5e-4f45-b8dc-95a5f1b0d787","libraryName":"effect@beta","version":"4.0.0-beta.84","note":"unknown","optimizeType":"none","encode":{"snippet":"// const DateFromString = Schema.Date.pipe(...);\nSchema.encodeUnknownSync(DateFromString)(data)","mean":0.0025306982548334426},"decode":{"snippet":"// const DateFromString = Schema.Date.pipe(...);\nSchema.decodeUnknownSync(DateFromString)(data)","mean":0.001928572968397725},"type":"codec","acceptsUnknown":true},{"id":"9dbbd449-646d-4bbd-a221-ae42d3f73789","libraryName":"typebox","version":"1.2.17","optimizeType":"jit","encode":{"snippet":"// const DateFromString = Type.Codec(...).Decode(...).Encode(...);\nValue.Encode(DateFromString, data)","mean":0.006406712781974044},"decode":{"snippet":"// const DateFromString = Type.Codec(...).Decode(...).Encode(...);\nValue.Decode(DateFromString, data)","mean":0.005882445640536272},"type":"codec","acceptsUnknown":true}]} \ No newline at end of file +{"initialization":[{"id":"bc18703e-5795-4c6b-9b4a-cf01b1d9b779","libraryName":"typia","version":"12.1.1","note":"createIs","snippet":"typia.createIs()","mean":0.000056747153023984133,"optimizeType":"precompiled","type":"initialization"},{"id":"7d70f659-6287-4dd0-aebd-90f73b692f7b","libraryName":"typia","version":"12.1.1","note":"createValidate","snippet":"typia.createValidate()","mean":0.00012666216340515571,"optimizeType":"precompiled","type":"initialization"},{"id":"047906cd-a5a5-497d-bbae-ef4fbc424089","libraryName":"@railway-ts/pipelines","version":"0.1.29","snippet":"object(...)","mean":0.0011074226177692663,"optimizeType":"none","type":"initialization"},{"id":"e7840843-5658-47be-a8bf-50935337304d","libraryName":"io-ts","version":"2.2.22","snippet":"t.type(...)","mean":0.003140438489826612,"optimizeType":"none","type":"initialization"},{"id":"be748ef7-84fd-4b65-8f61-9fe6d98f5420","libraryName":"superstruct","version":"2.0.2","snippet":"object(...)","mean":0.00352837835768541,"optimizeType":"none","type":"initialization"},{"id":"97c0671b-2cad-49e2-9e9d-1bf278c22a0e","libraryName":"sury","version":"11.0.0-alpha.8","snippet":"S.schema(...)","mean":0.005892019686385058,"optimizeType":"jit","type":"initialization"},{"id":"9032970b-9d6f-4462-91f1-e25f9071f5e3","libraryName":"decoders","version":"2.9.3","snippet":"object(...)","mean":0.006845128074436186,"optimizeType":"none","type":"initialization"},{"id":"92f6648d-af19-4eb9-8da6-72bfee4ec574","libraryName":"typebox","version":"1.3.0","snippet":"Type.Object(...)","mean":0.010922902305816596,"optimizeType":"jit","type":"initialization"},{"id":"36fb8059-d1fc-4868-81b9-c246e82d5d0e","libraryName":"@sapphire/shapeshift","version":"4.0.0","snippet":"s.object(...)","mean":0.037484074743233946,"optimizeType":"none","type":"initialization"},{"id":"662e584b-5755-4123-bcf3-753084ba0f7d","libraryName":"ata-validator","version":"0.21.0","snippet":"new Validator({...})","mean":0.0394602755395983,"optimizeType":"jit","type":"initialization"},{"id":"548f67b1-2d1b-4302-9ae0-ee6956c2a7b6","libraryName":"zod/v3","version":"4.4.3","snippet":"z.object(...)","mean":0.0451056264940647,"optimizeType":"none","type":"initialization"},{"id":"a4ea69cd-030d-44fe-949b-0cadade67eb7","libraryName":"valibot","version":"1.4.1","snippet":"v.object(...)","mean":0.06008052850706058,"optimizeType":"none","type":"initialization"},{"id":"5d38d6a3-d222-40e8-92c9-cc36a495cb3b","libraryName":"yup","version":"1.7.1","snippet":"object(...)","mean":0.10584573655800107,"optimizeType":"none","type":"initialization"},{"id":"4afdea72-2458-4aa1-8f45-a799d1da152a","libraryName":"sury","version":"11.0.0-alpha.8","note":"parser","snippet":"S.parser(S.schema(...))","mean":0.1692066467005062,"optimizeType":"jit","type":"initialization"},{"id":"0fb1ad49-522f-41e7-9ec5-676175994405","libraryName":"effect@beta","version":"4.0.0-beta.85","snippet":"Schema.struct(...)","mean":0.1767880393556937,"optimizeType":"none","type":"initialization"},{"id":"05ffd49a-6daf-4b1e-b42b-eb7a91b0dc24","libraryName":"zod/mini","version":"4.4.3","snippet":"z.object(...)","mean":0.21866612262520596,"optimizeType":"jit","type":"initialization"},{"id":"1213fa33-d2f2-4541-ab70-a976a1df60ba","libraryName":"joi","version":"18.2.3","snippet":"object(...)","mean":0.22359006349207194,"optimizeType":"none","type":"initialization"},{"id":"9663d5b6-71ed-4782-b15d-b699494b5d22","libraryName":"effect@beta","version":"4.0.0-beta.85","note":"decodeUnknownOption","snippet":"Schema.decodeUnknownOption(\n Schema.struct(...)\n)","mean":0.2868915745426254,"optimizeType":"none","type":"initialization"},{"id":"542f5993-04bb-4cb7-885e-22c73cba03ee","libraryName":"effect","version":"3.21.4","snippet":"Schema.struct(...)","mean":0.4332167488090127,"optimizeType":"none","type":"initialization"},{"id":"ab4b81e6-7359-4ae1-a56f-69562d79e372","libraryName":"zod","version":"4.4.3","snippet":"z.object(...)","mean":0.5354075034556252,"optimizeType":"jit","type":"initialization"},{"id":"75074a39-642e-4a60-8b11-e5aa501a5cce","libraryName":"effect","version":"3.21.4","note":"decodeUnknownEither","snippet":"Schema.decodeUnknownEither(\n Schema.struct(...)\n)","mean":0.540360823878981,"optimizeType":"none","type":"initialization"},{"id":"114aa795-7d2c-49d8-8055-d6d73ece1f8e","libraryName":"arktype","version":"2.2.1","snippet":"type(...)","mean":0.547671624863118,"optimizeType":"jit","type":"initialization"},{"id":"a66edf89-5ac8-4319-985d-ca3af897e1e3","libraryName":"typebox","version":"1.3.0","note":"schema compile","snippet":"Schema.Compile(Type.Object(...))","mean":0.7447290923305293,"optimizeType":"jit","type":"initialization"},{"id":"d72191be-0353-40a0-8400-194914afe9a2","libraryName":"typebox","version":"1.3.0","note":"compile","snippet":"Compile(Type.Object(...))","mean":0.7485436167664962,"optimizeType":"jit","type":"initialization"},{"id":"e5928545-4e4e-4aa3-a860-3d553795acf6","libraryName":"runtypes","version":"7.0.4","snippet":"Object({...})","mean":1.1216178834080752,"optimizeType":"none","type":"initialization"},{"id":"539b302c-9e99-40b8-83a1-b8e9ca682c21","libraryName":"typebox","version":"1.3.0","note":"script","snippet":"Type.Script(...)","mean":2.23893747203576,"optimizeType":"jit","type":"initialization"},{"id":"6f43cee1-4dbf-45b3-838e-89255ee2ac89","libraryName":"typebox","version":"1.3.0","note":"script compile","snippet":"Schema.Compile(Type.Script(...))","mean":2.783271508333505,"optimizeType":"jit","type":"initialization"},{"id":"0e6bb49e-4aa7-40f8-8646-8fec5e327b34","libraryName":"ajv","version":"8.20.0","snippet":"ajv.compile({...})","mean":3.9993420557768826,"optimizeType":"jit","type":"initialization"}],"parsing":{"valid":[{"id":"d9f1420c-87b1-4262-bfce-959ae0149c35","libraryName":"ata-validator","version":"0.21.0","snippet":"schema.validate(data)","mean":0.00019536053982792945,"optimizeType":"jit","type":"parsing","errorType":"allErrors"},{"id":"0cad5ded-8c0c-4bd3-ad92-489725577b01","libraryName":"typia","version":"12.1.1","note":"createValidate","snippet":"// const validate = typia.createValidate();\nvalidate(data);","mean":0.001145667245609139,"optimizeType":"precompiled","type":"parsing","errorType":"allErrors"},{"id":"7a0b1a33-b0f3-45ef-8cc5-e8a2c3359613","libraryName":"typia","version":"12.1.1","note":"validate","snippet":"typia.validate(data)","mean":0.0013931839850867887,"optimizeType":"precompiled","type":"parsing","errorType":"allErrors"},{"id":"76717879-8481-4642-b4be-c99f64ddab79","libraryName":"sury","version":"11.0.0-alpha.8","note":"safe","snippet":"S.safe(() => parser(data))","mean":0.0025930617977666295,"optimizeType":"jit","type":"parsing","errorType":"allErrors"},{"id":"6e412915-1510-42d6-ac5a-7f1e73ad7288","libraryName":"sury","version":"11.0.0-alpha.8","snippet":"// const parser = S.parser(S.schema(...));\nparser(data);","throws":true,"mean":0.0025957595939210243,"optimizeType":"jit","type":"parsing","errorType":"allErrors"},{"id":"7d3f7d0f-2e39-4e23-a168-71ad61889e32","libraryName":"typebox","version":"1.3.0","note":"compile","snippet":"// const compiled = Compile(schema);\ncompiled.Parse(data);","throws":true,"mean":0.0030932914863582876,"optimizeType":"jit","type":"parsing","errorType":"allErrors"},{"id":"d33f31c3-049f-4cd4-a7ef-514e4a677da2","libraryName":"typebox","version":"1.3.0","note":"schema compile","snippet":"// const compiledSchema = Schema.Compile(schema);\ncompiledSchema.Parse(data);","throws":true,"mean":0.0031757686202872524,"optimizeType":"jit","type":"parsing","errorType":"allErrors"},{"id":"8433db1c-badd-48df-a354-4f954f9dba48","libraryName":"typebox","version":"1.3.0","note":"script compile","snippet":"// const compiledScriptSchema = Schema.Compile(scriptSchema);\ncompiledScriptSchema.Parse(data);","throws":true,"mean":0.0032197571502649504,"optimizeType":"jit","type":"parsing","errorType":"allErrors"},{"id":"af44d060-03d1-4307-afb5-85e2bfdbc225","libraryName":"io-ts","version":"2.2.22","snippet":"schema.decode(data)","mean":0.006351777530061636,"optimizeType":"none","type":"parsing","errorType":"allErrors"},{"id":"381ec751-0415-4419-8cf4-929b7831718f","libraryName":"arktype","version":"2.2.1","snippet":"schema(data)","mean":0.006617698795577342,"optimizeType":"jit","type":"parsing","errorType":"allErrors"},{"id":"e8b0611d-bb30-4590-b88b-3cbb531af6c9","libraryName":"zod","version":"4.4.3","snippet":"schema.safeParse(data)","mean":0.009158833841644308,"optimizeType":"jit","type":"parsing","errorType":"allErrors"},{"id":"167c42b0-770b-41cc-be24-78ca8b580de7","libraryName":"valibot","version":"1.4.1","snippet":"v.safeParse(schema, data)","mean":0.012070206001278483,"optimizeType":"none","type":"parsing","errorType":"allErrors"},{"id":"0e3ab58d-71b3-412b-9e07-f23e94bd49cd","libraryName":"valibot","version":"1.4.1","snippet":"v.safeParse(schema, data, { abortEarly: true })","mean":0.012125442574446537,"optimizeType":"none","type":"parsing","errorType":"abortEarly"},{"id":"381d7cd9-93c0-4ed2-aa9e-140c69f67add","libraryName":"valibot","version":"1.4.1","note":"abortPipeEarly only","snippet":"v.safeParse(schema, data, { abortPipeEarly: true })","mean":0.012146436407587991,"optimizeType":"none","type":"parsing","errorType":"abortEarly"},{"id":"de91de74-9121-4745-b611-e2e55926c201","libraryName":"zod/v3","version":"4.4.3","snippet":"schema.safeParse(data)","mean":0.014046727100334224,"optimizeType":"none","type":"parsing","errorType":"allErrors"},{"id":"2f0a79b5-0c0d-4a77-82d0-c56ca5f75787","libraryName":"zod/mini","version":"4.4.3","note":"jitless","snippet":"schema.safeParse(data, { jitless: true })","mean":0.014953875600020877,"optimizeType":"none","type":"parsing","errorType":"allErrors"},{"id":"e4c2622a-380c-4ce7-ba90-57fdd13c9954","libraryName":"zod/mini","version":"4.4.3","snippet":"schema.safeParse(data)","mean":0.015062786274830224,"optimizeType":"jit","type":"parsing","errorType":"allErrors"},{"id":"cfd6798b-b113-4b04-bade-6b7dec4e983c","libraryName":"decoders","version":"2.9.3","snippet":"schema.decode(data)","mean":0.015609688837552132,"optimizeType":"none","type":"parsing","errorType":"allErrors"},{"id":"640414a2-84cf-41a5-93a0-f527bb80f932","libraryName":"zod","version":"4.4.3","note":"jitless","snippet":"schema.safeParse(data, { jitless: true })","mean":0.015825936855101617,"optimizeType":"none","type":"parsing","errorType":"allErrors"},{"id":"e765ccc8-4fc6-4391-ab7a-4061eb0f16f3","libraryName":"effect@beta","version":"4.0.0-beta.85","snippet":"// const decode = Schema.decodeUnknownOption(schema);\ndecode(data, { errors: \"first\" })","mean":0.016172394921968005,"optimizeType":"none","type":"parsing","errorType":"abortEarly"},{"id":"eeedab6c-b9f3-42da-9fb8-5d24e144c2ad","libraryName":"effect@beta","version":"4.0.0-beta.85","snippet":"// const decode = Schema.decodeUnknownOption(schema);\ndecode(data, { errors: \"all\" })","mean":0.016277200615276065,"optimizeType":"none","type":"parsing","errorType":"allErrors"},{"id":"8198ab52-e949-4543-8d69-18200821eec0","libraryName":"@railway-ts/pipelines","version":"0.1.29","snippet":"validate(data, schema, { abortEarly: true })","mean":0.01709994787961284,"optimizeType":"none","type":"parsing","errorType":"abortEarly"},{"id":"812ac7c5-0868-462c-9a54-82cb9c91589e","libraryName":"@railway-ts/pipelines","version":"0.1.29","snippet":"validate(data, schema)","mean":0.017779411378793988,"optimizeType":"none","type":"parsing","errorType":"allErrors"},{"id":"d9ba262c-2fe0-4770-b5c3-9165eb12fca7","libraryName":"effect","version":"3.21.4","snippet":"// const decodeFirst = Schema.decodeUnknownEither(\n// schema, \n// { errors: \"first\" }\n// );\ndecodeFirst(data)","mean":0.02109718103376311,"optimizeType":"none","type":"parsing","errorType":"abortEarly"},{"id":"79927d96-769f-447e-bb17-c96ae2dd5a33","libraryName":"effect","version":"3.21.4","snippet":"// const decodeAll = Schema.decodeUnknownEither(\n// schema, \n// { errors: \"all\" }\n// );\ndecodeAll(data)","mean":0.021591584065636868,"optimizeType":"none","type":"parsing","errorType":"allErrors"},{"id":"915e5987-6929-4ad1-b6c8-a7b03f650336","libraryName":"@sapphire/shapeshift","version":"4.0.0","snippet":"schema.parse(data)","throws":true,"mean":0.024888784066304123,"optimizeType":"none","type":"parsing","errorType":"allErrors"},{"id":"e936b69f-0b3f-4686-8fff-88ff589ffb59","libraryName":"@sapphire/shapeshift","version":"4.0.0","note":"run","snippet":"schema.run(data)","mean":0.024909899290067542,"optimizeType":"none","type":"parsing","errorType":"allErrors"},{"id":"e78c1527-a912-4a94-b571-47916b923881","libraryName":"joi","version":"18.2.3","snippet":"schema.validate(data, { abortEarly: false })","mean":0.03884963117205846,"optimizeType":"none","type":"parsing","errorType":"allErrors"},{"id":"345c6f57-9e73-4aa6-b481-9cc5728d767a","libraryName":"joi","version":"18.2.3","snippet":"schema.validate(data, { abortEarly: true })","mean":0.038912110704705495,"optimizeType":"none","type":"parsing","errorType":"abortEarly"},{"id":"6f1a5c97-b246-4312-a8a3-f4a16b06ec6a","libraryName":"superstruct","version":"2.0.2","snippet":"const [error] = schema.validate(data);\nfor (const failure of error.failures()) {\n // ...\n}","mean":0.05464703606557807,"optimizeType":"none","type":"parsing","errorType":"allErrors"},{"id":"98b0e11d-f875-4f01-8bc3-b62e1c4c6e6c","libraryName":"superstruct","version":"2.0.2","note":"schema.validate","snippet":"schema.validate(data)","mean":0.054669266291284185,"optimizeType":"none","type":"parsing","errorType":"abortEarly"},{"id":"4e26c766-ffd6-4cb5-9323-ae3ef8d79489","libraryName":"superstruct","version":"2.0.2","snippet":"const [error] = validate(data, schema);\nfor (const failure of error.failures()) {\n // ...\n}","mean":0.054756041778472715,"optimizeType":"none","type":"parsing","errorType":"allErrors"},{"id":"c576c882-b184-41b6-9a29-4a4bdf8fe34d","libraryName":"superstruct","version":"2.0.2","snippet":"validate(data, schema)","mean":0.05487948167050836,"optimizeType":"none","type":"parsing","errorType":"abortEarly"},{"id":"7d4b6201-dbb9-4cbe-9935-eb2a0254a225","libraryName":"runtypes","version":"7.0.4","snippet":"schema.parse(data)","throws":true,"mean":0.07312310953495402,"optimizeType":"none","type":"parsing","errorType":"abortEarly"},{"id":"e113dec1-7577-46b9-b008-c46c672e353f","libraryName":"runtypes","version":"7.0.4","snippet":"schema.inspect(data)","mean":0.07328174432068248,"optimizeType":"none","type":"parsing","errorType":"abortEarly"},{"id":"f78e279d-0853-4d8e-a394-b5952f78a6db","libraryName":"typebox","version":"1.3.0","note":"schema","snippet":"Schema.Parse(schema, data)","throws":true,"mean":0.07893030134177469,"optimizeType":"jit","type":"parsing","errorType":"allErrors"},{"id":"4efcfb10-380b-4240-9503-64199e14cacb","libraryName":"typebox","version":"1.3.0","snippet":"Value.Parse(schema, data)","throws":true,"mean":0.10039174149184066,"optimizeType":"jit","type":"parsing","errorType":"allErrors"},{"id":"5a43658a-dde2-4dce-ad72-e4725ab1313c","libraryName":"yup","version":"1.7.1","snippet":"schema.validateSync(data, { abortEarly: false })","throws":true,"mean":0.1411087836884336,"optimizeType":"none","type":"parsing","errorType":"allErrors"},{"id":"7c352597-e7c1-4506-9934-d9926656608b","libraryName":"yup","version":"1.7.1","snippet":"schema.validateSync(data, { abortEarly: true })","throws":true,"mean":0.14137375346340206,"optimizeType":"none","type":"parsing","errorType":"abortEarly"}],"invalid":[{"id":"d8b167c1-6f3e-487d-ad74-eb00e37b14f9","libraryName":"@railway-ts/pipelines","version":"0.1.29","snippet":"validate(data, schema, { abortEarly: true })","mean":0.0006733188304981503,"optimizeType":"none","type":"parsing","errorType":"abortEarly"},{"id":"3c38f5a9-c70c-40e1-a68f-306bdb08f84c","libraryName":"valibot","version":"1.4.1","snippet":"v.safeParse(schema, data, { abortEarly: true })","mean":0.0007595601867607363,"optimizeType":"none","type":"parsing","errorType":"abortEarly"},{"id":"f832ba08-2840-417f-b441-cfe44c071a47","libraryName":"effect@beta","version":"4.0.0-beta.85","snippet":"// const decode = Schema.decodeUnknownOption(schema);\ndecode(data, { errors: \"first\" })","mean":0.0011884366290246897,"optimizeType":"none","type":"parsing","errorType":"abortEarly"},{"id":"2b7bd030-27fe-4585-b370-4680764cf22b","libraryName":"joi","version":"18.2.3","snippet":"schema.validate(data, { abortEarly: true })","mean":0.003970934559027066,"optimizeType":"none","type":"parsing","errorType":"abortEarly"},{"id":"7cde93a4-cc2f-4ceb-93b3-9f83bcb480d9","libraryName":"io-ts","version":"2.2.22","snippet":"schema.decode(data)","mean":0.005875801756861157,"optimizeType":"none","type":"parsing","errorType":"allErrors"},{"id":"2c4ec1f7-d532-4d77-b7c3-194f04b104a8","libraryName":"typia","version":"12.1.1","note":"createValidate","snippet":"// const validate = typia.createValidate();\nvalidate(data);","mean":0.006469630876815126,"optimizeType":"precompiled","type":"parsing","errorType":"allErrors"},{"id":"63802cbf-0f0c-49c4-8b76-f76c95bfcd97","libraryName":"typia","version":"12.1.1","note":"validate","snippet":"typia.validate(data)","mean":0.006826658988968028,"optimizeType":"precompiled","type":"parsing","errorType":"allErrors"},{"id":"f4f7384b-4374-48d7-b855-e876dc555827","libraryName":"sury","version":"11.0.0-alpha.8","snippet":"// const parser = S.parser(S.schema(...));\nparser(data);","throws":true,"mean":0.0072436913988973475,"optimizeType":"jit","type":"parsing","errorType":"allErrors"},{"id":"622555c8-0e49-42f4-88c8-a0a723644acd","libraryName":"sury","version":"11.0.0-alpha.8","note":"safe","snippet":"S.safe(() => parser(data))","mean":0.007403480380836731,"optimizeType":"jit","type":"parsing","errorType":"allErrors"},{"id":"2dd9b8e2-9efb-4448-809d-ec3bbda6d859","libraryName":"effect","version":"3.21.4","snippet":"// const decodeFirst = Schema.decodeUnknownEither(\n// schema, \n// { errors: \"first\" }\n// );\ndecodeFirst(data)","mean":0.009323059443787215,"optimizeType":"none","type":"parsing","errorType":"abortEarly"},{"id":"17c5fdab-2764-40dd-b2fd-7b6d6086a976","libraryName":"superstruct","version":"2.0.2","snippet":"validate(data, schema)","mean":0.010397401640707618,"optimizeType":"none","type":"parsing","errorType":"abortEarly"},{"id":"18ed87c6-82e4-4058-8a7e-29d62e42c548","libraryName":"superstruct","version":"2.0.2","note":"schema.validate","snippet":"schema.validate(data)","mean":0.010453889064279307,"optimizeType":"none","type":"parsing","errorType":"abortEarly"},{"id":"d790ea54-3681-45cb-9eaa-52ebe79c0c61","libraryName":"effect@beta","version":"4.0.0-beta.85","snippet":"// const decode = Schema.decodeUnknownOption(schema);\ndecode(data, { errors: \"all\" })","mean":0.020524247234362605,"optimizeType":"none","type":"parsing","errorType":"allErrors"},{"id":"84197421-acaa-46a2-9800-c075784c6d3b","libraryName":"valibot","version":"1.4.1","note":"abortPipeEarly only","snippet":"v.safeParse(schema, data, { abortPipeEarly: true })","mean":0.028527341919850638,"optimizeType":"none","type":"parsing","errorType":"abortEarly"},{"id":"fefdae63-2392-47b4-ad17-4fd53eab9779","libraryName":"valibot","version":"1.4.1","snippet":"v.safeParse(schema, data)","mean":0.02858843616351943,"optimizeType":"none","type":"parsing","errorType":"allErrors"},{"id":"2173fe1a-6440-40f4-bf40-2f365500bc54","libraryName":"@railway-ts/pipelines","version":"0.1.29","snippet":"validate(data, schema)","mean":0.030556709261467387,"optimizeType":"none","type":"parsing","errorType":"allErrors"},{"id":"d474475c-35ba-4056-b51a-edc809207a7c","libraryName":"effect","version":"3.21.4","snippet":"// const decodeAll = Schema.decodeUnknownEither(\n// schema, \n// { errors: \"all\" }\n// );\ndecodeAll(data)","mean":0.03259446207749882,"optimizeType":"none","type":"parsing","errorType":"allErrors"},{"id":"4738707e-9bd2-461e-9028-4730c947d08d","libraryName":"ata-validator","version":"0.21.0","snippet":"schema.validate(data)","mean":0.03495201356118111,"optimizeType":"jit","type":"parsing","errorType":"allErrors"},{"id":"7a7462bb-0456-4c58-9e9b-dfdc1c6ef0a9","libraryName":"zod/v3","version":"4.4.3","snippet":"schema.safeParse(data)","mean":0.04004487123538614,"optimizeType":"none","type":"parsing","errorType":"allErrors"},{"id":"49cefcfa-dff0-4433-9b69-d7be63a2912f","libraryName":"joi","version":"18.2.3","snippet":"schema.validate(data, { abortEarly: false })","mean":0.061572836093832496,"optimizeType":"none","type":"parsing","errorType":"allErrors"},{"id":"f2e704ec-9f06-48af-9024-802b4755e86a","libraryName":"zod/mini","version":"4.4.3","note":"jitless","snippet":"schema.safeParse(data, { jitless: true })","mean":0.06582014388204663,"optimizeType":"none","type":"parsing","errorType":"allErrors"},{"id":"9df6ca2b-73e0-4460-97e5-bdac1e4ce52f","libraryName":"zod/mini","version":"4.4.3","snippet":"schema.safeParse(data)","mean":0.06583842425440219,"optimizeType":"jit","type":"parsing","errorType":"allErrors"},{"id":"37cd6f1f-cede-44ce-8abb-2cfb7ce68a01","libraryName":"decoders","version":"2.9.3","snippet":"schema.decode(data)","mean":0.07726456093051502,"optimizeType":"none","type":"parsing","errorType":"allErrors"},{"id":"e36f797c-8a36-4a0a-b0ac-73e4986cb4ee","libraryName":"zod","version":"4.4.3","snippet":"schema.safeParse(data)","mean":0.07779457580706728,"optimizeType":"jit","type":"parsing","errorType":"allErrors"},{"id":"87c03f13-1f6b-4b35-bb59-669dd82be2a3","libraryName":"superstruct","version":"2.0.2","snippet":"const [error] = validate(data, schema);\nfor (const failure of error.failures()) {\n // ...\n}","mean":0.08146391772564736,"optimizeType":"none","type":"parsing","errorType":"allErrors"},{"id":"1ab33e57-7448-4a52-9938-b1f6b8793314","libraryName":"typebox","version":"1.3.0","note":"schema compile","snippet":"// const compiledSchema = Schema.Compile(schema);\ncompiledSchema.Parse(data);","throws":true,"mean":0.08154128538812107,"optimizeType":"jit","type":"parsing","errorType":"allErrors"},{"id":"302653de-faab-41d4-ac6a-5cc1ea046fd0","libraryName":"superstruct","version":"2.0.2","snippet":"const [error] = schema.validate(data);\nfor (const failure of error.failures()) {\n // ...\n}","mean":0.08203661468417242,"optimizeType":"none","type":"parsing","errorType":"allErrors"},{"id":"fe6607a5-a257-4e02-b859-a968bc57cc2b","libraryName":"zod","version":"4.4.3","note":"jitless","snippet":"schema.safeParse(data, { jitless: true })","mean":0.08359857724460769,"optimizeType":"none","type":"parsing","errorType":"allErrors"},{"id":"272c561a-78d9-4c14-a45b-cd3769087cab","libraryName":"typebox","version":"1.3.0","note":"schema","snippet":"Schema.Parse(schema, data)","throws":true,"mean":0.08536618079383812,"optimizeType":"jit","type":"parsing","errorType":"allErrors"},{"id":"69c7118c-2a8c-4473-94af-c572ffa922a4","libraryName":"typebox","version":"1.3.0","note":"compile","snippet":"// const compiled = Compile(schema);\ncompiled.Parse(data);","throws":true,"mean":0.08942409845296143,"optimizeType":"jit","type":"parsing","errorType":"allErrors"},{"id":"54e9600b-ebd9-4e81-9508-63eaba7458d6","libraryName":"typebox","version":"1.3.0","note":"script compile","snippet":"// const compiledScriptSchema = Schema.Compile(scriptSchema);\ncompiledScriptSchema.Parse(data);","throws":true,"mean":0.09051311204633158,"optimizeType":"jit","type":"parsing","errorType":"allErrors"},{"id":"d6c1ef39-404b-4df3-91fd-f38db61a4212","libraryName":"typebox","version":"1.3.0","snippet":"Value.Parse(schema, data)","throws":true,"mean":0.0969628699825674,"optimizeType":"jit","type":"parsing","errorType":"allErrors"},{"id":"c9810f1a-002a-46db-bc14-efe83819ae4a","libraryName":"yup","version":"1.7.1","snippet":"schema.validateSync(data, { abortEarly: true })","throws":true,"mean":0.09754353891922866,"optimizeType":"none","type":"parsing","errorType":"abortEarly"},{"id":"e2029394-2cf8-4cde-9cf5-6fbb4e56de3a","libraryName":"arktype","version":"2.2.1","snippet":"schema(data)","mean":0.0991533074558753,"optimizeType":"jit","type":"parsing","errorType":"allErrors"},{"id":"95563e74-da1a-4d0c-9fe7-9437590b6e02","libraryName":"runtypes","version":"7.0.4","snippet":"schema.inspect(data)","mean":0.1951991245364103,"optimizeType":"none","type":"parsing","errorType":"abortEarly"},{"id":"d524c064-3dfd-4ed0-bd67-dbf5d900313d","libraryName":"runtypes","version":"7.0.4","snippet":"schema.parse(data)","throws":true,"mean":0.2122214101694851,"optimizeType":"none","type":"parsing","errorType":"abortEarly"},{"id":"00984fa5-2500-4199-b21f-c8f8259b1fc2","libraryName":"@sapphire/shapeshift","version":"4.0.0","note":"run","snippet":"schema.run(data)","mean":0.2766612965421801,"optimizeType":"none","type":"parsing","errorType":"allErrors"},{"id":"b9f8d277-b850-4982-bb9d-08c5c52a0a1d","libraryName":"@sapphire/shapeshift","version":"4.0.0","snippet":"schema.parse(data)","throws":true,"mean":0.27723631624168454,"optimizeType":"none","type":"parsing","errorType":"allErrors"},{"id":"20b466bd-3b90-4c9c-a557-d35d52d633e4","libraryName":"yup","version":"1.7.1","snippet":"schema.validateSync(data, { abortEarly: false })","throws":true,"mean":0.532233455029271,"optimizeType":"none","type":"parsing","errorType":"allErrors"}]},"validation":{"valid":[{"id":"fc4786a4-1537-4550-bb4a-67a392c86280","libraryName":"ata-validator","version":"0.21.0","snippet":"schema.isValidObject(data)","mean":0.0001468811906013961,"optimizeType":"jit","type":"validation"},{"id":"1544bdd0-e017-4b8e-a44f-0e02c6d3acfc","libraryName":"typia","version":"12.1.1","note":"createIs","snippet":"// const is = typia.createIs();\nis(data);","mean":0.001109668234998089,"optimizeType":"precompiled","type":"validation"},{"id":"8048e884-b6eb-4fb8-a1d8-37b77b0b04b3","libraryName":"typia","version":"12.1.1","note":"is","snippet":"typia.is(data)","mean":0.0011666968106034603,"optimizeType":"precompiled","type":"validation"},{"id":"2c6c65b9-70c1-49ea-a91b-22d8e3c7817c","libraryName":"sury","version":"11.0.0-alpha.8","snippet":"S.is(S.schema(...), data)","mean":0.0029621535547241476,"optimizeType":"jit","type":"validation"},{"id":"500ddc8e-d740-4950-846f-af379cd99baa","libraryName":"typebox","version":"1.3.0","note":"compile","snippet":"// const compiled = Compile(schema);\ncompiled.Check(data);","mean":0.0031235012212895564,"optimizeType":"jit","type":"validation"},{"id":"144d81b6-e13e-4e94-80c5-e9b9f77315d9","libraryName":"typebox","version":"1.3.0","note":"schema compile","snippet":"// const compiledSchema = Schema.Compile(schema);\ncompiledSchema.Check(data);","mean":0.0031303795042134596,"optimizeType":"jit","type":"validation"},{"id":"d2e99ae7-9a7c-45d0-b39c-ba8fcf4f112d","libraryName":"typebox","version":"1.3.0","note":"script compile","snippet":"// const compiledScriptSchema = Schema.Compile(scriptSchema);\ncompiledScriptSchema.Check(data);","mean":0.0032064797495095004,"optimizeType":"jit","type":"validation"},{"id":"34e927e0-44c9-48a2-ba70-0e44deaa5ce8","libraryName":"io-ts","version":"2.2.22","snippet":"schema.is(data)","mean":0.0032756079426905223,"optimizeType":"none","type":"validation"},{"id":"f0c660b6-ad12-4b54-befa-530e9a5ca7a7","libraryName":"ajv","version":"8.20.0","note":"compile","snippet":"// const validate = ajv.compile(schema);\nvalidate(data);","mean":0.0034697644932058136,"optimizeType":"jit","type":"validation"},{"id":"86017d37-420d-453f-b120-7c1576768472","libraryName":"ajv","version":"8.20.0","note":"validate","snippet":"ajv.validate(schema, data)","mean":0.0035112862048633548,"optimizeType":"jit","type":"validation"},{"id":"7d713dea-447e-4126-ac59-240c4fa80483","libraryName":"arktype","version":"2.2.1","snippet":"schema.allows(data)","mean":0.006604247744656178,"optimizeType":"jit","type":"validation"},{"id":"c316c79f-0618-4824-ac40-1cb6ea3c0889","libraryName":"valibot","version":"1.4.1","snippet":"v.is(schema, data)","mean":0.012305044691632539,"optimizeType":"none","type":"validation"},{"id":"e2130694-6534-4682-bb48-0849ce72a860","libraryName":"effect@beta","version":"4.0.0-beta.85","snippet":"// const is = Schema.is(schema);\nis(data);","mean":0.01597594625768571,"optimizeType":"none","type":"validation"},{"id":"251eb2f8-eaf9-43e9-912b-e2dcaf2d17bd","libraryName":"@railway-ts/pipelines","version":"0.1.29","snippet":"is(data, schema)","mean":0.01722497126911881,"optimizeType":"none","type":"validation"},{"id":"d25e2c47-bb4e-430f-ba3f-24afc58f932d","libraryName":"effect","version":"3.21.4","snippet":"// const is = Schema.is(schema);\nis(data);","mean":0.022493612928575164,"optimizeType":"none","type":"validation"},{"id":"b0a5c006-ae5d-4ff4-9add-0f4fbf19bf8b","libraryName":"@sapphire/shapeshift","version":"4.0.0","snippet":"schema.is(data)","mean":0.02489124634723202,"optimizeType":"none","type":"validation"},{"id":"3240f9d8-c346-4347-b399-411a1c8503cb","libraryName":"superstruct","version":"2.0.2","note":"schema.is","snippet":"schema.is(data)","mean":0.055565150525085316,"optimizeType":"none","type":"validation"},{"id":"9d1ecd85-af21-4729-88f6-01cf87cfc60f","libraryName":"superstruct","version":"2.0.2","snippet":"is(data, schema)","mean":0.055710596991643296,"optimizeType":"none","type":"validation"},{"id":"19105028-e62f-433a-b1d8-d6bcc556c89c","libraryName":"runtypes","version":"7.0.4","snippet":"schema.guard(data)","mean":0.07315537966349799,"optimizeType":"none","type":"validation"},{"id":"a6b5411c-8794-4a12-9ac9-1959ae322b69","libraryName":"typebox","version":"1.3.0","snippet":"Value.Check(schema, data)","mean":0.07952963957374577,"optimizeType":"jit","type":"validation"},{"id":"6e00683a-c454-4dd7-8f45-5e3ad52e459e","libraryName":"typebox","version":"1.3.0","note":"schema","snippet":"Schema.Check(schema, data)","mean":0.07981320007979993,"optimizeType":"jit","type":"validation"},{"id":"936b7327-9f84-42d7-8c46-dfdf9f5dabb3","libraryName":"yup","version":"1.7.1","snippet":"schema.isValidSync(data)","mean":0.14543649287375993,"optimizeType":"none","type":"validation"}],"invalid":[{"id":"d8076d36-cab8-453f-8623-a4a84ff58a91","libraryName":"typia","version":"12.1.1","note":"createIs","snippet":"// const is = typia.createIs();\nis(data);","mean":0.00004749555719417163,"optimizeType":"precompiled","type":"validation"},{"id":"9f35952b-5d2d-4284-a2fe-909ce72472ff","libraryName":"ata-validator","version":"0.21.0","snippet":"schema.isValidObject(data)","mean":0.00004823511458346887,"optimizeType":"jit","type":"validation"},{"id":"ea24c81e-cb93-4265-97e4-4653c4e7ab41","libraryName":"typia","version":"12.1.1","note":"is","snippet":"typia.is(data)","mean":0.00006215621353501498,"optimizeType":"precompiled","type":"validation"},{"id":"1206ba6e-9e41-403a-9cf0-5b468dd08fc7","libraryName":"typebox","version":"1.3.0","note":"compile","snippet":"// const compiled = Compile(schema);\ncompiled.Check(data);","mean":0.00006459896299256778,"optimizeType":"jit","type":"validation"},{"id":"2ebc9b08-555d-42b9-aee6-f55ed6eb33dc","libraryName":"typebox","version":"1.3.0","note":"schema compile","snippet":"// const compiledSchema = Schema.Compile(schema);\ncompiledSchema.Check(data);","mean":0.00006514211403017816,"optimizeType":"jit","type":"validation"},{"id":"d755e924-6bec-4a0c-add8-83a13d58fd40","libraryName":"ajv","version":"8.20.0","note":"compile","snippet":"// const validate = ajv.compile(schema);\nvalidate(data);","mean":0.00008135364004237939,"optimizeType":"jit","type":"validation"},{"id":"1ab9e078-bbd2-4220-8c35-c62bd87d42de","libraryName":"typebox","version":"1.3.0","note":"script compile","snippet":"// const compiledScriptSchema = Schema.Compile(scriptSchema);\ncompiledScriptSchema.Check(data);","mean":0.0000906133918288575,"optimizeType":"jit","type":"validation"},{"id":"5f4cd0ff-d990-4c85-aac0-b0b73e65a4e4","libraryName":"ajv","version":"8.20.0","note":"validate","snippet":"ajv.validate(schema, data)","mean":0.00011880733929912851,"optimizeType":"jit","type":"validation"},{"id":"dc271445-ee01-4f63-ad7d-05d99a6be367","libraryName":"io-ts","version":"2.2.22","snippet":"schema.is(data)","mean":0.00012541413339493335,"optimizeType":"none","type":"validation"},{"id":"b1976ee3-1d81-40ee-9d04-dadf00a7bed7","libraryName":"@railway-ts/pipelines","version":"0.1.29","snippet":"is(data, schema)","mean":0.0006825996376768388,"optimizeType":"none","type":"validation"},{"id":"371dbb5d-9122-43e6-9423-e70895ba5da6","libraryName":"arktype","version":"2.2.1","snippet":"schema.allows(data)","mean":0.000757980190191956,"optimizeType":"jit","type":"validation"},{"id":"ea9deaa1-a98d-4c0d-929e-4a699ab19b5d","libraryName":"effect","version":"3.21.4","snippet":"// const is = Schema.is(schema);\nis(data);","mean":0.0007609725654199702,"optimizeType":"none","type":"validation"},{"id":"5f86d14a-e1b4-4725-989d-d10164d7685c","libraryName":"valibot","version":"1.4.1","snippet":"v.is(schema, data)","mean":0.0007653338024824179,"optimizeType":"none","type":"validation"},{"id":"d8f4869d-d94c-4734-8356-e18d14ba85ac","libraryName":"effect@beta","version":"4.0.0-beta.85","snippet":"// const is = Schema.is(schema);\nis(data);","mean":0.0011675706834951896,"optimizeType":"none","type":"validation"},{"id":"f21a9a39-01d4-423c-9198-1dba8e545f5b","libraryName":"typebox","version":"1.3.0","snippet":"Value.Check(schema, data)","mean":0.004521603501523773,"optimizeType":"jit","type":"validation"},{"id":"7b65c7f6-b8b2-4d92-b7d4-5f6d82364cf1","libraryName":"typebox","version":"1.3.0","note":"schema","snippet":"Schema.Check(schema, data)","mean":0.004787226023267538,"optimizeType":"jit","type":"validation"},{"id":"8d86a8b9-3476-4d0c-abf4-36180dead5f0","libraryName":"sury","version":"11.0.0-alpha.8","snippet":"S.is(S.schema(...), data)","mean":0.007893948287021927,"optimizeType":"jit","type":"validation"},{"id":"b222696d-2899-4fb6-a8eb-5fbac3db93a5","libraryName":"superstruct","version":"2.0.2","snippet":"is(data, schema)","mean":0.011152008988513032,"optimizeType":"none","type":"validation"},{"id":"82b1ea19-f138-4657-823d-d36bdd85a729","libraryName":"superstruct","version":"2.0.2","note":"schema.is","snippet":"schema.is(data)","mean":0.01131676663837629,"optimizeType":"none","type":"validation"},{"id":"48f5a427-ab70-474e-a48d-2d298b06251c","libraryName":"yup","version":"1.7.1","snippet":"schema.isValidSync(data)","mean":0.09685583903146995,"optimizeType":"none","type":"validation"},{"id":"ed0060de-6eb4-4353-998c-9beb7edcf56a","libraryName":"runtypes","version":"7.0.4","snippet":"schema.guard(data)","mean":0.19988574395362835,"optimizeType":"none","type":"validation"},{"id":"a88588d5-3604-46fb-9b14-ba1e3ecff20d","libraryName":"@sapphire/shapeshift","version":"4.0.0","snippet":"schema.is(data)","mean":0.28156951745495423,"optimizeType":"none","type":"validation"}]},"standard":{"valid":[{"id":"9e36fbb9-c6f0-4f93-b2a0-b519f8e1bcd4","libraryName":"ata-validator","version":"0.21.0","snippet":"upfetch(url, { schema })","mean":0.00020385719804294708,"optimizeType":"jit","errorType":"allErrors","type":"standard"},{"id":"d52714e7-c328-4f6d-a9fe-0d5757dac9e8","libraryName":"typia","version":"12.1.1","snippet":"// const validate = typia.createValidate();\nupfetch(url, { schema: validate })","mean":0.0011409330626257152,"optimizeType":"precompiled","errorType":"allErrors","type":"standard"},{"id":"3598e292-2eb1-4dbe-8eca-a6b017c5b202","libraryName":"sury","version":"11.0.0-alpha.8","snippet":"upfetch(url, { schema })","mean":0.002890028475400007,"optimizeType":"jit","errorType":"allErrors","type":"standard"},{"id":"731029a5-e542-4412-b28d-6cb493884923","libraryName":"arktype","version":"2.2.1","snippet":"upfetch(url, { schema })","mean":0.006658478323405316,"optimizeType":"jit","errorType":"allErrors","type":"standard"},{"id":"6dda9098-2f72-4874-ae01-78c917a4e29c","libraryName":"zod","version":"4.4.3","snippet":"upfetch(url, { schema })","mean":0.009243564547436337,"optimizeType":"jit","errorType":"allErrors","type":"standard"},{"id":"aadcc409-8294-4063-95e8-8b2c2aab77c1","libraryName":"valibot","version":"1.4.1","snippet":"upfetch(url, { schema })","mean":0.012101513595933758,"optimizeType":"none","errorType":"allErrors","type":"standard"},{"id":"40c252a5-b697-4bab-aa7b-6872c1073986","libraryName":"zod/v3","version":"4.4.3","snippet":"upfetch(url, { schema })","mean":0.014383439813019374,"optimizeType":"none","errorType":"allErrors","type":"standard"},{"id":"c4d4e9c3-5ce0-4b51-8524-ce87d014b604","libraryName":"zod/mini","version":"4.4.3","snippet":"upfetch(url, { schema })","mean":0.015005278449671916,"optimizeType":"jit","errorType":"allErrors","type":"standard"},{"id":"366453dd-f668-44e1-802e-9b4545a36259","libraryName":"decoders","version":"2.9.3","snippet":"upfetch(url, { schema })","mean":0.015400546979195582,"optimizeType":"none","errorType":"allErrors","type":"standard"},{"id":"4d4a4250-7318-4b76-99ed-7cddff86926a","libraryName":"effect@beta","version":"4.0.0-beta.85","snippet":"// const standardSchema = Schema.toStandardSchemaV1(\n// schema, \n// { parseOptions: { errors: \"first\" } }\n// );\nupfetch(url, { schema: standardSchema });","mean":0.01696651133355349,"optimizeType":"none","errorType":"abortEarly","type":"standard"},{"id":"45af22ab-3aab-42ee-9d86-30981cbffa49","libraryName":"effect@beta","version":"4.0.0-beta.85","snippet":"// const standardSchema = Schema.toStandardSchemaV1(\n// schema, \n// { parseOptions: { errors: \"all\" } }\n// );\nupfetch(url, { schema: standardSchema });","mean":0.01721946046175271,"optimizeType":"none","errorType":"allErrors","type":"standard"},{"id":"a4397903-dca9-48a8-8128-2b8392cedccc","libraryName":"@railway-ts/pipelines","version":"0.1.29","snippet":"upfetch(url, { schema })","mean":0.01724003032496144,"optimizeType":"none","errorType":"allErrors","type":"standard"},{"id":"a3b6acad-fd59-46c3-89ee-57fcb889321b","libraryName":"effect","version":"3.21.4","snippet":"// const standardSchema = Schema.standardSchemaV1(\n// schema, \n// { errors: \"first\" }\n// );\nupfetch(url, { schema: standardSchema });","mean":0.019687912487942456,"optimizeType":"none","errorType":"abortEarly","type":"standard"},{"id":"012e6ab1-914f-40f2-aef9-a1a3c23fc718","libraryName":"effect","version":"3.21.4","snippet":"// const standardSchema = Schema.standardSchemaV1(\n// schema, \n// { errors: \"all\" }\n// );\nupfetch(url, { schema: standardSchema });","mean":0.019836373792467027,"optimizeType":"none","errorType":"allErrors","type":"standard"},{"id":"f1496cbf-136c-4d5e-b734-61b36f3ec000","libraryName":"joi","version":"18.2.3","snippet":"upfetch(url, { schema })","mean":0.03946388879241748,"optimizeType":"none","errorType":"allErrors","type":"standard"},{"id":"b9f2d337-4671-46dc-9530-d32d4469d234","libraryName":"yup","version":"1.7.1","snippet":"upfetch(url, { schema })","mean":0.14357156876256297,"optimizeType":"none","errorType":"allErrors","type":"standard"}],"invalid":[{"id":"cafdec1a-10bf-475f-92be-4d727a9d60b6","libraryName":"joi","version":"18.2.3","snippet":"upfetch(url, { schema })","mean":0.004511014782569414,"optimizeType":"none","errorType":"allErrors","type":"standard"},{"id":"d343387b-9db9-4a56-8ae5-dbb7e2858e07","libraryName":"effect","version":"3.21.4","snippet":"// const standardSchema = Schema.standardSchemaV1(\n// schema, \n// { errors: \"first\" }\n// );\nupfetch(url, { schema: standardSchema });","mean":0.00479201942198647,"optimizeType":"none","errorType":"abortEarly","type":"standard"},{"id":"9c199deb-47a4-4b3b-b6e1-df95bcf12b25","libraryName":"sury","version":"11.0.0-alpha.8","snippet":"upfetch(url, { schema })","mean":0.007928116296953199,"optimizeType":"jit","errorType":"allErrors","type":"standard"},{"id":"188be55f-53a8-4bab-b0dd-0c6a1cdef260","libraryName":"typia","version":"12.1.1","snippet":"// const validate = typia.createValidate();\nupfetch(url, { schema: validate })","mean":0.010735701711237767,"optimizeType":"precompiled","errorType":"allErrors","type":"standard"},{"id":"4f51b355-f148-4f15-b379-a1ef1568a424","libraryName":"valibot","version":"1.4.1","snippet":"upfetch(url, { schema })","mean":0.028333795630975822,"optimizeType":"none","errorType":"allErrors","type":"standard"},{"id":"90b05a0c-de17-43f1-881a-4419c71ecbc0","libraryName":"@railway-ts/pipelines","version":"0.1.29","snippet":"upfetch(url, { schema })","mean":0.03066116179672281,"optimizeType":"none","errorType":"allErrors","type":"standard"},{"id":"96185666-0e4f-451b-8bba-7cfa698d1914","libraryName":"effect@beta","version":"4.0.0-beta.85","snippet":"// const standardSchema = Schema.toStandardSchemaV1(\n// schema, \n// { parseOptions: { errors: \"first\" } }\n// );\nupfetch(url, { schema: standardSchema });","mean":0.031195642095072633,"optimizeType":"none","errorType":"abortEarly","type":"standard"},{"id":"2e81d0ad-4ef5-48b5-913a-65bfeb7947aa","libraryName":"effect@beta","version":"4.0.0-beta.85","snippet":"// const standardSchema = Schema.toStandardSchemaV1(\n// schema, \n// { parseOptions: { errors: \"all\" } }\n// );\nupfetch(url, { schema: standardSchema });","mean":0.031236348753671265,"optimizeType":"none","errorType":"allErrors","type":"standard"},{"id":"f15ffeea-4386-4545-8192-adc8307e3e27","libraryName":"zod/v3","version":"4.4.3","snippet":"upfetch(url, { schema })","mean":0.03480897253645857,"optimizeType":"none","errorType":"allErrors","type":"standard"},{"id":"7245d9b3-4209-4506-968f-746ee4e078c5","libraryName":"ata-validator","version":"0.21.0","snippet":"upfetch(url, { schema })","mean":0.042184672909804495,"optimizeType":"jit","errorType":"allErrors","type":"standard"},{"id":"312552df-044c-48ea-b78f-6ad7edf5fb4d","libraryName":"zod/mini","version":"4.4.3","snippet":"upfetch(url, { schema })","mean":0.06494499551890867,"optimizeType":"jit","errorType":"allErrors","type":"standard"},{"id":"005be990-4b1a-46b3-857d-8fe239e7945d","libraryName":"zod","version":"4.4.3","snippet":"upfetch(url, { schema })","mean":0.06724561488803621,"optimizeType":"jit","errorType":"allErrors","type":"standard"},{"id":"516971e9-2c1b-41b5-8ef1-59cac36f0798","libraryName":"effect","version":"3.21.4","snippet":"// const standardSchema = Schema.standardSchemaV1(\n// schema, \n// { errors: \"all\" }\n// );\nupfetch(url, { schema: standardSchema });","mean":0.07553112575528428,"optimizeType":"none","errorType":"allErrors","type":"standard"},{"id":"142dbf8d-1f1a-4745-857e-f104635e9482","libraryName":"decoders","version":"2.9.3","snippet":"upfetch(url, { schema })","mean":0.08284520226109762,"optimizeType":"none","errorType":"allErrors","type":"standard"},{"id":"132cd2d4-de57-4865-976d-39d67e8a317e","libraryName":"arktype","version":"2.2.1","snippet":"upfetch(url, { schema })","mean":0.0977047454811961,"optimizeType":"jit","errorType":"allErrors","type":"standard"},{"id":"4cdc8636-98de-4d7d-9f20-a79cc5efa9e4","libraryName":"yup","version":"1.7.1","snippet":"upfetch(url, { schema })","mean":0.5562499571746601,"optimizeType":"none","errorType":"allErrors","type":"standard"}]},"string":{"date-time":{"valid":[{"id":"b1455ffd-b881-4ca0-bc94-81ba052ced95","libraryName":"sury","version":"11.0.0-alpha.8","snippet":"S.isoDateTime","mean":0.0001077701144009087,"optimizeType":"jit","type":"string"},{"id":"83e9b8c2-bcde-4c8a-97c1-c8ab9bdb61a4","libraryName":"typia","version":"12.1.1","snippet":"string & tags.Format<\"date-time\">","mean":0.00011794665520745073,"optimizeType":"precompiled","type":"string"},{"id":"33e8d544-98b7-4617-8fb0-fe38e996dac3","libraryName":"arktype","version":"2.2.1","snippet":"type(\"string.date.iso\")","mean":0.0002534700236236545,"optimizeType":"jit","type":"string"},{"id":"4c67f8db-bec0-49ce-9e57-628fc1525463","libraryName":"zod/mini","version":"4.4.3","snippet":"z.iso.datetime()","mean":0.00025921315148967107,"optimizeType":"jit","type":"string"},{"id":"f46c5e47-02dd-4b3f-ad17-bce8027ca560","libraryName":"zod","version":"4.4.3","snippet":"z.iso.datetime()","mean":0.0002646784900305324,"optimizeType":"jit","type":"string"},{"id":"0eb228e7-6213-42c1-ade9-f0a27e933d4a","libraryName":"ata-validator","version":"0.21.0","snippet":"{ type: \"string\", format: \"date-time\" }","mean":0.00034733623741020766,"optimizeType":"jit","type":"string"},{"id":"dc08727e-0c17-47b1-86c7-512da04b7bf5","libraryName":"@railway-ts/pipelines","version":"0.1.29","snippet":"chain(string(), isoDateTime())","mean":0.0014489284389546382,"optimizeType":"none","type":"string"},{"id":"6e762b4b-55d0-405b-9b14-70a59b238109","libraryName":"zod/v3","version":"4.4.3","snippet":"z.string().datetime()","mean":0.0015161152716658961,"optimizeType":"none","type":"string"},{"id":"51b46fef-f5d5-4ffd-add9-dd09f00156de","libraryName":"yup","version":"1.7.1","snippet":"yup.string().datetime()","mean":0.0019871427103773875,"optimizeType":"none","type":"string"},{"id":"df01b79d-ed74-4220-ace8-3891a043d847","libraryName":"typebox","version":"1.3.0","snippet":"Type.String({ format: \"date-time\" })","mean":0.002167047243734671,"optimizeType":"jit","type":"string"},{"id":"6a43da49-4d48-4874-b8b1-36f480c5da70","libraryName":"joi","version":"18.2.3","snippet":"Joi.string().isoDate()","mean":0.004356228827699907,"optimizeType":"none","type":"string"}],"invalid":[{"id":"36faf4f8-cbf0-4757-9ff0-e4943a3d5dc0","libraryName":"ata-validator","version":"0.21.0","snippet":"{ type: \"string\", format: \"date-time\" }","mean":0.00007797773712310006,"optimizeType":"jit","type":"string"},{"id":"b2aaae60-e2d7-4a00-a288-9a253946fe60","libraryName":"typia","version":"12.1.1","snippet":"string & tags.Format<\"date-time\">","mean":0.00007803885694846255,"optimizeType":"precompiled","type":"string"},{"id":"b3703bb4-7e9c-419b-bb0b-bd523a405149","libraryName":"arktype","version":"2.2.1","snippet":"type(\"string.date.iso\")","mean":0.0000974084853695275,"optimizeType":"jit","type":"string"},{"id":"6a6a6312-167e-4acd-ac41-6d24be18a6b6","libraryName":"@railway-ts/pipelines","version":"0.1.29","snippet":"chain(string(), isoDateTime())","mean":0.00017009090882741585,"optimizeType":"none","type":"string"},{"id":"81c322a6-0b83-4fff-b448-b551c301dbf8","libraryName":"typebox","version":"1.3.0","snippet":"Type.String({ format: \"date-time\" })","mean":0.0009799790990084735,"optimizeType":"jit","type":"string"},{"id":"208e5053-2506-4d75-88db-a3b5690807d4","libraryName":"joi","version":"18.2.3","snippet":"Joi.string().isoDate()","mean":0.0021198703021063324,"optimizeType":"none","type":"string"},{"id":"b746cc0f-c363-4d6c-a086-84a26e85f073","libraryName":"zod/v3","version":"4.4.3","snippet":"z.string().datetime()","mean":0.002556788315996979,"optimizeType":"none","type":"string"},{"id":"6297a7dc-ecca-43c1-9a2c-6be97566ecfe","libraryName":"sury","version":"11.0.0-alpha.8","snippet":"S.isoDateTime","mean":0.006888146483264843,"optimizeType":"jit","type":"string"},{"id":"1c46a7f0-e386-414d-a1b8-0d877042dc84","libraryName":"zod/mini","version":"4.4.3","snippet":"z.iso.datetime()","mean":0.011123070753245467,"optimizeType":"jit","type":"string"},{"id":"cc588c36-6767-420b-af2a-fb571ab70551","libraryName":"zod","version":"4.4.3","snippet":"z.iso.datetime()","mean":0.015320837247784913,"optimizeType":"jit","type":"string"},{"id":"a2a9361b-d99e-488e-a394-281d3c3b589f","libraryName":"yup","version":"1.7.1","snippet":"yup.string().datetime()","mean":0.021392421126930114,"optimizeType":"none","type":"string"}]},"date":{"valid":[{"id":"95c92b63-5fe2-4c9a-8625-8981d49c9f31","libraryName":"typia","version":"12.1.1","snippet":"string & tags.Format<\"date\">","mean":0.00009286711404035155,"optimizeType":"precompiled","type":"string"},{"id":"3141397c-cbab-41ae-bb60-06d6ae7411d4","libraryName":"valibot","version":"1.4.1","snippet":"v.pipe(v.string(), v.isoDate())","mean":0.00017156472999796594,"optimizeType":"none","type":"string"},{"id":"e903e94f-6d53-43ad-8d10-ce034f803fe6","libraryName":"ata-validator","version":"0.21.0","snippet":"{ type: \"string\", format: \"date\" }","mean":0.00018332614358757633,"optimizeType":"jit","type":"string"},{"id":"c31e53b3-f007-4cea-8a2d-a21f95c504db","libraryName":"@sapphire/shapeshift","version":"4.0.0","snippet":"s.string().date()","mean":0.00020409328082145441,"optimizeType":"none","type":"string"},{"id":"ec51abba-d5f2-41b4-83ad-0f603782c288","libraryName":"zod","version":"4.4.3","snippet":"z.iso.date()","mean":0.00022248441151910802,"optimizeType":"jit","type":"string"},{"id":"8c41335f-a864-4deb-9d6d-d9c405bcd536","libraryName":"zod/mini","version":"4.4.3","snippet":"z.iso.date()","mean":0.0002332920517639246,"optimizeType":"jit","type":"string"},{"id":"200dd437-db04-44ac-a00c-d75e50830929","libraryName":"zod/v3","version":"4.4.3","snippet":"z.string().date()","mean":0.00030938144244113886,"optimizeType":"none","type":"string"},{"id":"eb4ddd73-f01f-46ed-a912-c8063d1a228e","libraryName":"@railway-ts/pipelines","version":"0.1.29","snippet":"chain(string(), isoDate())","mean":0.0011903797307134148,"optimizeType":"none","type":"string"},{"id":"30db8c4c-b8bb-4053-aa95-4fecf1a10034","libraryName":"typebox","version":"1.3.0","snippet":"Type.String({ format: \"date\" })","mean":0.0017162701768963773,"optimizeType":"jit","type":"string"}],"invalid":[{"id":"52c25bea-483f-4322-a2ab-b7f73f6bb801","libraryName":"ata-validator","version":"0.21.0","snippet":"{ type: \"string\", format: \"date\" }","mean":0.00006118628800680172,"optimizeType":"jit","type":"string"},{"id":"377bcbd6-91bb-427e-9f24-72d4074b500f","libraryName":"typia","version":"12.1.1","snippet":"string & tags.Format<\"date\">","mean":0.00007570920413141857,"optimizeType":"precompiled","type":"string"},{"id":"d9131dc5-59cd-420b-ab65-3c52e805d1ab","libraryName":"@railway-ts/pipelines","version":"0.1.29","snippet":"chain(string(), isoDate())","mean":0.00017897027804879986,"optimizeType":"none","type":"string"},{"id":"06d3d53f-a399-47b4-bea6-56d159c1a336","libraryName":"valibot","version":"1.4.1","snippet":"v.pipe(v.string(), v.isoDate())","mean":0.00026623510128638615,"optimizeType":"none","type":"string"},{"id":"db1c0638-10ba-4abe-a009-b585e77f0c53","libraryName":"typebox","version":"1.3.0","snippet":"Type.String({ format: \"date\" })","mean":0.001022265641680585,"optimizeType":"jit","type":"string"},{"id":"710ed42d-6460-490b-907a-757b5f63391b","libraryName":"zod/v3","version":"4.4.3","snippet":"z.string().date()","mean":0.0013937103792571238,"optimizeType":"none","type":"string"},{"id":"403748b1-4989-4a83-8b94-f745f9976b03","libraryName":"@sapphire/shapeshift","version":"4.0.0","snippet":"s.string().date()","mean":0.007455801370369226,"optimizeType":"none","type":"string"},{"id":"c2eccaae-5750-4b36-a2c7-20c258fc0759","libraryName":"zod/mini","version":"4.4.3","snippet":"z.iso.date()","mean":0.01066233782211626,"optimizeType":"jit","type":"string"},{"id":"b865f6a8-ae3e-40c9-9330-931e9613b700","libraryName":"zod","version":"4.4.3","snippet":"z.iso.date()","mean":0.015224258673985204,"optimizeType":"jit","type":"string"}]},"time":{"valid":[{"id":"285ca9b0-c354-4101-98d5-7f4ec2addf55","libraryName":"typia","version":"12.1.1","snippet":"string & tags.Format<\"time\">","mean":0.00008339700741591501,"optimizeType":"precompiled","type":"string"},{"id":"182d5b4f-42ca-4a0d-b6bc-b8535a94081b","libraryName":"ata-validator","version":"0.21.0","snippet":"{ type: \"string\", format: \"time\" }","mean":0.00011436350966855514,"optimizeType":"jit","type":"string"},{"id":"2037182d-9405-4f94-b877-0154595f5019","libraryName":"@railway-ts/pipelines","version":"0.1.29","snippet":"chain(string(), isoTime())","mean":0.0003523946837048618,"optimizeType":"none","type":"string"},{"id":"48ee6ed0-b5fb-4e16-a460-21a3af750317","libraryName":"typebox","version":"1.3.0","snippet":"Type.String({ format: \"time\" })","mean":0.0016517810815173753,"optimizeType":"jit","type":"string"}],"invalid":[{"id":"bea86b31-deaa-4d49-87cd-13676651fe29","libraryName":"typia","version":"12.1.1","snippet":"string & tags.Format<\"time\">","mean":0.00007359578855292023,"optimizeType":"precompiled","type":"string"},{"id":"c9559137-e280-40c7-b6ba-aff3b7986f05","libraryName":"ata-validator","version":"0.21.0","snippet":"{ type: \"string\", format: \"time\" }","mean":0.00007617219302391124,"optimizeType":"jit","type":"string"},{"id":"84cb3ff1-48bb-4397-9618-7854627e1bfd","libraryName":"@railway-ts/pipelines","version":"0.1.29","snippet":"chain(string(), isoTime())","mean":0.00015686886783910565,"optimizeType":"none","type":"string"},{"id":"322807c7-74bf-4551-8a12-acdff1356149","libraryName":"typebox","version":"1.3.0","snippet":"Type.String({ format: \"time\" })","mean":0.0010701799206510073,"optimizeType":"jit","type":"string"}]},"duration":{"valid":[{"id":"27fb6cb4-6831-4e97-8007-fbf4550af5ff","libraryName":"ata-validator","version":"0.21.0","snippet":"{ type: \"string\", format: \"duration\" }","mean":0.00010157692379615766,"optimizeType":"jit","type":"string"},{"id":"d5059972-175f-41d1-9baf-a8e840e1aa75","libraryName":"typia","version":"12.1.1","snippet":"string & tags.Format<\"duration\">","mean":0.00016303759450741293,"optimizeType":"precompiled","type":"string"},{"id":"2f182772-baa7-4a73-84c3-13144c8129a3","libraryName":"@railway-ts/pipelines","version":"0.1.29","snippet":"chain(string(), duration())","mean":0.00018608469066590353,"optimizeType":"none","type":"string"},{"id":"4331d890-e02f-479b-a75c-e887831bc136","libraryName":"zod/v3","version":"4.4.3","snippet":"z.string().duration()","mean":0.0003252427858727797,"optimizeType":"none","type":"string"},{"id":"74aa7f7f-0375-4786-ba5b-a10e0941ca70","libraryName":"zod","version":"4.4.3","snippet":"z.iso.duration()","mean":0.0003632325406872447,"optimizeType":"jit","type":"string"},{"id":"2ef88f83-0683-46b7-aabd-ed2dcc83730c","libraryName":"zod/mini","version":"4.4.3","snippet":"z.iso.duration()","mean":0.00037027361067836075,"optimizeType":"jit","type":"string"},{"id":"f7ab9e2f-841f-4dbb-a432-638d35d546c9","libraryName":"joi","version":"18.2.3","snippet":"Joi.string().isoDuration()","mean":0.0006062869669620604,"optimizeType":"none","type":"string"},{"id":"850ffa27-f621-42bf-8e39-b21856536179","libraryName":"typebox","version":"1.3.0","snippet":"Type.String({ format: \"duration\" })","mean":0.0015686628929870024,"optimizeType":"jit","type":"string"}],"invalid":[{"id":"1f03e98f-462f-4311-ac3a-797d35d2187c","libraryName":"typia","version":"12.1.1","snippet":"string & tags.Format<\"duration\">","mean":0.00007513195485272218,"optimizeType":"precompiled","type":"string"},{"id":"5761ea34-db85-4101-895d-caa6da5a2889","libraryName":"ata-validator","version":"0.21.0","snippet":"{ type: \"string\", format: \"duration\" }","mean":0.0000760976083431397,"optimizeType":"jit","type":"string"},{"id":"bb67ea44-0068-4bd8-87a1-16cf206348f7","libraryName":"@railway-ts/pipelines","version":"0.1.29","snippet":"chain(string(), duration())","mean":0.00016354764706605912,"optimizeType":"none","type":"string"},{"id":"f6e57b3e-4673-4047-b455-de669c89765a","libraryName":"typebox","version":"1.3.0","snippet":"Type.String({ format: \"duration\" })","mean":0.0010133340392920315,"optimizeType":"jit","type":"string"},{"id":"63be2201-0d02-418d-a1a3-d68cf9ec38eb","libraryName":"zod/v3","version":"4.4.3","snippet":"z.string().duration()","mean":0.0013434690518598854,"optimizeType":"none","type":"string"},{"id":"c115d191-eb69-4773-bbc8-250967c6d906","libraryName":"joi","version":"18.2.3","snippet":"Joi.string().isoDuration()","mean":0.0021110965044476007,"optimizeType":"none","type":"string"},{"id":"2d45bf4d-fb3f-4b99-a467-f0f2e4143bda","libraryName":"zod/mini","version":"4.4.3","snippet":"z.iso.duration()","mean":0.01061278826437027,"optimizeType":"jit","type":"string"},{"id":"0ff44829-1971-4901-9b00-4908446ffb6e","libraryName":"zod","version":"4.4.3","snippet":"z.iso.duration()","mean":0.015175230966499718,"optimizeType":"jit","type":"string"}]},"email":{"valid":[{"id":"43775279-e3f0-4df5-99cc-3800494a9f47","libraryName":"ata-validator","version":"0.21.0","snippet":"{ type: \"string\", format: \"email\" }","mean":0.0000786371964619157,"optimizeType":"jit","type":"string"},{"id":"16678cef-ac96-493e-bfe8-6bd57855e88f","libraryName":"arktype","version":"2.2.1","snippet":"type(\"string.email\")","mean":0.00011553550342057881,"optimizeType":"jit","type":"string"},{"id":"3ff93235-46a7-484d-b298-f0de244749f5","libraryName":"typia","version":"12.1.1","snippet":"string & tags.Format<\"email\">","mean":0.000126748776717133,"optimizeType":"precompiled","type":"string"},{"id":"ad41a65d-0d23-4583-864b-f1329ecea79a","libraryName":"valibot","version":"1.4.1","snippet":"v.pipe(v.string(), v.email())","mean":0.00019999328842569428,"optimizeType":"none","type":"string"},{"id":"3c63586d-d422-4549-985a-c5fb8a5dad56","libraryName":"sury","version":"11.0.0-alpha.8","snippet":"S.email","mean":0.0002003599715250533,"optimizeType":"jit","type":"string"},{"id":"ffda0977-7056-4305-aafd-5fab032c31f5","libraryName":"@railway-ts/pipelines","version":"0.1.29","snippet":"chain(string(), email())","mean":0.0002079933820671025,"optimizeType":"none","type":"string"},{"id":"868ad5cf-b59c-40e5-a34d-ddefdc3b8539","libraryName":"zod/v3","version":"4.4.3","snippet":"z.string().email()","mean":0.00028524612029712525,"optimizeType":"none","type":"string"},{"id":"5d69b63f-9aaa-423b-97ec-5faede43dbb5","libraryName":"zod","version":"4.4.3","snippet":"z.email()","mean":0.000316988795398935,"optimizeType":"jit","type":"string"},{"id":"f19c0294-ce9a-484b-8832-78edeee07fb3","libraryName":"zod/mini","version":"4.4.3","snippet":"z.email()","mean":0.00032220478428856636,"optimizeType":"jit","type":"string"},{"id":"a23560aa-5cf4-40ab-81ee-ed70497f52bc","libraryName":"@sapphire/shapeshift","version":"4.0.0","snippet":"s.string().email()","mean":0.0007813654195814234,"optimizeType":"none","type":"string"},{"id":"3ea4ab91-9534-4b43-a08a-d41fd781b883","libraryName":"yup","version":"1.7.1","snippet":"yup.string().email()","mean":0.0011371824755753183,"optimizeType":"none","type":"string"},{"id":"1700de38-ee16-42fe-abd7-1f58ca9553ae","libraryName":"typebox","version":"1.3.0","snippet":"Type.String({ format: \"email\" })","mean":0.0015256072768359277,"optimizeType":"jit","type":"string"},{"id":"4de80324-1d70-42e2-8453-608274ed51b4","libraryName":"joi","version":"18.2.3","snippet":"Joi.string().email()","mean":0.0024501819284421843,"optimizeType":"none","type":"string"}],"invalid":[{"id":"6b6d7c6f-5840-4510-a399-67965b4708c7","libraryName":"ata-validator","version":"0.21.0","snippet":"{ type: \"string\", format: \"email\" }","mean":0.00006905186678983416,"optimizeType":"jit","type":"string"},{"id":"3b681908-fc3f-4565-a12a-cbf67aa71c28","libraryName":"typia","version":"12.1.1","snippet":"string & tags.Format<\"email\">","mean":0.00009736680839249341,"optimizeType":"precompiled","type":"string"},{"id":"66be8398-9490-4543-a06f-8aa68feaf7b5","libraryName":"arktype","version":"2.2.1","snippet":"type(\"string.email\")","mean":0.00010057456598087831,"optimizeType":"jit","type":"string"},{"id":"f990eba4-1292-496e-a8e8-b7bb024e6cec","libraryName":"@railway-ts/pipelines","version":"0.1.29","snippet":"chain(string(), email())","mean":0.00017447692516492846,"optimizeType":"none","type":"string"},{"id":"70328a00-ca62-417b-98d9-81b01dcc4878","libraryName":"valibot","version":"1.4.1","snippet":"v.pipe(v.string(), v.email())","mean":0.0002863219259824765,"optimizeType":"none","type":"string"},{"id":"af848280-98a6-4adf-ad6e-6a0b410f3b88","libraryName":"typebox","version":"1.3.0","snippet":"Type.String({ format: \"email\" })","mean":0.001079346143012346,"optimizeType":"jit","type":"string"},{"id":"597d7baa-2db4-4985-92cd-114da86caa90","libraryName":"zod/v3","version":"4.4.3","snippet":"z.string().email()","mean":0.0013649179356983354,"optimizeType":"none","type":"string"},{"id":"ff97a0d6-1c6c-4bca-a66f-d7cb8c3e95b5","libraryName":"joi","version":"18.2.3","snippet":"Joi.string().email()","mean":0.002238852748636053,"optimizeType":"none","type":"string"},{"id":"70bed683-2062-4aec-b992-400e5000bf9f","libraryName":"sury","version":"11.0.0-alpha.8","snippet":"S.email","mean":0.006714144212440212,"optimizeType":"jit","type":"string"},{"id":"15e80fa8-c0e3-4a39-aca1-040c6b7b57cf","libraryName":"@sapphire/shapeshift","version":"4.0.0","snippet":"s.string().email()","mean":0.006999941074753618,"optimizeType":"none","type":"string"},{"id":"4a61e7e8-ea5d-48a6-9c36-9cfaa04ea000","libraryName":"zod/mini","version":"4.4.3","snippet":"z.email()","mean":0.010696255564723424,"optimizeType":"jit","type":"string"},{"id":"86720bee-9539-4588-99c3-6930812ad455","libraryName":"zod","version":"4.4.3","snippet":"z.email()","mean":0.01508311051281406,"optimizeType":"jit","type":"string"},{"id":"11948efa-d827-47be-99bf-31686144c6ed","libraryName":"yup","version":"1.7.1","snippet":"yup.string().email()","mean":0.02121141332060539,"optimizeType":"none","type":"string"}]},"url":{"valid":[{"id":"681469b2-7446-4937-8cd0-f96d5a77c453","libraryName":"typia","version":"12.1.1","snippet":"string & tags.Format<\"url\">","mean":0.00021531879192481046,"optimizeType":"precompiled","type":"string"},{"id":"14f92fb9-21e9-4e2c-91b6-7bd18d25a487","libraryName":"arktype","version":"2.2.1","snippet":"type(\"string.url\")","mean":0.0003044114467215009,"optimizeType":"jit","type":"string"},{"id":"046f793c-aed7-42d7-bfac-39c5ba6907ce","libraryName":"sury","version":"11.0.0-alpha.8","snippet":"S.url","mean":0.00045443480997370343,"optimizeType":"jit","type":"string"},{"id":"c21994af-6d4e-44fb-89aa-608dd7384776","libraryName":"@sapphire/shapeshift","version":"4.0.0","snippet":"s.string().url()","mean":0.0004861118091142032,"optimizeType":"none","type":"string"},{"id":"4b873463-a9c3-469e-a5cc-a42fe9702dff","libraryName":"valibot","version":"1.4.1","snippet":"v.pipe(v.string(), v.url())","mean":0.0005699677711882121,"optimizeType":"none","type":"string"},{"id":"a63d9c81-8189-4bb3-a1b9-825b03e8808d","libraryName":"@railway-ts/pipelines","version":"0.1.29","snippet":"chain(string(), url())","mean":0.0005873029090849236,"optimizeType":"none","type":"string"},{"id":"1e446bcb-15ef-48d2-9308-876bbb5c86e3","libraryName":"zod/v3","version":"4.4.3","snippet":"z.string().url()","mean":0.0006150510036367237,"optimizeType":"none","type":"string"},{"id":"54939645-b18d-45a1-a20d-cc18204b6c3d","libraryName":"zod/mini","version":"4.4.3","snippet":"z.url()","mean":0.0006370138849871352,"optimizeType":"jit","type":"string"},{"id":"59c36b32-bf2c-4a3c-a802-c35c5c30403a","libraryName":"zod","version":"4.4.3","snippet":"z.url()","mean":0.0006386807989631928,"optimizeType":"jit","type":"string"},{"id":"6be674fe-5cff-4c83-9455-6a4c5245354f","libraryName":"joi","version":"18.2.3","snippet":"Joi.string().uri()","mean":0.0006885248271623075,"optimizeType":"none","type":"string"},{"id":"8789ff1b-3112-4748-9795-742c2a2bf20b","libraryName":"yup","version":"1.7.1","snippet":"yup.string().url()","mean":0.0015018174421022744,"optimizeType":"none","type":"string"},{"id":"b02852c7-b979-4ec3-8bdf-f3a2fdb3344c","libraryName":"typebox","version":"1.3.0","snippet":"Type.String({ format: \"url\" })","mean":0.0015923319771879762,"optimizeType":"jit","type":"string"}],"invalid":[{"id":"6f5af51f-0e44-4f6d-8362-c71b45f5dd04","libraryName":"typia","version":"12.1.1","snippet":"string & tags.Format<\"url\">","mean":0.00007414316577447798,"optimizeType":"precompiled","type":"string"},{"id":"ca187047-b1c6-4361-8e2a-f98958c91bf5","libraryName":"arktype","version":"2.2.1","snippet":"type(\"string.url\")","mean":0.00014998030398855058,"optimizeType":"jit","type":"string"},{"id":"f1822b54-9131-4c56-8a8f-ca25e1e9423d","libraryName":"typebox","version":"1.3.0","snippet":"Type.String({ format: \"url\" })","mean":0.0009691042580420884,"optimizeType":"jit","type":"string"},{"id":"f7726851-1ac1-442c-a916-0c646723f3b7","libraryName":"joi","version":"18.2.3","snippet":"Joi.string().uri()","mean":0.002153551502104463,"optimizeType":"none","type":"string"},{"id":"61be14a3-9701-49e4-ab31-ee13205f9234","libraryName":"@railway-ts/pipelines","version":"0.1.29","snippet":"chain(string(), url())","mean":0.008309285563528779,"optimizeType":"none","type":"string"},{"id":"141d2e1d-d0ef-4b18-a258-7ddbf76b00e5","libraryName":"valibot","version":"1.4.1","snippet":"v.pipe(v.string(), v.url())","mean":0.008511656946365326,"optimizeType":"none","type":"string"},{"id":"675cc22f-0e0f-419d-b8c4-4fe46a6735c5","libraryName":"zod/v3","version":"4.4.3","snippet":"z.string().url()","mean":0.01008070841734434,"optimizeType":"none","type":"string"},{"id":"8350ad2d-609a-47e0-a0a7-23dd62060ddc","libraryName":"sury","version":"11.0.0-alpha.8","snippet":"S.url","mean":0.01400043757964588,"optimizeType":"jit","type":"string"},{"id":"f156e5b7-a21a-483c-81d4-6b3d0a31c13a","libraryName":"@sapphire/shapeshift","version":"4.0.0","snippet":"s.string().url()","mean":0.014402696710448769,"optimizeType":"none","type":"string"},{"id":"f4b76a02-c574-4b51-90d3-ce8272534bc7","libraryName":"zod/mini","version":"4.4.3","snippet":"z.url()","mean":0.01905853937487445,"optimizeType":"jit","type":"string"},{"id":"be1b77ca-f190-4347-9414-2ad26f711051","libraryName":"yup","version":"1.7.1","snippet":"yup.string().url()","mean":0.0212730250383037,"optimizeType":"none","type":"string"},{"id":"2baf9349-cd9d-4518-a37f-195af38264de","libraryName":"zod","version":"4.4.3","snippet":"z.url()","mean":0.023387119319921164,"optimizeType":"jit","type":"string"}]},"uuid":{"valid":[{"id":"fd8663bb-f07f-4723-8cc7-2ddfc32da4e8","libraryName":"arktype","version":"2.2.1","snippet":"type(\"string.uuid\")","mean":0.00016233380112620578,"optimizeType":"jit","type":"string"},{"id":"b9630553-4f4b-4945-ab52-76ea5f4a9f3d","libraryName":"typia","version":"12.1.1","snippet":"string & tags.Format<\"uuid\">","mean":0.0001736636898984042,"optimizeType":"precompiled","type":"string"},{"id":"25032feb-5301-42ce-a2e0-441615d97501","libraryName":"ata-validator","version":"0.21.0","snippet":"{ type: \"string\", format: \"uuid\" }","mean":0.00018604156987098928,"optimizeType":"jit","type":"string"},{"id":"64b25b8f-28c7-4984-9923-62ea886bee3d","libraryName":"@sapphire/shapeshift","version":"4.0.0","snippet":"s.string().uuid()","mean":0.00018855684507515505,"optimizeType":"none","type":"string"},{"id":"520e0f73-e5df-429d-b653-8fa426ba009e","libraryName":"sury","version":"11.0.0-alpha.8","snippet":"S.uuid","mean":0.00020802296282025932,"optimizeType":"jit","type":"string"},{"id":"04ec89f1-dee4-46d9-b47e-bdd09091ec05","libraryName":"valibot","version":"1.4.1","snippet":"v.pipe(v.string(), v.uuid())","mean":0.00026011379950211655,"optimizeType":"none","type":"string"},{"id":"62d3f1f2-4a35-46c1-856e-43dc09e6e142","libraryName":"@railway-ts/pipelines","version":"0.1.29","snippet":"chain(string(), uuid())","mean":0.00026980694990161666,"optimizeType":"none","type":"string"},{"id":"60eab622-7593-463a-8328-89dd2380f84c","libraryName":"zod/mini","version":"4.4.3","snippet":"z.uuid()","mean":0.00030560569355510156,"optimizeType":"jit","type":"string"},{"id":"82f3b1e1-cbc8-4f40-8b49-5a02c39e01ff","libraryName":"zod","version":"4.4.3","snippet":"z.uuid()","mean":0.00031093294234620306,"optimizeType":"jit","type":"string"},{"id":"981c6415-7199-4898-a39c-2e672171be31","libraryName":"zod/v3","version":"4.4.3","snippet":"z.string().uuid()","mean":0.0003398893548026958,"optimizeType":"none","type":"string"},{"id":"c4c288ef-e46c-45b4-a844-98951702b324","libraryName":"joi","version":"18.2.3","snippet":"Joi.string().uuid()","mean":0.0007003960850661675,"optimizeType":"none","type":"string"},{"id":"a43ab3ff-272c-44ad-8e11-b5db24769e47","libraryName":"yup","version":"1.7.1","snippet":"yup.string().uuid()","mean":0.0011699299435042221,"optimizeType":"none","type":"string"},{"id":"8664a999-007b-4a68-b357-02108e9eb99b","libraryName":"typebox","version":"1.3.0","snippet":"Type.String({ format: \"uuid\" })","mean":0.0015388916775298162,"optimizeType":"jit","type":"string"}],"invalid":[{"id":"36740a8c-d1b0-431a-abbb-4eed28ecb402","libraryName":"ata-validator","version":"0.21.0","snippet":"{ type: \"string\", format: \"uuid\" }","mean":0.00006143374904763844,"optimizeType":"jit","type":"string"},{"id":"1df10e50-ad7c-452c-a79f-88b17750e0c0","libraryName":"typia","version":"12.1.1","snippet":"string & tags.Format<\"uuid\">","mean":0.00007037775675815021,"optimizeType":"precompiled","type":"string"},{"id":"508fd352-be85-462d-894d-04f10b7ba0f7","libraryName":"arktype","version":"2.2.1","snippet":"type(\"string.uuid\")","mean":0.0000784165208700227,"optimizeType":"jit","type":"string"},{"id":"c7279984-f846-4c9c-8e46-1f16b4464e21","libraryName":"@railway-ts/pipelines","version":"0.1.29","snippet":"chain(string(), uuid())","mean":0.00016911497991723047,"optimizeType":"none","type":"string"},{"id":"405a9362-1dd5-47a8-9dc6-7ed41746972d","libraryName":"valibot","version":"1.4.1","snippet":"v.pipe(v.string(), v.uuid())","mean":0.0002845725602769703,"optimizeType":"none","type":"string"},{"id":"eedb6a96-2e41-48c4-b56d-27b042da4014","libraryName":"typebox","version":"1.3.0","snippet":"Type.String({ format: \"uuid\" })","mean":0.0009860197884146485,"optimizeType":"jit","type":"string"},{"id":"e1dc54cb-2fc1-40ea-9b8a-1c87e951d9b2","libraryName":"zod/v3","version":"4.4.3","snippet":"z.string().uuid()","mean":0.0013361160817571998,"optimizeType":"none","type":"string"},{"id":"5808d648-4ead-4b4e-958d-e6e668190434","libraryName":"joi","version":"18.2.3","snippet":"Joi.string().uuid()","mean":0.002075937935814664,"optimizeType":"none","type":"string"},{"id":"06001fef-2a82-4c77-a51c-15d7febe13be","libraryName":"sury","version":"11.0.0-alpha.8","snippet":"S.uuid","mean":0.006670601579589971,"optimizeType":"jit","type":"string"},{"id":"173336e0-e44a-4706-b68f-100981f377be","libraryName":"@sapphire/shapeshift","version":"4.0.0","snippet":"s.string().uuid()","mean":0.0067964763552068996,"optimizeType":"none","type":"string"},{"id":"d02a28c5-0dcd-4e71-904b-c1b1513ecbcf","libraryName":"zod/mini","version":"4.4.3","snippet":"z.uuid()","mean":0.01063637196069475,"optimizeType":"jit","type":"string"},{"id":"f792fc3d-352e-4110-86e5-2b187cd253f2","libraryName":"zod","version":"4.4.3","snippet":"z.uuid()","mean":0.015029534327294015,"optimizeType":"jit","type":"string"},{"id":"03d1dc50-86a9-4050-9788-b8a5818e7309","libraryName":"yup","version":"1.7.1","snippet":"yup.string().uuid()","mean":0.02122887218189441,"optimizeType":"none","type":"string"}]},"ipv4":{"valid":[{"id":"4c59d89e-e239-47f7-b5a9-ffd5e37d462d","libraryName":"typia","version":"12.1.1","snippet":"string & tags.Format<\"ipv4\">","mean":0.00008946511634067953,"optimizeType":"precompiled","type":"string"},{"id":"869ef401-0c75-43d6-8d45-cc0b31a184d4","libraryName":"arktype","version":"2.2.1","snippet":"type(\"string.ip.v4\")","mean":0.00011278792848973642,"optimizeType":"jit","type":"string"},{"id":"501c7c43-3d2b-4a88-9799-de7a6217e6f5","libraryName":"@sapphire/shapeshift","version":"4.0.0","snippet":"s.string().ipv4()","mean":0.00014202894066756504,"optimizeType":"none","type":"string"},{"id":"57ecf747-4f0c-40c2-90ba-9fab6ebafaac","libraryName":"valibot","version":"1.4.1","snippet":"v.pipe(v.string(), v.ipv4())","mean":0.00017393018773805214,"optimizeType":"none","type":"string"},{"id":"e35f3124-3334-4d3c-9600-e70f50422140","libraryName":"ata-validator","version":"0.21.0","snippet":"{ type: \"string\", format: \"ipv4\" }","mean":0.00018242743767042866,"optimizeType":"jit","type":"string"},{"id":"ed287a4a-e4da-418d-8bff-cc2133b493dd","libraryName":"zod/mini","version":"4.4.3","snippet":"z.ipv4()","mean":0.00023288399840342138,"optimizeType":"jit","type":"string"},{"id":"00c93e65-1235-4467-91b3-2a2accab082d","libraryName":"zod","version":"4.4.3","snippet":"z.ipv4()","mean":0.00023960676385900977,"optimizeType":"jit","type":"string"},{"id":"a85a5ac0-4e41-4f7c-b63e-938e715488f7","libraryName":"zod/v3","version":"4.4.3","snippet":"z.string().ip({ version: \"v4\" })","mean":0.00031497073166816873,"optimizeType":"none","type":"string"},{"id":"f0d49049-63cc-4bb5-a071-6d5bd3d559d4","libraryName":"joi","version":"18.2.3","snippet":"Joi.string().ip({ version: \"ipv4\" })","mean":0.0005335557637616605,"optimizeType":"none","type":"string"},{"id":"658c91fb-65bf-40fa-8ea1-aebd20d24803","libraryName":"typebox","version":"1.3.0","snippet":"Type.String({ format: \"ipv4\" })","mean":0.0014400030988880996,"optimizeType":"jit","type":"string"}],"invalid":[{"id":"6cf6c329-eb2a-45c7-bf78-4135aebca8e1","libraryName":"typia","version":"12.1.1","snippet":"string & tags.Format<\"ipv4\">","mean":0.00006926811760626625,"optimizeType":"precompiled","type":"string"},{"id":"3676d8e2-4683-4754-a482-c7814a614460","libraryName":"arktype","version":"2.2.1","snippet":"type(\"string.ip.v4\")","mean":0.00008191032245160793,"optimizeType":"jit","type":"string"},{"id":"e00fe4cc-2930-4826-bc7d-798760c7c873","libraryName":"ata-validator","version":"0.21.0","snippet":"{ type: \"string\", format: \"ipv4\" }","mean":0.0001130002011377603,"optimizeType":"jit","type":"string"},{"id":"efb16e72-760c-41bc-a4b4-2a47d6c4a707","libraryName":"valibot","version":"1.4.1","snippet":"v.pipe(v.string(), v.ipv4())","mean":0.00026107082145303615,"optimizeType":"none","type":"string"},{"id":"2fe6bdbe-0f92-4678-89ea-0e2caa7775cb","libraryName":"typebox","version":"1.3.0","snippet":"Type.String({ format: \"ipv4\" })","mean":0.0009549076986556276,"optimizeType":"jit","type":"string"},{"id":"9ae7ea3e-48d1-44e9-831f-782ffdf9b8fa","libraryName":"zod/v3","version":"4.4.3","snippet":"z.string().ip({ version: \"v4\" })","mean":0.0013380490468843291,"optimizeType":"none","type":"string"},{"id":"52827d0b-99cd-4dae-9f02-720ef81404d4","libraryName":"joi","version":"18.2.3","snippet":"Joi.string().ip({ version: \"ipv4\" })","mean":0.0027753345498484705,"optimizeType":"none","type":"string"},{"id":"0496ce69-8db5-4743-b996-ff76ab374e40","libraryName":"@sapphire/shapeshift","version":"4.0.0","snippet":"s.string().ipv4()","mean":0.006987873506361682,"optimizeType":"none","type":"string"},{"id":"d7ad0e76-1bff-488a-bdb0-e8500c1737a0","libraryName":"zod/mini","version":"4.4.3","snippet":"z.ipv4()","mean":0.010579715428317852,"optimizeType":"jit","type":"string"},{"id":"27ccd4cc-fc41-4eb9-843d-67d2162f3b16","libraryName":"zod","version":"4.4.3","snippet":"z.ipv4()","mean":0.015147684111684316,"optimizeType":"jit","type":"string"}]},"ipv6":{"valid":[{"id":"4087f29a-ffd1-46e8-b580-bc651f692b13","libraryName":"arktype","version":"2.2.1","snippet":"type(\"string.ip.v6\")","mean":0.00018532201553454874,"optimizeType":"jit","type":"string"},{"id":"ac82b5f8-bbb9-4471-ab1d-8b98dcd1cf38","libraryName":"@sapphire/shapeshift","version":"4.0.0","snippet":"s.string().ipv6()","mean":0.00020969762823622046,"optimizeType":"none","type":"string"},{"id":"6724cfd6-26f0-4a9e-92dd-2cef3ba3b699","libraryName":"valibot","version":"1.4.1","snippet":"v.pipe(v.string(), v.ipv6())","mean":0.00021167757342316107,"optimizeType":"none","type":"string"},{"id":"a9a54044-7f50-4758-829d-c7b8c8850694","libraryName":"ata-validator","version":"0.21.0","snippet":"{ type: \"string\", format: \"ipv6\" }","mean":0.00023931366287267147,"optimizeType":"jit","type":"string"},{"id":"192e817b-c469-4848-bd5b-644dbb166951","libraryName":"typia","version":"12.1.1","snippet":"string & tags.Format<\"ipv6\">","mean":0.0003388138519953535,"optimizeType":"precompiled","type":"string"},{"id":"5e3c63ee-deca-433e-b258-5a0dc02e5904","libraryName":"zod/v3","version":"4.4.3","snippet":"z.string().ip({ version: \"v6\" })","mean":0.00044512621819878663,"optimizeType":"none","type":"string"},{"id":"bfbb5278-5246-4d29-b872-4346ec1631d3","libraryName":"joi","version":"18.2.3","snippet":"Joi.string().ip({ version: \"ipv6\" })","mean":0.0005546962018309679,"optimizeType":"none","type":"string"},{"id":"55e19008-0ee6-4d68-9f37-08fdc93e0c46","libraryName":"zod/mini","version":"4.4.3","snippet":"z.ipv6()","mean":0.0008050891829043896,"optimizeType":"jit","type":"string"},{"id":"56087903-9eb8-4af2-8bef-8c94fe82778f","libraryName":"zod","version":"4.4.3","snippet":"z.ipv6()","mean":0.0008248936052548902,"optimizeType":"jit","type":"string"},{"id":"009cdc9f-d22f-4921-af2a-946f818acf02","libraryName":"typebox","version":"1.3.0","snippet":"Type.String({ format: \"ipv6\" })","mean":0.0015027279027576448,"optimizeType":"jit","type":"string"}],"invalid":[{"id":"8dc91140-53c4-4832-a7a1-9170410e4b42","libraryName":"ata-validator","version":"0.21.0","snippet":"{ type: \"string\", format: \"ipv6\" }","mean":0.00007769285050431724,"optimizeType":"jit","type":"string"},{"id":"65af8178-c7ff-48d6-bc9c-7e37a6faf939","libraryName":"arktype","version":"2.2.1","snippet":"type(\"string.ip.v6\")","mean":0.00014510468126320824,"optimizeType":"jit","type":"string"},{"id":"64208917-73be-4933-8098-a89085ea29f8","libraryName":"typia","version":"12.1.1","snippet":"string & tags.Format<\"ipv6\">","mean":0.00023319181889314781,"optimizeType":"precompiled","type":"string"},{"id":"170a1f5e-b970-4eba-af49-0bb3b3ff0323","libraryName":"valibot","version":"1.4.1","snippet":"v.pipe(v.string(), v.ipv6())","mean":0.0003085744776829673,"optimizeType":"none","type":"string"},{"id":"d8489521-10c3-4c0d-8120-2be292e995d2","libraryName":"typebox","version":"1.3.0","snippet":"Type.String({ format: \"ipv6\" })","mean":0.0009921415021705991,"optimizeType":"jit","type":"string"},{"id":"6901d74e-ab64-4128-9809-48444d4daed3","libraryName":"zod/v3","version":"4.4.3","snippet":"z.string().ip({ version: \"v6\" })","mean":0.0014062021329271511,"optimizeType":"none","type":"string"},{"id":"eb2778b7-4ba9-48fc-b111-7923c318fb5b","libraryName":"joi","version":"18.2.3","snippet":"Joi.string().ip({ version: \"ipv6\" })","mean":0.002943849937587101,"optimizeType":"none","type":"string"},{"id":"d0c91951-7680-4ca0-8231-ccbe86edcbe0","libraryName":"@sapphire/shapeshift","version":"4.0.0","snippet":"s.string().ipv6()","mean":0.007010211833162255,"optimizeType":"none","type":"string"},{"id":"8f42a9b1-ad51-4b2d-bc7b-fab67c7c3d30","libraryName":"zod/mini","version":"4.4.3","snippet":"z.ipv6()","mean":0.01900978948768592,"optimizeType":"jit","type":"string"},{"id":"f3bcd4a9-1c0f-485c-a302-0ab5ac2ad8c8","libraryName":"zod","version":"4.4.3","snippet":"z.ipv6()","mean":0.024401269403388985,"optimizeType":"jit","type":"string"}]}},"codec":[{"id":"7c1f0574-e31d-4d6e-ba4a-b8cb29c754b4","libraryName":"sury","version":"11.0.0-alpha.8","optimizeType":"jit","encode":{"snippet":"// const encoder = S.encoder(S.date, S.string);\nencoder(data)","mean":0.0005654034887626091},"decode":{"snippet":"// const decoder = S.decoder(S.string, S.date);\ndecoder(data)","mean":0.00030922846695338355},"type":"codec"},{"id":"3358f1c4-9c39-49d1-801b-19bc357e298c","libraryName":"io-ts","version":"2.2.22","optimizeType":"none","encode":{"snippet":"// const DateFromString = new t.Type(...)\nDateFromString.encode(data)","mean":0.0005740476648887989},"decode":{"snippet":"// const DateFromString = new t.Type(...)\nDateFromString.decode(data)","mean":0.0003016364400873755},"type":"codec"},{"id":"7549bb62-bb54-4d3d-af71-c8c76f685a04","libraryName":"zod","version":"4.4.3","optimizeType":"jit","encode":{"snippet":"z.codec(...).encode(data)","mean":0.000920356325052196},"decode":{"snippet":"z.codec(...).decode(data)","mean":0.0006042348352202727},"type":"codec"},{"id":"905615c7-5c90-4b61-8e3e-ae82d19d02c0","libraryName":"zod/mini","version":"4.4.3","optimizeType":"jit","encode":{"snippet":"z.encode(codec, data)","mean":0.0009224931149745},"decode":{"snippet":"z.decode(codec, data)","mean":0.0005718056102059733},"type":"codec"},{"id":"0a7f05c3-63fb-47a6-ae39-f0e0bdc09e5f","libraryName":"effect","version":"3.21.4","optimizeType":"none","encode":{"snippet":"Schema.encodeSync(Schema.Date)(data)","mean":0.0012296942589279359},"decode":{"snippet":"Schema.decodeSync(Schema.Date)(data)","mean":0.0008774415952927966},"type":"codec"},{"id":"a6deed96-ebdf-4ae2-9b1e-9e52e2e91a40","libraryName":"effect","version":"3.21.4","note":"unknown","optimizeType":"none","encode":{"snippet":"Schema.encodeUnknownSync(Schema.Date)(data)","mean":0.0012397817923261922},"decode":{"snippet":"Schema.decodeUnknownSync(Schema.Date)(data)","mean":0.0008647026590474071},"type":"codec","acceptsUnknown":true},{"id":"279a63d3-e775-47e8-8b75-158a0c399aa7","libraryName":"effect@beta","version":"4.0.0-beta.85","note":"unknown","optimizeType":"none","encode":{"snippet":"// const DateFromString = Schema.Date.pipe(...);\nSchema.encodeUnknownSync(DateFromString)(data)","mean":0.002369136327127274},"decode":{"snippet":"// const DateFromString = Schema.Date.pipe(...);\nSchema.decodeUnknownSync(DateFromString)(data)","mean":0.001878153557787903},"type":"codec","acceptsUnknown":true},{"id":"84f81a96-7865-4054-8689-5a184b59a50f","libraryName":"effect@beta","version":"4.0.0-beta.85","optimizeType":"none","encode":{"snippet":"// const DateFromString = Schema.Date.pipe(...);\nSchema.encodeSync(DateFromString)(data)","mean":0.002370275629782039},"decode":{"snippet":"// const DateFromString = Schema.Date.pipe(...);\nSchema.decodeSync(DateFromString)(data)","mean":0.0018482857670954077},"type":"codec"},{"id":"2de59788-2e4c-4ec2-a59c-6593c45956cd","libraryName":"typebox","version":"1.3.0","optimizeType":"jit","encode":{"snippet":"// const DateFromString = Type.Codec(...).Decode(...).Encode(...);\nValue.Encode(DateFromString, data)","mean":0.006574036807908065},"decode":{"snippet":"// const DateFromString = Type.Codec(...).Decode(...).Encode(...);\nValue.Decode(DateFromString, data)","mean":0.006000653211253414},"type":"codec","acceptsUnknown":true}]} \ No newline at end of file diff --git a/bench/download.json b/bench/download.json index bc9aeb7e..ebf6ec52 100644 --- a/bench/download.json +++ b/bench/download.json @@ -1 +1 @@ -{"minified":[{"fileName":"@railway-ts/pipelines/download.ts","libraryName":"@railway-ts/pipelines","version":"0.1.29","bytes":4130,"gzipBytes":1555},{"fileName":"superstruct/download.ts","libraryName":"superstruct","version":"2.0.2","bytes":4908,"gzipBytes":1944},{"fileName":"valibot/download.ts","libraryName":"valibot","version":"1.4.1","bytes":6366,"gzipBytes":1978},{"fileName":"typia/download.ts","libraryName":"typia","version":"12.1.1","bytes":7891,"gzipBytes":1690},{"fileName":"decoders/download.ts","libraryName":"decoders","version":"2.9.3","bytes":8173,"gzipBytes":3151},{"fileName":"io-ts/download.ts","libraryName":"io-ts","version":"2.2.22","bytes":12520,"gzipBytes":3595},{"fileName":"runtypes/download.ts","libraryName":"runtypes","version":"7.0.4","bytes":15586,"gzipBytes":4798},{"fileName":"zod/mini/download.ts","libraryName":"zod/mini","version":"4.4.3","bytes":16052,"gzipBytes":5167},{"fileName":"sury/download.ts","libraryName":"sury","version":"11.0.0-alpha.8","bytes":26419,"gzipBytes":9739},{"fileName":"yup/download.ts","libraryName":"yup","version":"1.7.1","bytes":42120,"gzipBytes":13086},{"fileName":"typebox/download/schema.ts","libraryName":"typebox","version":"1.2.17","note":"schema","bytes":44017,"gzipBytes":12833},{"fileName":"zod/v3/download/index.ts","libraryName":"zod/v3","version":"4.4.3","bytes":56939,"gzipBytes":12934},{"fileName":"effect/@beta/download.ts","libraryName":"effect@beta","version":"4.0.0-beta.84","bytes":57004,"gzipBytes":18594},{"fileName":"zod/v3/download/default.ts","libraryName":"zod/v3","version":"4.4.3","note":"default","bytes":59937,"gzipBytes":14049},{"fileName":"typebox/download/schema + compile.ts","libraryName":"typebox","version":"1.2.17","note":"schema + compile","bytes":60640,"gzipBytes":17498},{"fileName":"zod/download/index.ts","libraryName":"zod","version":"4.4.3","bytes":65462,"gzipBytes":17464},{"fileName":"@sapphire/shapeshift/download.ts","libraryName":"@sapphire/shapeshift","version":"4.0.0","bytes":76577,"gzipBytes":18145},{"fileName":"typebox/download/namespace.ts","libraryName":"typebox","version":"1.2.17","note":"namespace","bytes":96907,"gzipBytes":27001},{"fileName":"typebox/download/script.ts","libraryName":"typebox","version":"1.2.17","note":"script","bytes":106388,"gzipBytes":27812},{"fileName":"typebox/download/namespace + compile.ts","libraryName":"typebox","version":"1.2.17","note":"namespace + compile","bytes":117803,"gzipBytes":32603},{"fileName":"typebox/download/index.ts","libraryName":"typebox","version":"1.2.17","bytes":124955,"gzipBytes":32869},{"fileName":"ajv/download.ts","libraryName":"ajv","version":"8.20.0","bytes":139758,"gzipBytes":39394},{"fileName":"typebox/download/compile.ts","libraryName":"typebox","version":"1.2.17","note":"compile","bytes":145400,"gzipBytes":38340},{"fileName":"arktype/download.ts","libraryName":"arktype","version":"2.2.1","bytes":152576,"gzipBytes":45659},{"fileName":"joi/download.ts","libraryName":"joi","version":"18.2.3","bytes":174408,"gzipBytes":53727},{"fileName":"ata-validator/download.ts","libraryName":"ata-validator","version":"0.21.0","bytes":178301,"gzipBytes":44001},{"fileName":"effect/download.ts","libraryName":"effect","version":"3.21.4","bytes":187916,"gzipBytes":56818},{"fileName":"zod/download/default.ts","libraryName":"zod","version":"4.4.3","note":"default","bytes":275210,"gzipBytes":62366}],"unminified":[{"fileName":"@railway-ts/pipelines/download.ts","libraryName":"@railway-ts/pipelines","version":"0.1.29","bytes":8918,"gzipBytes":2182},{"fileName":"superstruct/download.ts","libraryName":"superstruct","version":"2.0.2","bytes":12681,"gzipBytes":3880},{"fileName":"typia/download.ts","libraryName":"typia","version":"12.1.1","bytes":13249,"gzipBytes":2060},{"fileName":"valibot/download.ts","libraryName":"valibot","version":"1.4.1","bytes":15790,"gzipBytes":3209},{"fileName":"decoders/download.ts","libraryName":"decoders","version":"2.9.3","bytes":17839,"gzipBytes":4815},{"fileName":"io-ts/download.ts","libraryName":"io-ts","version":"2.2.22","bytes":27064,"gzipBytes":5745},{"fileName":"zod/mini/download.ts","libraryName":"zod/mini","version":"4.4.3","bytes":32277,"gzipBytes":7134},{"fileName":"runtypes/download.ts","libraryName":"runtypes","version":"7.0.4","bytes":35724,"gzipBytes":8136},{"fileName":"sury/download.ts","libraryName":"sury","version":"11.0.0-alpha.8","bytes":64942,"gzipBytes":15306},{"fileName":"yup/download.ts","libraryName":"yup","version":"1.7.1","bytes":74852,"gzipBytes":18567},{"fileName":"zod/v3/download/index.ts","libraryName":"zod/v3","version":"4.4.3","bytes":101086,"gzipBytes":17455},{"fileName":"zod/v3/download/default.ts","libraryName":"zod/v3","version":"4.4.3","note":"default","bytes":107134,"gzipBytes":19077},{"fileName":"typebox/download/schema.ts","libraryName":"typebox","version":"1.2.17","note":"schema","bytes":121366,"gzipBytes":20428},{"fileName":"zod/download/index.ts","libraryName":"zod","version":"4.4.3","bytes":126227,"gzipBytes":24606},{"fileName":"@sapphire/shapeshift/download.ts","libraryName":"@sapphire/shapeshift","version":"4.0.0","bytes":160435,"gzipBytes":28101},{"fileName":"typebox/download/schema + compile.ts","libraryName":"typebox","version":"1.2.17","note":"schema + compile","bytes":162295,"gzipBytes":27570},{"fileName":"joi/download.ts","libraryName":"joi","version":"18.2.3","bytes":256271,"gzipBytes":61815},{"fileName":"effect/@beta/download.ts","libraryName":"effect@beta","version":"4.0.0-beta.84","bytes":257444,"gzipBytes":63116},{"fileName":"ajv/download.ts","libraryName":"ajv","version":"8.20.0","bytes":270985,"gzipBytes":55311},{"fileName":"arktype/download.ts","libraryName":"arktype","version":"2.2.1","bytes":279733,"gzipBytes":66643},{"fileName":"ata-validator/download.ts","libraryName":"ata-validator","version":"0.21.0","bytes":291784,"gzipBytes":57732},{"fileName":"typebox/download/namespace.ts","libraryName":"typebox","version":"1.2.17","note":"namespace","bytes":302690,"gzipBytes":46387},{"fileName":"typebox/download/script.ts","libraryName":"typebox","version":"1.2.17","note":"script","bytes":313884,"gzipBytes":46650},{"fileName":"typebox/download/namespace + compile.ts","libraryName":"typebox","version":"1.2.17","note":"namespace + compile","bytes":359027,"gzipBytes":55712},{"fileName":"typebox/download/index.ts","libraryName":"typebox","version":"1.2.17","bytes":373213,"gzipBytes":56267},{"fileName":"typebox/download/compile.ts","libraryName":"typebox","version":"1.2.17","note":"compile","bytes":427593,"gzipBytes":64874},{"fileName":"zod/download/default.ts","libraryName":"zod","version":"4.4.3","note":"default","bytes":460332,"gzipBytes":78544},{"fileName":"effect/download.ts","libraryName":"effect","version":"3.21.4","bytes":574802,"gzipBytes":122137}]} \ No newline at end of file +{"minified":[{"fileName":"@railway-ts/pipelines/download.ts","libraryName":"@railway-ts/pipelines","version":"0.1.29","bytes":4130,"gzipBytes":1555},{"fileName":"superstruct/download.ts","libraryName":"superstruct","version":"2.0.2","bytes":4908,"gzipBytes":1944},{"fileName":"valibot/download.ts","libraryName":"valibot","version":"1.4.1","bytes":6366,"gzipBytes":1978},{"fileName":"typia/download.ts","libraryName":"typia","version":"12.1.1","bytes":7891,"gzipBytes":1690},{"fileName":"decoders/download.ts","libraryName":"decoders","version":"2.9.3","bytes":8173,"gzipBytes":3151},{"fileName":"io-ts/download.ts","libraryName":"io-ts","version":"2.2.22","bytes":12520,"gzipBytes":3595},{"fileName":"runtypes/download.ts","libraryName":"runtypes","version":"7.0.4","bytes":15586,"gzipBytes":4798},{"fileName":"zod/mini/download.ts","libraryName":"zod/mini","version":"4.4.3","bytes":16052,"gzipBytes":5167},{"fileName":"sury/download.ts","libraryName":"sury","version":"11.0.0-alpha.8","bytes":26419,"gzipBytes":9739},{"fileName":"yup/download.ts","libraryName":"yup","version":"1.7.1","bytes":42120,"gzipBytes":13086},{"fileName":"typebox/download/schema.ts","libraryName":"typebox","version":"1.3.0","note":"schema","bytes":44128,"gzipBytes":12905},{"fileName":"zod/v3/download/index.ts","libraryName":"zod/v3","version":"4.4.3","bytes":56939,"gzipBytes":12934},{"fileName":"effect/@beta/download.ts","libraryName":"effect@beta","version":"4.0.0-beta.85","bytes":57548,"gzipBytes":18737},{"fileName":"zod/v3/download/default.ts","libraryName":"zod/v3","version":"4.4.3","note":"default","bytes":59937,"gzipBytes":14049},{"fileName":"typebox/download/schema + compile.ts","libraryName":"typebox","version":"1.3.0","note":"schema + compile","bytes":60226,"gzipBytes":17432},{"fileName":"zod/download/index.ts","libraryName":"zod","version":"4.4.3","bytes":65462,"gzipBytes":17464},{"fileName":"@sapphire/shapeshift/download.ts","libraryName":"@sapphire/shapeshift","version":"4.0.0","bytes":76577,"gzipBytes":18145},{"fileName":"typebox/download/namespace.ts","libraryName":"typebox","version":"1.3.0","note":"namespace","bytes":94349,"gzipBytes":26413},{"fileName":"typebox/download/script.ts","libraryName":"typebox","version":"1.3.0","note":"script","bytes":104783,"gzipBytes":27451},{"fileName":"typebox/download/namespace + compile.ts","libraryName":"typebox","version":"1.3.0","note":"namespace + compile","bytes":114018,"gzipBytes":31661},{"fileName":"typebox/download/index.ts","libraryName":"typebox","version":"1.3.0","bytes":121647,"gzipBytes":32107},{"fileName":"ajv/download.ts","libraryName":"ajv","version":"8.20.0","bytes":139758,"gzipBytes":39394},{"fileName":"typebox/download/compile.ts","libraryName":"typebox","version":"1.3.0","note":"compile","bytes":141330,"gzipBytes":37364},{"fileName":"arktype/download.ts","libraryName":"arktype","version":"2.2.1","bytes":152576,"gzipBytes":45659},{"fileName":"joi/download.ts","libraryName":"joi","version":"18.2.3","bytes":174408,"gzipBytes":53727},{"fileName":"ata-validator/download.ts","libraryName":"ata-validator","version":"0.21.0","bytes":178301,"gzipBytes":44001},{"fileName":"effect/download.ts","libraryName":"effect","version":"3.21.4","bytes":187916,"gzipBytes":56818},{"fileName":"zod/download/default.ts","libraryName":"zod","version":"4.4.3","note":"default","bytes":275210,"gzipBytes":62366}],"unminified":[{"fileName":"@railway-ts/pipelines/download.ts","libraryName":"@railway-ts/pipelines","version":"0.1.29","bytes":8918,"gzipBytes":2182},{"fileName":"superstruct/download.ts","libraryName":"superstruct","version":"2.0.2","bytes":12681,"gzipBytes":3880},{"fileName":"typia/download.ts","libraryName":"typia","version":"12.1.1","bytes":13249,"gzipBytes":2064},{"fileName":"valibot/download.ts","libraryName":"valibot","version":"1.4.1","bytes":15790,"gzipBytes":3209},{"fileName":"decoders/download.ts","libraryName":"decoders","version":"2.9.3","bytes":17839,"gzipBytes":4815},{"fileName":"io-ts/download.ts","libraryName":"io-ts","version":"2.2.22","bytes":27064,"gzipBytes":5745},{"fileName":"zod/mini/download.ts","libraryName":"zod/mini","version":"4.4.3","bytes":32277,"gzipBytes":7134},{"fileName":"runtypes/download.ts","libraryName":"runtypes","version":"7.0.4","bytes":35724,"gzipBytes":8136},{"fileName":"sury/download.ts","libraryName":"sury","version":"11.0.0-alpha.8","bytes":64942,"gzipBytes":15306},{"fileName":"yup/download.ts","libraryName":"yup","version":"1.7.1","bytes":74852,"gzipBytes":18567},{"fileName":"zod/v3/download/index.ts","libraryName":"zod/v3","version":"4.4.3","bytes":101086,"gzipBytes":17455},{"fileName":"zod/v3/download/default.ts","libraryName":"zod/v3","version":"4.4.3","note":"default","bytes":107134,"gzipBytes":19077},{"fileName":"typebox/download/schema.ts","libraryName":"typebox","version":"1.3.0","note":"schema","bytes":121229,"gzipBytes":20521},{"fileName":"zod/download/index.ts","libraryName":"zod","version":"4.4.3","bytes":126227,"gzipBytes":24606},{"fileName":"@sapphire/shapeshift/download.ts","libraryName":"@sapphire/shapeshift","version":"4.0.0","bytes":160435,"gzipBytes":28101},{"fileName":"typebox/download/schema + compile.ts","libraryName":"typebox","version":"1.3.0","note":"schema + compile","bytes":160911,"gzipBytes":27459},{"fileName":"joi/download.ts","libraryName":"joi","version":"18.2.3","bytes":256271,"gzipBytes":61815},{"fileName":"effect/@beta/download.ts","libraryName":"effect@beta","version":"4.0.0-beta.85","bytes":258765,"gzipBytes":63331},{"fileName":"ajv/download.ts","libraryName":"ajv","version":"8.20.0","bytes":270985,"gzipBytes":55311},{"fileName":"arktype/download.ts","libraryName":"arktype","version":"2.2.1","bytes":279733,"gzipBytes":66643},{"fileName":"ata-validator/download.ts","libraryName":"ata-validator","version":"0.21.0","bytes":291784,"gzipBytes":57732},{"fileName":"typebox/download/namespace.ts","libraryName":"typebox","version":"1.3.0","note":"namespace","bytes":293755,"gzipBytes":45387},{"fileName":"typebox/download/script.ts","libraryName":"typebox","version":"1.3.0","note":"script","bytes":307491,"gzipBytes":46036},{"fileName":"typebox/download/namespace + compile.ts","libraryName":"typebox","version":"1.3.0","note":"namespace + compile","bytes":345345,"gzipBytes":53515},{"fileName":"typebox/download/index.ts","libraryName":"typebox","version":"1.3.0","bytes":361345,"gzipBytes":54272},{"fileName":"typebox/download/compile.ts","libraryName":"typebox","version":"1.3.0","note":"compile","bytes":413161,"gzipBytes":62421},{"fileName":"zod/download/default.ts","libraryName":"zod","version":"4.4.3","note":"default","bytes":460332,"gzipBytes":78544},{"fileName":"effect/download.ts","libraryName":"effect","version":"3.21.4","bytes":574802,"gzipBytes":122137}]} \ No newline at end of file diff --git a/bench/stack.json b/bench/stack.json index bdcbf9bb..fd94c5a6 100644 --- a/bench/stack.json +++ b/bench/stack.json @@ -1 +1 @@ -[{"type":"success","libraryName":"@sapphire/shapeshift","version":"4.0.0","snippet":"schema.parse(data)","output":"\u001b[36mCombinedPropertyError\u001b[39m (\u001b[33m6\u001b[39m)\n \u001b[32m/\u001b[39m\u001b[33me\u001b[39m\u001b[33mc\u001b[39m\u001b[33me\u001b[39m\u001b[33mi\u001b[39m\u001b[33mv\u001b[39m\u001b[33me\u001b[39m\u001b[33md\u001b[39m\u001b[33m \u001b[39m\u001b[33mo\u001b[39m\u001b[33mn\u001b[39m\u001b[33me\u001b[39m\u001b[33m \u001b[39m\u001b[33mo\u001b[39m\u001b[33mr\u001b[39m\u001b[33m \u001b[39m\u001b[33mm\u001b[39m\u001b[33mo\u001b[39m\u001b[33mr\u001b[39m\u001b[33me\u001b[39m\u001b[33m \u001b[39m\u001b[33me\u001b[39m\u001b[33mr\u001b[39m\u001b[33mr\u001b[39m\u001b[33mo\u001b[39m\u001b[33mr\u001b[39m\u001b[33ms\u001b[39m\u001b[32m/\u001b[39m\n\n input\u001b[32m.title\u001b[39m\n \u001b[90m|\u001b[39m \u001b[36mExpectedConstraintError\u001b[39m > \u001b[32ms.string().lengthGreaterThanOrEqual()\u001b[39m\n \u001b[90m|\u001b[39m \u001b[32m/\u001b[39m\u001b[33mn\u001b[39m\u001b[33mv\u001b[39m\u001b[33ma\u001b[39m\u001b[33ml\u001b[39m\u001b[33mi\u001b[39m\u001b[33md\u001b[39m\u001b[33m \u001b[39m\u001b[33ms\u001b[39m\u001b[33mt\u001b[39m\u001b[33mr\u001b[39m\u001b[33mi\u001b[39m\u001b[33mn\u001b[39m\u001b[33mg\u001b[39m\u001b[33m \u001b[39m\u001b[33ml\u001b[39m\u001b[33me\u001b[39m\u001b[33mn\u001b[39m\u001b[33mg\u001b[39m\u001b[33mt\u001b[39m\u001b[33mh\u001b[39m\u001b[32m/\u001b[39m\n \u001b[90m|\u001b[39m \n \u001b[90m|\u001b[39m \u001b[32mExpected: \u001b[39m\u001b[33mexpected.length >= 1\u001b[39m\n \u001b[90m|\u001b[39m \n \u001b[90m|\u001b[39m \u001b[32m/\u001b[39m\u001b[33me\u001b[39m\u001b[33mc\u001b[39m\u001b[33me\u001b[39m\u001b[33mi\u001b[39m\u001b[33mv\u001b[39m\u001b[33me\u001b[39m\u001b[33md\u001b[39m\u001b[33m:\u001b[39m\u001b[32m/\u001b[39m\n \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m \u001b[32m''\u001b[39m\n\n input\u001b[32m.price\u001b[39m\n \u001b[90m|\u001b[39m \u001b[36mExpectedConstraintError\u001b[39m > \u001b[32ms.number().greaterThanOrEqual()\u001b[39m\n \u001b[90m|\u001b[39m \u001b[32m/\u001b[39m\u001b[33mn\u001b[39m\u001b[33mv\u001b[39m\u001b[33ma\u001b[39m\u001b[33ml\u001b[39m\u001b[33mi\u001b[39m\u001b[33md\u001b[39m\u001b[33m \u001b[39m\u001b[33mn\u001b[39m\u001b[33mu\u001b[39m\u001b[33mm\u001b[39m\u001b[33mb\u001b[39m\u001b[33me\u001b[39m\u001b[33mr\u001b[39m\u001b[33m \u001b[39m\u001b[33mv\u001b[39m\u001b[33ma\u001b[39m\u001b[33ml\u001b[39m\u001b[33mu\u001b[39m\u001b[33me\u001b[39m\u001b[32m/\u001b[39m\n \u001b[90m|\u001b[39m \n \u001b[90m|\u001b[39m \u001b[32mExpected: \u001b[39m\u001b[33mexpected >= 1\u001b[39m\n \u001b[90m|\u001b[39m \n \u001b[90m|\u001b[39m \u001b[32m/\u001b[39m\u001b[33me\u001b[39m\u001b[33mc\u001b[39m\u001b[33me\u001b[39m\u001b[33mi\u001b[39m\u001b[33mv\u001b[39m\u001b[33me\u001b[39m\u001b[33md\u001b[39m\u001b[33m:\u001b[39m\u001b[32m/\u001b[39m\n \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m \u001b[33m0\u001b[39m\n\n input\u001b[32m.quantity\u001b[39m\n \u001b[90m|\u001b[39m \u001b[36mExpectedConstraintError\u001b[39m > \u001b[32ms.number().lessThanOrEqual()\u001b[39m\n \u001b[90m|\u001b[39m \u001b[32m/\u001b[39m\u001b[33mn\u001b[39m\u001b[33mv\u001b[39m\u001b[33ma\u001b[39m\u001b[33ml\u001b[39m\u001b[33mi\u001b[39m\u001b[33md\u001b[39m\u001b[33m \u001b[39m\u001b[33mn\u001b[39m\u001b[33mu\u001b[39m\u001b[33mm\u001b[39m\u001b[33mb\u001b[39m\u001b[33me\u001b[39m\u001b[33mr\u001b[39m\u001b[33m \u001b[39m\u001b[33mv\u001b[39m\u001b[33ma\u001b[39m\u001b[33ml\u001b[39m\u001b[33mu\u001b[39m\u001b[33me\u001b[39m\u001b[32m/\u001b[39m\n \u001b[90m|\u001b[39m \n \u001b[90m|\u001b[39m \u001b[32mExpected: \u001b[39m\u001b[33mexpected <= 10\u001b[39m\n \u001b[90m|\u001b[39m \n \u001b[90m|\u001b[39m \u001b[32m/\u001b[39m\u001b[33me\u001b[39m\u001b[33mc\u001b[39m\u001b[33me\u001b[39m\u001b[33mi\u001b[39m\u001b[33mv\u001b[39m\u001b[33me\u001b[39m\u001b[33md\u001b[39m\u001b[33m:\u001b[39m\u001b[32m/\u001b[39m\n \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m \u001b[33m1000\u001b[39m\n\n input\u001b[32m.tags\u001b[39m\n \u001b[90m|\u001b[39m \u001b[36mCombinedPropertyError\u001b[39m (\u001b[33m2\u001b[39m)\n \u001b[90m|\u001b[39m \u001b[32m/\u001b[39m\u001b[33me\u001b[39m\u001b[33mc\u001b[39m\u001b[33me\u001b[39m\u001b[33mi\u001b[39m\u001b[33mv\u001b[39m\u001b[33me\u001b[39m\u001b[33md\u001b[39m\u001b[33m \u001b[39m\u001b[33mo\u001b[39m\u001b[33mn\u001b[39m\u001b[33me\u001b[39m\u001b[33m \u001b[39m\u001b[33mo\u001b[39m\u001b[33mr\u001b[39m\u001b[33m \u001b[39m\u001b[33mm\u001b[39m\u001b[33mo\u001b[39m\u001b[33mr\u001b[39m\u001b[33me\u001b[39m\u001b[33m \u001b[39m\u001b[33me\u001b[39m\u001b[33mr\u001b[39m\u001b[33mr\u001b[39m\u001b[33mo\u001b[39m\u001b[33mr\u001b[39m\u001b[33ms\u001b[39m\u001b[32m/\u001b[39m\n \u001b[90m|\u001b[39m \n \u001b[90m|\u001b[39m input[\u001b[33m1\u001b[39m]\n \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m \u001b[36mValidationError\u001b[39m > \u001b[32ms.string()\u001b[39m\n \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m \u001b[32m/\u001b[39m\u001b[33mx\u001b[39m\u001b[33mp\u001b[39m\u001b[33me\u001b[39m\u001b[33mc\u001b[39m\u001b[33mt\u001b[39m\u001b[33me\u001b[39m\u001b[33md\u001b[39m\u001b[33m \u001b[39m\u001b[33ma\u001b[39m\u001b[33m \u001b[39m\u001b[33ms\u001b[39m\u001b[33mt\u001b[39m\u001b[33mr\u001b[39m\u001b[33mi\u001b[39m\u001b[33mn\u001b[39m\u001b[33mg\u001b[39m\u001b[33m \u001b[39m\u001b[33mp\u001b[39m\u001b[33mr\u001b[39m\u001b[33mi\u001b[39m\u001b[33mm\u001b[39m\u001b[33mi\u001b[39m\u001b[33mt\u001b[39m\u001b[33mi\u001b[39m\u001b[33mv\u001b[39m\u001b[33me\u001b[39m\u001b[32m/\u001b[39m\n \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m \n \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m \u001b[32m/\u001b[39m\u001b[33me\u001b[39m\u001b[33mc\u001b[39m\u001b[33me\u001b[39m\u001b[33mi\u001b[39m\u001b[33mv\u001b[39m\u001b[33me\u001b[39m\u001b[33md\u001b[39m\u001b[33m:\u001b[39m\u001b[32m/\u001b[39m\n \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m \u001b[1mnull\u001b[22m\n \u001b[90m|\u001b[39m \n \u001b[90m|\u001b[39m input[\u001b[33m3\u001b[39m]\n \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m \u001b[36mValidationError\u001b[39m > \u001b[32ms.string()\u001b[39m\n \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m \u001b[32m/\u001b[39m\u001b[33mx\u001b[39m\u001b[33mp\u001b[39m\u001b[33me\u001b[39m\u001b[33mc\u001b[39m\u001b[33mt\u001b[39m\u001b[33me\u001b[39m\u001b[33md\u001b[39m\u001b[33m \u001b[39m\u001b[33ma\u001b[39m\u001b[33m \u001b[39m\u001b[33ms\u001b[39m\u001b[33mt\u001b[39m\u001b[33mr\u001b[39m\u001b[33mi\u001b[39m\u001b[33mn\u001b[39m\u001b[33mg\u001b[39m\u001b[33m \u001b[39m\u001b[33mp\u001b[39m\u001b[33mr\u001b[39m\u001b[33mi\u001b[39m\u001b[33mm\u001b[39m\u001b[33mi\u001b[39m\u001b[33mt\u001b[39m\u001b[33mi\u001b[39m\u001b[33mv\u001b[39m\u001b[33me\u001b[39m\u001b[32m/\u001b[39m\n \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m \n \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m \u001b[32m/\u001b[39m\u001b[33me\u001b[39m\u001b[33mc\u001b[39m\u001b[33me\u001b[39m\u001b[33mi\u001b[39m\u001b[33mv\u001b[39m\u001b[33me\u001b[39m\u001b[33md\u001b[39m\u001b[33m:\u001b[39m\u001b[32m/\u001b[39m\n \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m \u001b[90mundefined\u001b[39m\n\n input\u001b[32m.images\u001b[39m\n \u001b[90m|\u001b[39m \u001b[36mCombinedPropertyError\u001b[39m (\u001b[33m2\u001b[39m)\n \u001b[90m|\u001b[39m \u001b[32m/\u001b[39m\u001b[33me\u001b[39m\u001b[33mc\u001b[39m\u001b[33me\u001b[39m\u001b[33mi\u001b[39m\u001b[33mv\u001b[39m\u001b[33me\u001b[39m\u001b[33md\u001b[39m\u001b[33m \u001b[39m\u001b[33mo\u001b[39m\u001b[33mn\u001b[39m\u001b[33me\u001b[39m\u001b[33m \u001b[39m\u001b[33mo\u001b[39m\u001b[33mr\u001b[39m\u001b[33m \u001b[39m\u001b[33mm\u001b[39m\u001b[33mo\u001b[39m\u001b[33mr\u001b[39m\u001b[33me\u001b[39m\u001b[33m \u001b[39m\u001b[33me\u001b[39m\u001b[33mr\u001b[39m\u001b[33mr\u001b[39m\u001b[33mo\u001b[39m\u001b[33mr\u001b[39m\u001b[33ms\u001b[39m\u001b[32m/\u001b[39m\n \u001b[90m|\u001b[39m \n \u001b[90m|\u001b[39m input[\u001b[33m0\u001b[39m]\n \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m \u001b[36mCombinedPropertyError\u001b[39m (\u001b[33m3\u001b[39m)\n \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m \u001b[32m/\u001b[39m\u001b[33me\u001b[39m\u001b[33mc\u001b[39m\u001b[33me\u001b[39m\u001b[33mi\u001b[39m\u001b[33mv\u001b[39m\u001b[33me\u001b[39m\u001b[33md\u001b[39m\u001b[33m \u001b[39m\u001b[33mo\u001b[39m\u001b[33mn\u001b[39m\u001b[33me\u001b[39m\u001b[33m \u001b[39m\u001b[33mo\u001b[39m\u001b[33mr\u001b[39m\u001b[33m \u001b[39m\u001b[33mm\u001b[39m\u001b[33mo\u001b[39m\u001b[33mr\u001b[39m\u001b[33me\u001b[39m\u001b[33m \u001b[39m\u001b[33me\u001b[39m\u001b[33mr\u001b[39m\u001b[33mr\u001b[39m\u001b[33mo\u001b[39m\u001b[33mr\u001b[39m\u001b[33ms\u001b[39m\u001b[32m/\u001b[39m\n \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m \n \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m input\u001b[32m.id\u001b[39m\n \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m \u001b[36m[MissingPropertyError: \u001b[32mid\u001b[39m]\u001b[39m\n \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m \n \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m input\u001b[32m.created\u001b[39m\n \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m \u001b[36m[ValidationError: \u001b[32ms.date()\u001b[39m]\u001b[39m\n \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m \n \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m input\u001b[32m.type\u001b[39m\n \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m \u001b[36m[CombinedError]\u001b[39m\n \u001b[90m|\u001b[39m \n \u001b[90m|\u001b[39m input[\u001b[33m1\u001b[39m]\n \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m \u001b[36mCombinedPropertyError\u001b[39m (\u001b[33m1\u001b[39m)\n \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m \u001b[32m/\u001b[39m\u001b[33me\u001b[39m\u001b[33mc\u001b[39m\u001b[33me\u001b[39m\u001b[33mi\u001b[39m\u001b[33mv\u001b[39m\u001b[33me\u001b[39m\u001b[33md\u001b[39m\u001b[33m \u001b[39m\u001b[33mo\u001b[39m\u001b[33mn\u001b[39m\u001b[33me\u001b[39m\u001b[33m \u001b[39m\u001b[33mo\u001b[39m\u001b[33mr\u001b[39m\u001b[33m \u001b[39m\u001b[33mm\u001b[39m\u001b[33mo\u001b[39m\u001b[33mr\u001b[39m\u001b[33me\u001b[39m\u001b[33m \u001b[39m\u001b[33me\u001b[39m\u001b[33mr\u001b[39m\u001b[33mr\u001b[39m\u001b[33mo\u001b[39m\u001b[33mr\u001b[39m\u001b[33ms\u001b[39m\u001b[32m/\u001b[39m\n \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m \n \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m input\u001b[32m.url\u001b[39m\n \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m \u001b[36m[MissingPropertyError: \u001b[32murl\u001b[39m]\u001b[39m\n\n input\u001b[32m.ratings\u001b[39m\n \u001b[90m|\u001b[39m \u001b[36mCombinedPropertyError\u001b[39m (\u001b[33m1\u001b[39m)\n \u001b[90m|\u001b[39m \u001b[32m/\u001b[39m\u001b[33me\u001b[39m\u001b[33mc\u001b[39m\u001b[33me\u001b[39m\u001b[33mi\u001b[39m\u001b[33mv\u001b[39m\u001b[33me\u001b[39m\u001b[33md\u001b[39m\u001b[33m \u001b[39m\u001b[33mo\u001b[39m\u001b[33mn\u001b[39m\u001b[33me\u001b[39m\u001b[33m \u001b[39m\u001b[33mo\u001b[39m\u001b[33mr\u001b[39m\u001b[33m \u001b[39m\u001b[33mm\u001b[39m\u001b[33mo\u001b[39m\u001b[33mr\u001b[39m\u001b[33me\u001b[39m\u001b[33m \u001b[39m\u001b[33me\u001b[39m\u001b[33mr\u001b[39m\u001b[33mr\u001b[39m\u001b[33mo\u001b[39m\u001b[33mr\u001b[39m\u001b[33ms\u001b[39m\u001b[32m/\u001b[39m\n \u001b[90m|\u001b[39m \n \u001b[90m|\u001b[39m input[\u001b[33m1\u001b[39m]\n \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m \u001b[36mCombinedPropertyError\u001b[39m (\u001b[33m1\u001b[39m)\n \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m \u001b[32m/\u001b[39m\u001b[33me\u001b[39m\u001b[33mc\u001b[39m\u001b[33me\u001b[39m\u001b[33mi\u001b[39m\u001b[33mv\u001b[39m\u001b[33me\u001b[39m\u001b[33md\u001b[39m\u001b[33m \u001b[39m\u001b[33mo\u001b[39m\u001b[33mn\u001b[39m\u001b[33me\u001b[39m\u001b[33m \u001b[39m\u001b[33mo\u001b[39m\u001b[33mr\u001b[39m\u001b[33m \u001b[39m\u001b[33mm\u001b[39m\u001b[33mo\u001b[39m\u001b[33mr\u001b[39m\u001b[33me\u001b[39m\u001b[33m \u001b[39m\u001b[33me\u001b[39m\u001b[33mr\u001b[39m\u001b[33mr\u001b[39m\u001b[33mo\u001b[39m\u001b[33mr\u001b[39m\u001b[33ms\u001b[39m\u001b[32m/\u001b[39m\n \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m \n \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m input\u001b[32m.images\u001b[39m\n \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m \u001b[36m[CombinedPropertyError]\u001b[39m\n\n at _ObjectValidator.handleIgnoreStrategy (file:///node_modules/.pnpm/@sapphire+shapeshift@4.0.0/node_modules/@sapphire/shapeshift/dist/esm/index.mjs:2111:72)\n at _ObjectValidator.handleStrategy (file:///node_modules/.pnpm/@sapphire+shapeshift@4.0.0/node_modules/@sapphire/shapeshift/dist/esm/index.mjs:1975:47)\n at _ObjectValidator.handle (file:///node_modules/.pnpm/@sapphire+shapeshift@4.0.0/node_modules/@sapphire/shapeshift/dist/esm/index.mjs:2081:17)\n at _ObjectValidator.parse (file:///node_modules/.pnpm/@sapphire+shapeshift@4.0.0/node_modules/@sapphire/shapeshift/dist/esm/index.mjs:964:90)\n at Object.throw (file:///schemas/dist/benchmarks-DyskUV8M.mjs:93:11)\n at file:///bench/src/scripts/stack/log.ts:24:28\n","lineCount":90},{"type":"success","libraryName":"ajv","version":"8.20.0","snippet":"// const validate = ajv.compile(schema);\nvalidate(data);\nthrow new ValidationError(validate.errors || []);","output":"ValidationError: validation failed\n at Object.throw (file:///schemas/dist/benchmarks-BmhJkA0t.mjs:204:10)\n at \u001b[90mfile:///bench/\u001b[39msrc/scripts/stack/log.ts:24:28 {\n errors: [\n {\n instancePath: \u001b[32m'/title'\u001b[39m,\n schemaPath: \u001b[32m'#/properties/title/minLength'\u001b[39m,\n keyword: \u001b[32m'minLength'\u001b[39m,\n params: \u001b[36m[Object]\u001b[39m,\n message: \u001b[32m'must NOT have fewer than 1 characters'\u001b[39m\n }\n ],\n validation: \u001b[33mtrue\u001b[39m,\n ajv: \u001b[33mtrue\u001b[39m\n}\n","lineCount":16},{"type":"success","libraryName":"arktype","version":"2.2.1","snippet":"schema.assert(data)","output":"TraversalError: \n • images[0].created must be a Date (was null)\n • images[0].id must be a number (was missing)\n • images[0].type must be \"jpg\" or \"png\" (was \"mp4\")\n • images[1].url must be a string (was missing)\n • price must be at least 1 (was 0)\n • quantity must be at most 10 (was 1000)\n • ratings[1].images[0].created must be a Date (was undefined)\n • ratings[1].images[0].id must be a number (was a string)\n • ratings[1].images[0].url must be a URL string (was \"INVALID_URL\")\n • ratings[1].images[1].size must be a number (was missing)\n • ratings[1].images[1].title must be a string (was missing)\n • ratings[1].images[1].type must be \"jpg\" or \"png\" (was missing)\n • tags[1] must be a string (was null)\n • tags[3] must be a string (was undefined)\n • title must be non-empty\n at ArkErrors.toTraversalError (file:///node_modules/\u001b[4m.pnpm\u001b[24m/@ark+schema@0.56.0/node_modules/\u001b[4m@ark/schema\u001b[24m/out/shared/errors.js:146:16)\n at ArkErrors.throw (file:///node_modules/\u001b[4m.pnpm\u001b[24m/@ark+schema@0.56.0/node_modules/\u001b[4m@ark/schema\u001b[24m/out/shared/errors.js:139:20)\n at file:///node_modules/\u001b[4m.pnpm\u001b[24m/@ark+schema@0.56.0/node_modules/\u001b[4m@ark/schema\u001b[24m/out/node.js:166:85\n at Traversal.finalize (file:///node_modules/\u001b[4m.pnpm\u001b[24m/@ark+schema@0.56.0/node_modules/\u001b[4m@ark/schema\u001b[24m/out/shared/traversal.js:112:29)\n at IntersectionNode.rootApply (file:///node_modules/\u001b[4m.pnpm\u001b[24m/@ark+schema@0.56.0/node_modules/\u001b[4m@ark/schema\u001b[24m/out/node.js:118:32)\n at BaseNode.attach (file:///node_modules/\u001b[4m.pnpm\u001b[24m/@ark+schema@0.56.0/node_modules/\u001b[4m@ark/schema\u001b[24m/out/node.js:33:25)\n at IntersectionNode.assert (file:///node_modules/\u001b[4m.pnpm\u001b[24m/@ark+schema@0.56.0/node_modules/\u001b[4m@ark/schema\u001b[24m/out/node.js:166:42)\n at Object.throw (file:///schemas/dist/benchmarks-DrAuy-7o.mjs:80:11)\n at \u001b[90mfile:///bench/\u001b[39msrc/scripts/stack/log.ts:24:28\n","lineCount":26},{"type":"success","libraryName":"decoders","version":"2.9.3","snippet":"schema.verify(data)","output":"Decoding error: \n{\n \"id\": 252,\n \"created\": new Date('2026-06-20T20:53:13.956Z'),\n \"title\": \"\",\n ^^ Too short, must be at least 1 char\n \"brand\": \"Sunny Backyard\",\n \"description\": \"Red apple from Lake Constance\",\n \"price\": 0,\n ^ Too low, must be between 1 and 10000\n \"discount\": null,\n \"quantity\": 1000,\n ^^^^ Too high, must be between 1 and 10\n \"tags\": [\n \"fruit\",\n null,\n ^^^^ Must be string (at index 1)\n \"round\",\n undefined,\n \"juicy\",\n \"healthy\",\n ],\n \"images\": [\n {\n \"created\": null,\n ^^^^ Must be a Date\n \"title\": \"Close up of an apple on a tree\",\n \"type\": \"mp4\",\n ^^^^^ Must be one of 'jpg', 'png'\n \"size\": 92357232,\n \"url\": \"https://www.example.com/images/248\",\n },\n ^ Missing key: 'id' (at index 0)\n {\n \"id\": 295,\n \"created\": new Date('2026-06-20T20:53:13.956Z'),\n \"title\": \"Our apples in the final packaging\",\n \"type\": \"jpg\",\n \"size\": 83247232,\n },\n {\n \"id\": 723,\n \"created\": new Date('2026-06-20T20:53:13.956Z'),\n \"title\": \"Our fruit fields at Lake Constance\",\n \"type\": \"jpg\",\n \"size\": 72356345,\n \"url\": \"https://www.example.com/images/723\",\n },\n ],\n \"ratings\": [\n {\n \"id\": 315,\n \"stars\": 4.5,\n \"title\": \"Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean ...\" [truncated],\n \"text\": \"Tastes super delicious\",\n \"images\": [\n {\n \"id\": 835,\n \"created\": new Date('2026-06-20T20:53:13.956Z'),\n \"title\": \"The result of our apple pie\",\n \"type\": \"jpg\",\n \"size\": 8247493,\n \"url\": \"https://www.example.com/images/835\",\n },\n ],\n },\n {\n \"id\": 642,\n \"stars\": 5,\n \"title\": \"Very tasty! I will buy them again!\",\n \"text\": \"In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. N...\" [truncated],\n \"images\": [\n {\n \"id\": \"352\",\n ^^^^^ Must be number\n \"created\": undefined,\n \"title\": \"The fruit salad in a bowl\",\n \"type\": \"jpg\",\n \"size\": 3582543,\n \"url\": \"INVALID_URL\",\n ^^^^^^^^^^^^^ Must be URL\n },\n ^ Missing key: 'created' (at index 0)\n {\n \"id\": 465,\n \"created\": new Date('2026-06-20T20:53:13.956Z'),\n \"url\": \"https://www.example.com/images/465\",\n },\n ],\n },\n ^ index 1\n ],\n}\n at format (file:///node_modules/\u001b[4m.pnpm\u001b[24m/decoders@2.9.3/node_modules/\u001b[4mdecoders\u001b[24m/dist/index.js:332:18)\n at Object.verify (file:///node_modules/\u001b[4m.pnpm\u001b[24m/decoders@2.9.3/node_modules/\u001b[4mdecoders\u001b[24m/dist/index.js:351:13)\n at Object.throw (file:///schemas/dist/benchmarks-BtvuhoEt.mjs:81:11)\n at \u001b[90mfile:///bench/\u001b[39msrc/scripts/stack/log.ts:24:28\n","lineCount":98},{"type":"success","libraryName":"effect@beta","version":"4.0.0-beta.84","snippet":"Schema.decodeUnknownSync(schema)(data, { errors: \"first\" })","output":"{\n issue: Composite {\n \u001b[32m'~effect/SchemaIssue/Issue'\u001b[39m: \u001b[32m'~effect/SchemaIssue/Issue'\u001b[39m,\n _tag: \u001b[32m'Composite'\u001b[39m,\n ast: Objects {\n \u001b[32m'~effect/Schema'\u001b[39m: \u001b[32m'~effect/Schema'\u001b[39m,\n annotations: \u001b[90mundefined\u001b[39m,\n checks: \u001b[90mundefined\u001b[39m,\n encoding: \u001b[90mundefined\u001b[39m,\n context: \u001b[90mundefined\u001b[39m,\n _tag: \u001b[32m'Objects'\u001b[39m,\n propertySignatures: \u001b[36m[Array]\u001b[39m,\n indexSignatures: [],\n encodingChecks: \u001b[90mundefined\u001b[39m\n },\n actual: { _id: \u001b[32m'Option'\u001b[39m, _tag: \u001b[32m'Some'\u001b[39m, value: \u001b[36m[Object]\u001b[39m },\n issues: [ \u001b[36m[Pointer]\u001b[39m ]\n },\n _tag: \u001b[32m'SchemaError'\u001b[39m,\n \u001b[32m'~effect/Schema/SchemaError'\u001b[39m: \u001b[32m'~effect/Schema/SchemaError'\u001b[39m\n}\n","lineCount":22},{"type":"success","libraryName":"effect","version":"3.21.4","snippet":"// const decodeAll = Schema.decodeUnknownEither(\n// schema, \n// { errors: \"all\" }\n// );\nEffect.runSync(decodeAll(data));","output":"(FiberFailure) ParseError: { readonly id: number; readonly created: Date; readonly title: minLength(1) & maxLength(100); readonly brand: minLength(1) & maxLength(30); readonly description: minLength(1) & maxLength(500); readonly price: greaterThanOrEqualTo(1) & lessThanOrEqualTo(10000); readonly discount: greaterThanOrEqualTo(1) & lessThanOrEqualTo(100) | null; readonly quantity: greaterThanOrEqualTo(1) & lessThanOrEqualTo(10); readonly tags: ReadonlyArray; readonly images: ReadonlyArray<{ readonly id: number; readonly created: Date; readonly title: minLength(1) & maxLength(100); readonly type: \"jpg\" | \"png\"; readonly size: number; readonly url: { string | filter } }>; readonly ratings: ReadonlyArray<{ readonly id: number; readonly stars: greaterThanOrEqualTo(0) & lessThanOrEqualTo(5); readonly title: minLength(1) & maxLength(100); readonly text: minLength(1) & maxLength(1000); readonly images: ReadonlyArray<{ readonly id: number; readonly created: Date; readonly title: minLength(1) & maxLength(100); readonly type: \"jpg\" | \"png\"; readonly size: number; readonly url: { string | filter } }> }> }\n├─ [\"title\"]\n│ └─ minLength(1) & maxLength(100)\n│ └─ From side refinement failure\n│ └─ minLength(1)\n│ └─ Predicate refinement failure\n│ └─ Expected a string at least 1 character(s) long, actual \"\"\n├─ [\"price\"]\n│ └─ greaterThanOrEqualTo(1) & lessThanOrEqualTo(10000)\n│ └─ From side refinement failure\n│ └─ greaterThanOrEqualTo(1)\n│ └─ Predicate refinement failure\n│ └─ Expected a number greater than or equal to 1, actual 0\n├─ [\"quantity\"]\n│ └─ greaterThanOrEqualTo(1) & lessThanOrEqualTo(10)\n│ └─ Predicate refinement failure\n│ └─ Expected a number less than or equal to 10, actual 1000\n├─ [\"tags\"]\n│ └─ ReadonlyArray\n│ ├─ [1]\n│ │ └─ minLength(1) & maxLength(30)\n│ │ └─ From side refinement failure\n│ │ └─ minLength(1)\n│ │ └─ From side refinement failure\n│ │ └─ Expected string, actual null\n│ └─ [3]\n│ └─ minLength(1) & maxLength(30)\n│ └─ From side refinement failure\n│ └─ minLength(1)\n│ └─ From side refinement failure\n│ └─ Expected string, actual undefined\n├─ [\"images\"]\n│ └─ ReadonlyArray<{ readonly id: number; readonly created: Date; readonly title: minLength(1) & maxLength(100); readonly type: \"jpg\" | \"png\"; readonly size: number; readonly url: { string | filter } }>\n│ ├─ [0]\n│ │ └─ { readonly id: number; readonly created: Date; readonly title: minLength(1) & maxLength(100); readonly type: \"jpg\" | \"png\"; readonly size: number; readonly url: { string | filter } }\n│ │ ├─ [\"id\"]\n│ │ │ └─ is missing\n│ │ ├─ [\"created\"]\n│ │ │ └─ Expected Date, actual null\n│ │ └─ [\"type\"]\n│ │ └─ \"jpg\" | \"png\"\n│ │ ├─ Expected \"jpg\", actual \"mp4\"\n│ │ └─ Expected \"png\", actual \"mp4\"\n│ └─ [1]\n│ └─ { readonly id: number; readonly created: Date; readonly title: minLength(1) & maxLength(100); readonly type: \"jpg\" | \"png\"; readonly size: number; readonly url: { string | filter } }\n│ └─ [\"url\"]\n│ └─ is missing\n└─ [\"ratings\"]\n └─ ReadonlyArray<{ readonly id: number; readonly stars: greaterThanOrEqualTo(0) & lessThanOrEqualTo(5); readonly title: minLength(1) & maxLength(100); readonly text: minLength(1) & maxLength(1000); readonly images: ReadonlyArray<{ readonly id: number; readonly created: Date; readonly title: minLength(1) & maxLength(100); readonly type: \"jpg\" | \"png\"; readonly size: number; readonly url: { string | filter } }> }>\n └─ [1]\n └─ { readonly id: number; readonly stars: greaterThanOrEqualTo(0) & lessThanOrEqualTo(5); readonly title: minLength(1) & maxLength(100); readonly text: minLength(1) & maxLength(1000); readonly images: ReadonlyArray<{ readonly id: number; readonly created: Date; readonly title: minLength(1) & maxLength(100); readonly type: \"jpg\" | \"png\"; readonly size: number; readonly url: { string | filter } }> }\n └─ [\"images\"]\n └─ ReadonlyArray<{ readonly id: number; readonly created: Date; readonly title: minLength(1) & maxLength(100); readonly type: \"jpg\" | \"png\"; readonly size: number; readonly url: { string | filter } }>\n ├─ [0]\n │ └─ { readonly id: number; readonly created: Date; readonly title: minLength(1) & maxLength(100); readonly type: \"jpg\" | \"png\"; readonly size: number; readonly url: { string | filter } }\n │ ├─ [\"id\"]\n │ │ └─ Expected number, actual \"352\"\n │ ├─ [\"created\"]\n │ │ └─ Expected Date, actual undefined\n │ └─ [\"url\"]\n │ └─ { string | filter }\n │ └─ Predicate refinement failure\n │ └─ Expected { string | filter }, actual \"INVALID_URL\"\n └─ [1]\n └─ { readonly id: number; readonly created: Date; readonly title: minLength(1) & maxLength(100); readonly type: \"jpg\" | \"png\"; readonly size: number; readonly url: { string | filter } }\n ├─ [\"title\"]\n │ └─ is missing\n ├─ [\"type\"]\n │ └─ is missing\n └─ [\"size\"]\n └─ is missing\n at parseError (file:///node_modules/.pnpm/effect@3.21.4/node_modules/effect/dist/esm/ParseResult.js:241:36)\n at file:///node_modules/.pnpm/effect@3.21.4/node_modules/effect/dist/esm/Either.js:197:78\n at Module. (file:///node_modules/.pnpm/effect@3.21.4/node_modules/effect/dist/esm/Function.js:98:18)\n at file:///node_modules/.pnpm/effect@3.21.4/node_modules/effect/dist/esm/Schema.js:353:42\n at Object.throw (file:///schemas/dist/benchmarks-CGTqqZQl.mjs:125:19)\n at file:///bench/src/scripts/stack/log.ts:24:28\n","lineCount":78},{"type":"no stack","libraryName":"joi","version":"18.2.3","snippet":"throw schema.validate(data).error","output":"[Error [ValidationError]: \"title\" is not allowed to be empty] {\n _original: {\n id: \u001b[33m252\u001b[39m,\n created: \u001b[35m2026-06-20T20:53:15.098Z\u001b[39m,\n title: \u001b[32m''\u001b[39m,\n brand: \u001b[32m'Sunny Backyard'\u001b[39m,\n description: \u001b[32m'Red apple from Lake Constance'\u001b[39m,\n price: \u001b[33m0\u001b[39m,\n discount: \u001b[1mnull\u001b[22m,\n quantity: \u001b[33m1000\u001b[39m,\n tags: [ \u001b[32m'fruit'\u001b[39m, \u001b[1mnull\u001b[22m, \u001b[32m'round'\u001b[39m, \u001b[90mundefined\u001b[39m, \u001b[32m'juicy'\u001b[39m, \u001b[32m'healthy'\u001b[39m ],\n images: [ \u001b[36m[Object]\u001b[39m, \u001b[36m[Object]\u001b[39m, \u001b[36m[Object]\u001b[39m ],\n ratings: [ \u001b[36m[Object]\u001b[39m, \u001b[36m[Object]\u001b[39m ]\n },\n details: [\n {\n message: \u001b[32m'\"title\" is not allowed to be empty'\u001b[39m,\n path: \u001b[36m[Array]\u001b[39m,\n type: \u001b[32m'string.empty'\u001b[39m,\n context: \u001b[36m[Object]\u001b[39m\n }\n ]\n}\n","lineCount":24},{"type":"success","libraryName":"runtypes","version":"7.0.4","snippet":"schema.check(data)","output":"ValidationError: Expected { id: number; created: Date; title: string; brand: string; description: string; price: number; discount: number | null; quantity: number; tags: string[]; images: { id: number; created: Date; title: string; type: \"jpg\" | \"png\"; size: number; url: string; }[]; ratings: { id: number; stars: number; title: string; text: string; images: { id: number; created: Date; title: string; type: \"jpg\" | \"png\"; size: number; url: string; }[]; }[]; }, but was incompatible\n at Object.check (file:///node_modules/\u001b[4m.pnpm\u001b[24m/runtypes@7.0.4/node_modules/\u001b[4mruntypes\u001b[24m/esm/Runtype.js:119:19)\n at Object.throw (file:///schemas/dist/benchmarks-CxGH8YYm.mjs:81:11)\n at \u001b[90mfile:///bench/\u001b[39msrc/scripts/stack/log.ts:24:28 {\n failure: {\n success: \u001b[33mfalse\u001b[39m,\n message: \u001b[32m'Expected { id: number; created: Date; title: string; brand: string; description: string; price: number; discount: number | null; quantity: number; tags: string[]; images: { id: number; created: Date; title: string; type: \"jpg\" | \"png\"; size: number; url: string; }[]; ratings: { id: number; stars: number; title: string; text: string; images: { id: number; created: Date; title: string; type: \"jpg\" | \"png\"; size: number; url: string; }[]; }[]; }, but was incompatible'\u001b[39m,\n code: \u001b[32m'CONTENT_INCORRECT'\u001b[39m,\n expected: Object [Runtype<{ id: number; created: Date; title: string; brand: string; description: string; price: number; discount: number | null; quantity: number; tags: string[]; images: { id: number; created: Date; title: string; type: \"jpg\" | \"png\"; size: number; url: string; }[]; ratings: { id: number; stars: number; title: string; text: string; images: { id: number; created: Date; title: string; type: \"jpg\" | \"png\"; size: number; url: string; }[]; }[]; }>] {\n tag: \u001b[32m'object'\u001b[39m,\n fields: \u001b[36m[Object]\u001b[39m,\n isExact: \u001b[33mfalse\u001b[39m\n },\n received: {\n id: \u001b[33m252\u001b[39m,\n created: \u001b[35m2026-06-20T20:53:15.251Z\u001b[39m,\n title: \u001b[32m''\u001b[39m,\n brand: \u001b[32m'Sunny Backyard'\u001b[39m,\n description: \u001b[32m'Red apple from Lake Constance'\u001b[39m,\n price: \u001b[33m0\u001b[39m,\n discount: \u001b[1mnull\u001b[22m,\n quantity: \u001b[33m1000\u001b[39m,\n tags: \u001b[36m[Array]\u001b[39m,\n images: \u001b[36m[Array]\u001b[39m,\n ratings: \u001b[36m[Array]\u001b[39m\n },\n details: {\n title: \u001b[36m[Object]\u001b[39m,\n price: \u001b[36m[Object]\u001b[39m,\n quantity: \u001b[36m[Object]\u001b[39m,\n tags: \u001b[36m[Object]\u001b[39m,\n images: \u001b[36m[Object]\u001b[39m,\n ratings: \u001b[36m[Object]\u001b[39m\n }\n }\n}\n","lineCount":37},{"type":"success","libraryName":"superstruct","version":"2.0.2","snippet":"assert(data, schema)","output":"StructError: At path: title -- Expected a value of type `string`, but received: `\"\"`\n at validate (/node_modules/\u001b[4m.pnpm\u001b[24m/superstruct@2.0.2/node_modules/\u001b[4msuperstruct\u001b[24m/dist/index.cjs:298:27)\n at assert (/node_modules/\u001b[4m.pnpm\u001b[24m/superstruct@2.0.2/node_modules/\u001b[4msuperstruct\u001b[24m/dist/index.cjs:254:24)\n at Object.throw (file:///schemas/dist/benchmarks-CY0SKBFc.mjs:111:4)\n at \u001b[90mfile:///bench/\u001b[39msrc/scripts/stack/log.ts:24:28 {\n value: \u001b[32m''\u001b[39m,\n type: \u001b[32m'string'\u001b[39m,\n refinement: \u001b[32m'string with length between 1 and 100'\u001b[39m,\n key: \u001b[32m'title'\u001b[39m,\n path: [ \u001b[32m'title'\u001b[39m ],\n branch: [\n {\n id: \u001b[33m252\u001b[39m,\n created: \u001b[35m2026-06-20T20:53:15.369Z\u001b[39m,\n title: \u001b[32m''\u001b[39m,\n brand: \u001b[32m'Sunny Backyard'\u001b[39m,\n description: \u001b[32m'Red apple from Lake Constance'\u001b[39m,\n price: \u001b[33m0\u001b[39m,\n discount: \u001b[1mnull\u001b[22m,\n quantity: \u001b[33m1000\u001b[39m,\n tags: \u001b[36m[Array]\u001b[39m,\n images: \u001b[36m[Array]\u001b[39m,\n ratings: \u001b[36m[Array]\u001b[39m\n },\n \u001b[32m''\u001b[39m\n ],\n failures: \u001b[36m[Function (anonymous)]\u001b[39m\n}\n","lineCount":29},{"type":"success","libraryName":"sury","version":"11.0.0-alpha.8","snippet":"// const parser = S.parser(S.schema(...));\nparser(data)","output":"SuryError: Failed at [\"title\"]: String must be 1 or more characters long\n at Array. (file:///node_modules/\u001b[4m.pnpm\u001b[24m/sury@11.0.0-alpha.8/node_modules/\u001b[4msury\u001b[24m/src/Sury.res.mjs:646:11)\n at eval (eval at compileDecoder (file:///node_modules/\u001b[4m.pnpm\u001b[24m/sury@11.0.0-alpha.8/node_modules/\u001b[4msury\u001b[24m/src/Sury.res.mjs:1601:12), :3:407)\n at Object.throw (file:///schemas/dist/benchmarks-ByqxqDoH.mjs:104:4)\n at \u001b[90mfile:///bench/\u001b[39msrc/scripts/stack/log.ts:24:28 {\n code: \u001b[32m'invalid_input'\u001b[39m,\n path: \u001b[32m'[\"title\"]'\u001b[39m,\n reason: \u001b[32m'String must be 1 or more characters long'\u001b[39m,\n expected: Schema <[Object: null prototype] {}> {\n type: \u001b[32m'string'\u001b[39m,\n seq: \u001b[33m73\u001b[39m,\n decoder: \u001b[36m[Function: stringDecoderFn]\u001b[39m,\n maxLength: \u001b[33m100\u001b[39m,\n errorMessage: {\n maxLength: \u001b[32m'String must be 100 or fewer characters long'\u001b[39m,\n minLength: \u001b[32m'String must be 1 or more characters long'\u001b[39m\n },\n refiner: \u001b[36m[Function (anonymous)]\u001b[39m,\n minLength: \u001b[33m1\u001b[39m\n },\n received: Schema <[Object: null prototype] {}> {\n type: \u001b[32m'string'\u001b[39m,\n seq: \u001b[33m73\u001b[39m,\n decoder: \u001b[36m[Function: stringDecoderFn]\u001b[39m,\n maxLength: \u001b[33m100\u001b[39m,\n errorMessage: {\n maxLength: \u001b[32m'String must be 100 or fewer characters long'\u001b[39m,\n minLength: \u001b[32m'String must be 1 or more characters long'\u001b[39m\n },\n refiner: \u001b[36m[Function (anonymous)]\u001b[39m,\n minLength: \u001b[33m1\u001b[39m\n },\n unionErrors: \u001b[90mundefined\u001b[39m,\n input: \u001b[32m''\u001b[39m\n}\n","lineCount":36},{"type":"success","libraryName":"typebox","version":"1.2.17","snippet":"Value.Parse(schema, data)","output":"ParseError: Parse\n at Module.Parse (file:///node_modules/\u001b[4m.pnpm\u001b[24m/typebox@1.2.17/node_modules/\u001b[4mtypebox\u001b[24m/build/value/parse/parse.mjs:46:11)\n at Object.throw (file:///schemas/dist/benchmarks-D-tn60pG.mjs:300:10)\n at \u001b[90mfile:///bench/\u001b[39msrc/scripts/stack/log.ts:24:28 {\n [cause]: {\n source: \u001b[32m'Parse'\u001b[39m,\n errors: [\n \u001b[36m[Object]\u001b[39m, \u001b[36m[Object]\u001b[39m,\n \u001b[36m[Object]\u001b[39m, \u001b[36m[Object]\u001b[39m,\n \u001b[36m[Object]\u001b[39m, \u001b[36m[Object]\u001b[39m,\n \u001b[36m[Object]\u001b[39m, \u001b[36m[Object]\u001b[39m\n ],\n value: {\n id: \u001b[33m252\u001b[39m,\n created: \u001b[35m2026-06-20T20:53:15.744Z\u001b[39m,\n title: \u001b[32m''\u001b[39m,\n brand: \u001b[32m'Sunny Backyard'\u001b[39m,\n description: \u001b[32m'Red apple from Lake Constance'\u001b[39m,\n price: \u001b[33m0\u001b[39m,\n discount: \u001b[1mnull\u001b[22m,\n quantity: \u001b[33m1000\u001b[39m,\n tags: \u001b[36m[Array]\u001b[39m,\n images: \u001b[36m[Array]\u001b[39m,\n ratings: \u001b[36m[Array]\u001b[39m\n }\n }\n}\n","lineCount":28},{"type":"success","libraryName":"typia","version":"12.1.1","snippet":"// const assert = typia.createAssert();\nassert(data);","output":"TypeGuardError: Error on typia.createAssert(): invalid type on $input.title, expect to be string & MinLength<1>\n at Module._assertGuard (file:///node_modules/\u001b[4m.pnpm\u001b[24m/typia@12.1.1_@types+node@26.0.0_typescript@6.0.3/node_modules/\u001b[4mtypia\u001b[24m/lib/internal/_assertGuard.mjs:8:19)\n at _ao0 (file:///schemas/dist/benchmarks-D0P1CSCS.mjs:324:119)\n at file:///schemas/dist/benchmarks-D0P1CSCS.mjs:607:26\n at file:///schemas/dist/benchmarks-D0P1CSCS.mjs:612:22\n at Object.throw (file:///schemas/dist/benchmarks-D0P1CSCS.mjs:1337:4)\n at \u001b[90mfile:///bench/\u001b[39msrc/scripts/stack/log.ts:24:28 {\n method: \u001b[32m'typia.createAssert'\u001b[39m,\n path: \u001b[32m'$input.title'\u001b[39m,\n expected: \u001b[32m'string & MinLength<1>'\u001b[39m,\n value: \u001b[32m''\u001b[39m,\n description: \u001b[90mundefined\u001b[39m,\n fake_expected_typed_value_: \u001b[90mundefined\u001b[39m\n}\n","lineCount":15},{"type":"success","libraryName":"valibot","version":"1.4.1","snippet":"v.parse(schema, data)","output":"ValiError: Invalid length: Expected >=1 but received 0\n at Module.parse (file:///node_modules/\u001b[4m.pnpm\u001b[24m/valibot@1.4.1_typescript@6.0.3/node_modules/\u001b[4mvalibot\u001b[24m/dist/index.mjs:7380:28)\n at Object.throw (file:///schemas/dist/benchmarks-CAWs2_LF.mjs:97:6)\n at \u001b[90mfile:///bench/\u001b[39msrc/scripts/stack/log.ts:24:28 {\n issues: [\n {\n kind: \u001b[32m'validation'\u001b[39m,\n type: \u001b[32m'min_length'\u001b[39m,\n input: \u001b[32m''\u001b[39m,\n expected: \u001b[32m'>=1'\u001b[39m,\n received: \u001b[32m'0'\u001b[39m,\n message: \u001b[32m'Invalid length: Expected >=1 but received 0'\u001b[39m,\n requirement: \u001b[33m1\u001b[39m,\n path: \u001b[36m[Array]\u001b[39m,\n issues: \u001b[90mundefined\u001b[39m,\n lang: \u001b[90mundefined\u001b[39m,\n abortEarly: \u001b[90mundefined\u001b[39m,\n abortPipeEarly: \u001b[90mundefined\u001b[39m\n },\n {\n kind: \u001b[32m'validation'\u001b[39m,\n type: \u001b[32m'min_value'\u001b[39m,\n input: \u001b[33m0\u001b[39m,\n expected: \u001b[32m'>=1'\u001b[39m,\n received: \u001b[32m'0'\u001b[39m,\n message: \u001b[32m'Invalid value: Expected >=1 but received 0'\u001b[39m,\n requirement: \u001b[33m1\u001b[39m,\n path: \u001b[36m[Array]\u001b[39m,\n issues: \u001b[90mundefined\u001b[39m,\n lang: \u001b[90mundefined\u001b[39m,\n abortEarly: \u001b[90mundefined\u001b[39m,\n abortPipeEarly: \u001b[90mundefined\u001b[39m\n },\n {\n kind: \u001b[32m'validation'\u001b[39m,\n type: \u001b[32m'max_value'\u001b[39m,\n input: \u001b[33m1000\u001b[39m,\n expected: \u001b[32m'<=10'\u001b[39m,\n received: \u001b[32m'1000'\u001b[39m,\n message: \u001b[32m'Invalid value: Expected <=10 but received 1000'\u001b[39m,\n requirement: \u001b[33m10\u001b[39m,\n path: \u001b[36m[Array]\u001b[39m,\n issues: \u001b[90mundefined\u001b[39m,\n lang: \u001b[90mundefined\u001b[39m,\n abortEarly: \u001b[90mundefined\u001b[39m,\n abortPipeEarly: \u001b[90mundefined\u001b[39m\n },\n {\n kind: \u001b[32m'schema'\u001b[39m,\n type: \u001b[32m'string'\u001b[39m,\n input: \u001b[1mnull\u001b[22m,\n expected: \u001b[32m'string'\u001b[39m,\n received: \u001b[32m'null'\u001b[39m,\n message: \u001b[32m'Invalid type: Expected string but received null'\u001b[39m,\n requirement: \u001b[90mundefined\u001b[39m,\n path: \u001b[36m[Array]\u001b[39m,\n issues: \u001b[90mundefined\u001b[39m,\n lang: \u001b[90mundefined\u001b[39m,\n abortEarly: \u001b[90mundefined\u001b[39m,\n abortPipeEarly: \u001b[90mundefined\u001b[39m\n },\n {\n kind: \u001b[32m'schema'\u001b[39m,\n type: \u001b[32m'string'\u001b[39m,\n input: \u001b[90mundefined\u001b[39m,\n expected: \u001b[32m'string'\u001b[39m,\n received: \u001b[32m'undefined'\u001b[39m,\n message: \u001b[32m'Invalid type: Expected string but received undefined'\u001b[39m,\n requirement: \u001b[90mundefined\u001b[39m,\n path: \u001b[36m[Array]\u001b[39m,\n issues: \u001b[90mundefined\u001b[39m,\n lang: \u001b[90mundefined\u001b[39m,\n abortEarly: \u001b[90mundefined\u001b[39m,\n abortPipeEarly: \u001b[90mundefined\u001b[39m\n },\n {\n kind: \u001b[32m'schema'\u001b[39m,\n type: \u001b[32m'object'\u001b[39m,\n input: \u001b[90mundefined\u001b[39m,\n expected: \u001b[32m'\"id\"'\u001b[39m,\n received: \u001b[32m'undefined'\u001b[39m,\n message: \u001b[32m'Invalid key: Expected \"id\" but received undefined'\u001b[39m,\n requirement: \u001b[90mundefined\u001b[39m,\n path: \u001b[36m[Array]\u001b[39m,\n issues: \u001b[90mundefined\u001b[39m,\n lang: \u001b[90mundefined\u001b[39m,\n abortEarly: \u001b[90mundefined\u001b[39m,\n abortPipeEarly: \u001b[90mundefined\u001b[39m\n },\n {\n kind: \u001b[32m'schema'\u001b[39m,\n type: \u001b[32m'date'\u001b[39m,\n input: \u001b[1mnull\u001b[22m,\n expected: \u001b[32m'Date'\u001b[39m,\n received: \u001b[32m'null'\u001b[39m,\n message: \u001b[32m'Invalid type: Expected Date but received null'\u001b[39m,\n requirement: \u001b[90mundefined\u001b[39m,\n path: \u001b[36m[Array]\u001b[39m,\n issues: \u001b[90mundefined\u001b[39m,\n lang: \u001b[90mundefined\u001b[39m,\n abortEarly: \u001b[90mundefined\u001b[39m,\n abortPipeEarly: \u001b[90mundefined\u001b[39m\n },\n {\n kind: \u001b[32m'schema'\u001b[39m,\n type: \u001b[32m'picklist'\u001b[39m,\n input: \u001b[32m'mp4'\u001b[39m,\n expected: \u001b[32m'(\"jpg\" | \"png\")'\u001b[39m,\n received: \u001b[32m'\"mp4\"'\u001b[39m,\n message: \u001b[32m'Invalid type: Expected (\"jpg\" | \"png\") but received \"mp4\"'\u001b[39m,\n requirement: \u001b[90mundefined\u001b[39m,\n path: \u001b[36m[Array]\u001b[39m,\n issues: \u001b[90mundefined\u001b[39m,\n lang: \u001b[90mundefined\u001b[39m,\n abortEarly: \u001b[90mundefined\u001b[39m,\n abortPipeEarly: \u001b[90mundefined\u001b[39m\n },\n {\n kind: \u001b[32m'schema'\u001b[39m,\n type: \u001b[32m'object'\u001b[39m,\n input: \u001b[90mundefined\u001b[39m,\n expected: \u001b[32m'\"url\"'\u001b[39m,\n received: \u001b[32m'undefined'\u001b[39m,\n message: \u001b[32m'Invalid key: Expected \"url\" but received undefined'\u001b[39m,\n requirement: \u001b[90mundefined\u001b[39m,\n path: \u001b[36m[Array]\u001b[39m,\n issues: \u001b[90mundefined\u001b[39m,\n lang: \u001b[90mundefined\u001b[39m,\n abortEarly: \u001b[90mundefined\u001b[39m,\n abortPipeEarly: \u001b[90mundefined\u001b[39m\n },\n {\n kind: \u001b[32m'schema'\u001b[39m,\n type: \u001b[32m'number'\u001b[39m,\n input: \u001b[32m'352'\u001b[39m,\n expected: \u001b[32m'number'\u001b[39m,\n received: \u001b[32m'\"352\"'\u001b[39m,\n message: \u001b[32m'Invalid type: Expected number but received \"352\"'\u001b[39m,\n requirement: \u001b[90mundefined\u001b[39m,\n path: \u001b[36m[Array]\u001b[39m,\n issues: \u001b[90mundefined\u001b[39m,\n lang: \u001b[90mundefined\u001b[39m,\n abortEarly: \u001b[90mundefined\u001b[39m,\n abortPipeEarly: \u001b[90mundefined\u001b[39m\n },\n {\n kind: \u001b[32m'schema'\u001b[39m,\n type: \u001b[32m'date'\u001b[39m,\n input: \u001b[90mundefined\u001b[39m,\n expected: \u001b[32m'Date'\u001b[39m,\n received: \u001b[32m'undefined'\u001b[39m,\n message: \u001b[32m'Invalid type: Expected Date but received undefined'\u001b[39m,\n requirement: \u001b[90mundefined\u001b[39m,\n path: \u001b[36m[Array]\u001b[39m,\n issues: \u001b[90mundefined\u001b[39m,\n lang: \u001b[90mundefined\u001b[39m,\n abortEarly: \u001b[90mundefined\u001b[39m,\n abortPipeEarly: \u001b[90mundefined\u001b[39m\n },\n {\n kind: \u001b[32m'validation'\u001b[39m,\n type: \u001b[32m'url'\u001b[39m,\n input: \u001b[32m'INVALID_URL'\u001b[39m,\n expected: \u001b[1mnull\u001b[22m,\n received: \u001b[32m'\"INVALID_URL\"'\u001b[39m,\n message: \u001b[32m'Invalid URL: Received \"INVALID_URL\"'\u001b[39m,\n requirement: \u001b[36m[Function: requirement]\u001b[39m,\n path: \u001b[36m[Array]\u001b[39m,\n issues: \u001b[90mundefined\u001b[39m,\n lang: \u001b[90mundefined\u001b[39m,\n abortEarly: \u001b[90mundefined\u001b[39m,\n abortPipeEarly: \u001b[90mundefined\u001b[39m\n },\n {\n kind: \u001b[32m'schema'\u001b[39m,\n type: \u001b[32m'object'\u001b[39m,\n input: \u001b[90mundefined\u001b[39m,\n expected: \u001b[32m'\"title\"'\u001b[39m,\n received: \u001b[32m'undefined'\u001b[39m,\n message: \u001b[32m'Invalid key: Expected \"title\" but received undefined'\u001b[39m,\n requirement: \u001b[90mundefined\u001b[39m,\n path: \u001b[36m[Array]\u001b[39m,\n issues: \u001b[90mundefined\u001b[39m,\n lang: \u001b[90mundefined\u001b[39m,\n abortEarly: \u001b[90mundefined\u001b[39m,\n abortPipeEarly: \u001b[90mundefined\u001b[39m\n },\n {\n kind: \u001b[32m'schema'\u001b[39m,\n type: \u001b[32m'object'\u001b[39m,\n input: \u001b[90mundefined\u001b[39m,\n expected: \u001b[32m'\"type\"'\u001b[39m,\n received: \u001b[32m'undefined'\u001b[39m,\n message: \u001b[32m'Invalid key: Expected \"type\" but received undefined'\u001b[39m,\n requirement: \u001b[90mundefined\u001b[39m,\n path: \u001b[36m[Array]\u001b[39m,\n issues: \u001b[90mundefined\u001b[39m,\n lang: \u001b[90mundefined\u001b[39m,\n abortEarly: \u001b[90mundefined\u001b[39m,\n abortPipeEarly: \u001b[90mundefined\u001b[39m\n },\n {\n kind: \u001b[32m'schema'\u001b[39m,\n type: \u001b[32m'object'\u001b[39m,\n input: \u001b[90mundefined\u001b[39m,\n expected: \u001b[32m'\"size\"'\u001b[39m,\n received: \u001b[32m'undefined'\u001b[39m,\n message: \u001b[32m'Invalid key: Expected \"size\" but received undefined'\u001b[39m,\n requirement: \u001b[90mundefined\u001b[39m,\n path: \u001b[36m[Array]\u001b[39m,\n issues: \u001b[90mundefined\u001b[39m,\n lang: \u001b[90mundefined\u001b[39m,\n abortEarly: \u001b[90mundefined\u001b[39m,\n abortPipeEarly: \u001b[90mundefined\u001b[39m\n }\n ]\n}\n","lineCount":218},{"type":"success","libraryName":"yup","version":"1.7.1","snippet":"schema.validateSync(data)","output":"ValidationError: ratings[1].images[0].url must be a valid URL\n at createError (/node_modules/\u001b[4m.pnpm\u001b[24m/yup@1.7.1/node_modules/\u001b[4myup\u001b[24m/index.js:352:21)\n at handleResult (/node_modules/\u001b[4m.pnpm\u001b[24m/yup@1.7.1/node_modules/\u001b[4myup\u001b[24m/index.js:371:104)\n at validate (/node_modules/\u001b[4m.pnpm\u001b[24m/yup@1.7.1/node_modules/\u001b[4myup\u001b[24m/index.js:394:5)\n at StringSchema.runTests (/node_modules/\u001b[4m.pnpm\u001b[24m/yup@1.7.1/node_modules/\u001b[4myup\u001b[24m/index.js:855:7)\n at /node_modules/\u001b[4m.pnpm\u001b[24m/yup@1.7.1/node_modules/\u001b[4myup\u001b[24m/index.js:810:12\n at nextOnce (/node_modules/\u001b[4m.pnpm\u001b[24m/yup@1.7.1/node_modules/\u001b[4myup\u001b[24m/index.js:841:7)\n at finishTestRun (/node_modules/\u001b[4m.pnpm\u001b[24m/yup@1.7.1/node_modules/\u001b[4myup\u001b[24m/index.js:860:11)\n at handleResult (/node_modules/\u001b[4m.pnpm\u001b[24m/yup@1.7.1/node_modules/\u001b[4myup\u001b[24m/index.js:371:124)\n at validate (/node_modules/\u001b[4m.pnpm\u001b[24m/yup@1.7.1/node_modules/\u001b[4myup\u001b[24m/index.js:394:5)\n at StringSchema.runTests (/node_modules/\u001b[4m.pnpm\u001b[24m/yup@1.7.1/node_modules/\u001b[4myup\u001b[24m/index.js:855:7) {\n value: {\n ratings: [ \u001b[36m[Object]\u001b[39m, \u001b[36m[Object]\u001b[39m ],\n images: [ \u001b[36m[Object]\u001b[39m, \u001b[36m[Object]\u001b[39m, \u001b[36m[Object]\u001b[39m ],\n tags: [ \u001b[32m'fruit'\u001b[39m, \u001b[1mnull\u001b[22m, \u001b[32m'round'\u001b[39m, \u001b[90mundefined\u001b[39m, \u001b[32m'juicy'\u001b[39m, \u001b[32m'healthy'\u001b[39m ],\n quantity: \u001b[33m1000\u001b[39m,\n discount: \u001b[1mnull\u001b[22m,\n price: \u001b[33m0\u001b[39m,\n description: \u001b[32m'Red apple from Lake Constance'\u001b[39m,\n brand: \u001b[32m'Sunny Backyard'\u001b[39m,\n title: \u001b[32m''\u001b[39m,\n created: \u001b[35m2026-06-20T20:53:16.234Z\u001b[39m,\n id: \u001b[33m252\u001b[39m\n },\n path: \u001b[32m'ratings[1].images[0].url'\u001b[39m,\n type: \u001b[32m'url'\u001b[39m,\n params: {\n value: \u001b[32m'INVALID_URL'\u001b[39m,\n originalValue: \u001b[32m'INVALID_URL'\u001b[39m,\n label: \u001b[90mundefined\u001b[39m,\n path: \u001b[32m'ratings[1].images[0].url'\u001b[39m,\n spec: {\n strip: \u001b[33mfalse\u001b[39m,\n strict: \u001b[33mfalse\u001b[39m,\n abortEarly: \u001b[33mtrue\u001b[39m,\n recursive: \u001b[33mtrue\u001b[39m,\n disableStackTrace: \u001b[33mfalse\u001b[39m,\n nullable: \u001b[33mfalse\u001b[39m,\n optional: \u001b[33mfalse\u001b[39m,\n coerce: \u001b[33mtrue\u001b[39m\n },\n disableStackTrace: \u001b[33mfalse\u001b[39m,\n regex: \u001b[32m/\u001b[39m\u001b[35m^\u001b[39m\u001b[31m(\u001b[39m\u001b[33m(\u001b[39m\u001b[35mh\u001b[39m\u001b[35mt\u001b[39m\u001b[35mt\u001b[39m\u001b[35mp\u001b[39m\u001b[35ms\u001b[39m\u001b[31m?\u001b[39m\u001b[31m|\u001b[39m\u001b[35mf\u001b[39m\u001b[35mt\u001b[39m\u001b[35mp\u001b[39m\u001b[33m)\u001b[39m\u001b[36m:\u001b[39m\u001b[31m)\u001b[39m\u001b[35m?\u001b[39m\u001b[33m\\/\u001b[39m\u001b[33m\\/\u001b[39m\u001b[31m(\u001b[39m\u001b[33m(\u001b[39m\u001b[36m(\u001b[39m\u001b[35m(\u001b[39m\u001b[32m[\u001b[39m\u001b[31ma\u001b[39m\u001b[33m-\u001b[39m\u001b[31mz\u001b[39m\u001b[32m]\u001b[39m\u001b[36m|\u001b[39m\u001b[31m\\d\u001b[39m\u001b[36m|\u001b[39m\u001b[31m-\u001b[39m\u001b[36m|\u001b[39m\u001b[31m\\.\u001b[39m\u001b[36m|\u001b[39m\u001b[31m_\u001b[39m\u001b[36m|\u001b[39m\u001b[31m~\u001b[39m\u001b[36m|\u001b[39m\u001b[32m[\u001b[39m\u001b[31m\\u\u001b[39m\u001b[31m0\u001b[39m\u001b[31m0\u001b[39m\u001b[31mA\u001b[39m\u001b[31m0\u001b[39m\u001b[33m-\u001b[39m\u001b[31m\\u\u001b[39m\u001b[31mD\u001b[39m\u001b[31m7\u001b[39m\u001b[31mF\u001b[39m\u001b[31mF\u001b[39m\u001b[31m\\u\u001b[39m\u001b[31mF\u001b[39m\u001b[31m9\u001b[39m\u001b[31m0\u001b[39m\u001b[31m0\u001b[39m\u001b[33m-\u001b[39m\u001b[31m\\u\u001b[39m\u001b[31mF\u001b[39m\u001b[31mD\u001b[39m\u001b[31mC\u001b[39m\u001b[31mF\u001b[39m\u001b[31m\\u\u001b[39m\u001b[31mF\u001b[39m\u001b[31mD\u001b[39m\u001b[31mF\u001b[39m\u001b[31m0\u001b[39m\u001b[33m-\u001b[39m\u001b[31m\\u\u001b[39m\u001b[31mF\u001b[39m\u001b[31mF\u001b[39m\u001b[31mE\u001b[39m\u001b[31mF\u001b[39m\u001b[32m]\u001b[39m\u001b[35m)\u001b[39m\u001b[33m|\u001b[39m\u001b[35m(\u001b[39m\u001b[31m%\u001b[39m\u001b[32m[\u001b[39m\u001b[31m\\d\u001b[39m\u001b[31ma\u001b[39m\u001b[33m-\u001b[39m\u001b[31mf\u001b[39m\u001b[32m]\u001b[39m\u001b[32m{\u001b[39m\u001b[33m2\u001b[39m\u001b[32m}\u001b[39m\u001b[35m)\u001b[39m\u001b[33m|\u001b[39m\u001b[35m[\u001b[39m\u001b[32m!\u001b[39m\u001b[32m\\$\u001b[39m\u001b[32m&\u001b[39m\u001b[32m'\u001b[39m\u001b[32m\\(\u001b[39m\u001b[32m\\)\u001b[39m\u001b[32m\\*\u001b[39m\u001b[32m\\+\u001b[39m\u001b[32m,\u001b[39m\u001b[32m;\u001b[39m\u001b[32m=\u001b[39m\u001b[35m]\u001b[39m\u001b[33m|\u001b[39m\u001b[32m:\u001b[39m\u001b[36m)\u001b[39m\u001b[31m*\u001b[39m\u001b[35m@\u001b[39m\u001b[33m)\u001b[39m\u001b[32m?\u001b[39m\u001b[33m(\u001b[39m\u001b[36m(\u001b[39m\u001b[35m(\u001b[39m\u001b[31m\\d\u001b[39m\u001b[36m|\u001b[39m\u001b[32m[\u001b[39m\u001b[31m1\u001b[39m\u001b[33m-\u001b[39m\u001b[31m9\u001b[39m\u001b[32m]\u001b[39m\u001b[31m\\d\u001b[39m\u001b[36m|\u001b[39m\u001b[31m1\u001b[39m\u001b[31m\\d\u001b[39m\u001b[31m\\d\u001b[39m\u001b[36m|\u001b[39m\u001b[31m2\u001b[39m\u001b[32m[\u001b[39m\u001b[31m0\u001b[39m\u001b[33m-\u001b[39m\u001b[31m4\u001b[39m\u001b[32m]\u001b[39m\u001b[31m\\d\u001b[39m\u001b[36m|\u001b[39m\u001b[31m2\u001b[39m\u001b[31m5\u001b[39m\u001b[32m[\u001b[39m\u001b[31m0\u001b[39m\u001b[33m-\u001b[39m\u001b[31m5\u001b[39m\u001b[32m]\u001b[39m\u001b[35m)\u001b[39m\u001b[32m\\.\u001b[39m\u001b[35m(\u001b[39m\u001b[31m\\d\u001b[39m\u001b[36m|\u001b[39m\u001b[32m[\u001b[39m\u001b[31m1\u001b[39m\u001b[33m-\u001b[39m\u001b[31m9\u001b[39m\u001b[32m]\u001b[39m\u001b[31m\\d\u001b[39m\u001b[36m|\u001b[39m\u001b[31m1\u001b[39m\u001b[31m\\d\u001b[39m\u001b[31m\\d\u001b[39m\u001b[36m|\u001b[39m\u001b[31m2\u001b[39m\u001b[32m[\u001b[39m\u001b[31m0\u001b[39m\u001b[33m-\u001b[39m\u001b[31m4\u001b[39m\u001b[32m]\u001b[39m\u001b[31m\\d\u001b[39m\u001b[36m|\u001b[39m\u001b[31m2\u001b[39m\u001b[31m5\u001b[39m\u001b[32m[\u001b[39m\u001b[31m0\u001b[39m\u001b[33m-\u001b[39m\u001b[31m5\u001b[39m\u001b[32m]\u001b[39m\u001b[35m)\u001b[39m\u001b[32m\\.\u001b[39m\u001b[35m(\u001b[39m\u001b[31m\\d\u001b[39m\u001b[36m|\u001b[39m\u001b[32m[\u001b[39m\u001b[31m1\u001b[39m\u001b[33m-\u001b[39m\u001b[31m9\u001b[39m\u001b[32m]\u001b[39m\u001b[31m\\d\u001b[39m\u001b[36m|\u001b[39m\u001b[31m1\u001b[39m\u001b[31m\\d\u001b[39m\u001b[31m\\d\u001b[39m\u001b[36m|\u001b[39m\u001b[31m2\u001b[39m\u001b[32m[\u001b[39m\u001b[31m0\u001b[39m\u001b[33m-\u001b[39m\u001b[31m4\u001b[39m\u001b[32m]\u001b[39m\u001b[31m\\d\u001b[39m\u001b[36m|\u001b[39m\u001b[31m2\u001b[39m\u001b[31m5\u001b[39m\u001b[32m[\u001b[39m\u001b[31m0\u001b[39m\u001b[33m-\u001b[39m\u001b[31m5\u001b[39m\u001b[32m]\u001b[39m\u001b[35m)\u001b[39m\u001b[32m\\.\u001b[39m\u001b[35m(\u001b[39m\u001b[31m\\d\u001b[39m\u001b[36m|\u001b[39m\u001b[32m[\u001b[39m\u001b[31m1\u001b[39m\u001b[33m-\u001b[39m\u001b[31m9\u001b[39m\u001b[32m]\u001b[39m\u001b[31m\\d\u001b[39m\u001b[36m|\u001b[39m\u001b[31m1\u001b[39m\u001b[31m\\d\u001b[39m\u001b[31m\\d\u001b[39m\u001b[36m|\u001b[39m\u001b[31m2\u001b[39m\u001b[32m[\u001b[39m\u001b[31m0\u001b[39m\u001b[33m-\u001b[39m\u001b[31m4\u001b[39m\u001b[32m]\u001b[39m\u001b[31m\\d\u001b[39m\u001b[36m|\u001b[39m\u001b[31m2\u001b[39m\u001b[31m5\u001b[39m\u001b[32m[\u001b[39m\u001b[31m0\u001b[39m\u001b[33m-\u001b[39m\u001b[31m5\u001b[39m\u001b[32m]\u001b[39m\u001b[35m)\u001b[39m\u001b[36m)\u001b[39m\u001b[31m|\u001b[39m\u001b[36m(\u001b[39m\u001b[35m(\u001b[39m\u001b[32m(\u001b[39m\u001b[31m[\u001b[39m\u001b[33ma\u001b[39m\u001b[36m-\u001b[39m\u001b[33mz\u001b[39m\u001b[31m]\u001b[39m\u001b[35m|\u001b[39m\u001b[33m\\d\u001b[39m\u001b[35m|\u001b[39m\u001b[31m[\u001b[39m\u001b[33m\\u\u001b[39m\u001b[33m0\u001b[39m\u001b[33m0\u001b[39m\u001b[33mA\u001b[39m\u001b[33m0\u001b[39m\u001b[36m-\u001b[39m\u001b[33m\\u\u001b[39m\u001b[33mD\u001b[39m\u001b[33m7\u001b[39m\u001b[33mF\u001b[39m\u001b[33mF\u001b[39m\u001b[33m\\u\u001b[39m\u001b[33mF\u001b[39m\u001b[33m9\u001b[39m\u001b[33m0\u001b[39m\u001b[33m0\u001b[39m\u001b[36m-\u001b[39m\u001b[33m\\u\u001b[39m\u001b[33mF\u001b[39m\u001b[33mD\u001b[39m\u001b[33mC\u001b[39m\u001b[33mF\u001b[39m\u001b[33m\\u\u001b[39m\u001b[33mF\u001b[39m\u001b[33mD\u001b[39m\u001b[33mF\u001b[39m\u001b[33m0\u001b[39m\u001b[36m-\u001b[39m\u001b[33m\\u\u001b[39m\u001b[33mF\u001b[39m\u001b[33mF\u001b[39m\u001b[33mE\u001b[39m\u001b[33mF\u001b[39m\u001b[31m]\u001b[39m\u001b[32m)\u001b[39m\u001b[36m|\u001b[39m\u001b[32m(\u001b[39m\u001b[31m(\u001b[39m\u001b[33m[\u001b[39m\u001b[36ma\u001b[39m\u001b[35m-\u001b[39m\u001b[36mz\u001b[39m\u001b[33m]\u001b[39m\u001b[32m|\u001b[39m\u001b[36m\\d\u001b[39m\u001b[32m|\u001b[39m\u001b[33m[\u001b[39m\u001b[36m\\u\u001b[39m\u001b[36m0\u001b[39m\u001b[36m0\u001b[39m\u001b[36mA\u001b[39m\u001b[36m0\u001b[39m\u001b[35m-\u001b[39m\u001b[36m\\u\u001b[39m\u001b[36mD\u001b[39m\u001b[36m7\u001b[39m\u001b[36mF\u001b[39m\u001b[36mF\u001b[39m\u001b[36m\\u\u001b[39m\u001b[36mF\u001b[39m\u001b[36m9\u001b[39m\u001b[36m0\u001b[39m\u001b[36m0\u001b[39m\u001b[35m-\u001b[39m\u001b[36m\\u\u001b[39m\u001b[36mF\u001b[39m\u001b[36mD\u001b[39m\u001b[36mC\u001b[39m\u001b[36mF\u001b[39m\u001b[36m\\u\u001b[39m\u001b[36mF\u001b[39m\u001b[36mD\u001b[39m\u001b[36mF\u001b[39m\u001b[36m0\u001b[39m\u001b[35m-\u001b[39m\u001b[36m\\u\u001b[39m\u001b[36mF\u001b[39m\u001b[36mF\u001b[39m\u001b[36mE\u001b[39m\u001b[36mF\u001b[39m\u001b[33m]\u001b[39m\u001b[31m)\u001b[39m\u001b[31m(\u001b[39m\u001b[33m[\u001b[39m\u001b[36ma\u001b[39m\u001b[35m-\u001b[39m\u001b[36mz\u001b[39m\u001b[33m]\u001b[39m\u001b[32m|\u001b[39m\u001b[36m\\d\u001b[39m\u001b[32m|\u001b[39m\u001b[36m-\u001b[39m\u001b[32m|\u001b[39m\u001b[36m\\.\u001b[39m\u001b[32m|\u001b[39m\u001b[36m_\u001b[39m\u001b[32m|\u001b[39m\u001b[36m~\u001b[39m\u001b[32m|\u001b[39m\u001b[33m[\u001b[39m\u001b[36m\\u\u001b[39m\u001b[36m0\u001b[39m\u001b[36m0\u001b[39m\u001b[36mA\u001b[39m\u001b[36m0\u001b[39m\u001b[35m-\u001b[39m\u001b[36m\\u\u001b[39m\u001b[36mD\u001b[39m\u001b[36m7\u001b[39m\u001b[36mF\u001b[39m\u001b[36mF\u001b[39m\u001b[36m\\u\u001b[39m\u001b[36mF\u001b[39m\u001b[36m9\u001b[39m\u001b[36m0\u001b[39m\u001b[36m0\u001b[39m\u001b[35m-\u001b[39m\u001b[36m\\u\u001b[39m\u001b[36mF\u001b[39m\u001b[36mD\u001b[39m\u001b[36mC\u001b[39m\u001b[36mF\u001b[39m\u001b[36m\\u\u001b[39m\u001b[36mF\u001b[39m\u001b[36mD\u001b[39m\u001b[36mF\u001b[39m\u001b[36m0\u001b[39m\u001b[35m-\u001b[39m\u001b[36m\\u\u001b[39m\u001b[36mF\u001b[39m\u001b[36mF\u001b[39m\u001b[36mE\u001b[39m\u001b[36mF\u001b[39m\u001b[33m]\u001b[39m\u001b[31m)\u001b[39m\u001b[35m*\u001b[39m\u001b[31m(\u001b[39m\u001b[33m[\u001b[39m\u001b[36ma\u001b[39m\u001b[35m-\u001b[39m\u001b[36mz\u001b[39m\u001b[33m]\u001b[39m\u001b[32m|\u001b[39m\u001b[36m\\d\u001b[39m\u001b[32m|\u001b[39m\u001b[33m[\u001b[39m\u001b[36m\\u\u001b[39m\u001b[36m0\u001b[39m\u001b[36m0\u001b[39m\u001b[36mA\u001b[39m\u001b[36m0\u001b[39m\u001b[35m-\u001b[39m\u001b[36m\\u\u001b[39m\u001b[36mD\u001b[39m\u001b[36m7\u001b[39m\u001b[36mF\u001b[39m\u001b[36mF\u001b[39m\u001b[36m\\u\u001b[39m\u001b[36mF\u001b[39m\u001b[36m9\u001b[39m\u001b[36m0\u001b[39m\u001b[36m0\u001b[39m\u001b[35m-\u001b[39m\u001b[36m\\u\u001b[39m\u001b[36mF\u001b[39m\u001b[36mD\u001b[39m\u001b[36mC\u001b[39m\u001b[36mF\u001b[39m\u001b[36m\\u\u001b[39m\u001b[36mF\u001b[39m\u001b[36mD\u001b[39m\u001b[36mF\u001b[39m\u001b[36m0\u001b[39m\u001b[35m-\u001b[39m\u001b[36m\\u\u001b[39m\u001b[36mF\u001b[39m\u001b[36mF\u001b[39m\u001b[36mE\u001b[39m\u001b[36mF\u001b[39m\u001b[33m]\u001b[39m\u001b[31m)\u001b[39m\u001b[32m)\u001b[39m\u001b[35m)\u001b[39m\u001b[32m\\.\u001b[39m\u001b[36m)\u001b[39m\u001b[31m+\u001b[39m\u001b[36m(\u001b[39m\u001b[35m(\u001b[39m\u001b[32m[\u001b[39m\u001b[31ma\u001b[39m\u001b[33m-\u001b[39m\u001b[31mz\u001b[39m\u001b[32m]\u001b[39m\u001b[36m|\u001b[39m\u001b[32m[\u001b[39m\u001b[31m\\u\u001b[39m\u001b[31m0\u001b[39m\u001b[31m0\u001b[39m\u001b[31mA\u001b[39m\u001b[31m0\u001b[39m\u001b[33m-\u001b[39m\u001b[31m\\u\u001b[39m\u001b[31mD\u001b[39m\u001b[31m7\u001b[39m\u001b[31mF\u001b[39m\u001b[31mF\u001b[39m\u001b[31m\\u\u001b[39m\u001b[31mF\u001b[39m\u001b[31m9\u001b[39m\u001b[31m0\u001b[39m\u001b[31m0\u001b[39m\u001b[33m-\u001b[39m\u001b[31m\\u\u001b[39m\u001b[31mF\u001b[39m\u001b[31mD\u001b[39m\u001b[31mC\u001b[39m\u001b[31mF\u001b[39m\u001b[31m\\u\u001b[39m\u001b[31mF\u001b[39m\u001b[31mD\u001b[39m\u001b[31mF\u001b[39m\u001b[31m0\u001b[39m\u001b[33m-\u001b[39m\u001b[31m\\u\u001b[39m\u001b[31mF\u001b[39m\u001b[31mF\u001b[39m\u001b[31mE\u001b[39m\u001b[31mF\u001b[39m\u001b[32m]\u001b[39m\u001b[35m)\u001b[39m\u001b[33m|\u001b[39m\u001b[35m(\u001b[39m\u001b[32m(\u001b[39m\u001b[31m[\u001b[39m\u001b[33ma\u001b[39m\u001b[36m-\u001b[39m\u001b[33mz\u001b[39m\u001b[31m]\u001b[39m\u001b[35m|\u001b[39m\u001b[31m[\u001b[39m\u001b[33m\\u\u001b[39m\u001b[33m0\u001b[39m\u001b[33m0\u001b[39m\u001b[33mA\u001b[39m\u001b[33m0\u001b[39m\u001b[36m-\u001b[39m\u001b[33m\\u\u001b[39m\u001b[33mD\u001b[39m\u001b[33m7\u001b[39m\u001b[33mF\u001b[39m\u001b[33mF\u001b[39m\u001b[33m\\u\u001b[39m\u001b[33mF\u001b[39m\u001b[33m9\u001b[39m\u001b[33m0\u001b[39m\u001b[33m0\u001b[39m\u001b[36m-\u001b[39m\u001b[33m\\u\u001b[39m\u001b[33mF\u001b[39m\u001b[33mD\u001b[39m\u001b[33mC\u001b[39m\u001b[33mF\u001b[39m\u001b[33m\\u\u001b[39m\u001b[33mF\u001b[39m\u001b[33mD\u001b[39m\u001b[33mF\u001b[39m\u001b[33m0\u001b[39m\u001b[36m-\u001b[39m\u001b[33m\\u\u001b[39m\u001b[33mF\u001b[39m\u001b[33mF\u001b[39m\u001b[33mE\u001b[39m\u001b[33mF\u001b[39m\u001b[31m]\u001b[39m\u001b[32m)\u001b[39m\u001b[32m(\u001b[39m\u001b[31m[\u001b[39m\u001b[33ma\u001b[39m\u001b[36m-\u001b[39m\u001b[33mz\u001b[39m\u001b[31m]\u001b[39m\u001b[35m|\u001b[39m\u001b[33m\\d\u001b[39m\u001b[35m|\u001b[39m\u001b[33m-\u001b[39m\u001b[35m|\u001b[39m\u001b[33m\\.\u001b[39m\u001b[35m|\u001b[39m\u001b[33m_\u001b[39m\u001b[35m|\u001b[39m\u001b[33m~\u001b[39m\u001b[35m|\u001b[39m\u001b[31m[\u001b[39m\u001b[33m\\u\u001b[39m\u001b[33m0\u001b[39m\u001b[33m0\u001b[39m\u001b[33mA\u001b[39m\u001b[33m0\u001b[39m\u001b[36m-\u001b[39m\u001b[33m\\u\u001b[39m\u001b[33mD\u001b[39m\u001b[33m7\u001b[39m\u001b[33mF\u001b[39m\u001b[33mF\u001b[39m\u001b[33m\\u\u001b[39m\u001b[33mF\u001b[39m\u001b[33m9\u001b[39m\u001b[33m0\u001b[39m\u001b[33m0\u001b[39m\u001b[36m-\u001b[39m\u001b[33m\\u\u001b[39m\u001b[33mF\u001b[39m\u001b[33mD\u001b[39m\u001b[33mC\u001b[39m\u001b[33mF\u001b[39m\u001b[33m\\u\u001b[39m\u001b[33mF\u001b[39m\u001b[33mD\u001b[39m\u001b[33mF\u001b[39m\u001b[33m0\u001b[39m\u001b[36m-\u001b[39m\u001b[33m\\u\u001b[39m\u001b[33mF\u001b[39m\u001b[33mF\u001b[39m\u001b[33mE\u001b[39m\u001b[33mF\u001b[39m\u001b[31m]\u001b[39m\u001b[32m)\u001b[39m\u001b[36m*\u001b[39m\u001b[32m(\u001b[39m\u001b[31m[\u001b[39m\u001b[33ma\u001b[39m\u001b[36m-\u001b[39m\u001b[33mz\u001b[39m\u001b[31m]\u001b[39m\u001b[35m|\u001b[39m\u001b[31m[\u001b[39m\u001b[33m\\u\u001b[39m\u001b[33m0\u001b[39m\u001b[33m0\u001b[39m\u001b[33mA\u001b[39m\u001b[33m0\u001b[39m\u001b[36m-\u001b[39m\u001b[33m\\u\u001b[39m\u001b[33mD\u001b[39m\u001b[33m7\u001b[39m\u001b[33mF\u001b[39m\u001b[33mF\u001b[39m\u001b[33m\\u\u001b[39m\u001b[33mF\u001b[39m\u001b[33m9\u001b[39m\u001b[33m0\u001b[39m\u001b[33m0\u001b[39m\u001b[36m-\u001b[39m\u001b[33m\\u\u001b[39m\u001b[33mF\u001b[39m\u001b[33mD\u001b[39m\u001b[33mC\u001b[39m\u001b[33mF\u001b[39m\u001b[33m\\u\u001b[39m\u001b[33mF\u001b[39m\u001b[33mD\u001b[39m\u001b[33mF\u001b[39m\u001b[33m0\u001b[39m\u001b[36m-\u001b[39m\u001b[33m\\u\u001b[39m\u001b[33mF\u001b[39m\u001b[33mF\u001b[39m\u001b[33mE\u001b[39m\u001b[33mF\u001b[39m\u001b[31m]\u001b[39m\u001b[32m)\u001b[39m\u001b[35m)\u001b[39m\u001b[36m)\u001b[39m\u001b[35m\\.\u001b[39m\u001b[31m?\u001b[39m\u001b[33m)\u001b[39m\u001b[33m(\u001b[39m\u001b[35m:\u001b[39m\u001b[35m\\d\u001b[39m\u001b[31m*\u001b[39m\u001b[33m)\u001b[39m\u001b[32m?\u001b[39m\u001b[31m)\u001b[39m\u001b[31m(\u001b[39m\u001b[36m\\/\u001b[39m\u001b[33m(\u001b[39m\u001b[36m(\u001b[39m\u001b[35m(\u001b[39m\u001b[32m[\u001b[39m\u001b[31ma\u001b[39m\u001b[33m-\u001b[39m\u001b[31mz\u001b[39m\u001b[32m]\u001b[39m\u001b[36m|\u001b[39m\u001b[31m\\d\u001b[39m\u001b[36m|\u001b[39m\u001b[31m-\u001b[39m\u001b[36m|\u001b[39m\u001b[31m\\.\u001b[39m\u001b[36m|\u001b[39m\u001b[31m_\u001b[39m\u001b[36m|\u001b[39m\u001b[31m~\u001b[39m\u001b[36m|\u001b[39m\u001b[32m[\u001b[39m\u001b[31m\\u\u001b[39m\u001b[31m0\u001b[39m\u001b[31m0\u001b[39m\u001b[31mA\u001b[39m\u001b[31m0\u001b[39m\u001b[33m-\u001b[39m\u001b[31m\\u\u001b[39m\u001b[31mD\u001b[39m\u001b[31m7\u001b[39m\u001b[31mF\u001b[39m\u001b[31mF\u001b[39m\u001b[31m\\u\u001b[39m\u001b[31mF\u001b[39m\u001b[31m9\u001b[39m\u001b[31m0\u001b[39m\u001b[31m0\u001b[39m\u001b[33m-\u001b[39m\u001b[31m\\u\u001b[39m\u001b[31mF\u001b[39m\u001b[31mD\u001b[39m\u001b[31mC\u001b[39m\u001b[31mF\u001b[39m\u001b[31m\\u\u001b[39m\u001b[31mF\u001b[39m\u001b[31mD\u001b[39m\u001b[31mF\u001b[39m\u001b[31m0\u001b[39m\u001b[33m-\u001b[39m\u001b[31m\\u\u001b[39m\u001b[31mF\u001b[39m\u001b[31mF\u001b[39m\u001b[31mE\u001b[39m\u001b[31mF\u001b[39m\u001b[32m]\u001b[39m\u001b[35m)\u001b[39m\u001b[33m|\u001b[39m\u001b[35m(\u001b[39m\u001b[31m%\u001b[39m\u001b[32m[\u001b[39m\u001b[31m\\d\u001b[39m\u001b[31ma\u001b[39m\u001b[33m-\u001b[39m\u001b[31mf\u001b[39m\u001b[32m]\u001b[39m\u001b[32m{\u001b[39m\u001b[33m2\u001b[39m\u001b[32m}\u001b[39m\u001b[35m)\u001b[39m\u001b[33m|\u001b[39m\u001b[35m[\u001b[39m\u001b[32m!\u001b[39m\u001b[32m\\$\u001b[39m\u001b[32m&\u001b[39m\u001b[32m'\u001b[39m\u001b[32m\\(\u001b[39m\u001b[32m\\)\u001b[39m\u001b[32m\\*\u001b[39m\u001b[32m\\+\u001b[39m\u001b[32m,\u001b[39m\u001b[32m;\u001b[39m\u001b[32m=\u001b[39m\u001b[35m]\u001b[39m\u001b[33m|\u001b[39m\u001b[32m:\u001b[39m\u001b[33m|\u001b[39m\u001b[32m@\u001b[39m\u001b[36m)\u001b[39m\u001b[31m+\u001b[39m\u001b[36m(\u001b[39m\u001b[32m\\/\u001b[39m\u001b[35m(\u001b[39m\u001b[32m(\u001b[39m\u001b[31m[\u001b[39m\u001b[33ma\u001b[39m\u001b[36m-\u001b[39m\u001b[33mz\u001b[39m\u001b[31m]\u001b[39m\u001b[35m|\u001b[39m\u001b[33m\\d\u001b[39m\u001b[35m|\u001b[39m\u001b[33m-\u001b[39m\u001b[35m|\u001b[39m\u001b[33m\\.\u001b[39m\u001b[35m|\u001b[39m\u001b[33m_\u001b[39m\u001b[35m|\u001b[39m\u001b[33m~\u001b[39m\u001b[35m|\u001b[39m\u001b[31m[\u001b[39m\u001b[33m\\u\u001b[39m\u001b[33m0\u001b[39m\u001b[33m0\u001b[39m\u001b[33mA\u001b[39m\u001b[33m0\u001b[39m\u001b[36m-\u001b[39m\u001b[33m\\u\u001b[39m\u001b[33mD\u001b[39m\u001b[33m7\u001b[39m\u001b[33mF\u001b[39m\u001b[33mF\u001b[39m\u001b[33m\\u\u001b[39m\u001b[33mF\u001b[39m\u001b[33m9\u001b[39m\u001b[33m0\u001b[39m\u001b[33m0\u001b[39m\u001b[36m-\u001b[39m\u001b[33m\\u\u001b[39m\u001b[33mF\u001b[39m\u001b[33mD\u001b[39m\u001b[33mC\u001b[39m\u001b[33mF\u001b[39m\u001b[33m\\u\u001b[39m\u001b[33mF\u001b[39m\u001b[33mD\u001b[39m\u001b[33mF\u001b[39m\u001b[33m0\u001b[39m\u001b[36m-\u001b[39m\u001b[33m\\u\u001b[39m\u001b[33mF\u001b[39m\u001b[33mF\u001b[39m\u001b[33mE\u001b[39m\u001b[33mF\u001b[39m\u001b[31m]\u001b[39m\u001b[32m)\u001b[39m\u001b[36m|\u001b[39m\u001b[32m(\u001b[39m\u001b[33m%\u001b[39m\u001b[31m[\u001b[39m\u001b[33m\\d\u001b[39m\u001b[33ma\u001b[39m\u001b[36m-\u001b[39m\u001b[33mf\u001b[39m\u001b[31m]\u001b[39m\u001b[31m{\u001b[39m\u001b[36m2\u001b[39m\u001b[31m}\u001b[39m\u001b[32m)\u001b[39m\u001b[36m|\u001b[39m\u001b[32m[\u001b[39m\u001b[31m!\u001b[39m\u001b[31m\\$\u001b[39m\u001b[31m&\u001b[39m\u001b[31m'\u001b[39m\u001b[31m\\(\u001b[39m\u001b[31m\\)\u001b[39m\u001b[31m\\*\u001b[39m\u001b[31m\\+\u001b[39m\u001b[31m,\u001b[39m\u001b[31m;\u001b[39m\u001b[31m=\u001b[39m\u001b[32m]\u001b[39m\u001b[36m|\u001b[39m\u001b[31m:\u001b[39m\u001b[36m|\u001b[39m\u001b[31m@\u001b[39m\u001b[35m)\u001b[39m\u001b[33m*\u001b[39m\u001b[36m)\u001b[39m\u001b[31m*\u001b[39m\u001b[33m)\u001b[39m\u001b[32m?\u001b[39m\u001b[31m)\u001b[39m\u001b[35m?\u001b[39m\u001b[31m(\u001b[39m\u001b[36m\\?\u001b[39m\u001b[33m(\u001b[39m\u001b[36m(\u001b[39m\u001b[35m(\u001b[39m\u001b[32m[\u001b[39m\u001b[31ma\u001b[39m\u001b[33m-\u001b[39m\u001b[31mz\u001b[39m\u001b[32m]\u001b[39m\u001b[36m|\u001b[39m\u001b[31m\\d\u001b[39m\u001b[36m|\u001b[39m\u001b[31m-\u001b[39m\u001b[36m|\u001b[39m\u001b[31m\\.\u001b[39m\u001b[36m|\u001b[39m\u001b[31m_\u001b[39m\u001b[36m|\u001b[39m\u001b[31m~\u001b[39m\u001b[36m|\u001b[39m\u001b[32m[\u001b[39m\u001b[31m\\u\u001b[39m\u001b[31m0\u001b[39m\u001b[31m0\u001b[39m\u001b[31mA\u001b[39m\u001b[31m0\u001b[39m\u001b[33m-\u001b[39m\u001b[31m\\u\u001b[39m\u001b[31mD\u001b[39m\u001b[31m7\u001b[39m\u001b[31mF\u001b[39m\u001b[31mF\u001b[39m\u001b[31m\\u\u001b[39m\u001b[31mF\u001b[39m\u001b[31m9\u001b[39m\u001b[31m0\u001b[39m\u001b[31m0\u001b[39m\u001b[33m-\u001b[39m\u001b[31m\\u\u001b[39m\u001b[31mF\u001b[39m\u001b[31mD\u001b[39m\u001b[31mC\u001b[39m\u001b[31mF\u001b[39m\u001b[31m\\u\u001b[39m\u001b[31mF\u001b[39m\u001b[31mD\u001b[39m\u001b[31mF\u001b[39m\u001b[31m0\u001b[39m\u001b[33m-\u001b[39m\u001b[31m\\u\u001b[39m\u001b[31mF\u001b[39m\u001b[31mF\u001b[39m\u001b[31mE\u001b[39m\u001b[31mF\u001b[39m\u001b[32m]\u001b[39m\u001b[35m)\u001b[39m\u001b[33m|\u001b[39m\u001b[35m(\u001b[39m\u001b[31m%\u001b[39m\u001b[32m[\u001b[39m\u001b[31m\\d\u001b[39m\u001b[31ma\u001b[39m\u001b[33m-\u001b[39m\u001b[31mf\u001b[39m\u001b[32m]\u001b[39m\u001b[32m{\u001b[39m\u001b[33m2\u001b[39m\u001b[32m}\u001b[39m\u001b[35m)\u001b[39m\u001b[33m|\u001b[39m\u001b[35m[\u001b[39m\u001b[32m!\u001b[39m\u001b[32m\\$\u001b[39m\u001b[32m&\u001b[39m\u001b[32m'\u001b[39m\u001b[32m\\(\u001b[39m\u001b[32m\\)\u001b[39m\u001b[32m\\*\u001b[39m\u001b[32m\\+\u001b[39m\u001b[32m,\u001b[39m\u001b[32m;\u001b[39m\u001b[32m=\u001b[39m\u001b[35m]\u001b[39m\u001b[33m|\u001b[39m\u001b[32m:\u001b[39m\u001b[33m|\u001b[39m\u001b[32m@\u001b[39m\u001b[36m)\u001b[39m\u001b[31m|\u001b[39m\u001b[36m[\u001b[39m\u001b[35m\\u\u001b[39m\u001b[35mE\u001b[39m\u001b[35m0\u001b[39m\u001b[35m0\u001b[39m\u001b[35m0\u001b[39m\u001b[32m-\u001b[39m\u001b[35m\\u\u001b[39m\u001b[35mF\u001b[39m\u001b[35m8\u001b[39m\u001b[35mF\u001b[39m\u001b[35mF\u001b[39m\u001b[36m]\u001b[39m\u001b[31m|\u001b[39m\u001b[35m\\/\u001b[39m\u001b[31m|\u001b[39m\u001b[35m\\?\u001b[39m\u001b[33m)\u001b[39m\u001b[32m*\u001b[39m\u001b[31m)\u001b[39m\u001b[35m?\u001b[39m\u001b[31m(\u001b[39m\u001b[36m\\#\u001b[39m\u001b[33m(\u001b[39m\u001b[36m(\u001b[39m\u001b[35m(\u001b[39m\u001b[32m[\u001b[39m\u001b[31ma\u001b[39m\u001b[33m-\u001b[39m\u001b[31mz\u001b[39m\u001b[32m]\u001b[39m\u001b[36m|\u001b[39m\u001b[31m\\d\u001b[39m\u001b[36m|\u001b[39m\u001b[31m-\u001b[39m\u001b[36m|\u001b[39m\u001b[31m\\.\u001b[39m\u001b[36m|\u001b[39m\u001b[31m_\u001b[39m\u001b[36m|\u001b[39m\u001b[31m~\u001b[39m\u001b[36m|\u001b[39m\u001b[32m[\u001b[39m\u001b[31m\\u\u001b[39m\u001b[31m0\u001b[39m\u001b[31m0\u001b[39m\u001b[31mA\u001b[39m\u001b[31m0\u001b[39m\u001b[33m-\u001b[39m\u001b[31m\\u\u001b[39m\u001b[31mD\u001b[39m\u001b[31m7\u001b[39m\u001b[31mF\u001b[39m\u001b[31mF\u001b[39m\u001b[31m\\u\u001b[39m\u001b[31mF\u001b[39m\u001b[31m9\u001b[39m\u001b[31m0\u001b[39m\u001b[31m0\u001b[39m\u001b[33m-\u001b[39m\u001b[31m\\u\u001b[39m\u001b[31mF\u001b[39m\u001b[31mD\u001b[39m\u001b[31mC\u001b[39m\u001b[31mF\u001b[39m\u001b[31m\\u\u001b[39m\u001b[31mF\u001b[39m\u001b[31mD\u001b[39m\u001b[31mF\u001b[39m\u001b[31m0\u001b[39m\u001b[33m-\u001b[39m\u001b[31m\\u\u001b[39m\u001b[31mF\u001b[39m\u001b[31mF\u001b[39m\u001b[31mE\u001b[39m\u001b[31mF\u001b[39m\u001b[32m]\u001b[39m\u001b[35m)\u001b[39m\u001b[33m|\u001b[39m\u001b[35m(\u001b[39m\u001b[31m%\u001b[39m\u001b[32m[\u001b[39m\u001b[31m\\d\u001b[39m\u001b[31ma\u001b[39m\u001b[33m-\u001b[39m\u001b[31mf\u001b[39m\u001b[32m]\u001b[39m\u001b[32m{\u001b[39m\u001b[33m2\u001b[39m\u001b[32m}\u001b[39m\u001b[35m)\u001b[39m\u001b[33m|\u001b[39m\u001b[35m[\u001b[39m\u001b[32m!\u001b[39m\u001b[32m\\$\u001b[39m\u001b[32m&\u001b[39m\u001b[32m'\u001b[39m\u001b[32m\\(\u001b[39m\u001b[32m\\)\u001b[39m\u001b[32m\\*\u001b[39m\u001b[32m\\+\u001b[39m\u001b[32m,\u001b[39m\u001b[32m;\u001b[39m\u001b[32m=\u001b[39m\u001b[35m]\u001b[39m\u001b[33m|\u001b[39m\u001b[32m:\u001b[39m\u001b[33m|\u001b[39m\u001b[32m@\u001b[39m\u001b[36m)\u001b[39m\u001b[31m|\u001b[39m\u001b[35m\\/\u001b[39m\u001b[31m|\u001b[39m\u001b[35m\\?\u001b[39m\u001b[33m)\u001b[39m\u001b[32m*\u001b[39m\u001b[31m)\u001b[39m\u001b[35m?\u001b[39m\u001b[35m$\u001b[39m\u001b[32m/\u001b[39m\u001b[31mi\u001b[39m\n },\n errors: [ \u001b[32m'ratings[1].images[0].url must be a valid URL'\u001b[39m ],\n inner: [],\n \u001b[32mSymbol(Symbol.toStringTag)\u001b[39m: \u001b[32m'Error'\u001b[39m\n}\n","lineCount":49},{"type":"success","libraryName":"zod","version":"4.4.3","snippet":"schema.parse(data)","output":"ZodError: [\n {\n \"origin\": \"string\",\n \"code\": \"too_small\",\n \"minimum\": 1,\n \"inclusive\": true,\n \"path\": [\n \"title\"\n ],\n \"message\": \"Too small: expected string to have >=1 characters\"\n },\n {\n \"origin\": \"number\",\n \"code\": \"too_small\",\n \"minimum\": 1,\n \"inclusive\": true,\n \"path\": [\n \"price\"\n ],\n \"message\": \"Too small: expected number to be >=1\"\n },\n {\n \"origin\": \"number\",\n \"code\": \"too_big\",\n \"maximum\": 10,\n \"inclusive\": true,\n \"path\": [\n \"quantity\"\n ],\n \"message\": \"Too big: expected number to be <=10\"\n },\n {\n \"expected\": \"string\",\n \"code\": \"invalid_type\",\n \"path\": [\n \"tags\",\n 1\n ],\n \"message\": \"Invalid input: expected string, received null\"\n },\n {\n \"expected\": \"string\",\n \"code\": \"invalid_type\",\n \"path\": [\n \"tags\",\n 3\n ],\n \"message\": \"Invalid input: expected string, received undefined\"\n },\n {\n \"expected\": \"number\",\n \"code\": \"invalid_type\",\n \"path\": [\n \"images\",\n 0,\n \"id\"\n ],\n \"message\": \"Invalid input: expected number, received undefined\"\n },\n {\n \"expected\": \"date\",\n \"code\": \"invalid_type\",\n \"path\": [\n \"images\",\n 0,\n \"created\"\n ],\n \"message\": \"Invalid input: expected date, received null\"\n },\n {\n \"code\": \"invalid_value\",\n \"values\": [\n \"jpg\",\n \"png\"\n ],\n \"path\": [\n \"images\",\n 0,\n \"type\"\n ],\n \"message\": \"Invalid option: expected one of \\\"jpg\\\"|\\\"png\\\"\"\n },\n {\n \"expected\": \"string\",\n \"code\": \"invalid_type\",\n \"path\": [\n \"images\",\n 1,\n \"url\"\n ],\n \"message\": \"Invalid input: expected string, received undefined\"\n },\n {\n \"expected\": \"number\",\n \"code\": \"invalid_type\",\n \"path\": [\n \"ratings\",\n 1,\n \"images\",\n 0,\n \"id\"\n ],\n \"message\": \"Invalid input: expected number, received string\"\n },\n {\n \"expected\": \"date\",\n \"code\": \"invalid_type\",\n \"path\": [\n \"ratings\",\n 1,\n \"images\",\n 0,\n \"created\"\n ],\n \"message\": \"Invalid input: expected date, received undefined\"\n },\n {\n \"code\": \"invalid_format\",\n \"format\": \"url\",\n \"path\": [\n \"ratings\",\n 1,\n \"images\",\n 0,\n \"url\"\n ],\n \"message\": \"Invalid URL\"\n },\n {\n \"expected\": \"string\",\n \"code\": \"invalid_type\",\n \"path\": [\n \"ratings\",\n 1,\n \"images\",\n 1,\n \"title\"\n ],\n \"message\": \"Invalid input: expected string, received undefined\"\n },\n {\n \"code\": \"invalid_value\",\n \"values\": [\n \"jpg\",\n \"png\"\n ],\n \"path\": [\n \"ratings\",\n 1,\n \"images\",\n 1,\n \"type\"\n ],\n \"message\": \"Invalid option: expected one of \\\"jpg\\\"|\\\"png\\\"\"\n },\n {\n \"expected\": \"number\",\n \"code\": \"invalid_type\",\n \"path\": [\n \"ratings\",\n 1,\n \"images\",\n 1,\n \"size\"\n ],\n \"message\": \"Invalid input: expected number, received undefined\"\n }\n]\n at Object.throw (file:///schemas/dist/benchmarks-CX-Rvyph.mjs:89:11)\n at \u001b[90mfile:///bench/\u001b[39msrc/scripts/stack/log.ts:24:28\n","lineCount":171},{"type":"success","libraryName":"zod/mini","version":"4.4.3","snippet":"schema.parse(data)","output":"$ZodError: [\n {\n \"origin\": \"string\",\n \"code\": \"too_small\",\n \"minimum\": 1,\n \"inclusive\": true,\n \"path\": [\n \"title\"\n ],\n \"message\": \"Invalid input\"\n },\n {\n \"origin\": \"number\",\n \"code\": \"too_small\",\n \"minimum\": 1,\n \"inclusive\": true,\n \"path\": [\n \"price\"\n ],\n \"message\": \"Invalid input\"\n },\n {\n \"origin\": \"number\",\n \"code\": \"too_big\",\n \"maximum\": 10,\n \"inclusive\": true,\n \"path\": [\n \"quantity\"\n ],\n \"message\": \"Invalid input\"\n },\n {\n \"expected\": \"string\",\n \"code\": \"invalid_type\",\n \"path\": [\n \"tags\",\n 1\n ],\n \"message\": \"Invalid input\"\n },\n {\n \"expected\": \"string\",\n \"code\": \"invalid_type\",\n \"path\": [\n \"tags\",\n 3\n ],\n \"message\": \"Invalid input\"\n },\n {\n \"expected\": \"number\",\n \"code\": \"invalid_type\",\n \"path\": [\n \"images\",\n 0,\n \"id\"\n ],\n \"message\": \"Invalid input\"\n },\n {\n \"expected\": \"date\",\n \"code\": \"invalid_type\",\n \"path\": [\n \"images\",\n 0,\n \"created\"\n ],\n \"message\": \"Invalid input\"\n },\n {\n \"code\": \"invalid_value\",\n \"values\": [\n \"jpg\",\n \"png\"\n ],\n \"path\": [\n \"images\",\n 0,\n \"type\"\n ],\n \"message\": \"Invalid input\"\n },\n {\n \"expected\": \"string\",\n \"code\": \"invalid_type\",\n \"path\": [\n \"images\",\n 1,\n \"url\"\n ],\n \"message\": \"Invalid input\"\n },\n {\n \"expected\": \"number\",\n \"code\": \"invalid_type\",\n \"path\": [\n \"ratings\",\n 1,\n \"images\",\n 0,\n \"id\"\n ],\n \"message\": \"Invalid input\"\n },\n {\n \"expected\": \"date\",\n \"code\": \"invalid_type\",\n \"path\": [\n \"ratings\",\n 1,\n \"images\",\n 0,\n \"created\"\n ],\n \"message\": \"Invalid input\"\n },\n {\n \"code\": \"invalid_format\",\n \"format\": \"url\",\n \"path\": [\n \"ratings\",\n 1,\n \"images\",\n 0,\n \"url\"\n ],\n \"message\": \"Invalid input\"\n },\n {\n \"expected\": \"string\",\n \"code\": \"invalid_type\",\n \"path\": [\n \"ratings\",\n 1,\n \"images\",\n 1,\n \"title\"\n ],\n \"message\": \"Invalid input\"\n },\n {\n \"code\": \"invalid_value\",\n \"values\": [\n \"jpg\",\n \"png\"\n ],\n \"path\": [\n \"ratings\",\n 1,\n \"images\",\n 1,\n \"type\"\n ],\n \"message\": \"Invalid input\"\n },\n {\n \"expected\": \"number\",\n \"code\": \"invalid_type\",\n \"path\": [\n \"ratings\",\n 1,\n \"images\",\n 1,\n \"size\"\n ],\n \"message\": \"Invalid input\"\n }\n]\n at Object.throw (file:///schemas/dist/benchmarks-C_Eicl0E.mjs:89:11)\n at \u001b[90mfile:///bench/\u001b[39msrc/scripts/stack/log.ts:24:28\n","lineCount":171},{"type":"success","libraryName":"zod/v3","version":"4.4.3","snippet":"schema.parse(data)","output":"ZodError: [\n {\n \"code\": \"too_small\",\n \"minimum\": 1,\n \"type\": \"string\",\n \"inclusive\": true,\n \"exact\": false,\n \"message\": \"String must contain at least 1 character(s)\",\n \"path\": [\n \"title\"\n ]\n },\n {\n \"code\": \"too_small\",\n \"minimum\": 1,\n \"type\": \"number\",\n \"inclusive\": true,\n \"exact\": false,\n \"message\": \"Number must be greater than or equal to 1\",\n \"path\": [\n \"price\"\n ]\n },\n {\n \"code\": \"too_big\",\n \"maximum\": 10,\n \"type\": \"number\",\n \"inclusive\": true,\n \"exact\": false,\n \"message\": \"Number must be less than or equal to 10\",\n \"path\": [\n \"quantity\"\n ]\n },\n {\n \"code\": \"invalid_type\",\n \"expected\": \"string\",\n \"received\": \"null\",\n \"path\": [\n \"tags\",\n 1\n ],\n \"message\": \"Expected string, received null\"\n },\n {\n \"code\": \"invalid_type\",\n \"expected\": \"string\",\n \"received\": \"undefined\",\n \"path\": [\n \"tags\",\n 3\n ],\n \"message\": \"Required\"\n },\n {\n \"code\": \"invalid_type\",\n \"expected\": \"number\",\n \"received\": \"undefined\",\n \"path\": [\n \"images\",\n 0,\n \"id\"\n ],\n \"message\": \"Required\"\n },\n {\n \"code\": \"invalid_type\",\n \"expected\": \"date\",\n \"received\": \"null\",\n \"path\": [\n \"images\",\n 0,\n \"created\"\n ],\n \"message\": \"Expected date, received null\"\n },\n {\n \"received\": \"mp4\",\n \"code\": \"invalid_enum_value\",\n \"options\": [\n \"jpg\",\n \"png\"\n ],\n \"path\": [\n \"images\",\n 0,\n \"type\"\n ],\n \"message\": \"Invalid enum value. Expected 'jpg' | 'png', received 'mp4'\"\n },\n {\n \"code\": \"invalid_type\",\n \"expected\": \"string\",\n \"received\": \"undefined\",\n \"path\": [\n \"images\",\n 1,\n \"url\"\n ],\n \"message\": \"Required\"\n },\n {\n \"code\": \"invalid_type\",\n \"expected\": \"number\",\n \"received\": \"string\",\n \"path\": [\n \"ratings\",\n 1,\n \"images\",\n 0,\n \"id\"\n ],\n \"message\": \"Expected number, received string\"\n },\n {\n \"code\": \"invalid_type\",\n \"expected\": \"date\",\n \"received\": \"undefined\",\n \"path\": [\n \"ratings\",\n 1,\n \"images\",\n 0,\n \"created\"\n ],\n \"message\": \"Required\"\n },\n {\n \"validation\": \"url\",\n \"code\": \"invalid_string\",\n \"message\": \"Invalid url\",\n \"path\": [\n \"ratings\",\n 1,\n \"images\",\n 0,\n \"url\"\n ]\n },\n {\n \"code\": \"invalid_type\",\n \"expected\": \"string\",\n \"received\": \"undefined\",\n \"path\": [\n \"ratings\",\n 1,\n \"images\",\n 1,\n \"title\"\n ],\n \"message\": \"Required\"\n },\n {\n \"expected\": \"'jpg' | 'png'\",\n \"received\": \"undefined\",\n \"code\": \"invalid_type\",\n \"path\": [\n \"ratings\",\n 1,\n \"images\",\n 1,\n \"type\"\n ],\n \"message\": \"Required\"\n },\n {\n \"code\": \"invalid_type\",\n \"expected\": \"number\",\n \"received\": \"undefined\",\n \"path\": [\n \"ratings\",\n 1,\n \"images\",\n 1,\n \"size\"\n ],\n \"message\": \"Required\"\n }\n]\n at get error (file:///node_modules/\u001b[4m.pnpm\u001b[24m/zod@4.4.3/node_modules/\u001b[4mzod\u001b[24m/v3/types.js:39:31)\n at ZodObject.parse (file:///node_modules/\u001b[4m.pnpm\u001b[24m/zod@4.4.3/node_modules/\u001b[4mzod\u001b[24m/v3/types.js:114:22)\n at Object.throw (file:///schemas/dist/benchmarks-Aq-epdv0.mjs:77:11)\n at \u001b[90mfile:///bench/\u001b[39msrc/scripts/stack/log.ts:24:28 {\n issues: [\n {\n code: \u001b[32m'too_small'\u001b[39m,\n minimum: \u001b[33m1\u001b[39m,\n type: \u001b[32m'string'\u001b[39m,\n inclusive: \u001b[33mtrue\u001b[39m,\n exact: \u001b[33mfalse\u001b[39m,\n message: \u001b[32m'String must contain at least 1 character(s)'\u001b[39m,\n path: \u001b[36m[Array]\u001b[39m\n },\n {\n code: \u001b[32m'too_small'\u001b[39m,\n minimum: \u001b[33m1\u001b[39m,\n type: \u001b[32m'number'\u001b[39m,\n inclusive: \u001b[33mtrue\u001b[39m,\n exact: \u001b[33mfalse\u001b[39m,\n message: \u001b[32m'Number must be greater than or equal to 1'\u001b[39m,\n path: \u001b[36m[Array]\u001b[39m\n },\n {\n code: \u001b[32m'too_big'\u001b[39m,\n maximum: \u001b[33m10\u001b[39m,\n type: \u001b[32m'number'\u001b[39m,\n inclusive: \u001b[33mtrue\u001b[39m,\n exact: \u001b[33mfalse\u001b[39m,\n message: \u001b[32m'Number must be less than or equal to 10'\u001b[39m,\n path: \u001b[36m[Array]\u001b[39m\n },\n {\n code: \u001b[32m'invalid_type'\u001b[39m,\n expected: \u001b[32m'string'\u001b[39m,\n received: \u001b[32m'null'\u001b[39m,\n path: \u001b[36m[Array]\u001b[39m,\n message: \u001b[32m'Expected string, received null'\u001b[39m\n },\n {\n code: \u001b[32m'invalid_type'\u001b[39m,\n expected: \u001b[32m'string'\u001b[39m,\n received: \u001b[32m'undefined'\u001b[39m,\n path: \u001b[36m[Array]\u001b[39m,\n message: \u001b[32m'Required'\u001b[39m\n },\n {\n code: \u001b[32m'invalid_type'\u001b[39m,\n expected: \u001b[32m'number'\u001b[39m,\n received: \u001b[32m'undefined'\u001b[39m,\n path: \u001b[36m[Array]\u001b[39m,\n message: \u001b[32m'Required'\u001b[39m\n },\n {\n code: \u001b[32m'invalid_type'\u001b[39m,\n expected: \u001b[32m'date'\u001b[39m,\n received: \u001b[32m'null'\u001b[39m,\n path: \u001b[36m[Array]\u001b[39m,\n message: \u001b[32m'Expected date, received null'\u001b[39m\n },\n {\n received: \u001b[32m'mp4'\u001b[39m,\n code: \u001b[32m'invalid_enum_value'\u001b[39m,\n options: \u001b[36m[Array]\u001b[39m,\n path: \u001b[36m[Array]\u001b[39m,\n message: \u001b[32m\"Invalid enum value. Expected 'jpg' | 'png', received 'mp4'\"\u001b[39m\n },\n {\n code: \u001b[32m'invalid_type'\u001b[39m,\n expected: \u001b[32m'string'\u001b[39m,\n received: \u001b[32m'undefined'\u001b[39m,\n path: \u001b[36m[Array]\u001b[39m,\n message: \u001b[32m'Required'\u001b[39m\n },\n {\n code: \u001b[32m'invalid_type'\u001b[39m,\n expected: \u001b[32m'number'\u001b[39m,\n received: \u001b[32m'string'\u001b[39m,\n path: \u001b[36m[Array]\u001b[39m,\n message: \u001b[32m'Expected number, received string'\u001b[39m\n },\n {\n code: \u001b[32m'invalid_type'\u001b[39m,\n expected: \u001b[32m'date'\u001b[39m,\n received: \u001b[32m'undefined'\u001b[39m,\n path: \u001b[36m[Array]\u001b[39m,\n message: \u001b[32m'Required'\u001b[39m\n },\n {\n validation: \u001b[32m'url'\u001b[39m,\n code: \u001b[32m'invalid_string'\u001b[39m,\n message: \u001b[32m'Invalid url'\u001b[39m,\n path: \u001b[36m[Array]\u001b[39m\n },\n {\n code: \u001b[32m'invalid_type'\u001b[39m,\n expected: \u001b[32m'string'\u001b[39m,\n received: \u001b[32m'undefined'\u001b[39m,\n path: \u001b[36m[Array]\u001b[39m,\n message: \u001b[32m'Required'\u001b[39m\n },\n {\n expected: \u001b[32m\"'jpg' | 'png'\"\u001b[39m,\n received: \u001b[32m'undefined'\u001b[39m,\n code: \u001b[32m'invalid_type'\u001b[39m,\n path: \u001b[36m[Array]\u001b[39m,\n message: \u001b[32m'Required'\u001b[39m\n },\n {\n code: \u001b[32m'invalid_type'\u001b[39m,\n expected: \u001b[32m'number'\u001b[39m,\n received: \u001b[32m'undefined'\u001b[39m,\n path: \u001b[36m[Array]\u001b[39m,\n message: \u001b[32m'Required'\u001b[39m\n }\n ],\n addIssue: \u001b[36m[Function (anonymous)]\u001b[39m,\n addIssues: \u001b[36m[Function (anonymous)]\u001b[39m\n}\n","lineCount":299}] \ No newline at end of file +[{"type":"success","libraryName":"@sapphire/shapeshift","version":"4.0.0","snippet":"schema.parse(data)","output":"\u001b[36mCombinedPropertyError\u001b[39m (\u001b[33m6\u001b[39m)\n \u001b[31mReceived one or more errors\u001b[39m\n\n input\u001b[32m.title\u001b[39m\n \u001b[90m|\u001b[39m \u001b[36mExpectedConstraintError\u001b[39m > \u001b[32ms.string().lengthGreaterThanOrEqual()\u001b[39m\n \u001b[90m|\u001b[39m \u001b[31mInvalid string length\u001b[39m\n \u001b[90m|\u001b[39m \n \u001b[90m|\u001b[39m \u001b[32mExpected: \u001b[39m\u001b[33mexpected.length >= 1\u001b[39m\n \u001b[90m|\u001b[39m \n \u001b[90m|\u001b[39m \u001b[31mReceived:\u001b[39m\n \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m \u001b[32m''\u001b[39m\n\n input\u001b[32m.price\u001b[39m\n \u001b[90m|\u001b[39m \u001b[36mExpectedConstraintError\u001b[39m > \u001b[32ms.number().greaterThanOrEqual()\u001b[39m\n \u001b[90m|\u001b[39m \u001b[31mInvalid number value\u001b[39m\n \u001b[90m|\u001b[39m \n \u001b[90m|\u001b[39m \u001b[32mExpected: \u001b[39m\u001b[33mexpected >= 1\u001b[39m\n \u001b[90m|\u001b[39m \n \u001b[90m|\u001b[39m \u001b[31mReceived:\u001b[39m\n \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m \u001b[33m0\u001b[39m\n\n input\u001b[32m.quantity\u001b[39m\n \u001b[90m|\u001b[39m \u001b[36mExpectedConstraintError\u001b[39m > \u001b[32ms.number().lessThanOrEqual()\u001b[39m\n \u001b[90m|\u001b[39m \u001b[31mInvalid number value\u001b[39m\n \u001b[90m|\u001b[39m \n \u001b[90m|\u001b[39m \u001b[32mExpected: \u001b[39m\u001b[33mexpected <= 10\u001b[39m\n \u001b[90m|\u001b[39m \n \u001b[90m|\u001b[39m \u001b[31mReceived:\u001b[39m\n \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m \u001b[33m1000\u001b[39m\n\n input\u001b[32m.tags\u001b[39m\n \u001b[90m|\u001b[39m \u001b[36mCombinedPropertyError\u001b[39m (\u001b[33m2\u001b[39m)\n \u001b[90m|\u001b[39m \u001b[31mReceived one or more errors\u001b[39m\n \u001b[90m|\u001b[39m \n \u001b[90m|\u001b[39m input[\u001b[33m1\u001b[39m]\n \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m \u001b[36mValidationError\u001b[39m > \u001b[32ms.string()\u001b[39m\n \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m \u001b[31mExpected a string primitive\u001b[39m\n \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m \n \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m \u001b[31mReceived:\u001b[39m\n \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m \u001b[1mnull\u001b[22m\n \u001b[90m|\u001b[39m \n \u001b[90m|\u001b[39m input[\u001b[33m3\u001b[39m]\n \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m \u001b[36mValidationError\u001b[39m > \u001b[32ms.string()\u001b[39m\n \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m \u001b[31mExpected a string primitive\u001b[39m\n \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m \n \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m \u001b[31mReceived:\u001b[39m\n \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m \u001b[90mundefined\u001b[39m\n\n input\u001b[32m.images\u001b[39m\n \u001b[90m|\u001b[39m \u001b[36mCombinedPropertyError\u001b[39m (\u001b[33m2\u001b[39m)\n \u001b[90m|\u001b[39m \u001b[31mReceived one or more errors\u001b[39m\n \u001b[90m|\u001b[39m \n \u001b[90m|\u001b[39m input[\u001b[33m0\u001b[39m]\n \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m \u001b[36mCombinedPropertyError\u001b[39m (\u001b[33m3\u001b[39m)\n \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m \u001b[31mReceived one or more errors\u001b[39m\n \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m \n \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m input\u001b[32m.id\u001b[39m\n \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m \u001b[36m[MissingPropertyError: \u001b[32mid\u001b[39m]\u001b[39m\n \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m \n \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m input\u001b[32m.created\u001b[39m\n \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m \u001b[36m[ValidationError: \u001b[32ms.date()\u001b[39m]\u001b[39m\n \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m \n \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m input\u001b[32m.type\u001b[39m\n \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m \u001b[36m[CombinedError]\u001b[39m\n \u001b[90m|\u001b[39m \n \u001b[90m|\u001b[39m input[\u001b[33m1\u001b[39m]\n \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m \u001b[36mCombinedPropertyError\u001b[39m (\u001b[33m1\u001b[39m)\n \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m \u001b[31mReceived one or more errors\u001b[39m\n \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m \n \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m input\u001b[32m.url\u001b[39m\n \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m \u001b[36m[MissingPropertyError: \u001b[32murl\u001b[39m]\u001b[39m\n\n input\u001b[32m.ratings\u001b[39m\n \u001b[90m|\u001b[39m \u001b[36mCombinedPropertyError\u001b[39m (\u001b[33m1\u001b[39m)\n \u001b[90m|\u001b[39m \u001b[31mReceived one or more errors\u001b[39m\n \u001b[90m|\u001b[39m \n \u001b[90m|\u001b[39m input[\u001b[33m1\u001b[39m]\n \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m \u001b[36mCombinedPropertyError\u001b[39m (\u001b[33m1\u001b[39m)\n \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m \u001b[31mReceived one or more errors\u001b[39m\n \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m \n \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m input\u001b[32m.images\u001b[39m\n \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m \u001b[90m|\u001b[39m \u001b[36m[CombinedPropertyError]\u001b[39m\n\n at _ObjectValidator.handleIgnoreStrategy (file:///node_modules/.pnpm/@sapphire+shapeshift@4.0.0/node_modules/@sapphire/shapeshift/dist/esm/index.mjs:2111:72)\n at _ObjectValidator.handleStrategy (file:///node_modules/.pnpm/@sapphire+shapeshift@4.0.0/node_modules/@sapphire/shapeshift/dist/esm/index.mjs:1975:47)\n at _ObjectValidator.handle (file:///node_modules/.pnpm/@sapphire+shapeshift@4.0.0/node_modules/@sapphire/shapeshift/dist/esm/index.mjs:2081:17)\n at _ObjectValidator.parse (file:///node_modules/.pnpm/@sapphire+shapeshift@4.0.0/node_modules/@sapphire/shapeshift/dist/esm/index.mjs:964:90)\n at Object.throw (file:///schemas/dist/benchmarks-DyskUV8M.mjs:93:11)\n at file:///bench/src/scripts/stack/log.ts:24:28\n","lineCount":90},{"type":"success","libraryName":"ajv","version":"8.20.0","snippet":"// const validate = ajv.compile(schema);\nvalidate(data);\nthrow new ValidationError(validate.errors || []);","output":"ValidationError: validation failed\n at Object.throw (file:///schemas/dist/benchmarks-BmhJkA0t.mjs:204:10)\n at \u001b[90mfile:///bench/\u001b[39msrc/scripts/stack/log.ts:24:28 {\n errors: [\n {\n instancePath: \u001b[32m'/title'\u001b[39m,\n schemaPath: \u001b[32m'#/properties/title/minLength'\u001b[39m,\n keyword: \u001b[32m'minLength'\u001b[39m,\n params: \u001b[36m[Object]\u001b[39m,\n message: \u001b[32m'must NOT have fewer than 1 characters'\u001b[39m\n }\n ],\n validation: \u001b[33mtrue\u001b[39m,\n ajv: \u001b[33mtrue\u001b[39m\n}\n","lineCount":16},{"type":"success","libraryName":"arktype","version":"2.2.1","snippet":"schema.assert(data)","output":"TraversalError: \n • images[0].created must be a Date (was null)\n • images[0].id must be a number (was missing)\n • images[0].type must be \"jpg\" or \"png\" (was \"mp4\")\n • images[1].url must be a string (was missing)\n • price must be at least 1 (was 0)\n • quantity must be at most 10 (was 1000)\n • ratings[1].images[0].created must be a Date (was undefined)\n • ratings[1].images[0].id must be a number (was a string)\n • ratings[1].images[0].url must be a URL string (was \"INVALID_URL\")\n • ratings[1].images[1].size must be a number (was missing)\n • ratings[1].images[1].title must be a string (was missing)\n • ratings[1].images[1].type must be \"jpg\" or \"png\" (was missing)\n • tags[1] must be a string (was null)\n • tags[3] must be a string (was undefined)\n • title must be non-empty\n at ArkErrors.toTraversalError (file:///node_modules/\u001b[4m.pnpm\u001b[24m/@ark+schema@0.56.0/node_modules/\u001b[4m@ark/schema\u001b[24m/out/shared/errors.js:146:16)\n at ArkErrors.throw (file:///node_modules/\u001b[4m.pnpm\u001b[24m/@ark+schema@0.56.0/node_modules/\u001b[4m@ark/schema\u001b[24m/out/shared/errors.js:139:20)\n at file:///node_modules/\u001b[4m.pnpm\u001b[24m/@ark+schema@0.56.0/node_modules/\u001b[4m@ark/schema\u001b[24m/out/node.js:166:85\n at Traversal.finalize (file:///node_modules/\u001b[4m.pnpm\u001b[24m/@ark+schema@0.56.0/node_modules/\u001b[4m@ark/schema\u001b[24m/out/shared/traversal.js:112:29)\n at IntersectionNode.rootApply (file:///node_modules/\u001b[4m.pnpm\u001b[24m/@ark+schema@0.56.0/node_modules/\u001b[4m@ark/schema\u001b[24m/out/node.js:118:32)\n at BaseNode.attach (file:///node_modules/\u001b[4m.pnpm\u001b[24m/@ark+schema@0.56.0/node_modules/\u001b[4m@ark/schema\u001b[24m/out/node.js:33:25)\n at IntersectionNode.assert (file:///node_modules/\u001b[4m.pnpm\u001b[24m/@ark+schema@0.56.0/node_modules/\u001b[4m@ark/schema\u001b[24m/out/node.js:166:42)\n at Object.throw (file:///schemas/dist/benchmarks-DrAuy-7o.mjs:80:11)\n at \u001b[90mfile:///bench/\u001b[39msrc/scripts/stack/log.ts:24:28\n","lineCount":26},{"type":"success","libraryName":"decoders","version":"2.9.3","snippet":"schema.verify(data)","output":"Decoding error: \n{\n \"id\": 252,\n \"created\": new Date('2026-06-23T13:24:29.516Z'),\n \"title\": \"\",\n ^^ Too short, must be at least 1 char\n \"brand\": \"Sunny Backyard\",\n \"description\": \"Red apple from Lake Constance\",\n \"price\": 0,\n ^ Too low, must be between 1 and 10000\n \"discount\": null,\n \"quantity\": 1000,\n ^^^^ Too high, must be between 1 and 10\n \"tags\": [\n \"fruit\",\n null,\n ^^^^ Must be string (at index 1)\n \"round\",\n undefined,\n \"juicy\",\n \"healthy\",\n ],\n \"images\": [\n {\n \"created\": null,\n ^^^^ Must be a Date\n \"title\": \"Close up of an apple on a tree\",\n \"type\": \"mp4\",\n ^^^^^ Must be one of 'jpg', 'png'\n \"size\": 92357232,\n \"url\": \"https://www.example.com/images/248\",\n },\n ^ Missing key: 'id' (at index 0)\n {\n \"id\": 295,\n \"created\": new Date('2026-06-23T13:24:29.516Z'),\n \"title\": \"Our apples in the final packaging\",\n \"type\": \"jpg\",\n \"size\": 83247232,\n },\n {\n \"id\": 723,\n \"created\": new Date('2026-06-23T13:24:29.516Z'),\n \"title\": \"Our fruit fields at Lake Constance\",\n \"type\": \"jpg\",\n \"size\": 72356345,\n \"url\": \"https://www.example.com/images/723\",\n },\n ],\n \"ratings\": [\n {\n \"id\": 315,\n \"stars\": 4.5,\n \"title\": \"Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean ...\" [truncated],\n \"text\": \"Tastes super delicious\",\n \"images\": [\n {\n \"id\": 835,\n \"created\": new Date('2026-06-23T13:24:29.516Z'),\n \"title\": \"The result of our apple pie\",\n \"type\": \"jpg\",\n \"size\": 8247493,\n \"url\": \"https://www.example.com/images/835\",\n },\n ],\n },\n {\n \"id\": 642,\n \"stars\": 5,\n \"title\": \"Very tasty! I will buy them again!\",\n \"text\": \"In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. N...\" [truncated],\n \"images\": [\n {\n \"id\": \"352\",\n ^^^^^ Must be number\n \"created\": undefined,\n \"title\": \"The fruit salad in a bowl\",\n \"type\": \"jpg\",\n \"size\": 3582543,\n \"url\": \"INVALID_URL\",\n ^^^^^^^^^^^^^ Must be URL\n },\n ^ Missing key: 'created' (at index 0)\n {\n \"id\": 465,\n \"created\": new Date('2026-06-23T13:24:29.516Z'),\n \"url\": \"https://www.example.com/images/465\",\n },\n ],\n },\n ^ index 1\n ],\n}\n at format (file:///node_modules/\u001b[4m.pnpm\u001b[24m/decoders@2.9.3/node_modules/\u001b[4mdecoders\u001b[24m/dist/index.js:332:18)\n at Object.verify (file:///node_modules/\u001b[4m.pnpm\u001b[24m/decoders@2.9.3/node_modules/\u001b[4mdecoders\u001b[24m/dist/index.js:351:13)\n at Object.throw (file:///schemas/dist/benchmarks-BtvuhoEt.mjs:81:11)\n at \u001b[90mfile:///bench/\u001b[39msrc/scripts/stack/log.ts:24:28\n","lineCount":98},{"type":"success","libraryName":"effect@beta","version":"4.0.0-beta.85","snippet":"Schema.decodeUnknownSync(schema)(data, { errors: \"first\" })","output":"{\n issue: Composite {\n \u001b[32m'~effect/SchemaIssue/Issue'\u001b[39m: \u001b[32m'~effect/SchemaIssue/Issue'\u001b[39m,\n _tag: \u001b[32m'Composite'\u001b[39m,\n ast: Objects {\n \u001b[32m'~effect/Schema'\u001b[39m: \u001b[32m'~effect/Schema'\u001b[39m,\n annotations: \u001b[90mundefined\u001b[39m,\n checks: \u001b[90mundefined\u001b[39m,\n encoding: \u001b[90mundefined\u001b[39m,\n context: \u001b[90mundefined\u001b[39m,\n _tag: \u001b[32m'Objects'\u001b[39m,\n propertySignatures: \u001b[36m[Array]\u001b[39m,\n indexSignatures: [],\n encodingChecks: \u001b[90mundefined\u001b[39m\n },\n actual: { _id: \u001b[32m'Option'\u001b[39m, _tag: \u001b[32m'Some'\u001b[39m, value: \u001b[36m[Object]\u001b[39m },\n issues: [ \u001b[36m[Pointer]\u001b[39m ]\n },\n _tag: \u001b[32m'SchemaError'\u001b[39m,\n \u001b[32m'~effect/Schema/SchemaError'\u001b[39m: \u001b[32m'~effect/Schema/SchemaError'\u001b[39m\n}\n","lineCount":22},{"type":"success","libraryName":"effect","version":"3.21.4","snippet":"// const decodeAll = Schema.decodeUnknownEither(\n// schema, \n// { errors: \"all\" }\n// );\nEffect.runSync(decodeAll(data));","output":"(FiberFailure) ParseError: { readonly id: number; readonly created: Date; readonly title: minLength(1) & maxLength(100); readonly brand: minLength(1) & maxLength(30); readonly description: minLength(1) & maxLength(500); readonly price: greaterThanOrEqualTo(1) & lessThanOrEqualTo(10000); readonly discount: greaterThanOrEqualTo(1) & lessThanOrEqualTo(100) | null; readonly quantity: greaterThanOrEqualTo(1) & lessThanOrEqualTo(10); readonly tags: ReadonlyArray; readonly images: ReadonlyArray<{ readonly id: number; readonly created: Date; readonly title: minLength(1) & maxLength(100); readonly type: \"jpg\" | \"png\"; readonly size: number; readonly url: { string | filter } }>; readonly ratings: ReadonlyArray<{ readonly id: number; readonly stars: greaterThanOrEqualTo(0) & lessThanOrEqualTo(5); readonly title: minLength(1) & maxLength(100); readonly text: minLength(1) & maxLength(1000); readonly images: ReadonlyArray<{ readonly id: number; readonly created: Date; readonly title: minLength(1) & maxLength(100); readonly type: \"jpg\" | \"png\"; readonly size: number; readonly url: { string | filter } }> }> }\n├─ [\"title\"]\n│ └─ minLength(1) & maxLength(100)\n│ └─ From side refinement failure\n│ └─ minLength(1)\n│ └─ Predicate refinement failure\n│ └─ Expected a string at least 1 character(s) long, actual \"\"\n├─ [\"price\"]\n│ └─ greaterThanOrEqualTo(1) & lessThanOrEqualTo(10000)\n│ └─ From side refinement failure\n│ └─ greaterThanOrEqualTo(1)\n│ └─ Predicate refinement failure\n│ └─ Expected a number greater than or equal to 1, actual 0\n├─ [\"quantity\"]\n│ └─ greaterThanOrEqualTo(1) & lessThanOrEqualTo(10)\n│ └─ Predicate refinement failure\n│ └─ Expected a number less than or equal to 10, actual 1000\n├─ [\"tags\"]\n│ └─ ReadonlyArray\n│ ├─ [1]\n│ │ └─ minLength(1) & maxLength(30)\n│ │ └─ From side refinement failure\n│ │ └─ minLength(1)\n│ │ └─ From side refinement failure\n│ │ └─ Expected string, actual null\n│ └─ [3]\n│ └─ minLength(1) & maxLength(30)\n│ └─ From side refinement failure\n│ └─ minLength(1)\n│ └─ From side refinement failure\n│ └─ Expected string, actual undefined\n├─ [\"images\"]\n│ └─ ReadonlyArray<{ readonly id: number; readonly created: Date; readonly title: minLength(1) & maxLength(100); readonly type: \"jpg\" | \"png\"; readonly size: number; readonly url: { string | filter } }>\n│ ├─ [0]\n│ │ └─ { readonly id: number; readonly created: Date; readonly title: minLength(1) & maxLength(100); readonly type: \"jpg\" | \"png\"; readonly size: number; readonly url: { string | filter } }\n│ │ ├─ [\"id\"]\n│ │ │ └─ is missing\n│ │ ├─ [\"created\"]\n│ │ │ └─ Expected Date, actual null\n│ │ └─ [\"type\"]\n│ │ └─ \"jpg\" | \"png\"\n│ │ ├─ Expected \"jpg\", actual \"mp4\"\n│ │ └─ Expected \"png\", actual \"mp4\"\n│ └─ [1]\n│ └─ { readonly id: number; readonly created: Date; readonly title: minLength(1) & maxLength(100); readonly type: \"jpg\" | \"png\"; readonly size: number; readonly url: { string | filter } }\n│ └─ [\"url\"]\n│ └─ is missing\n└─ [\"ratings\"]\n └─ ReadonlyArray<{ readonly id: number; readonly stars: greaterThanOrEqualTo(0) & lessThanOrEqualTo(5); readonly title: minLength(1) & maxLength(100); readonly text: minLength(1) & maxLength(1000); readonly images: ReadonlyArray<{ readonly id: number; readonly created: Date; readonly title: minLength(1) & maxLength(100); readonly type: \"jpg\" | \"png\"; readonly size: number; readonly url: { string | filter } }> }>\n └─ [1]\n └─ { readonly id: number; readonly stars: greaterThanOrEqualTo(0) & lessThanOrEqualTo(5); readonly title: minLength(1) & maxLength(100); readonly text: minLength(1) & maxLength(1000); readonly images: ReadonlyArray<{ readonly id: number; readonly created: Date; readonly title: minLength(1) & maxLength(100); readonly type: \"jpg\" | \"png\"; readonly size: number; readonly url: { string | filter } }> }\n └─ [\"images\"]\n └─ ReadonlyArray<{ readonly id: number; readonly created: Date; readonly title: minLength(1) & maxLength(100); readonly type: \"jpg\" | \"png\"; readonly size: number; readonly url: { string | filter } }>\n ├─ [0]\n │ └─ { readonly id: number; readonly created: Date; readonly title: minLength(1) & maxLength(100); readonly type: \"jpg\" | \"png\"; readonly size: number; readonly url: { string | filter } }\n │ ├─ [\"id\"]\n │ │ └─ Expected number, actual \"352\"\n │ ├─ [\"created\"]\n │ │ └─ Expected Date, actual undefined\n │ └─ [\"url\"]\n │ └─ { string | filter }\n │ └─ Predicate refinement failure\n │ └─ Expected { string | filter }, actual \"INVALID_URL\"\n └─ [1]\n └─ { readonly id: number; readonly created: Date; readonly title: minLength(1) & maxLength(100); readonly type: \"jpg\" | \"png\"; readonly size: number; readonly url: { string | filter } }\n ├─ [\"title\"]\n │ └─ is missing\n ├─ [\"type\"]\n │ └─ is missing\n └─ [\"size\"]\n └─ is missing\n at parseError (file:///node_modules/.pnpm/effect@3.21.4/node_modules/effect/dist/esm/ParseResult.js:241:36)\n at file:///node_modules/.pnpm/effect@3.21.4/node_modules/effect/dist/esm/Either.js:197:78\n at Module. (file:///node_modules/.pnpm/effect@3.21.4/node_modules/effect/dist/esm/Function.js:98:18)\n at file:///node_modules/.pnpm/effect@3.21.4/node_modules/effect/dist/esm/Schema.js:353:42\n at Object.throw (file:///schemas/dist/benchmarks-CGTqqZQl.mjs:125:19)\n at file:///bench/src/scripts/stack/log.ts:24:28\n","lineCount":78},{"type":"no stack","libraryName":"joi","version":"18.2.3","snippet":"throw schema.validate(data).error","output":"[Error [ValidationError]: \"title\" is not allowed to be empty] {\n _original: {\n id: \u001b[33m252\u001b[39m,\n created: \u001b[35m2026-06-23T13:24:30.769Z\u001b[39m,\n title: \u001b[32m''\u001b[39m,\n brand: \u001b[32m'Sunny Backyard'\u001b[39m,\n description: \u001b[32m'Red apple from Lake Constance'\u001b[39m,\n price: \u001b[33m0\u001b[39m,\n discount: \u001b[1mnull\u001b[22m,\n quantity: \u001b[33m1000\u001b[39m,\n tags: [ \u001b[32m'fruit'\u001b[39m, \u001b[1mnull\u001b[22m, \u001b[32m'round'\u001b[39m, \u001b[90mundefined\u001b[39m, \u001b[32m'juicy'\u001b[39m, \u001b[32m'healthy'\u001b[39m ],\n images: [ \u001b[36m[Object]\u001b[39m, \u001b[36m[Object]\u001b[39m, \u001b[36m[Object]\u001b[39m ],\n ratings: [ \u001b[36m[Object]\u001b[39m, \u001b[36m[Object]\u001b[39m ]\n },\n details: [\n {\n message: \u001b[32m'\"title\" is not allowed to be empty'\u001b[39m,\n path: \u001b[36m[Array]\u001b[39m,\n type: \u001b[32m'string.empty'\u001b[39m,\n context: \u001b[36m[Object]\u001b[39m\n }\n ]\n}\n","lineCount":24},{"type":"success","libraryName":"runtypes","version":"7.0.4","snippet":"schema.check(data)","output":"ValidationError: Expected { id: number; created: Date; title: string; brand: string; description: string; price: number; discount: number | null; quantity: number; tags: string[]; images: { id: number; created: Date; title: string; type: \"jpg\" | \"png\"; size: number; url: string; }[]; ratings: { id: number; stars: number; title: string; text: string; images: { id: number; created: Date; title: string; type: \"jpg\" | \"png\"; size: number; url: string; }[]; }[]; }, but was incompatible\n at Object.check (file:///node_modules/\u001b[4m.pnpm\u001b[24m/runtypes@7.0.4/node_modules/\u001b[4mruntypes\u001b[24m/esm/Runtype.js:119:19)\n at Object.throw (file:///schemas/dist/benchmarks-CxGH8YYm.mjs:81:11)\n at \u001b[90mfile:///bench/\u001b[39msrc/scripts/stack/log.ts:24:28 {\n failure: {\n success: \u001b[33mfalse\u001b[39m,\n message: \u001b[32m'Expected { id: number; created: Date; title: string; brand: string; description: string; price: number; discount: number | null; quantity: number; tags: string[]; images: { id: number; created: Date; title: string; type: \"jpg\" | \"png\"; size: number; url: string; }[]; ratings: { id: number; stars: number; title: string; text: string; images: { id: number; created: Date; title: string; type: \"jpg\" | \"png\"; size: number; url: string; }[]; }[]; }, but was incompatible'\u001b[39m,\n code: \u001b[32m'CONTENT_INCORRECT'\u001b[39m,\n expected: Object [Runtype<{ id: number; created: Date; title: string; brand: string; description: string; price: number; discount: number | null; quantity: number; tags: string[]; images: { id: number; created: Date; title: string; type: \"jpg\" | \"png\"; size: number; url: string; }[]; ratings: { id: number; stars: number; title: string; text: string; images: { id: number; created: Date; title: string; type: \"jpg\" | \"png\"; size: number; url: string; }[]; }[]; }>] {\n tag: \u001b[32m'object'\u001b[39m,\n fields: \u001b[36m[Object]\u001b[39m,\n isExact: \u001b[33mfalse\u001b[39m\n },\n received: {\n id: \u001b[33m252\u001b[39m,\n created: \u001b[35m2026-06-23T13:24:30.921Z\u001b[39m,\n title: \u001b[32m''\u001b[39m,\n brand: \u001b[32m'Sunny Backyard'\u001b[39m,\n description: \u001b[32m'Red apple from Lake Constance'\u001b[39m,\n price: \u001b[33m0\u001b[39m,\n discount: \u001b[1mnull\u001b[22m,\n quantity: \u001b[33m1000\u001b[39m,\n tags: \u001b[36m[Array]\u001b[39m,\n images: \u001b[36m[Array]\u001b[39m,\n ratings: \u001b[36m[Array]\u001b[39m\n },\n details: {\n title: \u001b[36m[Object]\u001b[39m,\n price: \u001b[36m[Object]\u001b[39m,\n quantity: \u001b[36m[Object]\u001b[39m,\n tags: \u001b[36m[Object]\u001b[39m,\n images: \u001b[36m[Object]\u001b[39m,\n ratings: \u001b[36m[Object]\u001b[39m\n }\n }\n}\n","lineCount":37},{"type":"success","libraryName":"superstruct","version":"2.0.2","snippet":"assert(data, schema)","output":"StructError: At path: title -- Expected a value of type `string`, but received: `\"\"`\n at validate (/node_modules/\u001b[4m.pnpm\u001b[24m/superstruct@2.0.2/node_modules/\u001b[4msuperstruct\u001b[24m/dist/index.cjs:298:27)\n at assert (/node_modules/\u001b[4m.pnpm\u001b[24m/superstruct@2.0.2/node_modules/\u001b[4msuperstruct\u001b[24m/dist/index.cjs:254:24)\n at Object.throw (file:///schemas/dist/benchmarks-CY0SKBFc.mjs:111:4)\n at \u001b[90mfile:///bench/\u001b[39msrc/scripts/stack/log.ts:24:28 {\n value: \u001b[32m''\u001b[39m,\n type: \u001b[32m'string'\u001b[39m,\n refinement: \u001b[32m'string with length between 1 and 100'\u001b[39m,\n key: \u001b[32m'title'\u001b[39m,\n path: [ \u001b[32m'title'\u001b[39m ],\n branch: [\n {\n id: \u001b[33m252\u001b[39m,\n created: \u001b[35m2026-06-23T13:24:31.039Z\u001b[39m,\n title: \u001b[32m''\u001b[39m,\n brand: \u001b[32m'Sunny Backyard'\u001b[39m,\n description: \u001b[32m'Red apple from Lake Constance'\u001b[39m,\n price: \u001b[33m0\u001b[39m,\n discount: \u001b[1mnull\u001b[22m,\n quantity: \u001b[33m1000\u001b[39m,\n tags: \u001b[36m[Array]\u001b[39m,\n images: \u001b[36m[Array]\u001b[39m,\n ratings: \u001b[36m[Array]\u001b[39m\n },\n \u001b[32m''\u001b[39m\n ],\n failures: \u001b[36m[Function (anonymous)]\u001b[39m\n}\n","lineCount":29},{"type":"success","libraryName":"sury","version":"11.0.0-alpha.8","snippet":"// const parser = S.parser(S.schema(...));\nparser(data)","output":"SuryError: Failed at [\"title\"]: String must be 1 or more characters long\n at Array. (file:///node_modules/\u001b[4m.pnpm\u001b[24m/sury@11.0.0-alpha.8/node_modules/\u001b[4msury\u001b[24m/src/Sury.res.mjs:646:11)\n at eval (eval at compileDecoder (file:///node_modules/\u001b[4m.pnpm\u001b[24m/sury@11.0.0-alpha.8/node_modules/\u001b[4msury\u001b[24m/src/Sury.res.mjs:1601:12), :3:407)\n at Object.throw (file:///schemas/dist/benchmarks-ByqxqDoH.mjs:104:4)\n at \u001b[90mfile:///bench/\u001b[39msrc/scripts/stack/log.ts:24:28 {\n code: \u001b[32m'invalid_input'\u001b[39m,\n path: \u001b[32m'[\"title\"]'\u001b[39m,\n reason: \u001b[32m'String must be 1 or more characters long'\u001b[39m,\n expected: Schema <[Object: null prototype] {}> {\n type: \u001b[32m'string'\u001b[39m,\n seq: \u001b[33m73\u001b[39m,\n decoder: \u001b[36m[Function: stringDecoderFn]\u001b[39m,\n maxLength: \u001b[33m100\u001b[39m,\n errorMessage: {\n maxLength: \u001b[32m'String must be 100 or fewer characters long'\u001b[39m,\n minLength: \u001b[32m'String must be 1 or more characters long'\u001b[39m\n },\n refiner: \u001b[36m[Function (anonymous)]\u001b[39m,\n minLength: \u001b[33m1\u001b[39m\n },\n received: Schema <[Object: null prototype] {}> {\n type: \u001b[32m'string'\u001b[39m,\n seq: \u001b[33m73\u001b[39m,\n decoder: \u001b[36m[Function: stringDecoderFn]\u001b[39m,\n maxLength: \u001b[33m100\u001b[39m,\n errorMessage: {\n maxLength: \u001b[32m'String must be 100 or fewer characters long'\u001b[39m,\n minLength: \u001b[32m'String must be 1 or more characters long'\u001b[39m\n },\n refiner: \u001b[36m[Function (anonymous)]\u001b[39m,\n minLength: \u001b[33m1\u001b[39m\n },\n unionErrors: \u001b[90mundefined\u001b[39m,\n input: \u001b[32m''\u001b[39m\n}\n","lineCount":36},{"type":"success","libraryName":"typebox","version":"1.3.0","snippet":"Value.Parse(schema, data)","output":"ParseError: Parse\n at Module.Parse (file:///node_modules/\u001b[4m.pnpm\u001b[24m/typebox@1.3.0/node_modules/\u001b[4mtypebox\u001b[24m/build/value/parse/parse.mjs:46:11)\n at Object.throw (file:///schemas/dist/benchmarks-Bim_oifr.mjs:300:10)\n at \u001b[90mfile:///bench/\u001b[39msrc/scripts/stack/log.ts:24:28 {\n [cause]: {\n source: \u001b[32m'Parse'\u001b[39m,\n errors: [\n \u001b[36m[Object]\u001b[39m, \u001b[36m[Object]\u001b[39m,\n \u001b[36m[Object]\u001b[39m, \u001b[36m[Object]\u001b[39m,\n \u001b[36m[Object]\u001b[39m, \u001b[36m[Object]\u001b[39m,\n \u001b[36m[Object]\u001b[39m, \u001b[36m[Object]\u001b[39m\n ],\n value: {\n id: \u001b[33m252\u001b[39m,\n created: \u001b[35m2026-06-23T13:24:31.431Z\u001b[39m,\n title: \u001b[32m''\u001b[39m,\n brand: \u001b[32m'Sunny Backyard'\u001b[39m,\n description: \u001b[32m'Red apple from Lake Constance'\u001b[39m,\n price: \u001b[33m0\u001b[39m,\n discount: \u001b[1mnull\u001b[22m,\n quantity: \u001b[33m1000\u001b[39m,\n tags: \u001b[36m[Array]\u001b[39m,\n images: \u001b[36m[Array]\u001b[39m,\n ratings: \u001b[36m[Array]\u001b[39m\n }\n }\n}\n","lineCount":28},{"type":"success","libraryName":"typia","version":"12.1.1","snippet":"// const assert = typia.createAssert();\nassert(data);","output":"TypeGuardError: Error on typia.createAssert(): invalid type on $input.title, expect to be string & MinLength<1>\n at Module._assertGuard (file:///node_modules/\u001b[4m.pnpm\u001b[24m/typia@12.1.1_@types+node@24.0.0_typescript@6.0.3/node_modules/\u001b[4mtypia\u001b[24m/lib/internal/_assertGuard.mjs:8:19)\n at _ao0 (file:///schemas/dist/benchmarks-D0P1CSCS.mjs:324:119)\n at file:///schemas/dist/benchmarks-D0P1CSCS.mjs:607:26\n at file:///schemas/dist/benchmarks-D0P1CSCS.mjs:612:22\n at Object.throw (file:///schemas/dist/benchmarks-D0P1CSCS.mjs:1337:4)\n at \u001b[90mfile:///bench/\u001b[39msrc/scripts/stack/log.ts:24:28 {\n method: \u001b[32m'typia.createAssert'\u001b[39m,\n path: \u001b[32m'$input.title'\u001b[39m,\n expected: \u001b[32m'string & MinLength<1>'\u001b[39m,\n value: \u001b[32m''\u001b[39m,\n description: \u001b[90mundefined\u001b[39m,\n fake_expected_typed_value_: \u001b[90mundefined\u001b[39m\n}\n","lineCount":15},{"type":"success","libraryName":"valibot","version":"1.4.1","snippet":"v.parse(schema, data)","output":"ValiError: Invalid length: Expected >=1 but received 0\n at Module.parse (file:///node_modules/\u001b[4m.pnpm\u001b[24m/valibot@1.4.1_typescript@6.0.3/node_modules/\u001b[4mvalibot\u001b[24m/dist/index.mjs:7380:28)\n at Object.throw (file:///schemas/dist/benchmarks-CAWs2_LF.mjs:97:6)\n at \u001b[90mfile:///bench/\u001b[39msrc/scripts/stack/log.ts:24:28 {\n issues: [\n {\n kind: \u001b[32m'validation'\u001b[39m,\n type: \u001b[32m'min_length'\u001b[39m,\n input: \u001b[32m''\u001b[39m,\n expected: \u001b[32m'>=1'\u001b[39m,\n received: \u001b[32m'0'\u001b[39m,\n message: \u001b[32m'Invalid length: Expected >=1 but received 0'\u001b[39m,\n requirement: \u001b[33m1\u001b[39m,\n path: \u001b[36m[Array]\u001b[39m,\n issues: \u001b[90mundefined\u001b[39m,\n lang: \u001b[90mundefined\u001b[39m,\n abortEarly: \u001b[90mundefined\u001b[39m,\n abortPipeEarly: \u001b[90mundefined\u001b[39m\n },\n {\n kind: \u001b[32m'validation'\u001b[39m,\n type: \u001b[32m'min_value'\u001b[39m,\n input: \u001b[33m0\u001b[39m,\n expected: \u001b[32m'>=1'\u001b[39m,\n received: \u001b[32m'0'\u001b[39m,\n message: \u001b[32m'Invalid value: Expected >=1 but received 0'\u001b[39m,\n requirement: \u001b[33m1\u001b[39m,\n path: \u001b[36m[Array]\u001b[39m,\n issues: \u001b[90mundefined\u001b[39m,\n lang: \u001b[90mundefined\u001b[39m,\n abortEarly: \u001b[90mundefined\u001b[39m,\n abortPipeEarly: \u001b[90mundefined\u001b[39m\n },\n {\n kind: \u001b[32m'validation'\u001b[39m,\n type: \u001b[32m'max_value'\u001b[39m,\n input: \u001b[33m1000\u001b[39m,\n expected: \u001b[32m'<=10'\u001b[39m,\n received: \u001b[32m'1000'\u001b[39m,\n message: \u001b[32m'Invalid value: Expected <=10 but received 1000'\u001b[39m,\n requirement: \u001b[33m10\u001b[39m,\n path: \u001b[36m[Array]\u001b[39m,\n issues: \u001b[90mundefined\u001b[39m,\n lang: \u001b[90mundefined\u001b[39m,\n abortEarly: \u001b[90mundefined\u001b[39m,\n abortPipeEarly: \u001b[90mundefined\u001b[39m\n },\n {\n kind: \u001b[32m'schema'\u001b[39m,\n type: \u001b[32m'string'\u001b[39m,\n input: \u001b[1mnull\u001b[22m,\n expected: \u001b[32m'string'\u001b[39m,\n received: \u001b[32m'null'\u001b[39m,\n message: \u001b[32m'Invalid type: Expected string but received null'\u001b[39m,\n requirement: \u001b[90mundefined\u001b[39m,\n path: \u001b[36m[Array]\u001b[39m,\n issues: \u001b[90mundefined\u001b[39m,\n lang: \u001b[90mundefined\u001b[39m,\n abortEarly: \u001b[90mundefined\u001b[39m,\n abortPipeEarly: \u001b[90mundefined\u001b[39m\n },\n {\n kind: \u001b[32m'schema'\u001b[39m,\n type: \u001b[32m'string'\u001b[39m,\n input: \u001b[90mundefined\u001b[39m,\n expected: \u001b[32m'string'\u001b[39m,\n received: \u001b[32m'undefined'\u001b[39m,\n message: \u001b[32m'Invalid type: Expected string but received undefined'\u001b[39m,\n requirement: \u001b[90mundefined\u001b[39m,\n path: \u001b[36m[Array]\u001b[39m,\n issues: \u001b[90mundefined\u001b[39m,\n lang: \u001b[90mundefined\u001b[39m,\n abortEarly: \u001b[90mundefined\u001b[39m,\n abortPipeEarly: \u001b[90mundefined\u001b[39m\n },\n {\n kind: \u001b[32m'schema'\u001b[39m,\n type: \u001b[32m'object'\u001b[39m,\n input: \u001b[90mundefined\u001b[39m,\n expected: \u001b[32m'\"id\"'\u001b[39m,\n received: \u001b[32m'undefined'\u001b[39m,\n message: \u001b[32m'Invalid key: Expected \"id\" but received undefined'\u001b[39m,\n requirement: \u001b[90mundefined\u001b[39m,\n path: \u001b[36m[Array]\u001b[39m,\n issues: \u001b[90mundefined\u001b[39m,\n lang: \u001b[90mundefined\u001b[39m,\n abortEarly: \u001b[90mundefined\u001b[39m,\n abortPipeEarly: \u001b[90mundefined\u001b[39m\n },\n {\n kind: \u001b[32m'schema'\u001b[39m,\n type: \u001b[32m'date'\u001b[39m,\n input: \u001b[1mnull\u001b[22m,\n expected: \u001b[32m'Date'\u001b[39m,\n received: \u001b[32m'null'\u001b[39m,\n message: \u001b[32m'Invalid type: Expected Date but received null'\u001b[39m,\n requirement: \u001b[90mundefined\u001b[39m,\n path: \u001b[36m[Array]\u001b[39m,\n issues: \u001b[90mundefined\u001b[39m,\n lang: \u001b[90mundefined\u001b[39m,\n abortEarly: \u001b[90mundefined\u001b[39m,\n abortPipeEarly: \u001b[90mundefined\u001b[39m\n },\n {\n kind: \u001b[32m'schema'\u001b[39m,\n type: \u001b[32m'picklist'\u001b[39m,\n input: \u001b[32m'mp4'\u001b[39m,\n expected: \u001b[32m'(\"jpg\" | \"png\")'\u001b[39m,\n received: \u001b[32m'\"mp4\"'\u001b[39m,\n message: \u001b[32m'Invalid type: Expected (\"jpg\" | \"png\") but received \"mp4\"'\u001b[39m,\n requirement: \u001b[90mundefined\u001b[39m,\n path: \u001b[36m[Array]\u001b[39m,\n issues: \u001b[90mundefined\u001b[39m,\n lang: \u001b[90mundefined\u001b[39m,\n abortEarly: \u001b[90mundefined\u001b[39m,\n abortPipeEarly: \u001b[90mundefined\u001b[39m\n },\n {\n kind: \u001b[32m'schema'\u001b[39m,\n type: \u001b[32m'object'\u001b[39m,\n input: \u001b[90mundefined\u001b[39m,\n expected: \u001b[32m'\"url\"'\u001b[39m,\n received: \u001b[32m'undefined'\u001b[39m,\n message: \u001b[32m'Invalid key: Expected \"url\" but received undefined'\u001b[39m,\n requirement: \u001b[90mundefined\u001b[39m,\n path: \u001b[36m[Array]\u001b[39m,\n issues: \u001b[90mundefined\u001b[39m,\n lang: \u001b[90mundefined\u001b[39m,\n abortEarly: \u001b[90mundefined\u001b[39m,\n abortPipeEarly: \u001b[90mundefined\u001b[39m\n },\n {\n kind: \u001b[32m'schema'\u001b[39m,\n type: \u001b[32m'number'\u001b[39m,\n input: \u001b[32m'352'\u001b[39m,\n expected: \u001b[32m'number'\u001b[39m,\n received: \u001b[32m'\"352\"'\u001b[39m,\n message: \u001b[32m'Invalid type: Expected number but received \"352\"'\u001b[39m,\n requirement: \u001b[90mundefined\u001b[39m,\n path: \u001b[36m[Array]\u001b[39m,\n issues: \u001b[90mundefined\u001b[39m,\n lang: \u001b[90mundefined\u001b[39m,\n abortEarly: \u001b[90mundefined\u001b[39m,\n abortPipeEarly: \u001b[90mundefined\u001b[39m\n },\n {\n kind: \u001b[32m'schema'\u001b[39m,\n type: \u001b[32m'date'\u001b[39m,\n input: \u001b[90mundefined\u001b[39m,\n expected: \u001b[32m'Date'\u001b[39m,\n received: \u001b[32m'undefined'\u001b[39m,\n message: \u001b[32m'Invalid type: Expected Date but received undefined'\u001b[39m,\n requirement: \u001b[90mundefined\u001b[39m,\n path: \u001b[36m[Array]\u001b[39m,\n issues: \u001b[90mundefined\u001b[39m,\n lang: \u001b[90mundefined\u001b[39m,\n abortEarly: \u001b[90mundefined\u001b[39m,\n abortPipeEarly: \u001b[90mundefined\u001b[39m\n },\n {\n kind: \u001b[32m'validation'\u001b[39m,\n type: \u001b[32m'url'\u001b[39m,\n input: \u001b[32m'INVALID_URL'\u001b[39m,\n expected: \u001b[1mnull\u001b[22m,\n received: \u001b[32m'\"INVALID_URL\"'\u001b[39m,\n message: \u001b[32m'Invalid URL: Received \"INVALID_URL\"'\u001b[39m,\n requirement: \u001b[36m[Function: requirement]\u001b[39m,\n path: \u001b[36m[Array]\u001b[39m,\n issues: \u001b[90mundefined\u001b[39m,\n lang: \u001b[90mundefined\u001b[39m,\n abortEarly: \u001b[90mundefined\u001b[39m,\n abortPipeEarly: \u001b[90mundefined\u001b[39m\n },\n {\n kind: \u001b[32m'schema'\u001b[39m,\n type: \u001b[32m'object'\u001b[39m,\n input: \u001b[90mundefined\u001b[39m,\n expected: \u001b[32m'\"title\"'\u001b[39m,\n received: \u001b[32m'undefined'\u001b[39m,\n message: \u001b[32m'Invalid key: Expected \"title\" but received undefined'\u001b[39m,\n requirement: \u001b[90mundefined\u001b[39m,\n path: \u001b[36m[Array]\u001b[39m,\n issues: \u001b[90mundefined\u001b[39m,\n lang: \u001b[90mundefined\u001b[39m,\n abortEarly: \u001b[90mundefined\u001b[39m,\n abortPipeEarly: \u001b[90mundefined\u001b[39m\n },\n {\n kind: \u001b[32m'schema'\u001b[39m,\n type: \u001b[32m'object'\u001b[39m,\n input: \u001b[90mundefined\u001b[39m,\n expected: \u001b[32m'\"type\"'\u001b[39m,\n received: \u001b[32m'undefined'\u001b[39m,\n message: \u001b[32m'Invalid key: Expected \"type\" but received undefined'\u001b[39m,\n requirement: \u001b[90mundefined\u001b[39m,\n path: \u001b[36m[Array]\u001b[39m,\n issues: \u001b[90mundefined\u001b[39m,\n lang: \u001b[90mundefined\u001b[39m,\n abortEarly: \u001b[90mundefined\u001b[39m,\n abortPipeEarly: \u001b[90mundefined\u001b[39m\n },\n {\n kind: \u001b[32m'schema'\u001b[39m,\n type: \u001b[32m'object'\u001b[39m,\n input: \u001b[90mundefined\u001b[39m,\n expected: \u001b[32m'\"size\"'\u001b[39m,\n received: \u001b[32m'undefined'\u001b[39m,\n message: \u001b[32m'Invalid key: Expected \"size\" but received undefined'\u001b[39m,\n requirement: \u001b[90mundefined\u001b[39m,\n path: \u001b[36m[Array]\u001b[39m,\n issues: \u001b[90mundefined\u001b[39m,\n lang: \u001b[90mundefined\u001b[39m,\n abortEarly: \u001b[90mundefined\u001b[39m,\n abortPipeEarly: \u001b[90mundefined\u001b[39m\n }\n ]\n}\n","lineCount":218},{"type":"success","libraryName":"yup","version":"1.7.1","snippet":"schema.validateSync(data)","output":"ValidationError: ratings[1].images[0].url must be a valid URL\n at createError (/node_modules/\u001b[4m.pnpm\u001b[24m/yup@1.7.1/node_modules/\u001b[4myup\u001b[24m/index.js:352:21)\n at handleResult (/node_modules/\u001b[4m.pnpm\u001b[24m/yup@1.7.1/node_modules/\u001b[4myup\u001b[24m/index.js:371:104)\n at validate (/node_modules/\u001b[4m.pnpm\u001b[24m/yup@1.7.1/node_modules/\u001b[4myup\u001b[24m/index.js:394:5)\n at StringSchema.runTests (/node_modules/\u001b[4m.pnpm\u001b[24m/yup@1.7.1/node_modules/\u001b[4myup\u001b[24m/index.js:855:7)\n at /node_modules/\u001b[4m.pnpm\u001b[24m/yup@1.7.1/node_modules/\u001b[4myup\u001b[24m/index.js:810:12\n at nextOnce (/node_modules/\u001b[4m.pnpm\u001b[24m/yup@1.7.1/node_modules/\u001b[4myup\u001b[24m/index.js:841:7)\n at finishTestRun (/node_modules/\u001b[4m.pnpm\u001b[24m/yup@1.7.1/node_modules/\u001b[4myup\u001b[24m/index.js:860:11)\n at handleResult (/node_modules/\u001b[4m.pnpm\u001b[24m/yup@1.7.1/node_modules/\u001b[4myup\u001b[24m/index.js:371:124)\n at validate (/node_modules/\u001b[4m.pnpm\u001b[24m/yup@1.7.1/node_modules/\u001b[4myup\u001b[24m/index.js:394:5)\n at StringSchema.runTests (/node_modules/\u001b[4m.pnpm\u001b[24m/yup@1.7.1/node_modules/\u001b[4myup\u001b[24m/index.js:855:7) {\n value: {\n ratings: [ \u001b[36m[Object]\u001b[39m, \u001b[36m[Object]\u001b[39m ],\n images: [ \u001b[36m[Object]\u001b[39m, \u001b[36m[Object]\u001b[39m, \u001b[36m[Object]\u001b[39m ],\n tags: [ \u001b[32m'fruit'\u001b[39m, \u001b[1mnull\u001b[22m, \u001b[32m'round'\u001b[39m, \u001b[90mundefined\u001b[39m, \u001b[32m'juicy'\u001b[39m, \u001b[32m'healthy'\u001b[39m ],\n quantity: \u001b[33m1000\u001b[39m,\n discount: \u001b[1mnull\u001b[22m,\n price: \u001b[33m0\u001b[39m,\n description: \u001b[32m'Red apple from Lake Constance'\u001b[39m,\n brand: \u001b[32m'Sunny Backyard'\u001b[39m,\n title: \u001b[32m''\u001b[39m,\n created: \u001b[35m2026-06-23T13:24:31.946Z\u001b[39m,\n id: \u001b[33m252\u001b[39m\n },\n path: \u001b[32m'ratings[1].images[0].url'\u001b[39m,\n type: \u001b[32m'url'\u001b[39m,\n params: {\n value: \u001b[32m'INVALID_URL'\u001b[39m,\n originalValue: \u001b[32m'INVALID_URL'\u001b[39m,\n label: \u001b[90mundefined\u001b[39m,\n path: \u001b[32m'ratings[1].images[0].url'\u001b[39m,\n spec: {\n strip: \u001b[33mfalse\u001b[39m,\n strict: \u001b[33mfalse\u001b[39m,\n abortEarly: \u001b[33mtrue\u001b[39m,\n recursive: \u001b[33mtrue\u001b[39m,\n disableStackTrace: \u001b[33mfalse\u001b[39m,\n nullable: \u001b[33mfalse\u001b[39m,\n optional: \u001b[33mfalse\u001b[39m,\n coerce: \u001b[33mtrue\u001b[39m\n },\n disableStackTrace: \u001b[33mfalse\u001b[39m,\n regex: \u001b[31m/^((https?|ftp):)?\\/\\/(((([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(%[\\da-f]{2})|[!\\$&'\\(\\)\\*\\+,;=]|:)*@)?(((\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5]))|((([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])*([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])))\\.)+(([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])*([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])))\\.?)(:\\d*)?)(\\/((([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(%[\\da-f]{2})|[!\\$&'\\(\\)\\*\\+,;=]|:|@)+(\\/(([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(%[\\da-f]{2})|[!\\$&'\\(\\)\\*\\+,;=]|:|@)*)*)?)?(\\?((([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(%[\\da-f]{2})|[!\\$&'\\(\\)\\*\\+,;=]|:|@)|[\\uE000-\\uF8FF]|\\/|\\?)*)?(\\#((([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(%[\\da-f]{2})|[!\\$&'\\(\\)\\*\\+,;=]|:|@)|\\/|\\?)*)?$/i\u001b[39m\n },\n errors: [ \u001b[32m'ratings[1].images[0].url must be a valid URL'\u001b[39m ],\n inner: [],\n \u001b[32mSymbol(Symbol.toStringTag)\u001b[39m: \u001b[32m'Error'\u001b[39m\n}\n","lineCount":49},{"type":"success","libraryName":"zod","version":"4.4.3","snippet":"schema.parse(data)","output":"ZodError: [\n {\n \"origin\": \"string\",\n \"code\": \"too_small\",\n \"minimum\": 1,\n \"inclusive\": true,\n \"path\": [\n \"title\"\n ],\n \"message\": \"Too small: expected string to have >=1 characters\"\n },\n {\n \"origin\": \"number\",\n \"code\": \"too_small\",\n \"minimum\": 1,\n \"inclusive\": true,\n \"path\": [\n \"price\"\n ],\n \"message\": \"Too small: expected number to be >=1\"\n },\n {\n \"origin\": \"number\",\n \"code\": \"too_big\",\n \"maximum\": 10,\n \"inclusive\": true,\n \"path\": [\n \"quantity\"\n ],\n \"message\": \"Too big: expected number to be <=10\"\n },\n {\n \"expected\": \"string\",\n \"code\": \"invalid_type\",\n \"path\": [\n \"tags\",\n 1\n ],\n \"message\": \"Invalid input: expected string, received null\"\n },\n {\n \"expected\": \"string\",\n \"code\": \"invalid_type\",\n \"path\": [\n \"tags\",\n 3\n ],\n \"message\": \"Invalid input: expected string, received undefined\"\n },\n {\n \"expected\": \"number\",\n \"code\": \"invalid_type\",\n \"path\": [\n \"images\",\n 0,\n \"id\"\n ],\n \"message\": \"Invalid input: expected number, received undefined\"\n },\n {\n \"expected\": \"date\",\n \"code\": \"invalid_type\",\n \"path\": [\n \"images\",\n 0,\n \"created\"\n ],\n \"message\": \"Invalid input: expected date, received null\"\n },\n {\n \"code\": \"invalid_value\",\n \"values\": [\n \"jpg\",\n \"png\"\n ],\n \"path\": [\n \"images\",\n 0,\n \"type\"\n ],\n \"message\": \"Invalid option: expected one of \\\"jpg\\\"|\\\"png\\\"\"\n },\n {\n \"expected\": \"string\",\n \"code\": \"invalid_type\",\n \"path\": [\n \"images\",\n 1,\n \"url\"\n ],\n \"message\": \"Invalid input: expected string, received undefined\"\n },\n {\n \"expected\": \"number\",\n \"code\": \"invalid_type\",\n \"path\": [\n \"ratings\",\n 1,\n \"images\",\n 0,\n \"id\"\n ],\n \"message\": \"Invalid input: expected number, received string\"\n },\n {\n \"expected\": \"date\",\n \"code\": \"invalid_type\",\n \"path\": [\n \"ratings\",\n 1,\n \"images\",\n 0,\n \"created\"\n ],\n \"message\": \"Invalid input: expected date, received undefined\"\n },\n {\n \"code\": \"invalid_format\",\n \"format\": \"url\",\n \"path\": [\n \"ratings\",\n 1,\n \"images\",\n 0,\n \"url\"\n ],\n \"message\": \"Invalid URL\"\n },\n {\n \"expected\": \"string\",\n \"code\": \"invalid_type\",\n \"path\": [\n \"ratings\",\n 1,\n \"images\",\n 1,\n \"title\"\n ],\n \"message\": \"Invalid input: expected string, received undefined\"\n },\n {\n \"code\": \"invalid_value\",\n \"values\": [\n \"jpg\",\n \"png\"\n ],\n \"path\": [\n \"ratings\",\n 1,\n \"images\",\n 1,\n \"type\"\n ],\n \"message\": \"Invalid option: expected one of \\\"jpg\\\"|\\\"png\\\"\"\n },\n {\n \"expected\": \"number\",\n \"code\": \"invalid_type\",\n \"path\": [\n \"ratings\",\n 1,\n \"images\",\n 1,\n \"size\"\n ],\n \"message\": \"Invalid input: expected number, received undefined\"\n }\n]\n at Object.throw (file:///schemas/dist/benchmarks-CX-Rvyph.mjs:89:11)\n at \u001b[90mfile:///bench/\u001b[39msrc/scripts/stack/log.ts:24:28\n","lineCount":171},{"type":"success","libraryName":"zod/mini","version":"4.4.3","snippet":"schema.parse(data)","output":"$ZodError: [\n {\n \"origin\": \"string\",\n \"code\": \"too_small\",\n \"minimum\": 1,\n \"inclusive\": true,\n \"path\": [\n \"title\"\n ],\n \"message\": \"Invalid input\"\n },\n {\n \"origin\": \"number\",\n \"code\": \"too_small\",\n \"minimum\": 1,\n \"inclusive\": true,\n \"path\": [\n \"price\"\n ],\n \"message\": \"Invalid input\"\n },\n {\n \"origin\": \"number\",\n \"code\": \"too_big\",\n \"maximum\": 10,\n \"inclusive\": true,\n \"path\": [\n \"quantity\"\n ],\n \"message\": \"Invalid input\"\n },\n {\n \"expected\": \"string\",\n \"code\": \"invalid_type\",\n \"path\": [\n \"tags\",\n 1\n ],\n \"message\": \"Invalid input\"\n },\n {\n \"expected\": \"string\",\n \"code\": \"invalid_type\",\n \"path\": [\n \"tags\",\n 3\n ],\n \"message\": \"Invalid input\"\n },\n {\n \"expected\": \"number\",\n \"code\": \"invalid_type\",\n \"path\": [\n \"images\",\n 0,\n \"id\"\n ],\n \"message\": \"Invalid input\"\n },\n {\n \"expected\": \"date\",\n \"code\": \"invalid_type\",\n \"path\": [\n \"images\",\n 0,\n \"created\"\n ],\n \"message\": \"Invalid input\"\n },\n {\n \"code\": \"invalid_value\",\n \"values\": [\n \"jpg\",\n \"png\"\n ],\n \"path\": [\n \"images\",\n 0,\n \"type\"\n ],\n \"message\": \"Invalid input\"\n },\n {\n \"expected\": \"string\",\n \"code\": \"invalid_type\",\n \"path\": [\n \"images\",\n 1,\n \"url\"\n ],\n \"message\": \"Invalid input\"\n },\n {\n \"expected\": \"number\",\n \"code\": \"invalid_type\",\n \"path\": [\n \"ratings\",\n 1,\n \"images\",\n 0,\n \"id\"\n ],\n \"message\": \"Invalid input\"\n },\n {\n \"expected\": \"date\",\n \"code\": \"invalid_type\",\n \"path\": [\n \"ratings\",\n 1,\n \"images\",\n 0,\n \"created\"\n ],\n \"message\": \"Invalid input\"\n },\n {\n \"code\": \"invalid_format\",\n \"format\": \"url\",\n \"path\": [\n \"ratings\",\n 1,\n \"images\",\n 0,\n \"url\"\n ],\n \"message\": \"Invalid input\"\n },\n {\n \"expected\": \"string\",\n \"code\": \"invalid_type\",\n \"path\": [\n \"ratings\",\n 1,\n \"images\",\n 1,\n \"title\"\n ],\n \"message\": \"Invalid input\"\n },\n {\n \"code\": \"invalid_value\",\n \"values\": [\n \"jpg\",\n \"png\"\n ],\n \"path\": [\n \"ratings\",\n 1,\n \"images\",\n 1,\n \"type\"\n ],\n \"message\": \"Invalid input\"\n },\n {\n \"expected\": \"number\",\n \"code\": \"invalid_type\",\n \"path\": [\n \"ratings\",\n 1,\n \"images\",\n 1,\n \"size\"\n ],\n \"message\": \"Invalid input\"\n }\n]\n at Object.throw (file:///schemas/dist/benchmarks-C_Eicl0E.mjs:89:11)\n at \u001b[90mfile:///bench/\u001b[39msrc/scripts/stack/log.ts:24:28\n","lineCount":171},{"type":"success","libraryName":"zod/v3","version":"4.4.3","snippet":"schema.parse(data)","output":"ZodError: [\n {\n \"code\": \"too_small\",\n \"minimum\": 1,\n \"type\": \"string\",\n \"inclusive\": true,\n \"exact\": false,\n \"message\": \"String must contain at least 1 character(s)\",\n \"path\": [\n \"title\"\n ]\n },\n {\n \"code\": \"too_small\",\n \"minimum\": 1,\n \"type\": \"number\",\n \"inclusive\": true,\n \"exact\": false,\n \"message\": \"Number must be greater than or equal to 1\",\n \"path\": [\n \"price\"\n ]\n },\n {\n \"code\": \"too_big\",\n \"maximum\": 10,\n \"type\": \"number\",\n \"inclusive\": true,\n \"exact\": false,\n \"message\": \"Number must be less than or equal to 10\",\n \"path\": [\n \"quantity\"\n ]\n },\n {\n \"code\": \"invalid_type\",\n \"expected\": \"string\",\n \"received\": \"null\",\n \"path\": [\n \"tags\",\n 1\n ],\n \"message\": \"Expected string, received null\"\n },\n {\n \"code\": \"invalid_type\",\n \"expected\": \"string\",\n \"received\": \"undefined\",\n \"path\": [\n \"tags\",\n 3\n ],\n \"message\": \"Required\"\n },\n {\n \"code\": \"invalid_type\",\n \"expected\": \"number\",\n \"received\": \"undefined\",\n \"path\": [\n \"images\",\n 0,\n \"id\"\n ],\n \"message\": \"Required\"\n },\n {\n \"code\": \"invalid_type\",\n \"expected\": \"date\",\n \"received\": \"null\",\n \"path\": [\n \"images\",\n 0,\n \"created\"\n ],\n \"message\": \"Expected date, received null\"\n },\n {\n \"received\": \"mp4\",\n \"code\": \"invalid_enum_value\",\n \"options\": [\n \"jpg\",\n \"png\"\n ],\n \"path\": [\n \"images\",\n 0,\n \"type\"\n ],\n \"message\": \"Invalid enum value. Expected 'jpg' | 'png', received 'mp4'\"\n },\n {\n \"code\": \"invalid_type\",\n \"expected\": \"string\",\n \"received\": \"undefined\",\n \"path\": [\n \"images\",\n 1,\n \"url\"\n ],\n \"message\": \"Required\"\n },\n {\n \"code\": \"invalid_type\",\n \"expected\": \"number\",\n \"received\": \"string\",\n \"path\": [\n \"ratings\",\n 1,\n \"images\",\n 0,\n \"id\"\n ],\n \"message\": \"Expected number, received string\"\n },\n {\n \"code\": \"invalid_type\",\n \"expected\": \"date\",\n \"received\": \"undefined\",\n \"path\": [\n \"ratings\",\n 1,\n \"images\",\n 0,\n \"created\"\n ],\n \"message\": \"Required\"\n },\n {\n \"validation\": \"url\",\n \"code\": \"invalid_string\",\n \"message\": \"Invalid url\",\n \"path\": [\n \"ratings\",\n 1,\n \"images\",\n 0,\n \"url\"\n ]\n },\n {\n \"code\": \"invalid_type\",\n \"expected\": \"string\",\n \"received\": \"undefined\",\n \"path\": [\n \"ratings\",\n 1,\n \"images\",\n 1,\n \"title\"\n ],\n \"message\": \"Required\"\n },\n {\n \"expected\": \"'jpg' | 'png'\",\n \"received\": \"undefined\",\n \"code\": \"invalid_type\",\n \"path\": [\n \"ratings\",\n 1,\n \"images\",\n 1,\n \"type\"\n ],\n \"message\": \"Required\"\n },\n {\n \"code\": \"invalid_type\",\n \"expected\": \"number\",\n \"received\": \"undefined\",\n \"path\": [\n \"ratings\",\n 1,\n \"images\",\n 1,\n \"size\"\n ],\n \"message\": \"Required\"\n }\n]\n at get error (file:///node_modules/\u001b[4m.pnpm\u001b[24m/zod@4.4.3/node_modules/\u001b[4mzod\u001b[24m/v3/types.js:39:31)\n at ZodObject.parse (file:///node_modules/\u001b[4m.pnpm\u001b[24m/zod@4.4.3/node_modules/\u001b[4mzod\u001b[24m/v3/types.js:114:22)\n at Object.throw (file:///schemas/dist/benchmarks-Aq-epdv0.mjs:77:11)\n at \u001b[90mfile:///bench/\u001b[39msrc/scripts/stack/log.ts:24:28 {\n issues: [\n {\n code: \u001b[32m'too_small'\u001b[39m,\n minimum: \u001b[33m1\u001b[39m,\n type: \u001b[32m'string'\u001b[39m,\n inclusive: \u001b[33mtrue\u001b[39m,\n exact: \u001b[33mfalse\u001b[39m,\n message: \u001b[32m'String must contain at least 1 character(s)'\u001b[39m,\n path: \u001b[36m[Array]\u001b[39m\n },\n {\n code: \u001b[32m'too_small'\u001b[39m,\n minimum: \u001b[33m1\u001b[39m,\n type: \u001b[32m'number'\u001b[39m,\n inclusive: \u001b[33mtrue\u001b[39m,\n exact: \u001b[33mfalse\u001b[39m,\n message: \u001b[32m'Number must be greater than or equal to 1'\u001b[39m,\n path: \u001b[36m[Array]\u001b[39m\n },\n {\n code: \u001b[32m'too_big'\u001b[39m,\n maximum: \u001b[33m10\u001b[39m,\n type: \u001b[32m'number'\u001b[39m,\n inclusive: \u001b[33mtrue\u001b[39m,\n exact: \u001b[33mfalse\u001b[39m,\n message: \u001b[32m'Number must be less than or equal to 10'\u001b[39m,\n path: \u001b[36m[Array]\u001b[39m\n },\n {\n code: \u001b[32m'invalid_type'\u001b[39m,\n expected: \u001b[32m'string'\u001b[39m,\n received: \u001b[32m'null'\u001b[39m,\n path: \u001b[36m[Array]\u001b[39m,\n message: \u001b[32m'Expected string, received null'\u001b[39m\n },\n {\n code: \u001b[32m'invalid_type'\u001b[39m,\n expected: \u001b[32m'string'\u001b[39m,\n received: \u001b[32m'undefined'\u001b[39m,\n path: \u001b[36m[Array]\u001b[39m,\n message: \u001b[32m'Required'\u001b[39m\n },\n {\n code: \u001b[32m'invalid_type'\u001b[39m,\n expected: \u001b[32m'number'\u001b[39m,\n received: \u001b[32m'undefined'\u001b[39m,\n path: \u001b[36m[Array]\u001b[39m,\n message: \u001b[32m'Required'\u001b[39m\n },\n {\n code: \u001b[32m'invalid_type'\u001b[39m,\n expected: \u001b[32m'date'\u001b[39m,\n received: \u001b[32m'null'\u001b[39m,\n path: \u001b[36m[Array]\u001b[39m,\n message: \u001b[32m'Expected date, received null'\u001b[39m\n },\n {\n received: \u001b[32m'mp4'\u001b[39m,\n code: \u001b[32m'invalid_enum_value'\u001b[39m,\n options: \u001b[36m[Array]\u001b[39m,\n path: \u001b[36m[Array]\u001b[39m,\n message: \u001b[32m\"Invalid enum value. Expected 'jpg' | 'png', received 'mp4'\"\u001b[39m\n },\n {\n code: \u001b[32m'invalid_type'\u001b[39m,\n expected: \u001b[32m'string'\u001b[39m,\n received: \u001b[32m'undefined'\u001b[39m,\n path: \u001b[36m[Array]\u001b[39m,\n message: \u001b[32m'Required'\u001b[39m\n },\n {\n code: \u001b[32m'invalid_type'\u001b[39m,\n expected: \u001b[32m'number'\u001b[39m,\n received: \u001b[32m'string'\u001b[39m,\n path: \u001b[36m[Array]\u001b[39m,\n message: \u001b[32m'Expected number, received string'\u001b[39m\n },\n {\n code: \u001b[32m'invalid_type'\u001b[39m,\n expected: \u001b[32m'date'\u001b[39m,\n received: \u001b[32m'undefined'\u001b[39m,\n path: \u001b[36m[Array]\u001b[39m,\n message: \u001b[32m'Required'\u001b[39m\n },\n {\n validation: \u001b[32m'url'\u001b[39m,\n code: \u001b[32m'invalid_string'\u001b[39m,\n message: \u001b[32m'Invalid url'\u001b[39m,\n path: \u001b[36m[Array]\u001b[39m\n },\n {\n code: \u001b[32m'invalid_type'\u001b[39m,\n expected: \u001b[32m'string'\u001b[39m,\n received: \u001b[32m'undefined'\u001b[39m,\n path: \u001b[36m[Array]\u001b[39m,\n message: \u001b[32m'Required'\u001b[39m\n },\n {\n expected: \u001b[32m\"'jpg' | 'png'\"\u001b[39m,\n received: \u001b[32m'undefined'\u001b[39m,\n code: \u001b[32m'invalid_type'\u001b[39m,\n path: \u001b[36m[Array]\u001b[39m,\n message: \u001b[32m'Required'\u001b[39m\n },\n {\n code: \u001b[32m'invalid_type'\u001b[39m,\n expected: \u001b[32m'number'\u001b[39m,\n received: \u001b[32m'undefined'\u001b[39m,\n path: \u001b[36m[Array]\u001b[39m,\n message: \u001b[32m'Required'\u001b[39m\n }\n ],\n addIssue: \u001b[36m[Function (anonymous)]\u001b[39m,\n addIssues: \u001b[36m[Function (anonymous)]\u001b[39m\n}\n","lineCount":299}] \ No newline at end of file diff --git a/schemas/libraries/effect/@beta/download_compiled/minified.js b/schemas/libraries/effect/@beta/download_compiled/minified.js index e898a89b..6dcd80b7 100644 --- a/schemas/libraries/effect/@beta/download_compiled/minified.js +++ b/schemas/libraries/effect/@beta/download_compiled/minified.js @@ -1,7 +1,7 @@ const e=(e,t)=>{switch(t.length){case 0:return e;case 1:return t[0](e);case 2:return t[1](t[0](e));case 3:return t[2](t[1](t[0](e)));case 4:return t[3](t[2](t[1](t[0](e))));case 5:return t[4](t[3](t[2](t[1](t[0](e)))));case 6:return t[5](t[4](t[3](t[2](t[1](t[0](e))))));case 7:return t[6](t[5](t[4](t[3](t[2](t[1](t[0](e)))))));case 8:return t[7](t[6](t[5](t[4](t[3](t[2](t[1](t[0](e))))))));case 9:return t[8](t[7](t[6](t[5](t[4](t[3](t[2](t[1](t[0](e)))))))));default:{let n=e;for(let e=0,r=t.length;et(e,...arguments)};switch(e){case 0:case 1:throw RangeError(`Invalid arity ${e}`);case 2:return function(e,n){return arguments.length>=2?t(e,n):function(n){return t(n,e)}};case 3:return function(e,n,r){return arguments.length>=3?t(e,n,r):function(r){return t(r,e,n)}};default:return function(){if(arguments.length>=e)return t.apply(this,arguments);let n=arguments;return function(e){return t(e,...n)}}}},i=e=>e,a=(e=>()=>e)(void 0),o=a;function s(e){let t=new WeakMap;return n=>{if(t.has(n))return t.get(n);let r=e(n);return t.set(n,r),r}}const c=e=>{let t=new Set(Reflect.ownKeys(e));if(e.constructor===Object)return t;e instanceof Error&&t.delete(`stack`);let n=Object.getPrototypeOf(e),r=n;for(;r!==null&&r!==Object.prototype;){let e=Reflect.ownKeys(r);for(let n=0;nm(e)&&t in e),g=`~effect/interfaces/Hash`,_=e=>{switch(typeof e){case`number`:return re(e);case`bigint`:return y(e.toString(10));case`boolean`:return y(String(e));case`symbol`:return y(String(e));case`string`:return y(e);case`undefined`:return y(`undefined`);case`function`:case`object`:if(e===null)return y(`null`);if(e instanceof Date)return y(e.toISOString());if(e instanceof RegExp)return y(e.toString());{if(l.has(e))return ee(e);if(de.has(e))return de.get(e);let t=pe(e,()=>ne(e)?e[g]():typeof e==`function`?ee(e):Array.isArray(e)||ArrayBuffer.isView(e)?se(e):e instanceof Map?ce(e):e instanceof Set?le(e):ae(e));return de.set(e,t),t}default:throw Error(`BUG: unhandled typeof ${typeof e} - please report an issue at https://github.com/Effect-TS/effect/issues`)}},ee=e=>(ue.has(e)||ue.set(e,re(Math.floor(Math.random()*(2**53-1)))),ue.get(e)),v=r(2,(e,t)=>e*53^t),te=e=>e&3221225471|e>>>1&1073741824,ne=e=>h(e,g),re=e=>{if(e!==e)return y(`NaN`);if(e===1/0)return y(`Infinity`);if(e===-1/0)return y(`-Infinity`);let t=e|0;for(t!==e&&(t^=e*4294967295);e>4294967295;)t^=e/=4294967295;return te(t)},y=e=>{let t=5381,n=e.length;for(;n;)t=t*33^e.charCodeAt(--n);return te(t)},ie=(e,t)=>{let n=12289;for(let r of t)n^=v(_(r),_(e[r]));return te(n)},ae=e=>ie(e,c(e)),oe=(e,t)=>n=>{let r=e;for(let e of n)r^=t(e);return te(r)},se=oe(6151,_),ce=oe(y(`Map`),([e,t])=>v(_(e),_(t))),le=oe(y(`Set`),_),ue=new WeakMap,de=new WeakMap,fe=new WeakSet;function pe(e,t){if(fe.has(e))return y(`[Circular]`);fe.add(e);let n=t();return fe.delete(e),n}const b=`~effect/interfaces/Equal`;function x(){return arguments.length===1?e=>S(e,arguments[0]):S(arguments[0],arguments[1])}function S(e,t){if(e===t)return!0;if(e==null||t==null)return!1;let n=typeof e;return n===typeof t?n===`number`&&e!==e&&t!==t?!0:n!==`object`&&n!==`function`||l.has(e)||l.has(t)?!1:ve(e,t,_e):!1}function me(e,t,n){let r=he.has(e),i=ge.has(t);if(r&&i)return!0;if(r||i)return!1;he.add(e),ge.add(t);let a=n();return he.delete(e),ge.delete(t),a}const he=new WeakSet,ge=new WeakSet;function _e(e,t){if(_(e)!==_(t))return!1;if(e instanceof Date)return t instanceof Date?e.toISOString()===t.toISOString():!1;if(e instanceof RegExp)return t instanceof RegExp?e.toString()===t.toString():!1;let n=De(e),r=De(t);if(n!==r)return!1;let i=n&&r;return typeof e==`function`&&!i?!1:me(e,t,()=>i?e[b](t):Array.isArray(e)?!Array.isArray(t)||e.length!==t.length?!1:be(e,t):ArrayBuffer.isView(e)?!ArrayBuffer.isView(t)||e.byteLength!==t.byteLength?!1:xe(e,t):e instanceof Map?!(t instanceof Map)||e.size!==t.size?!1:we(e,t):e instanceof Set?!(t instanceof Set)||e.size!==t.size?!1:Ee(e,t):Se(e,t))}function ve(e,t,n){let r=ye.get(e);if(!r)r=new WeakMap,ye.set(e,r);else if(r.has(t))return r.get(t);let i=n(e,t);r.set(t,i);let a=ye.get(t);return a||(a=new WeakMap,ye.set(t,a)),a.set(e,i),i}const ye=new WeakMap;function be(e,t){for(let n=0;nh(e,b),Oe=()=>x,ke=e=>(t,n)=>t===n||e(t,n),Ae=e=>e.length>0,je=Symbol.for(`~effect/Redactable`),Me=e=>h(e,je);function Ne(e){return Me(e)?Pe(e):e}function Pe(e){return e[je](globalThis[`~effect/Fiber/currentFiber`]?.context??Ie)}const Fe=`~effect/Fiber/currentFiber`,Ie={"~effect/Context":{},mapUnsafe:new Map,pipe(){return e(this,arguments)}};function C(e,t){let n=t?.space??0,r=new WeakSet,i=n?typeof n==`number`?` `.repeat(n):n:``,a=e=>i.repeat(e),o=(e,t)=>{let n=e?.constructor;return n&&n!==Object.prototype.constructor&&n.name?`${n.name}(${t})`:t},s=e=>{try{return Reflect.ownKeys(e)}catch{return[`[ownKeys threw]`]}};function c(e,n=0){if(Array.isArray(e)){if(r.has(e))return Le;if(r.add(e),!i||e.length<=1)return`[${e.map(e=>c(e,n)).join(`,`)}]`;let t=e.map(e=>c(e,n+1)).join(`, `+a(n+1));return`[\n${a(n+1)}${t}\n${a(n)}]`}if(e instanceof Date)return Be(e);if(!t?.ignoreToString&&h(e,`toString`)&&typeof e.toString==`function`&&e.toString!==Object.prototype.toString&&e.toString!==Array.prototype.toString){let t=Ve(e);return e instanceof Error&&e.cause?`${t} (cause: ${c(e.cause,n)})`:t}if(typeof e==`string`)return JSON.stringify(e);if(typeof e==`number`||e==null||typeof e==`boolean`||typeof e==`symbol`)return String(e);if(typeof e==`bigint`)return String(e)+`n`;if(typeof e==`object`||typeof e==`function`){if(r.has(e))return Le;if(r.add(e),je in e)return C(Pe(e));if(Symbol.iterator in e)return`${e.constructor.name}(${c(Array.from(e),n)})`;let t=s(e);return!i||t.length<=1?o(e,`{${t.map(t=>`${Re(t)}:${c(e[t],n)}`).join(`,`)}}`):o(e,`{\n${t.map(t=>`${a(n+1)}${Re(t)}: ${c(e[t],n+1)}`).join(`, -`)}\n${a(n)}}`)}return String(e)}return c(e,0)}const Le=`[Circular]`;function Re(e){return typeof e==`string`?JSON.stringify(e):String(e)}function ze(e){return e.map(e=>`[${Re(e)}]`).join(``)}function Be(e){try{return e.toISOString()}catch{return`Invalid Date`}}function Ve(e){try{let t=e.toString();return typeof t==`string`?t:String(t)}catch{return`[toString threw]`}}const He=Symbol.for(`nodejs.util.inspect.custom`),Ue=e=>{try{if(h(e,`toJSON`)&&f(e.toJSON)&&e.toJSON.length===0)return e.toJSON();if(Array.isArray(e))return e.map(Ue)}catch{return`[toJSON threw]`}return Ne(e)};var We=class e{called=!1;self;constructor(e){this.self=e}next(e){return this.called?{value:e,done:!0}:(this.called=!0,{value:this.self,done:!1})}[Symbol.iterator](){return new e(this.self)}};const Ge=(()=>{let e=`~effect/Utils/internal`,t={[e]:e=>e()},n={[e]:e=>{try{return e()}finally{}}};return t[e](()=>Error().stack)?.includes(e)===!0?t[e]:n[e]})(),w=`~effect/Effect`,Ke=`~effect/Exit`,qe={_A:i,_E:i,_R:i},Je=`${w}/identifier`,T=`${w}/args`,E=`${w}/evaluate`,D=`${w}/successCont`,O=`${w}/failureCont`,Ye=`${w}/ensureCont`,Xe=Symbol.for(`effect/Effect/Yield`),Ze={pipe(){return e(this,arguments)},toJSON(){return{...this}},toString(){return C(this.toJSON(),{ignoreToString:!0,space:2})},[He](){return this.toJSON()}},Qe={[w]:qe,...Ze,[Symbol.iterator](){return new We(this)},toJSON(){return{_id:`Effect`,op:this[Je],...T in this?{args:this[T]}:void 0}}},$e=e=>h(e,Ke),et=`~effect/Cause`,tt=`~effect/Cause/Reason`,nt=e=>h(e,et);var rt=class{[et];reasons;constructor(e){this[et]=et,this.reasons=e}pipe(){return e(this,arguments)}toJSON(){return{_id:`Cause`,failures:this.reasons.map(e=>e.toJSON())}}toString(){return`Cause(${C(this.reasons)})`}[He](){return this.toJSON()}[b](e){return nt(e)&&this.reasons.length===e.reasons.length&&this.reasons.every((t,n)=>x(t,e.reasons[n]))}[g](){return se(this.reasons)}};const it=new WeakMap;var at=class{[tt];annotations;_tag;constructor(e,t,n){if(this[tt]=tt,this._tag=e,t!==ot&&typeof n==`object`&&n&&t.size>0){let e=it.get(n);e&&(t=new Map([...e,...t])),it.set(n,t)}this.annotations=t}annotate(e,t){if(e.mapUnsafe.size===0)return this;let n=new Map(this.annotations);e.mapUnsafe.forEach((e,r)=>{t?.overwrite!==!0&&n.has(r)||n.set(r,e)});let r=Object.assign(Object.create(Object.getPrototypeOf(this)),this);return r.annotations=n,r}pipe(){return e(this,arguments)}toString(){return C(this)}[He](){return this.toString()}};const ot=new Map;var st=class extends at{error;constructor(e,t=ot){super(`Fail`,t,e),this.error=e}toString(){return`Fail(${C(this.error)})`}toJSON(){return{_tag:`Fail`,error:this.error}}[b](e){return pt(e)&&x(this.error,e.error)&&x(this.annotations,e.annotations)}[g](){return v(y(this._tag))(v(_(this.error))(_(this.annotations)))}};const ct=e=>new rt(e),lt=e=>new rt([new st(e)]);var ut=class extends at{defect;constructor(e,t=ot){super(`Die`,t,e),this.defect=e}toString(){return`Die(${C(this.defect)})`}toJSON(){return{_tag:`Die`,defect:this.defect}}[b](e){return mt(e)&&x(this.defect,e.defect)&&x(this.annotations,e.annotations)}[g](){return v(y(this._tag))(v(_(this.defect))(_(this.annotations)))}};const dt=e=>new rt([new ut(e)]),ft=r(e=>nt(e[0]),(e,t,n)=>t.mapUnsafe.size===0?e:new rt(e.reasons.map(e=>e.annotate(t,n)))),pt=e=>e._tag===`Fail`,mt=e=>e._tag===`Die`,ht=e=>e._tag===`Interrupt`;function gt(e){return xt(`Effect.evaluate: Not implemented`)}const _t=e=>({...Qe,[Je]:e.op,[E]:e[E]??gt,[D]:e[D],[O]:e[O],[Ye]:e[Ye]}),k=e=>{let t=_t(e);return function(){let n=Object.create(t);return n[T]=e.single===!1?arguments:arguments[0],n}},vt=e=>{let t={..._t(e),[Ke]:Ke,_tag:e.op,get[e.prop](){return this[T]},toString(){return`${e.op}(${C(this[T])})`},toJSON(){return{_id:`Exit`,_tag:e.op,[e.prop]:this[T]}},[b](e){return $e(e)&&e._tag===this._tag&&x(this[T],e[T])},[g](){return v(y(e.op),_(this[T]))}};return function(e){let n=Object.create(t);return n[T]=e,n}},A=vt({op:`Success`,prop:`value`,[E](e){let t=e.getCont(D);return t?t[D](this[T],e,this):e.yieldWith(this)}}),yt={key:`effect/Cause/StackTrace`},j=vt({op:`Failure`,prop:`cause`,[E](e){let t=this[T],n=!1;e.currentStackFrame&&(t=ft(t,{mapUnsafe:new Map([[yt.key,e.currentStackFrame]])}),n=!0);let r=e.getCont(O);for(;e.interruptible&&e._interruptedCause&&r;)r=e.getCont(O);return r?r[O](t,e,n?void 0:this):e.yieldWith(n?this:j(t))}}),bt=e=>j(lt(e)),xt=e=>j(dt(e)),St=k({op:`WithFiber`,[E](e){return this[T](e)}}),Ct=function(){class e extends globalThis.Error{}let t=_t({op:`YieldableError`,[E](){return bt(this)}});return delete t.toString,Object.assign(e.prototype,t),e}(),wt=function(){let e=Symbol.for(`effect/Data/Error/plainArgs`);return class extends Ct{constructor(t){super(t?.message,t?.cause?{cause:t.cause}:void 0),t&&(Object.assign(this,t),Object.defineProperty(this,e,{value:t,enumerable:!1}))}toJSON(){return{...this[e],...this}}}}(),M=e=>{class t extends wt{_tag=e}return t.prototype.name=e,t};M(`NoSuchElementError`);const Tt=`~effect/data/Option`,Et={[Tt]:{_A:e=>e},...Ze,[Symbol.iterator](){return new We(this)}},Dt=Object.defineProperty(Object.assign(Object.create(Et),{_tag:`Some`,_op:`Some`,[b](e){return At(e)&&Mt(e)&&x(this.value,e.value)},[g](){return v(_(this._tag))(_(this.value))},toString(){return`some(${C(this.value)})`},toJSON(){return{_id:`Option`,_tag:this._tag,value:Ue(this.value)}}}),"valueOrUndefined",{get(){return this.value}}),Ot=_(`None`),kt=Object.assign(Object.create(Et),{_tag:`None`,_op:`None`,valueOrUndefined:void 0,[b](e){return At(e)&&jt(e)},[g](){return Ot},toString(){return`none()`},toJSON(){return{_id:`Option`,_tag:this._tag}}}),At=e=>h(e,Tt),jt=e=>e._tag===`None`,Mt=e=>e._tag===`Some`,Nt=Object.create(kt),Pt=e=>{let t=Object.create(Dt);return t.value=e,t},Ft=`~effect/data/Result`;({...Ze});function It(e){return(t,n)=>t===n?0:e(t,n)}const Lt=It((e,t)=>globalThis.Number.isNaN(e)&&globalThis.Number.isNaN(t)?0:globalThis.Number.isNaN(e)?-1:globalThis.Number.isNaN(t)?1:er(2,(t,n)=>e(t,n)!==1),zt=e=>r(2,(t,n)=>e(t,n)!==-1),Bt=()=>Nt,N=Pt,Vt=jt,Ht=Mt,Ut=r(2,(e,t)=>Vt(e)?Bt():N(t(e.value))),Wt=globalThis.Array,Gt=e=>Wt.isArray(e)?e:Wt.from(e),Kt=r(2,(e,t)=>[...e,t]),qt=r(2,(e,t)=>Gt(e).concat(Gt(t)));Wt.isArray;const Jt=Ae,Yt=Ae;function Xt(e,t){return e<0||e>=t.length}const Zt=r(2,(e,t)=>{let n=Math.floor(t);if(Xt(n,e))throw Error(`Index out of bounds: ${n}`);return e[n]})(0),Qt=e=>e.slice(1),$t=r(3,(e,t,n)=>{let r=Gt(e),i=Gt(t);return Yt(r)?Yt(i)?rn(n)(qt(r,i)):r:i}),en=r(2,(e,t)=>$t(e,t,Oe())),tn=()=>[],nn=r(2,(e,t)=>e.map(t)),rn=r(2,(e,t)=>{let n=Gt(e);if(Yt(n)){let e=[Zt(n)],r=Qt(n);for(let n of r)e.every(e=>!t(n,e))&&e.push(n);return e}return[]}),an=`~effect/BigDecimal`,on={[an]:an,[g](){let e=fn(this);return v(_(e.value),re(e.scale))},[b](e){return sn(e)&&gn(this,e)},toString(){return`BigDecimal(${_n(this)})`},toJSON(){return{_id:`BigDecimal`,value:String(this.value),scale:this.scale}},[He](){return this.toJSON()},pipe(){return e(this,arguments)}},sn=e=>h(e,an),cn=(e,t)=>{let n=Object.create(on);return n.value=e,n.scale=t,n},ln=(e,t)=>{if(e!==P&&e%un===P)throw RangeError(`Value must be normalized`);let n=cn(e,t);return n.normalized=n,n},P=BigInt(0),un=BigInt(10),dn=ln(P,0),fn=e=>{if(e.normalized===void 0)if(e.value===P)e.normalized=dn;else{let t=`${e.value}`,n=0;for(let e=t.length-1;e>=0&&t[e]===`0`;e--)n++;n===0&&(e.normalized=e),e.normalized=ln(BigInt(t.substring(0,t.length-n)),e.scale-n)}return e.normalized},pn=r(2,(e,t)=>t>e.scale?cn(e.value*un**BigInt(t-e.scale),t):te.valuee.scale>t.scale?pn(t,e.scale).value===e.value:e.scalehn(e,t)),_n=e=>{let t=fn(e);if(Math.abs(t.scale)>=16)return vn(t);let n=t.value=r.length)i=`0`,a=`0`.repeat(t.scale-r.length)+r;else{let e=r.length-t.scale;if(e>r.length){let t=e-r.length;i=`${r}${`0`.repeat(t)}`,a=``}else a=r.slice(e),i=r.slice(0,e)}let o=a===``?i:`${i}.${a}`;return n?`-${o}`:o},vn=e=>{if(yn(e))return`0e+0`;let t=fn(e),n=`${mn(t).value}`,r=n.slice(0,1),i=n.slice(1),a=`${bn(t)?`-`:``}${r}`;i!==``&&(a+=`.${i}`);let o=i.length-t.scale;return`${a}e${o>=0?`+`:``}${o}`},yn=e=>e.value===P,bn=e=>e.value_t({op:e.label,[E]:e.evaluate}),Sn=`~effect/Context/Service`,Cn=function(){let e=Error.stackTraceLimit;Error.stackTraceLimit=2;let t=Error();Error.stackTraceLimit=e;function n(){}let r=n;return Object.setPrototypeOf(r,wn),Object.defineProperty(r,"stack",{get(){return t.stack}}),arguments.length>0?(r.key=arguments[0],arguments[1]?.defaultValue&&(r[Tn]=Tn,r.defaultValue=arguments[1].defaultValue),r):function(e,t){return r.key=e,t?.make&&(r.make=t.make),r}},wn={[Sn]:Sn,...xn({label:`Service`,evaluate(e){return A(Pn(e.context,this))}}),toJSON(){return{_id:`Service`,key:this.key,stack:this.stack}},of(e){return e},context(e){return Mn(this,e)},use(e){return St(t=>e(Pn(t.context,this)))},useSync(e){return St(t=>A(e(Pn(t.context,this))))}},Tn=`~effect/Context/Reference`,En=`~effect/Context`,Dn=e=>{let t=Object.create(On);return t.mapUnsafe=e,t.mutable=!1,t},On={...Ze,[En]:{_Services:e=>e},toJSON(){return{_id:`Context`,services:Array.from(this.mapUnsafe).map(([e,t])=>({key:e,value:t}))}},[b](e){if(!kn(e)||this.mapUnsafe.size!==e.mapUnsafe.size)return!1;for(let t of this.mapUnsafe.keys())if(!e.mapUnsafe.has(t)||!x(this.mapUnsafe.get(t),e.mapUnsafe.get(t)))return!1;return!0},[g](){return re(this.mapUnsafe.size)}},kn=e=>h(e,En),An=()=>jn,jn=Dn(new Map),Mn=(e,t)=>Dn(new Map([[e.key,t]])),Nn=r(3,(e,t,n)=>zn(e,e=>{e.set(t.key,n)})),Pn=r(2,(e,t)=>{if(!e.mapUnsafe.has(t.key)){if(Tn in t)return Ln(t);throw Rn(t)}return e.mapUnsafe.get(t.key)}),Fn=(e,t)=>e.mapUnsafe.has(t.key)?e.mapUnsafe.get(t.key):Ln(t),In=`~effect/Context/defaultValue`,Ln=e=>In in e?e[In]:e[In]=e.defaultValue(),Rn=e=>{let t=Error(`Service not found${e.key?`: ${String(e.key)}`:``}`);if(e.stack){let n=e.stack.split(` +`)}\n${a(n)}}`)}return String(e)}return c(e,0)}const Le=`[Circular]`;function Re(e){return typeof e==`string`?JSON.stringify(e):String(e)}function ze(e){return e.map(e=>`[${Re(e)}]`).join(``)}function Be(e){try{return e.toISOString()}catch{return`Invalid Date`}}function Ve(e){try{let t=e.toString();return typeof t==`string`?t:String(t)}catch{return`[toString threw]`}}const He=Symbol.for(`nodejs.util.inspect.custom`),Ue=e=>{try{if(h(e,`toJSON`)&&f(e.toJSON)&&e.toJSON.length===0)return e.toJSON();if(Array.isArray(e))return e.map(Ue)}catch{return`[toJSON threw]`}return Ne(e)};var We=class e{called=!1;self;constructor(e){this.self=e}next(e){return this.called?{value:e,done:!0}:(this.called=!0,{value:this.self,done:!1})}[Symbol.iterator](){return new e(this.self)}};const Ge=(()=>{let e=`~effect/Utils/internal`,t={[e]:e=>e()},n={[e]:e=>{try{return e()}finally{}}};return t[e](()=>Error().stack)?.includes(e)===!0?t[e]:n[e]})(),w=`~effect/Effect`,Ke=`~effect/Exit`,qe={_A:i,_E:i,_R:i},Je=`${w}/identifier`,T=`${w}/args`,E=`${w}/evaluate`,D=`${w}/successCont`,O=`${w}/failureCont`,Ye=`${w}/ensureCont`,Xe=Symbol.for(`effect/Effect/Yield`),Ze={pipe(){return e(this,arguments)},toJSON(){return{...this}},toString(){return C(this.toJSON(),{ignoreToString:!0,space:2})},[He](){return this.toJSON()}},Qe={[w]:qe,...Ze,[Symbol.iterator](){return new We(this)},toJSON(){return{_id:`Effect`,op:this[Je],...T in this?{args:this[T]}:void 0}}},$e=e=>h(e,Ke),et=`~effect/Cause`,tt=`~effect/Cause/Reason`,nt=e=>h(e,et);var rt=class{[et];reasons;constructor(e){this[et]=et,this.reasons=e}pipe(){return e(this,arguments)}toJSON(){return{_id:`Cause`,failures:this.reasons.map(e=>e.toJSON())}}toString(){return`Cause(${C(this.reasons)})`}[He](){return this.toJSON()}[b](e){return nt(e)&&this.reasons.length===e.reasons.length&&this.reasons.every((t,n)=>x(t,e.reasons[n]))}[g](){return se(this.reasons)}};const it=new WeakMap;var at=class{[tt];annotations;_tag;constructor(e,t,n){if(this[tt]=tt,this._tag=e,t!==ot&&typeof n==`object`&&n&&t.size>0){let e=it.get(n);e&&(t=new Map([...e,...t])),it.set(n,t)}this.annotations=t}annotate(e,t){if(e.mapUnsafe.size===0)return this;let n=new Map(this.annotations);e.mapUnsafe.forEach((e,r)=>{t?.overwrite!==!0&&n.has(r)||n.set(r,e)});let r=Object.assign(Object.create(Object.getPrototypeOf(this)),this);return r.annotations=n,r}pipe(){return e(this,arguments)}toString(){return C(this)}[He](){return this.toString()}};const ot=new Map;var st=class extends at{error;constructor(e,t=ot){super(`Fail`,t,e),this.error=e}toString(){return`Fail(${C(this.error)})`}toJSON(){return{_tag:`Fail`,error:this.error}}[b](e){return pt(e)&&x(this.error,e.error)&&x(this.annotations,e.annotations)}[g](){return v(y(this._tag))(v(_(this.error))(_(this.annotations)))}};const ct=e=>new rt(e),lt=e=>new rt([new st(e)]);var ut=class extends at{defect;constructor(e,t=ot){super(`Die`,t,e),this.defect=e}toString(){return`Die(${C(this.defect)})`}toJSON(){return{_tag:`Die`,defect:this.defect}}[b](e){return mt(e)&&x(this.defect,e.defect)&&x(this.annotations,e.annotations)}[g](){return v(y(this._tag))(v(_(this.defect))(_(this.annotations)))}};const dt=e=>new rt([new ut(e)]),ft=r(e=>nt(e[0]),(e,t,n)=>t.mapUnsafe.size===0?e:new rt(e.reasons.map(e=>e.annotate(t,n)))),pt=e=>e._tag===`Fail`,mt=e=>e._tag===`Die`,ht=e=>e._tag===`Interrupt`;function gt(e){return xt(`Effect.evaluate: Not implemented`)}const _t=e=>({...Qe,[Je]:e.op,[E]:e[E]??gt,[D]:e[D],[O]:e[O],[Ye]:e[Ye]}),k=e=>{let t=_t(e);return function(){let n=Object.create(t);return n[T]=e.single===!1?arguments:arguments[0],n}},vt=e=>{let t={..._t(e),[Ke]:Ke,_tag:e.op,get[e.prop](){return this[T]},toString(){return`${e.op}(${C(this[T])})`},toJSON(){return{_id:`Exit`,_tag:e.op,[e.prop]:this[T]}},[b](e){return $e(e)&&e._tag===this._tag&&x(this[T],e[T])},[g](){return v(y(e.op),_(this[T]))}};return function(e){let n=Object.create(t);return n[T]=e,n}},A=vt({op:`Success`,prop:`value`,[E](e){let t=e.getCont(D);return t?t[D](this[T],e,this):e.yieldWith(this)}}),yt={key:`effect/Cause/StackTrace`},j=vt({op:`Failure`,prop:`cause`,[E](e){let t=this[T],n=!1;e.currentStackFrame&&(t=ft(t,{mapUnsafe:new Map([[yt.key,e.currentStackFrame]])}),n=!0);let r=e.getCont(O);for(;e.interruptible&&e._interruptedCause&&r;)r=e.getCont(O);return r?r[O](t,e,n?void 0:this):e.yieldWith(n?this:j(t))}}),bt=e=>j(lt(e)),xt=e=>j(dt(e)),St=k({op:`WithFiber`,[E](e){return this[T](e)}}),Ct=function(){class e extends globalThis.Error{}let t=_t({op:`YieldableError`,[E](){return bt(this)}});return delete t.toString,Object.assign(e.prototype,t),e}(),wt=function(){let e=Symbol.for(`effect/Data/Error/plainArgs`);return class extends Ct{constructor(t){super(t?.message,t?.cause?{cause:t.cause}:void 0),t&&(Object.assign(this,t),Object.defineProperty(this,e,{value:t,enumerable:!1}))}toJSON(){return{...this[e],...this}}}}(),M=e=>{class t extends wt{_tag=e}return t.prototype.name=e,t};M(`NoSuchElementError`);const Tt=`~effect/data/Option`,Et={[Tt]:{_A:e=>e},...Ze,[Symbol.iterator](){return new We(this)}},Dt=Object.defineProperty(Object.assign(Object.create(Et),{_tag:`Some`,_op:`Some`,[b](e){return At(e)&&Mt(e)&&x(this.value,e.value)},[g](){return v(_(this._tag))(_(this.value))},toString(){return`some(${C(this.value)})`},toJSON(){return{_id:`Option`,_tag:this._tag,value:Ue(this.value)}}}),"valueOrUndefined",{get(){return this.value}}),Ot=_(`None`),kt=Object.assign(Object.create(Et),{_tag:`None`,_op:`None`,valueOrUndefined:void 0,[b](e){return At(e)&&jt(e)},[g](){return Ot},toString(){return`none()`},toJSON(){return{_id:`Option`,_tag:this._tag}}}),At=e=>h(e,Tt),jt=e=>e._tag===`None`,Mt=e=>e._tag===`Some`,Nt=Object.create(kt),Pt=e=>{let t=Object.create(Dt);return t.value=e,t},Ft=`~effect/data/Result`;({...Ze});function It(e){return(t,n)=>t===n?0:e(t,n)}const Lt=It((e,t)=>globalThis.Number.isNaN(e)&&globalThis.Number.isNaN(t)?0:globalThis.Number.isNaN(e)?-1:globalThis.Number.isNaN(t)?1:er(2,(t,n)=>e(t,n)!==1),zt=e=>r(2,(t,n)=>e(t,n)!==-1),Bt=()=>Nt,N=Pt,Vt=jt,Ht=Mt,Ut=r(2,(e,t)=>Vt(e)?Bt():N(t(e.value))),Wt=globalThis.Array,Gt=e=>Wt.isArray(e)?e:Wt.from(e),Kt=r(2,(e,t)=>[...e,t]),qt=r(2,(e,t)=>Gt(e).concat(Gt(t)));Wt.isArray;const Jt=Ae,Yt=Ae;function Xt(e,t){return e<0||e>=t.length}const Zt=r(2,(e,t)=>{let n=Math.floor(t);if(Xt(n,e))throw Error(`Index out of bounds: ${n}`);return e[n]})(0),Qt=e=>e.slice(1),$t=r(3,(e,t,n)=>{let r=Gt(e),i=Gt(t);return Yt(r)?Yt(i)?rn(n)(qt(r,i)):r:i}),en=r(2,(e,t)=>$t(e,t,Oe())),tn=()=>[],nn=r(2,(e,t)=>e.map(t)),rn=r(2,(e,t)=>{let n=Gt(e);if(Yt(n)){let e=[Zt(n)],r=Qt(n);for(let n of r)e.every(e=>!t(n,e))&&e.push(n);return e}return[]}),an=`~effect/BigDecimal`,on={[an]:an,[g](){let e=fn(this);return v(_(e.value),re(e.scale))},[b](e){return sn(e)&&gn(this,e)},toString(){return`BigDecimal(${_n(this)})`},toJSON(){return{_id:`BigDecimal`,value:String(this.value),scale:this.scale}},[He](){return this.toJSON()},pipe(){return e(this,arguments)}},sn=e=>h(e,an),cn=(e,t)=>{let n=Object.create(on);return n.value=e,n.scale=t,n},ln=(e,t)=>{if(e!==P&&e%un===P)throw RangeError(`Value must be normalized`);let n=cn(e,t);return n.normalized=n,n},P=BigInt(0),un=BigInt(10),dn=ln(P,0),fn=e=>{if(e.normalized===void 0)if(e.value===P)e.normalized=dn;else{let t=`${e.value}`,n=0;for(let e=t.length-1;e>=0&&t[e]===`0`;e--)n++;n===0&&(e.normalized=e),e.normalized=ln(BigInt(t.substring(0,t.length-n)),e.scale-n)}return e.normalized},pn=r(2,(e,t)=>t>e.scale?cn(e.value*un**BigInt(t-e.scale),t):te.valuee.scale>t.scale?pn(t,e.scale).value===e.value:e.scalehn(e,t)),_n=e=>{let t=fn(e);if(Math.abs(t.scale)>=16)return vn(t);let n=t.value=r.length)i=`0`,a=`0`.repeat(t.scale-r.length)+r;else{let e=r.length-t.scale;if(e>r.length){let t=e-r.length;i=`${r}${`0`.repeat(t)}`,a=``}else a=r.slice(e),i=r.slice(0,e)}let o=a===``?i:`${i}.${a}`;return n?`-${o}`:o},vn=e=>{if(yn(e))return`0e+0`;let t=fn(e),n=`${mn(t).value}`,r=n.slice(0,1),i=n.slice(1),a=`${bn(t)?`-`:``}${r}`;i!==``&&(a+=`.${i}`);let o=i.length-t.scale;return`${a}e${o>=0?`+`:``}${o}`},yn=e=>e.value===P,bn=e=>e.value_t({op:e.label,[E]:e.evaluate}),Sn=Object.getOwnPropertyDescriptor,Cn=Object.prototype.hasOwnProperty,wn=Object.isExtensible,Tn=(()=>{let e=Sn(Error,`stackTraceLimit`);return e===void 0?wn(Error):Cn.call(e,`writable`)?e.writable===!0:e.set!==void 0})(),En=()=>Error.stackTraceLimit,Dn=e=>{Tn&&(Error.stackTraceLimit=e)},On=`~effect/Context/Service`,kn=function(){let e=En();Dn(2);let t=Error();Dn(e);function n(){}let r=n;return Object.setPrototypeOf(r,An),Object.defineProperty(r,"stack",{get(){return t.stack}}),arguments.length>0?(r.key=arguments[0],arguments[1]?.defaultValue&&(r[jn]=jn,r.defaultValue=arguments[1].defaultValue),r):function(e,t){return r.key=e,t?.make&&(r.make=t.make),r}},An={[On]:On,...xn({label:`Service`,evaluate(e){return A(Bn(e.context,this))}}),toJSON(){return{_id:`Service`,key:this.key,stack:this.stack}},of(e){return e},context(e){return Rn(this,e)},use(e){return St(t=>e(Bn(t.context,this)))},useSync(e){return St(t=>A(e(Bn(t.context,this))))}},jn=`~effect/Context/Reference`,Mn=`~effect/Context`,Nn=e=>{let t=Object.create(Pn);return t.mapUnsafe=e,t.mutable=!1,t},Pn={...Ze,[Mn]:{_Services:e=>e},toJSON(){return{_id:`Context`,services:Array.from(this.mapUnsafe).map(([e,t])=>({key:e,value:t}))}},[b](e){if(!Fn(e)||this.mapUnsafe.size!==e.mapUnsafe.size)return!1;for(let t of this.mapUnsafe.keys())if(!e.mapUnsafe.has(t)||!x(this.mapUnsafe.get(t),e.mapUnsafe.get(t)))return!1;return!0},[g](){return re(this.mapUnsafe.size)}},Fn=e=>h(e,Mn),In=()=>Ln,Ln=Nn(new Map),Rn=(e,t)=>Nn(new Map([[e.key,t]])),zn=r(3,(e,t,n)=>Gn(e,e=>{e.set(t.key,n)})),Bn=r(2,(e,t)=>{if(!e.mapUnsafe.has(t.key)){if(jn in t)return Un(t);throw Wn(t)}return e.mapUnsafe.get(t.key)}),Vn=(e,t)=>e.mapUnsafe.has(t.key)?e.mapUnsafe.get(t.key):Un(t),Hn=`~effect/Context/defaultValue`,Un=e=>Hn in e?e[Hn]:e[Hn]=e.defaultValue(),Wn=e=>{let t=Error(`Service not found${e.key?`: ${String(e.key)}`:``}`);if(e.stack){let n=e.stack.split(` `);if(n.length>2){let e=n[2].match(/at (.*)/);e&&(t.message+=` (defined at ${e[1]})`)}}if(t.stack){let e=t.stack.split(` `);e.splice(1,3),t.stack=e.join(` -`)}return t},zn=(e,t)=>{if(e.mutable)return t(e.mapUnsafe),e;let n=new Map(e.mapUnsafe);return t(n),Dn(n)},Bn=Cn,Vn=Bn(`effect/Scheduler`,{defaultValue:()=>new Wn}),Hn=`setImmediate`in globalThis?e=>{let t=globalThis.setImmediate(e);return()=>globalThis.clearImmediate(t)}:e=>{let t=setTimeout(e,0);return()=>clearTimeout(t)};var Un=class{buckets=[];scheduleTask(e,t){let n=this.buckets,r=n.length,i,a=0;for(;at);a++)i=n[a];i&&i[0]===t?i[1].push(e):a===r?n.push([t,[e]]):n.splice(a,0,[t,[e]])}drain(){let e=this.buckets;return this.buckets=[],e}},Wn=class{executionMode;setImmediate;constructor(e=`async`,t=Hn){this.executionMode=e,this.setImmediate=t}shouldYield(e){return e.currentOpCount>=e.maxOpsBeforeYield}makeDispatcher(){return new Gn(this.setImmediate)}},Gn=class{tasks=new Un;running=void 0;setImmediate;constructor(e=Hn){this.setImmediate=e}scheduleTask(e,t){this.tasks.scheduleTask(e,t),this.running===void 0&&(this.running=this.setImmediate(this.afterScheduled))}afterScheduled=()=>{this.running=void 0,this.runTasks()};runTasks(){let e=this.tasks.drain();for(let t=0;t0;)this.running!==void 0&&(this.running(),this.running=void 0),this.runTasks()}};const Kn=Bn(`effect/Scheduler/MaxOpsBeforeYield`,{defaultValue:()=>2048}),qn=Bn(`effect/Scheduler/PreventSchedulerYield`,{defaultValue:()=>!1}),Jn=`effect/Tracer/ParentSpan`;Cn()(Jn);const Yn=Bn(`effect/References/CurrentStackFrame`,{defaultValue:a}),Xn=Bn(`effect/References/CurrentLogLevel`,{defaultValue:()=>`Info`}),Zn=Bn(`effect/References/MinimumLogLevel`,{defaultValue:()=>`Info`});var Qn=class extends at{fiberId;constructor(e,t=ot){super(`Interrupt`,t,`Interrupted`),this.fiberId=e}toString(){return`Interrupt(${this.fiberId})`}toJSON(){return{_tag:`Interrupt`,fiberId:this.fiberId}}[b](e){return ht(e)&&this.fiberId===e.fiberId&&this.annotations===e.annotations}[g](){return v(y(`${this._tag}:${this.fiberId}`))(ee(this.annotations))}};const $n=e=>new rt([new Qn(e)]),er=e=>e.reasons.some(ht),tr=r(2,(e,t)=>{if(e.reasons.length===0)return t;if(t.reasons.length===0)return e;let n=new rt(en(e.reasons,t.reasons));return x(e,n)?e:n}),nr=r(2,(e,t)=>{let n=!1,r=e.reasons.map(e=>pt(e)?(n=!0,new st(t(e.error))):e);return n?ct(r):e}),rr=`~effect/Fiber/dev`,ir={_A:i,_E:i},ar={id:0},or=()=>globalThis[Fe];var sr=class{constructor(e,t=!0){this[rr]=ir,this.setContext(e),this.id=++ar.id,this.currentOpCount=0,this.currentLoopCount=0,this.interruptible=t,this._stack=[],this._observers=[],this._exit=void 0,this._children=void 0,this._interruptedCause=void 0,this._yielded=void 0,this.runtimeMetrics?.recordFiberStart(this.context)}[rr];id;interruptible;currentOpCount;currentLoopCount;_stack;_observers;_exit;_currentExit;_children;_interruptedCause;_yielded;context;currentScheduler;currentTracerContext;currentSpan;currentLogLevel;minimumLogLevel;currentStackFrame;runtimeMetrics;maxOpsBeforeYield;currentPreventYield;_dispatcher=void 0;get currentDispatcher(){return this._dispatcher??=this.currentScheduler.makeDispatcher()}getRef(e){return Fn(this.context,e)}addObserver(e){return this._exit?(e(this._exit),o):(this._observers.push(e),()=>{let t=this._observers.indexOf(e);t>=0&&this._observers.splice(t,1)})}interruptUnsafe(e,t){if(this._exit)return;let n=$n(e);this.currentStackFrame&&(n=ft(n,Mn(yt,this.currentStackFrame))),t&&(n=ft(n,t)),this._interruptedCause=this._interruptedCause?tr(this._interruptedCause,n):n,this.interruptible&&this.evaluate(fr(this._interruptedCause))}pollUnsafe(){return this._exit}evaluate(e){if(this._exit)return;if(this._yielded!==void 0){let e=this._yielded;this._yielded=void 0,e()}let t=this.runLoop(e);if(t===Xe)return;let n=cr.interruptChildren&&cr.interruptChildren(this);if(n!==void 0)return this.evaluate(I(n,()=>t));this._exit=t,this.runtimeMetrics?.recordFiberEnd(this.context,this._exit);for(let e=0;ee)}if(r=this.currentTracerContext?this.currentTracerContext(r,this):r[E](this),i!==this.currentLoopCount)return Xe;if(r===Xe){let e=this._yielded;return Ke in e?(this._yielded=void 0,e):Xe}}}catch(e){return h(r,E)?this.runLoop(xt(e)):xt(`Fiber.runLoop: Not a valid effect: ${String(r)}`)}finally{globalThis[Fe]=t}}getCont(e){for(;;){let t=this._stack.pop();if(!t)return;let n=t[Ye]&&t[Ye](this);if(n)return n[e]=n,n;if(t[e])return t}}yieldWith(e){return this._yielded=e,Xe}children(){return this._children??=new Set}pipe(){return e(this,arguments)}setContext(e){this.context=e;let t=this.getRef(Vn);t!==this.currentScheduler&&(this.currentScheduler=t,this._dispatcher=void 0),this.currentSpan=e.mapUnsafe.get(Jn),this.currentLogLevel=this.getRef(Xn),this.minimumLogLevel=this.getRef(Zn),this.currentStackFrame=e.mapUnsafe.get(Yn.key),this.maxOpsBeforeYield=this.getRef(Kn),this.currentPreventYield=this.getRef(qn),this.runtimeMetrics=e.mapUnsafe.get(`effect/observability/Metric/FiberRuntimeMetricsKey`);let n=e.mapUnsafe.get(`effect/Tracer`);this.currentTracerContext=n?n.context:void 0}get currentSpanLocal(){return this.currentSpan?._tag===`Span`?this.currentSpan:void 0}};const cr={interruptChildren:void 0},lr=e=>{if(!e.currentStackFrame)return;let t=new Map;return t.set(yt.key,e.currentStackFrame),Dn(t)},ur=e=>wr(t=>{let n=e[Symbol.iterator](),r=[],i;function a(){let e=n.next();for(;!e.done;){if(e.value._exit){r.push(e.value._exit),e=n.next();continue}i=e.value.addObserver(e=>{r.push(e),a()});return}t(F(r))}return a(),mr(()=>i?.())}),dr=e=>St(t=>{let n=lr(t);for(let r of e)r.interruptUnsafe(t.id,n);return kr(ur(e))}),F=A,fr=j,pr=bt,mr=k({op:`Sync`,[E](e){let t=this[T](),n=e.getCont(D);return n?n[D](t,e):e.yieldWith(A(t))}}),hr=k({op:`Suspend`,[E](e){return this[T]()}}),gr=k({op:`Yield`,[E](e){let t=!1;return e.currentDispatcher.scheduleTask(()=>{t||e.evaluate(Fr)},this[T]??0),e.yieldWith(()=>{t=!0})}})(0),_r=e=>F(N(e)),vr=F(Bt()),yr=e=>hr(()=>fr(Ge(e))),br=e=>xt(e),xr=F(void 0),Sr=k({op:`Async`,single:!1,[E](e){let t=Ge(()=>this[T][0].bind(e.currentScheduler)),n=!1,r=!1,i=this[T][1]?new AbortController:void 0,a=t(t=>{n||(n=!0,r?e.evaluate(t):r=t)},i?.signal);return r===!1?(r=!0,e._yielded=()=>{n=!0},i===void 0&&a===void 0||e._stack.push(Cr(()=>(n=!0,i?.abort(),a??Fr))),Xe):r}}),Cr=k({op:`AsyncFinalizer`,[Ye](e){e.interruptible&&(e.interruptible=!1,e._stack.push(Vr))},[O](e,t){return er(e)?I(this[T](),()=>fr(e)):fr(e)}}),wr=e=>Sr(e,e.length>=2),Tr=(e,t)=>Object.defineProperty(t,"length",{value:e,configurable:!0}),Er=(e,...t)=>Tr(e.length,t.length===0?function(){return Dr(()=>e.apply(this,arguments))}:function(){let n=Dr(()=>e.apply(this,arguments));for(let e of t)n=e(n);return n}),Dr=e=>{try{let t=e(),n;for(;;){let r=t.next(n);if(r.done)return F(r.value);let i=r.value;if(i&&i._tag===`Success`){n=i.value;continue}else if(i&&i._tag===`Failure`)return r.value;else{let n=!0;return hr(()=>n?(n=!1,I(r.value,e=>Or(t,e))):hr(()=>Or(e())))}}}catch(e){return br(e)}},Or=k({op:`Iterator`,single:!1,[D](e,t){let n=this[T][0];for(;;){let r=n.next(e);if(r.done)return F(r.value);if(!L(r.value))return t._stack.push(this),r.value;if(r.value._tag===`Failure`)return r.value;e=r.value.value}},[E](e){return this[D](this[T][1],e)}}),kr=e=>I(e,e=>Fr),I=r(2,(e,t)=>{let n=Object.create(Ar);return n[T]=e,n[D]=t.length===1?t:e=>t(e),n}),Ar=_t({op:`OnSuccess`,[E](e){return e._stack.push(this),this[T]}}),L=e=>Ke in e,jr=r(2,(e,t)=>L(e)?e._tag===`Success`?t(e.value):e:I(e,t)),Mr=r(2,(e,t)=>I(e,e=>F(Ge(()=>t(e))))),Nr=r(2,(e,t)=>L(e)?Ir(e,t):Mr(e,t)),Pr=e=>e._tag===`Success`,Fr=A(void 0),Ir=r(2,(e,t)=>e._tag===`Success`?A(t(e.value)):e),Lr=r(2,(e,t)=>{let n=Object.create(Rr);return n[T]=e,n[O]=t.length===1?t:e=>t(e),n}),Rr=_t({op:`OnFailure`,[E](e){return e._stack.push(this),this[T]}}),zr=e=>L(e)?A(e):Br(e),Br=k({op:`Exit`,[E](e){return e._stack.push(this),this[T]},[D](e,t,n){return F(n??A(e))},[O](e,t,n){return F(n??j(e))}}),Vr=k({op:`SetInterruptible`,[Ye](e){if(e.interruptible=this[T],e._interruptedCause&&e.interruptible)return()=>fr(e._interruptedCause)}})(!0),Hr=e=>{let t=e.onItem,n=e.step;return(e,r,i)=>{let a=i?.start??0,o=i?.end??r.length,s=i?.concurrency??1,c=!1,l,u,d,f=!1,p,m,h=()=>{let i=!1;for(;!p&&a(p=n(e,o,t,a),a++,p??h()??xr));else if(l){m=void 0;let t=Wr(l,g,!0,!0,`inherit`);if(t._exit){if(p=n(e,o,t._exit,a),p)break;continue}u?u.add(t):u=new Set([t]);let r=a;if(t.addObserver(a=>{if(u.delete(t),p){if(!f&&a._tag===`Failure`)for(let e of a.cause.reasons)if(e._tag===`Interrupt`)continue;else p._tag===`Failure`?p.cause.reasons.push(e):p=j(ct([e]))}else{let t=n(e,o,a,r);t&&(p=t._tag===`Failure`?j(ct(t.cause.reasons.slice())):t,h())}if(i){let e=h();e&&d(e)}else c&&u.size===0&&d(p??xr)}),u.size{l=or(),m=g,d=e;let t=h();return t?e(t):hr(()=>(p=Fr,f=!0,u?dr(u):xr))})}if(c=!0,p){if(u&&u.size>0){let e=lr(l);u.forEach(t=>t.interruptUnsafe(l.id,e));return}if(d||p._tag===`Failure`)return p}else if(d)if(u)u.size===0&&d(xr);else return Fr};return h()}},Ur=()=>Hr,Wr=(e,t,n=!1,r=!1,i=!1)=>{let a=i===`inherit`?e.interruptible:!i,o=new sr(e.context,a);return n?o.evaluate(t):e.currentDispatcher.scheduleTask(()=>o.evaluate(t),0),!r&&!o._exit&&(e.children().add(o),o.addObserver(()=>e._children.delete(o))),o},Gr=e=>(t,n)=>{let r=new sr(n?.scheduler?Nn(e,Vn,n.scheduler):e,n?.uninterruptible!==!0);if(r.evaluate(t),r._exit)return r;if(n?.signal)if(n.signal.aborted)r.interruptUnsafe();else{let e=()=>r.interruptUnsafe();n.signal.addEventListener(`abort`,e,{once:!0}),r.addObserver(()=>n.signal.removeEventListener(`abort`,e))}return n?.onFiberStart&&n.onFiberStart(r),r},Kr=(e=>{let t=Gr(e);return e=>{if(L(e))return e;let n=t(e,{scheduler:new Wn(`sync`)});return n.currentDispatcher?.flush(),n._exit??xt(new Jr(n))}})(An());M(`TimeoutError`),M(`IllegalArgumentError`),M(`ExceededCapacityError`);const qr=`~effect/Cause/AsyncFiberError`;var Jr=class extends M(`AsyncFiberError`){[qr]=qr;constructor(e){super({message:`An asynchronous Effect was executed with Effect.runSync`,fiber:e})}};M(`UnknownError`);const R={bold:`1`,red:`31`,green:`32`,yellow:`33`,blue:`34`,cyan:`36`,white:`37`,gray:`90`,black:`30`,bgBrightRed:`101`};R.gray,R.blue,R.green,R.yellow,R.red,R.bgBrightRed,R.black;const Yr=pt,Xr=nr;Cn()(`effect/Cause/StackTrace`),Cn()(`effect/Cause/InterruptorStackTrace`);const Zr=M,Qr=j,$r=bt,ei=Fr,ti=Pr,ni=`~effect/time/DateTime`,ri=`~effect/time/DateTime/TimeZone`,ii={[ni]:ni,pipe(){return e(this,arguments)},[He](){return this.toString()},toJSON(){return oi(this).toJSON()}};({...ii}),{...ii};const ai={[ri]:ri,[He](){return this.toString()}};({...ai}),{...ai};const oi=e=>new Date(e.epochMilliseconds),z=F,si=vr,ci=_r,B=pr,li=yr,ui=I,di=zr,fi=Lr,pi=Kr;Cn()(`effect/Effect/Transaction`);const mi=Nr,V=jr,hi=Er;Cn()(`effect/DateTime/CurrentTimeZone`),Zr(`EncodingError`);function gi(e){return e.checks?e.checks[e.checks.length-1].annotations:e.annotations}function _i(e){return t=>gi(t)?.[e]}const vi=_i(`identifier`),yi=s(e=>{let t=vi(e);return typeof t==`string`?t:e.getExpected(yi)});function bi(e,t,n){return t===`__proto__`?Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0}):e[t]=n,e}const xi=`~effect/SchemaIssue/Issue`;function Si(e){return h(e,xi)}var H=class{[xi]=xi;toString(){return Bi(this)}},Ci=class extends H{_tag=`Filter`;actual;filter;issue;constructor(e,t,n){super(),this.actual=e,this.filter=t,this.issue=n}},wi=class extends H{_tag=`Encoding`;ast;actual;issue;constructor(e,t,n){super(),this.ast=e,this.actual=t,this.issue=n}},U=class extends H{_tag=`Pointer`;path;issue;constructor(e,t){super(),this.path=e,this.issue=t}},Ti=class extends H{_tag=`MissingKey`;annotations;constructor(e){super(),this.annotations=e}},Ei=class extends H{_tag=`UnexpectedKey`;ast;actual;constructor(e,t){super(),this.ast=e,this.actual=t}},W=class extends H{_tag=`Composite`;ast;actual;issues;constructor(e,t,n){super(),this.ast=e,this.actual=t,this.issues=n}},Di=class extends H{_tag=`InvalidType`;ast;actual;constructor(e,t){super(),this.ast=e,this.actual=t}},Oi=class extends H{_tag=`InvalidValue`;actual;annotations;constructor(e,t){super(),this.actual=e,this.annotations=t}},ki=class extends H{_tag=`AnyOf`;ast;actual;issues;constructor(e,t,n){super(),this.ast=e,this.actual=t,this.issues=n}},Ai=class extends H{_tag=`OneOf`;ast;actual;successes;constructor(e,t,n){super(),this.ast=e,this.actual=t,this.successes=n}};function ji(e,t){if(Si(t))return t;if(typeof t==`string`)return new Oi(N(e),{message:t});let n=typeof t.issue==`string`?new Oi(N(e),{message:t.issue}):t.issue;return new U(t.path,n)}function Mi(e,t){if(t!==void 0)return typeof t==`boolean`?t?void 0:new Oi(N(e)):ji(e,t)}function Ni(e,t,n){return Array.isArray(n)?Yt(n)?n.length===1?ji(e,n[0]):new W(t,N(e),nn(n,t=>ji(e,t))):void 0:Mi(e,n)}const Pi=e=>{let t=Hi(e);if(t!==void 0)return t;switch(e._tag){case`InvalidType`:return Ii(yi(e.ast),Wi(e.actual));case`InvalidValue`:return`Invalid data ${Wi(e.actual)}`;case`MissingKey`:return`Missing key`;case`UnexpectedKey`:return`Unexpected key with value ${C(e.actual)}`;case`Forbidden`:return`Forbidden operation`;case`OneOf`:return`Expected exactly one member to match the input ${C(e.actual)}`}},Fi=e=>Hi(e.issue)??Hi(e);function Ii(e,t){return`Expected ${e}, got ${t}`}function Li(e,t,n,r){switch(e._tag){case`Filter`:{let i=r(e);if(i!==void 0)return[{path:t,message:i}];switch(e.issue._tag){case`InvalidValue`:return[{path:t,message:Ii(Ri(e.filter),C(e.actual))}];default:return Li(e.issue,t,n,r)}}case`Encoding`:return Li(e.issue,t,n,r);case`Pointer`:return Li(e.issue,[...t,...e.path],n,r);case`Composite`:return e.issues.flatMap(e=>Li(e,t,n,r));case`AnyOf`:{let i=Hi(e);return e.issues.length===0?i===void 0?[{path:t,message:Ii(yi(e.ast),C(e.actual))}]:[{path:t,message:i}]:e.issues.flatMap(e=>Li(e,t,n,r))}default:return[{path:t,message:n(e)}]}}function Ri(e){let t=e.annotations?.expected;if(typeof t==`string`)return t;switch(e._tag){case`Filter`:return``;case`FilterGroup`:return e.checks.map(e=>Ri(e)).join(` & `)}}function zi(){return e=>Li(e,[],Pi,Fi).map(Vi).join(` -`)}const Bi=zi();function Vi(e){let t=e.message;if(e.path&&e.path.length>0){let n=ze(e.path);t+=`\n at ${n}`}return t}function Hi(e){switch(e._tag){case`InvalidType`:case`OneOf`:case`Composite`:case`AnyOf`:return Ui(e.ast.annotations);case`InvalidValue`:case`Forbidden`:return Ui(e.annotations);case`MissingKey`:return Ui(e.annotations,`messageMissingKey`);case`UnexpectedKey`:return Ui(e.ast.annotations,`messageUnexpectedKey`);case`Filter`:return Ui(e.filter.annotations);case`Encoding`:return Hi(e.issue)}}function Ui(e,t=`message`){let n=e?.[t];if(typeof n==`string`)return n}function Wi(e){return Vt(e)?`no value provided`:C(e.value)}function Gi(e){let t;for(let n of e.reasons){if(!Yr(n)||!Si(n.error))return;t??=n.error}return t}function Ki(e,t){let n=Gi(e);if(n===void 0)throw Error(t,{cause:e});return n}globalThis.RegExp;const qi=e=>e.replace(/[/\\^$*+?.()|[\]{}]/g,`\\$&`);var Ji=class e extends n{run;constructor(e){super(),this.run=e}map(t){return new e((e,n)=>this.run(e,n).pipe(mi(Ut(t))))}compose(t){return Xi(this)?t:Xi(t)?this:new e((e,n)=>this.run(e,n).pipe(V(e=>t.run(e,n))))}};const Yi=new Ji(z);function Xi(e){return e.run===Yi.run}function Zi(){return Yi}function G(e){return Qi(Ut(e))}function Qi(e){return new Ji(t=>z(e(t)))}function $i(){return G(globalThis.String)}function ea(){return G(globalThis.Number)}const ta=`~effect/SchemaTransformation/Transformation`;var na=class e{[ta]=ta;_tag=`Transformation`;decode;encode;constructor(e,t){this.decode=e,this.encode=t}flip(){return new e(this.encode,this.decode)}compose(t){return new e(this.decode.compose(t.decode),t.encode.compose(this.encode))}};function ra(e){return h(e,ta)}const ia=e=>ra(e)?e:new na(e.decode,e.encode),aa=new na(Zi(),Zi());function oa(){return aa}const sa=new na(ea(),$i());function ca(e){return t=>t._tag===e}const la=ca(`Declaration`),ua=ca(`Never`),da=ca(`Literal`),fa=ca(`UniqueSymbol`),pa=ca(`Arrays`),ma=ca(`Objects`),ha=ca(`Union`);var K=class{to;transformation;constructor(e,t){this.to=e,this.transformation=t}};const ga={};var _a=class{isOptional;isMutable;defaultValue;annotations;constructor(e,t,n=void 0,r=void 0){this.isOptional=e,this.isMutable=t,this.defaultValue=n,this.annotations=r}};const va=`~effect/Schema`;var q=class{[va]=va;annotations;checks;encoding;context;constructor(e=void 0,t=void 0,n=void 0,r=void 0){this.annotations=e,this.checks=t,this.encoding=n,this.context=r}toString(){return`<${this._tag}>`}},ya=class e extends q{_tag=`Declaration`;typeParameters;run;encodingChecks;constructor(e,t,n,r,i,a,o){super(n,r,i,a),this.typeParameters=e,this.run=t,this.encodingChecks=o}getParser(){let e=this.run(this.typeParameters);return(t,n)=>Vt(t)?si:mi(e(t.value,this,n),N)}rebuild(t,n,r){let i=mo(this.typeParameters,t);return i===this.typeParameters?this:new e(i,this.run,this.annotations,n,void 0,this.context,r)}recur(e){return this.rebuild(e,this.checks,this.encodingChecks)}flip(e){return this.rebuild(e,this.encodingChecks,this.checks)}getExpected(){let e=this.annotations?.expected;return typeof e==`string`?e:``}};const ba=new class extends q{_tag=`Null`;getParser(){return Eo(this,null)}getExpected(){return`null`}};var xa=class extends q{_tag=`Literal`;literal;constructor(e,t,n,r,i){if(super(t,n,r,i),typeof e==`number`&&!globalThis.Number.isFinite(e))throw Error(`A numeric literal must be finite, got ${C(e)}`);this.literal=e}getParser(){return Eo(this,this.literal)}toCodecJson(){return typeof this.literal==`bigint`?Sa(this):this}toCodecStringTree(){return typeof this.literal==`string`?this:Sa(this)}getExpected(){return typeof this.literal==`string`?JSON.stringify(this.literal):globalThis.String(this.literal)}};function Sa(e){let t=globalThis.String(e.literal);return J(e,[new K(new xa(t),new na(G(()=>e.literal),G(()=>t)))])}const Ca=new class extends q{_tag=`String`;getParser(){return Do(this,u)}getExpected(){return`string`}};var wa=class extends q{_tag=`Number`;getParser(){return Do(this,d)}toCodecJson(){return this.checks&&(Ta(this.checks,`isFinite`)||Ta(this.checks,`isInt`))?this:J(this,[Qa])}toCodecStringTree(){return this.checks&&(Ta(this.checks,`isFinite`)||Ta(this.checks,`isInt`))?J(this,[Po]):J(this,[Fo])}getExpected(){return`number`}};function Ta(e,t){return e.some(e=>{switch(e._tag){case`Filter`:return e.annotations?.meta?._tag===t;case`FilterGroup`:return Ta(e.checks,t)}})}const Ea=new wa;var Da=class e extends q{_tag=`Arrays`;isMutable;elements;rest;encodingChecks;constructor(e,t,n,r,i,a,o,s){super(r,i,a,o),this.isMutable=e,this.elements=t,this.rest=n,this.encodingChecks=s;let c=t.findIndex(Y);if(c!==-1&&(t.slice(c+1).some(e=>!Y(e))||n.length>1))throw Error(`A required element cannot follow an optional element. ts(1257)`);if(n.length>1&&n.slice(1).some(Y))throw Error(`An optional element cannot follow a rest element. ts(1266)`)}getParser(e){let t=this,n=t.elements.map(t=>({ast:t,parser:e(t)})),r=t.rest.map(t=>({ast:t,parser:e(t)})),i=n.length,[a,...o]=r,s=o.length;function c(e,t){return t=e?o[t-e]:a}return hi(function*(e,n){if(e._tag===`None`)return e;let r=e.value;if(!Array.isArray(r))return yield*B(new Di(t,e));let a=r.length,o={ast:t,getParser:c,oinput:e,len:a,tailThreshold:ka(a,i,s),output:new globalThis.Array(a),issues:void 0,options:n},l=Oa(o,r,{concurrency:Aa(n?.concurrency)?.concurrency,end:t.rest.length===0?i:Math.max(a,i+s)});if(l&&(yield*l),t.rest.length===0&&a>i)for(let s=i;s<=a-1;s++){let i=new U([s],new Ei(t,r[s]));if(n.errors===`all`)o.issues?o.issues.push(i):o.issues=[i];else return yield*B(new W(t,e,[i]))}return o.issues?yield*B(new W(t,e,o.issues)):N(o.output)})}rebuild(t,n,r){let i=mo(this.elements,t),a=mo(this.rest,t);return i===this.elements&&a===this.rest?this:new e(this.isMutable,i,a,this.annotations,n,void 0,this.context,r)}recur(e){return this.rebuild(e,this.checks,this.encodingChecks)}flip(e){return this.rebuild(e,this.encodingChecks,this.checks)}getExpected(){return`array`}};const Oa=Ur()({onItem(e,t,n){let r=n(e=e===`unbounded`?1/0:e??1,e>1?{concurrency:e}:void 0),ja=(e,t,n,r)=>{if(r.cause.reasons.length===0)return r;let i=Gi(r.cause);if(i===void 0)return Qr(Xr(r.cause,r=>new W(t,e.oinput,[new U([n],r)])));let a=new U([n],i);if(e.options.errors===`all`)e.issues?e.issues.push(a):e.issues=[a];else return $r(new W(t,e.oinput,[a]))},Ma=`[+-]?\\d*\\.?\\d+(?:[Ee][+-]?\\d+)?`,Na=new globalThis.RegExp(`(?:${Ma}|Infinity|-Infinity|NaN)`);function Pa(e,t){let n=vo(t);switch(n._tag){case`String`:return Object.keys(e);case`TemplateLiteral`:{let t=Co(n);return Object.keys(e).filter(e=>t.test(e))}case`Symbol`:return Object.getOwnPropertySymbols(e);case`Number`:return Object.keys(e).filter(e=>Na.test(e));case`Union`:return[...new Set(n.types.flatMap(t=>Pa(e,t)))];default:return[]}}var Fa=class{name;type;constructor(e,t){this.name=e,this.type=t}},Ia=class{parameter;type;merge;constructor(e,t,n){if(this.parameter=e,this.type=t,this.merge=n,Y(t)&&!xo(t))throw Error("Cannot use `Schema.optionalKey` with index signatures, use `Schema.optional` instead.")}},La=class e extends q{_tag=`Objects`;propertySignatures;indexSignatures;encodingChecks;constructor(e,t,n,r,i,a,o){super(n,r,i,a),this.propertySignatures=e,this.indexSignatures=t,this.encodingChecks=o;let s=e.map(e=>e.name).filter((e,t,n)=>n.indexOf(e)!==t);if(s.length>0)throw Error(`Duplicate identifiers: ${JSON.stringify(s)}. ts(2300)`)}getParser(e){let t=this,n=[],r=new Set,i=[];for(let a of t.propertySignatures)n.push(a.name),r.add(a.name),i.push({ps:a,parser:e(a.type),name:a.name,type:a.type});let a=t.indexSignatures.length;if(t.propertySignatures.length===0&&t.indexSignatures.length===0)return Do(t,p);let o=a>0?Ur()({onItem:hi(function*(n,[i,a]){let o=e(ko(a.parameter))(N(i),n.options),s=L(o)?o:yield*di(o);if(s._tag===`Failure`){let e=ja(n,t,i,s);e&&(yield*e);return}let c=N(n.input[i]),l=e(a.type)(c,n.options),u=L(l)?l:yield*di(l);if(u._tag===`Failure`){let e=ja(n,t,i,u);e&&(yield*e);return}else if(s.value._tag===`Some`&&u.value._tag===`Some`){let e=s.value.value;if(r.has(i)||r.has(e))return;let t=u.value.value;if(a.merge&&a.merge.decode&&Object.hasOwn(n.out,e)){let[r,i]=a.merge.decode.combine([e,n.out[e]],[e,t]);bi(n.out,r,i)}else bi(n.out,e,t)}}),step:(e,t,n)=>n._tag===`Failure`?n:void 0}):void 0;return hi(function*(e,s){if(e._tag===`None`)return e;let c=e.value;if(!(typeof c==`object`&&c&&!Array.isArray(c)))return yield*B(new Di(t,e));let l={},u={ast:t,oinput:e,input:c,out:l,issues:void 0,options:s},d=s.errors===`all`,f=s.onExcessProperty===`error`,p=s.onExcessProperty===`preserve`,m;if(t.indexSignatures.length===0&&(f||p)){m=Reflect.ownKeys(c);for(let n=0;n{let n=t(e.type);return n===e.type?e:new Fa(e.name,n)}),o=mo(this.indexSignatures,e=>{let r=t(e.parameter),i=t(e.type),a=n?e.merge?.flip():e.merge;return r===e.parameter&&i===e.type&&a===e.merge?e:new Ia(r,i,a)});return a===this.propertySignatures&&o===this.indexSignatures?this:new e(a,o,this.annotations,r,void 0,this.context,i)}flip(e){return this.rebuild(e,!0,this.encodingChecks,this.checks)}recur(e){return this.rebuild(e,!1,this.checks,this.encodingChecks)}getExpected(){return this.propertySignatures.length===0&&this.indexSignatures.length===0?`object | array`:`object`}};const Ra=Ur()({onItem(e,t){let n=Object.hasOwn(e.input,t.name)?N(e.input[t.name]):Bt();return t.parser(n,e.options)},step(e,t,n){if(n._tag===`Failure`)return ja(e,e.ast,t.name,n);if(n.value._tag===`Some`)bi(e.out,t.name,n.value.value);else if(!Y(t.type)){let n=new U([t.name],new Ti(t.type.context?.annotations));if(e.options.errors===`all`){e.issues?e.issues.push(n):e.issues=[n];return}else return $r(new W(e.ast,e.oinput,[n]))}}});function za(e,t,n){return new La(Reflect.ownKeys(e).map(t=>new Fa(t,e[t].ast)),[],n,t)}function Ba(e){return e.ast}function Va(e,t=void 0){return new Da(!1,e.map(e=>e.ast),[],void 0,t)}function Ha(e,t,n){return new Ya(e.map(Ba),t,void 0,n)}function Ua(e){switch(e._tag){case`Null`:return[`null`];case`Undefined`:case`Void`:return[`undefined`];case`String`:case`TemplateLiteral`:return[`string`];case`Number`:return[`number`];case`Boolean`:return[`boolean`];case`Symbol`:case`UniqueSymbol`:return[`symbol`];case`BigInt`:return[`bigint`];case`Arrays`:return[`array`];case`ObjectKeyword`:return[`object`,`array`,`function`];case`Objects`:return e.propertySignatures.length||e.indexSignatures.length?[`object`]:[`object`,`array`];case`Enum`:return Array.from(new Set(e.enums.map(([,e])=>typeof e)));case`Literal`:return[typeof e.literal];case`Union`:return Array.from(new Set(e.types.flatMap(Ua)));default:return[`null`,`undefined`,`string`,`number`,`boolean`,`symbol`,`bigint`,`object`,`array`,`function`]}}function Wa(e){switch(e._tag){default:return[];case`Declaration`:{let t=e.annotations?.[`~sentinels`];return Array.isArray(t)?t:[]}case`Objects`:return e.propertySignatures.flatMap(e=>{let t=e.type;if(!Y(t)){if(da(t))return[{key:e.name,literal:t.literal}];if(fa(t))return[{key:e.name,literal:t.symbol}]}return[]});case`Arrays`:return e.elements.flatMap((e,t)=>da(e)&&!Y(e)?[{key:t,literal:e.literal}]:[]);case`Suspend`:return Wa(e.thunk())}}const Ga=new WeakMap;function Ka(e){let t=Ga.get(e);if(t)return t;t={};for(let n of e){let e=vo(n);if(ua(e))continue;let r=Ua(e),i=Wa(e);t.byType??={};for(let e of r)(t.byType[e]??=[]).push(n);if(i.length>0){t.bySentinel??=new Map;for(let{key:e,literal:r}of i){let i=t.bySentinel.get(e);i||t.bySentinel.set(e,i=new Map);let a=i.get(r);a||i.set(r,a=[]),a.push(n)}}else{t.otherwise??={};for(let e of r)(t.otherwise[e]??=[]).push(n)}}return Ga.set(e,t),t}function qa(e){return t=>{let n=vo(t);return n._tag===`Literal`?n.literal===e:n._tag===`UniqueSymbol`?n.symbol===e:!0}}function Ja(e,t){let n=Ka(t),r=e===null?`null`:Array.isArray(e)?`array`:typeof e;if(n.bySentinel){let t=n.otherwise?.[r]??[];if(r===`object`||r===`array`){for(let[r,i]of n.bySentinel)if(Object.hasOwn(e,r)){let n=i.get(e[r]);if(n)return[...n,...t].filter(qa(e))}}return t}return(n.byType?.[r]??[]).filter(qa(e))}var Ya=class e extends q{_tag=`Union`;types;mode;encodingChecks;constructor(e,t,n,r,i,a,o){super(n,r,i,a),this.types=e,this.mode=t,this.encodingChecks=o}getParser(e){let t=this;return(n,r)=>{if(n._tag===`None`)return z(n);let i=n.value,a=Ja(i,t.types),o={ast:t,recur:e,oinput:n,input:i,out:void 0,successes:[],issues:void 0,options:r},s=Xa(o,a,Aa(r?.concurrency));return s?ui(s,e=>o.out?z(o.out):B(new ki(t,i,o.issues??[]))):o.out?z(o.out):B(new ki(t,i,o.issues??[]))}}rebuild(t,n,r){let i=mo(this.types,t);return i===this.types?this:new e(i,this.mode,this.annotations,n,void 0,this.context,r)}recur(e){return this.rebuild(e,this.checks,this.encodingChecks)}flip(e){return this.rebuild(e,this.encodingChecks,this.checks)}getExpected(e){let t=this.annotations?.expected;if(typeof t==`string`)return t;if(this.types.length===0)return`never`;let n=this.types.map(t=>{let n=vo(t);switch(n._tag){case`Arrays`:{let t=n.elements.filter(da);if(t.length>0)return`${$a(n.isMutable)}[ ${t.map(t=>e(t)+eo(t.context?.isOptional)).join(`, `)}, ... ]`;break}case`Objects`:{let t=n.propertySignatures.filter(e=>da(e.type));if(t.length>0)return`{ ${t.map(t=>`${$a(t.type.context?.isMutable)}${Re(t.name)}${eo(t.type.context?.isOptional)}: ${e(t.type)}`).join(`, `)}, ... }`;break}}return e(n)});return Array.from(new Set(n)).join(` | `)}};const Xa=Ur()({onItem(e,t){return e.recur(t)(e.oinput,e.options)},step(e,t,n){if(n._tag===`Failure`){let t=Gi(n.cause);if(t===void 0)return n;e.issues?e.issues.push(t):e.issues=[t]}else{if(e.out&&e.ast.mode===`oneOf`)return e.successes.push(t),$r(new Ai(e.ast,e.input,e.successes));if(e.out=n.value,e.successes.push(t),e.ast.mode===`anyOf`)return ei}}}),Za=new Ya([new xa(`Infinity`),new xa(`-Infinity`),new xa(`NaN`)],`anyOf`),Qa=new K(new Ya([Ea,Za],`anyOf`),new na(ea(),G(e=>globalThis.Number.isFinite(e)?e:globalThis.String(e))));function $a(e){return e?``:`readonly `}function eo(e){return e?`?`:``}function to(e){switch(e._tag){case`Declaration`:case`Arrays`:case`Objects`:case`Union`:return e.encodingChecks;default:return}}var no=class e extends n{_tag=`Filter`;run;annotations;aborted;constructor(e,t=void 0,n=!1){super(),this.run=e,this.annotations=t,this.aborted=n}annotate(t){return new e(this.run,{...this.annotations,...t},this.aborted)}abort(){return new e(this.run,this.annotations,!0)}and(e,t){return new ro([this,e],t)}},ro=class e extends n{_tag=`FilterGroup`;checks;annotations;constructor(e,t=void 0){super(),this.checks=e,this.annotations=t}annotate(t){return new e(this.checks,{...this.annotations,...t})}and(t,n){return new e([this,t],n)}};function io(e,t,n=!1){return new no((t,n,r)=>Ni(t,n,e(t,n,r)),t,n)}function ao(e,t){let n=e.source;return io(t=>e.test(t),{expected:`a string matching the RegExp ${n}`,meta:{_tag:`isPattern`,regExp:e},arbitrary:{constraint:{patterns:[e.source]}},...t})}function oo(e,t){let n=Object.getOwnPropertyDescriptors(e);return t(n),Object.create(Object.getPrototypeOf(e),n)}function J(e,t){return e.encoding===t?e:oo(e,e=>{e.encoding.value=t})}function so(e,t){return e.context===t?e:oo(e,e=>{e.context.value=t})}function co(e,t){if(e.checks){let n=e.checks[e.checks.length-1];return lo(e,Kt(e.checks.slice(0,-1),n.annotate(t)))}return oo(e,e=>{e.annotations.value={...e.annotations.value,...t}})}function lo(e,t){if(e._tag===`Suspend`&&t!==void 0)throw Error(`Cannot add checks to Suspend`);return e.checks===t?e:oo(e,e=>{e.checks.value=t})}function uo(e,t){return lo(e,e.checks?[...e.checks,...t]:t)}function fo(e,t){let n=e,r=n[n.length-1],i=t(r.to);return i===r.to?e:Kt(e.slice(0,e.length-1),new K(i,r.transformation))}function po(e,t,n){let r=new K(e,t);return J(n,n.encoding?[...n.encoding,r]:[r])}function mo(e,t){let n=!1,r=Array(e.length);for(let i=0;i{if(e.encoding)return _o(J(e,void 0));let t=e,n=t.recur?.(_o)??t;return to(n)?oo(n,e=>{e.encodingChecks.value=void 0}):n}),vo=s(e=>_o(bo(e)));function yo(e,t){let n=t,r=n.length,i=n[r-1],a=[new K(bo(J(e,void 0)),n[0].transformation.flip())];for(let e=1;e{if(e.encoding)return yo(e,e.encoding);let t=e;return t.flip?.(bo)??t.recur?.(bo)??t});function xo(e){switch(e._tag){case`Undefined`:return!0;case`Union`:return e.types.some(xo);default:return!1}}function So(e,t){return e.encodedParts.map(e=>To(e,wo(e),t)).join(``)}const Co=s(e=>new globalThis.RegExp(`^${So(e,!0)}$`));function wo(e){switch(e._tag){case`Literal`:return qi(globalThis.String(e.literal));case`String`:return Ao;case`Number`:return Ma;case`BigInt`:return Io;case`TemplateLiteral`:return So(e,!1);case`Union`:return e.types.map(wo).join(`|`)}}function To(e,t,n){if(ha(e)){if(!n)return`(?:${t})`}else if(!n)return t;return`(${t})`}function Eo(e,t){let n=ci(t);return r=>r._tag===`None`?si:r.value===t?n:B(new Di(e,r))}function Do(e,t){return n=>n._tag===`None`?si:t(n.value)?z(n):B(new Di(e,n))}function Oo(e){function t(n){return n.encoding?J(n,fo(n.encoding,t)):e(n)}return s(t)}const ko=Oo(e=>{switch(e._tag){default:return e;case`Number`:return e.toCodecStringTree();case`Union`:return e.recur(ko)}}),Ao=`[\\s\\S]*?`,jo=new globalThis.RegExp(`^${Ma}$`);function Mo(e){return ao(jo,{expected:`a string representing a finite number`,meta:{_tag:`isStringFinite`,regExp:jo},...e})}const No=uo(Ca,[Mo()]),Po=new K(No,sa),Fo=new K(new Ya([No,Za],`anyOf`),sa),Io=`-?\\d+`;function Lo(e,t,n,r,i){for(let a=0;ae,Bo=s(e=>{switch(e._tag){case`Declaration`:{let t=e.annotations?.[`~effect/Schema/Class`];if(f(t)){let n=t(e.typeParameters),r=Bo(n.to);return J(e,r===n.to?[n]:[new K(r,n.transformation)])}return e}case`Objects`:case`Arrays`:return e.recur(e=>{let t=e.context?.defaultValue;return t?J(Bo(e),t):Bo(e)});case`Suspend`:return e.recur(Bo);default:return e}});function Vo(e){let t=Ko(Bo(_o(e.ast)));return(e,n)=>t(e,n?.disableChecks?n?.parseOptions?{...n.parseOptions,disableChecks:!0}:{disableChecks:!0}:n?.parseOptions)}function Ho(e){let t=Vo(e);return(e,n)=>{let r=pi(t(e,n));return ti(r)?N(r.value):(Ki(r.cause,`Option adapter can only return none for schema issues`),Bt())}}function Uo(e){let t=Vo(e);return(e,n)=>{let r=pi(t(e,n));if(ti(r))return r.value;let i=Ki(r.cause,`Constructor adapter can only throw schema issues`);throw Error(i.toString(),{cause:i})}}function Wo(e,t){let n=Ko(e.ast);return t===void 0?n:(e,r)=>n(e,Go(t,r))}const Go=(e,t)=>t===void 0?e:{...e,...t};function Ko(e){let t=Jo(e);return(e,n)=>V(t(N(e),n??ga),e=>e._tag===`None`?B(new Oi(e)):z(e.value))}function qo(e,t){return fi(e,e=>li(()=>Xr(e,t)))}const Jo=s(e=>{let t,n=to(e),r=e.checks??n,i=(r?r[r.length-1].annotations:e.annotations)?.parseOptions;if(!e.context&&!e.encoding&&!e.checks&&!n)return(n,r)=>(t??=e.getParser(Jo),i&&(r={...r,...i}),t(n,r));let a=pa(e)||ma(e)||la(e)&&e.typeParameters.length>0;return(r,o)=>{i&&(o={...o,...i});let s=e.encoding,c;if(s){let t=s,n=t.length;for(let e=n-1;e>=0;e--){let n=t[e],i=n.to,a=Jo(i);if(c=c?V(c,e=>a(e,o)):a(r,o),n.transformation._tag===`Transformation`){let e=n.transformation.decode;c=V(c,t=>e.run(t,o))}else c=n.transformation.decode(c,o)}c=qo(c,t=>new wi(e,r,t))}t??=e.getParser(Jo);let l=c?V(c,e=>t(e,o)):t(r,o);if(n&&!o?.disableChecks&&(l=V(l,t=>{if(Ht(r)&&Ht(t)){let t=[];if(Lo(n,r.value,t,e,o),Jt(t))return B(new W(e,r,t))}return z(t)})),e.checks&&!o?.disableChecks){let t=e.checks;o?.errors===`all`&&a&&Ht(r)&&(l=qo(l,n=>{let i=[];return Lo(t.filter(e=>e.annotations?.[Ro]),r.value,i,e,o),Jt(i)?n._tag===`Composite`&&n.ast===e?new W(e,n.actual,[...n.issues,...i]):new W(e,r,[n,...i]):n})),l=V(l,n=>{if(Ht(n)){let r=n.value,i=[];if(Lo(t,r,i,e,o),Jt(i))return B(new W(e,n,i))}return z(n)})}return l}}),Yo=`~effect/Schema/Schema`,Xo={[Yo]:Yo,pipe(){return e(this,arguments)},annotate(e){return this.rebuild(co(this.ast,e))},annotateKey(e){return this.rebuild(ho(this.ast,e))},check(...e){return this.rebuild(uo(this.ast,e))}};function Zo(e,t){let n=Object.create(Xo);return t&&Object.assign(n,t),n.ast=e,n.rebuild=e=>Zo(e,t),n.makeEffect=(e,t)=>es(Vo(n)(e,t)),n.make=Uo(n),n.makeOption=Ho(n),n}const Qo=`~effect/Schema/SchemaError`;var $o=class extends Zr(`SchemaError`){[Qo]=Qo;constructor(e){super({issue:e})}get message(){return this.issue.toString()}toString(){return`SchemaError(${this.message})`}};function es(e){return fi(e,e=>li(()=>Xr(e,e=>new $o(e))))}function ts(){return(e,t,n)=>X(new ya(e.map(Ba),e=>t(e.map(e=>X(e))),n))}function ns(e,t){return ts()([],()=>(t,n)=>e(t)?z(t):B(new Di(n,N(t))),t)}function rs(e){return h(e,Qo)}function is(e,t){let n=Wo(e,t);return(e,t)=>es(n(e,t))}function as(e,t){let n;for(let r of e.reasons){if(!Yr(r)||!rs(r.error))throw new globalThis.Error(t,{cause:e});n??=r.error}if(n===void 0)throw new globalThis.Error(t,{cause:e});return n}function os(e){let t=pi(e);if(ti(t))return t.value;throw as(t.cause,`Sync adapter can only throw schema errors`)}function ss(e,t){let n=is(e,t);return(e,t)=>os(n(e,t))}const X=Zo;function cs(e){let t=X(new xa(e),{literal:e,transform(n){return t.pipe(ys(cs(n),{decode:G(()=>n),encode:G(()=>e)}))}});return t}const ls=X(ba),Z=X(Ca),Q=X(Ea);function us(e,t){return X(e,{fields:t,mapFields(e,t){let n=e(this.fields);return us(za(n,t?.unsafePreserveChecks?this.ast.checks:void 0),n)}})}function ds(e){return us(za(e,void 0),e)}function fs(e,t){return X(e,{elements:t,mapElements(e,t){let n=e(this.elements);return fs(Va(n,t?.unsafePreserveChecks?this.ast.checks:void 0),n)}})}const ps=zo(e=>X(new Da(!1,[],[e.ast]),{value:e})),ms=zo(e=>X(new Da(!0,e.ast.elements,e.ast.rest),{schema:e}));function hs(e,t){return X(e,{members:t,mapMembers(e,t){let n=e(this.members);return hs(Ha(n,this.ast.mode,t?.unsafePreserveChecks?this.ast.checks:void 0),n)}})}function gs(e,t){return hs(Ha(e,t?.mode??`anyOf`,void 0),e)}function _s(e){let t=e.map(cs);return X(Ha(t,`anyOf`,void 0),{literals:e,members:t,mapMembers(e){return gs(e(this.members))},pick(e){return _s(e)},transform(e){return gs(t.map((t,n)=>t.transform(e[n])))}})}const vs=zo(e=>gs([e,ls]));function ys(e,t){return n=>X(go(n.ast,e.ast,t?ia(t):oa()),{from:n,to:e})}function bs(e,t){return ns(t=>t instanceof e,t)}const xs=io;function Ss(e){let t=zt(e.order),n=e.formatter??C;return(r,i)=>xs(e=>t(e,r),{expected:`a value greater than or equal to ${n(r)}`,arbitrary:{constraint:{ordered:{order:e.order,minimum:r}}},...e.annotate?.(r),...i})}function Cs(e){let t=Rt(e.order),n=e.formatter??C;return(r,i)=>xs(e=>t(e,r),{expected:`a value less than or equal to ${n(r)}`,arbitrary:{constraint:{ordered:{order:e.order,maximum:r}}},...e.annotate?.(r),...i})}const ws=Ss({order:Lt,annotate:e=>({meta:{_tag:`isGreaterThanOrEqualTo`,minimum:e}})}),Ts=Cs({order:Lt,annotate:e=>({meta:{_tag:`isLessThanOrEqualTo`,maximum:e}})});function Es(e,t){return e=Math.max(0,Math.floor(e)),xs(t=>t.length>=e,{expected:`a value with a length of at least ${e}`,meta:{_tag:`isMinLength`,minLength:e},[Ro]:!0,arbitrary:{constraint:{minLength:e}},...t})}function $(e,t){return e=Math.max(0,Math.floor(e)),xs(t=>t.length<=e,{expected:`a value with a length of at most ${e}`,meta:{_tag:`isMaxLength`,maxLength:e},[Ro]:!0,arbitrary:{constraint:{maxLength:e}},...t})}globalThis.RegExp,globalThis.URL,globalThis.File,globalThis.FormData,globalThis.URLSearchParams,globalThis.Uint8Array;const Ds=ds({id:Q,created:bs(Date),title:Z.check(Es(1),$(100)),type:_s([`jpg`,`png`]),size:Q,url:Z.check(xs(e=>URL.canParse(e)))}),Os=ds({id:Q,stars:Q.check(ws(0),Ts(5)),title:Z.check(Es(1),$(100)),text:Z.check(Es(1),$(1e3)),images:ms(ps(Ds))});ss(ds({id:Q,created:bs(Date),title:Z.check(Es(1),$(100)),brand:Z.check(Es(1),$(30)),description:Z.check(Es(1),$(500)),price:Q.check(ws(1),Ts(1e4)),discount:vs(Q.check(ws(1),Ts(100))),quantity:Q.check(ws(1),Ts(10)),tags:ms(ps(Z.check(Es(1),$(30)))),images:ms(ps(Ds)),ratings:ms(ps(Os))}))({}); \ No newline at end of file +`)}return t},Gn=(e,t)=>{if(e.mutable)return t(e.mapUnsafe),e;let n=new Map(e.mapUnsafe);return t(n),Nn(n)},Kn=kn,qn=Kn(`effect/Scheduler`,{defaultValue:()=>new Xn}),Jn=`setImmediate`in globalThis?e=>{let t=globalThis.setImmediate(e);return()=>globalThis.clearImmediate(t)}:e=>{let t=setTimeout(e,0);return()=>clearTimeout(t)};var Yn=class{buckets=[];scheduleTask(e,t){let n=this.buckets,r=n.length,i,a=0;for(;at);a++)i=n[a];i&&i[0]===t?i[1].push(e):a===r?n.push([t,[e]]):n.splice(a,0,[t,[e]])}drain(){let e=this.buckets;return this.buckets=[],e}},Xn=class{executionMode;setImmediate;constructor(e=`async`,t=Jn){this.executionMode=e,this.setImmediate=t}shouldYield(e){return e.currentOpCount>=e.maxOpsBeforeYield}makeDispatcher(){return new Zn(this.setImmediate)}},Zn=class{tasks=new Yn;running=void 0;setImmediate;constructor(e=Jn){this.setImmediate=e}scheduleTask(e,t){this.tasks.scheduleTask(e,t),this.running===void 0&&(this.running=this.setImmediate(this.afterScheduled))}afterScheduled=()=>{this.running=void 0,this.runTasks()};runTasks(){let e=this.tasks.drain();for(let t=0;t0;)this.running!==void 0&&(this.running(),this.running=void 0),this.runTasks()}};const Qn=Kn(`effect/Scheduler/MaxOpsBeforeYield`,{defaultValue:()=>2048}),$n=Kn(`effect/Scheduler/PreventSchedulerYield`,{defaultValue:()=>!1}),er=`effect/Tracer/ParentSpan`;kn()(er);const tr=Kn(`effect/References/CurrentStackFrame`,{defaultValue:a}),nr=Kn(`effect/References/CurrentLogLevel`,{defaultValue:()=>`Info`}),rr=Kn(`effect/References/MinimumLogLevel`,{defaultValue:()=>`Info`});var ir=class extends at{fiberId;constructor(e,t=ot){super(`Interrupt`,t,`Interrupted`),this.fiberId=e}toString(){return`Interrupt(${this.fiberId})`}toJSON(){return{_tag:`Interrupt`,fiberId:this.fiberId}}[b](e){return ht(e)&&this.fiberId===e.fiberId&&this.annotations===e.annotations}[g](){return v(y(`${this._tag}:${this.fiberId}`))(ee(this.annotations))}};const ar=e=>new rt([new ir(e)]),or=e=>e.reasons.some(ht),sr=r(2,(e,t)=>{if(e.reasons.length===0)return t;if(t.reasons.length===0)return e;let n=new rt(en(e.reasons,t.reasons));return x(e,n)?e:n}),cr=r(2,(e,t)=>{let n=!1,r=e.reasons.map(e=>pt(e)?(n=!0,new st(t(e.error))):e);return n?ct(r):e}),lr=`~effect/Fiber/dev`,ur={_A:i,_E:i},dr={id:0},fr=()=>globalThis[Fe];var pr=class{constructor(e,t=!0){this[lr]=ur,this.setContext(e),this.id=++dr.id,this.currentOpCount=0,this.currentLoopCount=0,this.interruptible=t,this._stack=[],this._observers=[],this._exit=void 0,this._children=void 0,this._interruptedCause=void 0,this._yielded=void 0,this.runtimeMetrics?.recordFiberStart(this.context)}[lr];id;interruptible;currentOpCount;currentLoopCount;_stack;_observers;_exit;_currentExit;_children;_interruptedCause;_yielded;context;currentScheduler;currentTracerContext;currentSpan;currentLogLevel;minimumLogLevel;currentStackFrame;runtimeMetrics;maxOpsBeforeYield;currentPreventYield;_dispatcher=void 0;get currentDispatcher(){return this._dispatcher??=this.currentScheduler.makeDispatcher()}getRef(e){return Vn(this.context,e)}addObserver(e){return this._exit?(e(this._exit),o):(this._observers.push(e),()=>{let t=this._observers.indexOf(e);t>=0&&this._observers.splice(t,1)})}interruptUnsafe(e,t){if(this._exit)return;let n=ar(e);this.currentStackFrame&&(n=ft(n,Rn(yt,this.currentStackFrame))),t&&(n=ft(n,t)),this._interruptedCause=this._interruptedCause?sr(this._interruptedCause,n):n,this.interruptible&&this.evaluate(vr(this._interruptedCause))}pollUnsafe(){return this._exit}evaluate(e){if(this._exit)return;if(this._yielded!==void 0){let e=this._yielded;this._yielded=void 0,e()}let t=this.runLoop(e);if(t===Xe)return;let n=mr.interruptChildren&&mr.interruptChildren(this);if(n!==void 0)return this.evaluate(I(n,()=>t));this._exit=t,this.runtimeMetrics?.recordFiberEnd(this.context,this._exit);for(let e=0;ee)}if(r=this.currentTracerContext?this.currentTracerContext(r,this):r[E](this),i!==this.currentLoopCount)return Xe;if(r===Xe){let e=this._yielded;return Ke in e?(this._yielded=void 0,e):Xe}}}catch(e){return h(r,E)?this.runLoop(xt(e)):xt(`Fiber.runLoop: Not a valid effect: ${String(r)}`)}finally{globalThis[Fe]=t}}getCont(e){for(;;){let t=this._stack.pop();if(!t)return;let n=t[Ye]&&t[Ye](this);if(n)return n[e]=n,n;if(t[e])return t}}yieldWith(e){return this._yielded=e,Xe}children(){return this._children??=new Set}pipe(){return e(this,arguments)}setContext(e){this.context=e;let t=this.getRef(qn);t!==this.currentScheduler&&(this.currentScheduler=t,this._dispatcher=void 0),this.currentSpan=e.mapUnsafe.get(er),this.currentLogLevel=this.getRef(nr),this.minimumLogLevel=this.getRef(rr),this.currentStackFrame=e.mapUnsafe.get(tr.key),this.maxOpsBeforeYield=this.getRef(Qn),this.currentPreventYield=this.getRef($n),this.runtimeMetrics=e.mapUnsafe.get(`effect/observability/Metric/FiberRuntimeMetricsKey`);let n=e.mapUnsafe.get(`effect/Tracer`);this.currentTracerContext=n?n.context:void 0}get currentSpanLocal(){return this.currentSpan?._tag===`Span`?this.currentSpan:void 0}};const mr={interruptChildren:void 0},hr=e=>{if(!e.currentStackFrame)return;let t=new Map;return t.set(yt.key,e.currentStackFrame),Nn(t)},gr=e=>Ar(t=>{let n=e[Symbol.iterator](),r=[],i;function a(){let e=n.next();for(;!e.done;){if(e.value._exit){r.push(e.value._exit),e=n.next();continue}i=e.value.addObserver(e=>{r.push(e),a()});return}t(F(r))}return a(),br(()=>i?.())}),_r=e=>St(t=>{let n=hr(t);for(let r of e)r.interruptUnsafe(t.id,n);return Fr(gr(e))}),F=A,vr=j,yr=bt,br=k({op:`Sync`,[E](e){let t=this[T](),n=e.getCont(D);return n?n[D](t,e):e.yieldWith(A(t))}}),xr=k({op:`Suspend`,[E](e){return this[T]()}}),Sr=k({op:`Yield`,[E](e){let t=!1;return e.currentDispatcher.scheduleTask(()=>{t||e.evaluate(Vr)},this[T]??0),e.yieldWith(()=>{t=!0})}})(0),Cr=e=>F(N(e)),wr=F(Bt()),Tr=e=>xr(()=>vr(Ge(e))),Er=e=>xt(e),Dr=F(void 0),Or=k({op:`Async`,single:!1,[E](e){let t=Ge(()=>this[T][0].bind(e.currentScheduler)),n=!1,r=!1,i=this[T][1]?new AbortController:void 0,a=t(t=>{n||(n=!0,r?e.evaluate(t):r=t)},i?.signal);return r===!1?(r=!0,e._yielded=()=>{n=!0},i===void 0&&a===void 0||e._stack.push(kr(()=>(n=!0,i?.abort(),a??Vr))),Xe):r}}),kr=k({op:`AsyncFinalizer`,[Ye](e){e.interruptible&&(e.interruptible=!1,e._stack.push(qr))},[O](e,t){return or(e)?I(this[T](),()=>vr(e)):vr(e)}}),Ar=e=>Or(e,e.length>=2),jr=(e,t)=>Object.defineProperty(t,"length",{value:e,configurable:!0}),Mr=(e,...t)=>jr(e.length,t.length===0?function(){return Nr(()=>e.apply(this,arguments))}:function(){let n=Nr(()=>e.apply(this,arguments));for(let e of t)n=e(n);return n}),Nr=e=>{try{let t=e(),n;for(;;){let r=t.next(n);if(r.done)return F(r.value);let i=r.value;if(i&&i._tag===`Success`){n=i.value;continue}else if(i&&i._tag===`Failure`)return r.value;else{let n=!0;return xr(()=>n?(n=!1,I(r.value,e=>Pr(t,e))):xr(()=>Pr(e())))}}}catch(e){return Er(e)}},Pr=k({op:`Iterator`,single:!1,[D](e,t){let n=this[T][0];for(;;){let r=n.next(e);if(r.done)return F(r.value);if(!L(r.value))return t._stack.push(this),r.value;if(r.value._tag===`Failure`)return r.value;e=r.value.value}},[E](e){return this[D](this[T][1],e)}}),Fr=e=>I(e,e=>Vr),I=r(2,(e,t)=>{let n=Object.create(Ir);return n[T]=e,n[D]=t.length===1?t:e=>t(e),n}),Ir=_t({op:`OnSuccess`,[E](e){return e._stack.push(this),this[T]}}),L=e=>Ke in e,Lr=r(2,(e,t)=>L(e)?e._tag===`Success`?t(e.value):e:I(e,t)),Rr=r(2,(e,t)=>I(e,e=>F(Ge(()=>t(e))))),zr=r(2,(e,t)=>L(e)?Hr(e,t):Rr(e,t)),Br=e=>e._tag===`Success`,Vr=A(void 0),Hr=r(2,(e,t)=>e._tag===`Success`?A(t(e.value)):e),Ur=r(2,(e,t)=>{let n=Object.create(Wr);return n[T]=e,n[O]=t.length===1?t:e=>t(e),n}),Wr=_t({op:`OnFailure`,[E](e){return e._stack.push(this),this[T]}}),Gr=e=>L(e)?A(e):Kr(e),Kr=k({op:`Exit`,[E](e){return e._stack.push(this),this[T]},[D](e,t,n){return F(n??A(e))},[O](e,t,n){return F(n??j(e))}}),qr=k({op:`SetInterruptible`,[Ye](e){if(e.interruptible=this[T],e._interruptedCause&&e.interruptible)return()=>vr(e._interruptedCause)}})(!0),Jr=e=>{let t=e.onItem,n=e.step;return(e,r,i)=>{let a=i?.start??0,o=i?.end??r.length,s=i?.concurrency??1,c=!1,l,u,d,f=!1,p,m,h=()=>{let i=!1;for(;!p&&a(p=n(e,o,t,a),a++,p??h()??Dr));else if(l){m=void 0;let t=Xr(l,g,!0,!0,`inherit`);if(t._exit){if(p=n(e,o,t._exit,a),p)break;continue}u?u.add(t):u=new Set([t]);let r=a;if(t.addObserver(a=>{if(u.delete(t),p){if(!f&&a._tag===`Failure`)for(let e of a.cause.reasons)if(e._tag===`Interrupt`)continue;else p._tag===`Failure`?p.cause.reasons.push(e):p=j(ct([e]))}else{let t=n(e,o,a,r);t&&(p=t._tag===`Failure`?j(ct(t.cause.reasons.slice())):t,h())}if(i){let e=h();e&&d(e)}else c&&u.size===0&&d(p??Dr)}),u.size{l=fr(),m=g,d=e;let t=h();return t?e(t):xr(()=>(p=Vr,f=!0,u?_r(u):Dr))})}if(c=!0,p){if(u&&u.size>0){let e=hr(l);u.forEach(t=>t.interruptUnsafe(l.id,e));return}if(d||p._tag===`Failure`)return p}else if(d)if(u)u.size===0&&d(Dr);else return Vr};return h()}},Yr=()=>Jr,Xr=(e,t,n=!1,r=!1,i=!1)=>{let a=i===`inherit`?e.interruptible:!i,o=new pr(e.context,a);return n?o.evaluate(t):e.currentDispatcher.scheduleTask(()=>o.evaluate(t),0),!r&&!o._exit&&(e.children().add(o),o.addObserver(()=>e._children.delete(o))),o},Zr=e=>(t,n)=>{let r=new pr(n?.scheduler?zn(e,qn,n.scheduler):e,n?.uninterruptible!==!0);if(r.evaluate(t),r._exit)return r;if(n?.signal)if(n.signal.aborted)r.interruptUnsafe();else{let e=()=>r.interruptUnsafe();n.signal.addEventListener(`abort`,e,{once:!0}),r.addObserver(()=>n.signal.removeEventListener(`abort`,e))}return n?.onFiberStart&&n.onFiberStart(r),r},Qr=(e=>{let t=Zr(e);return e=>{if(L(e))return e;let n=t(e,{scheduler:new Xn(`sync`)});return n.currentDispatcher?.flush(),n._exit??xt(new ei(n))}})(In());M(`TimeoutError`),M(`IllegalArgumentError`),M(`ExceededCapacityError`);const $r=`~effect/Cause/AsyncFiberError`;var ei=class extends M(`AsyncFiberError`){[$r]=$r;constructor(e){super({message:`An asynchronous Effect was executed with Effect.runSync`,fiber:e})}};M(`UnknownError`);const R={bold:`1`,red:`31`,green:`32`,yellow:`33`,blue:`34`,cyan:`36`,white:`37`,gray:`90`,black:`30`,bgBrightRed:`101`};R.gray,R.blue,R.green,R.yellow,R.red,R.bgBrightRed,R.black;const ti=pt,ni=cr;kn()(`effect/Cause/StackTrace`),kn()(`effect/Cause/InterruptorStackTrace`);const ri=M,ii=j,ai=bt,oi=Vr,si=Br,ci=`~effect/time/DateTime`,li=`~effect/time/DateTime/TimeZone`,ui={[ci]:ci,pipe(){return e(this,arguments)},[He](){return this.toString()},toJSON(){return fi(this).toJSON()}};({...ui}),{...ui};const di={[li]:li,[He](){return this.toString()}};({...di}),{...di};const fi=e=>new Date(e.epochMilliseconds),z=F,pi=wr,mi=Cr,B=yr,hi=Tr,gi=I,_i=Gr,vi=Ur,yi=Qr;kn()(`effect/Effect/Transaction`);const bi=zr,V=Lr,xi=Mr;kn()(`effect/DateTime/CurrentTimeZone`),ri(`EncodingError`);function Si(e){return e.checks?e.checks[e.checks.length-1].annotations:e.annotations}function Ci(e){return t=>Si(t)?.[e]}const wi=Ci(`identifier`),Ti=s(e=>{let t=wi(e);return typeof t==`string`?t:e.getExpected(Ti)});function Ei(e,t,n){return t===`__proto__`?Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0}):e[t]=n,e}const Di=`~effect/SchemaIssue/Issue`;function Oi(e){return h(e,Di)}var H=class{[Di]=Di;toString(){return Ki(this)}},ki=class extends H{_tag=`Filter`;actual;filter;issue;constructor(e,t,n){super(),this.actual=e,this.filter=t,this.issue=n}},Ai=class extends H{_tag=`Encoding`;ast;actual;issue;constructor(e,t,n){super(),this.ast=e,this.actual=t,this.issue=n}},U=class extends H{_tag=`Pointer`;path;issue;constructor(e,t){super(),this.path=e,this.issue=t}},ji=class extends H{_tag=`MissingKey`;annotations;constructor(e){super(),this.annotations=e}},Mi=class extends H{_tag=`UnexpectedKey`;ast;actual;constructor(e,t){super(),this.ast=e,this.actual=t}},W=class extends H{_tag=`Composite`;ast;actual;issues;constructor(e,t,n){super(),this.ast=e,this.actual=t,this.issues=n}},Ni=class extends H{_tag=`InvalidType`;ast;actual;constructor(e,t){super(),this.ast=e,this.actual=t}},Pi=class extends H{_tag=`InvalidValue`;actual;annotations;constructor(e,t){super(),this.actual=e,this.annotations=t}},Fi=class extends H{_tag=`AnyOf`;ast;actual;issues;constructor(e,t,n){super(),this.ast=e,this.actual=t,this.issues=n}},Ii=class extends H{_tag=`OneOf`;ast;actual;successes;constructor(e,t,n){super(),this.ast=e,this.actual=t,this.successes=n}};function Li(e,t){if(Oi(t))return t;if(typeof t==`string`)return new Pi(N(e),{message:t});let n=typeof t.issue==`string`?new Pi(N(e),{message:t.issue}):t.issue;return new U(t.path,n)}function Ri(e,t){if(t!==void 0)return typeof t==`boolean`?t?void 0:new Pi(N(e)):Li(e,t)}function zi(e,t,n){return Array.isArray(n)?Yt(n)?n.length===1?Li(e,n[0]):new W(t,N(e),nn(n,t=>Li(e,t))):void 0:Ri(e,n)}const Bi=e=>{let t=Ji(e);if(t!==void 0)return t;switch(e._tag){case`InvalidType`:return Hi(Ti(e.ast),Xi(e.actual));case`InvalidValue`:return`Invalid data ${Xi(e.actual)}`;case`MissingKey`:return`Missing key`;case`UnexpectedKey`:return`Unexpected key with value ${C(e.actual)}`;case`Forbidden`:return`Forbidden operation`;case`OneOf`:return`Expected exactly one member to match the input ${C(e.actual)}`}},Vi=e=>Ji(e.issue)??Ji(e);function Hi(e,t){return`Expected ${e}, got ${t}`}function Ui(e,t,n,r){switch(e._tag){case`Filter`:{let i=r(e);if(i!==void 0)return[{path:t,message:i}];switch(e.issue._tag){case`InvalidValue`:return[{path:t,message:Hi(Wi(e.filter),C(e.actual))}];default:return Ui(e.issue,t,n,r)}}case`Encoding`:return Ui(e.issue,t,n,r);case`Pointer`:return Ui(e.issue,[...t,...e.path],n,r);case`Composite`:return e.issues.flatMap(e=>Ui(e,t,n,r));case`AnyOf`:{let i=Ji(e);return e.issues.length===0?i===void 0?[{path:t,message:Hi(Ti(e.ast),C(e.actual))}]:[{path:t,message:i}]:e.issues.flatMap(e=>Ui(e,t,n,r))}default:return[{path:t,message:n(e)}]}}function Wi(e){let t=e.annotations?.expected;if(typeof t==`string`)return t;switch(e._tag){case`Filter`:return``;case`FilterGroup`:return e.checks.map(e=>Wi(e)).join(` & `)}}function Gi(){return e=>Ui(e,[],Bi,Vi).map(qi).join(` +`)}const Ki=Gi();function qi(e){let t=e.message;if(e.path&&e.path.length>0){let n=ze(e.path);t+=`\n at ${n}`}return t}function Ji(e){switch(e._tag){case`InvalidType`:case`OneOf`:case`Composite`:case`AnyOf`:return Yi(e.ast.annotations);case`InvalidValue`:case`Forbidden`:return Yi(e.annotations);case`MissingKey`:return Yi(e.annotations,`messageMissingKey`);case`UnexpectedKey`:return Yi(e.ast.annotations,`messageUnexpectedKey`);case`Filter`:return Yi(e.filter.annotations);case`Encoding`:return Ji(e.issue)}}function Yi(e,t=`message`){let n=e?.[t];if(typeof n==`string`)return n}function Xi(e){return Vt(e)?`no value provided`:C(e.value)}function Zi(e){let t;for(let n of e.reasons){if(!ti(n)||!Oi(n.error))return;t??=n.error}return t}function Qi(e,t){let n=Zi(e);if(n===void 0)throw Error(t,{cause:e});return n}var $i=class e extends n{run;constructor(e){super(),this.run=e}map(t){return new e((e,n)=>this.run(e,n).pipe(bi(Ut(t))))}compose(t){return ta(this)?t:ta(t)?this:new e((e,n)=>this.run(e,n).pipe(V(e=>t.run(e,n))))}};const ea=new $i(z);function ta(e){return e.run===ea.run}function na(){return ea}function G(e){return ra(Ut(e))}function ra(e){return new $i(t=>z(e(t)))}function ia(){return G(globalThis.String)}function aa(){return G(globalThis.Number)}const oa=`~effect/SchemaTransformation/Transformation`;var sa=class e{[oa]=oa;_tag=`Transformation`;decode;encode;constructor(e,t){this.decode=e,this.encode=t}flip(){return new e(this.encode,this.decode)}compose(t){return new e(this.decode.compose(t.decode),t.encode.compose(this.encode))}};function ca(e){return h(e,oa)}const la=e=>ca(e)?e:new sa(e.decode,e.encode),ua=new sa(na(),na());function da(){return ua}const fa=new sa(aa(),ia());function pa(e){return t=>t._tag===e}const ma=pa(`Declaration`),ha=pa(`Never`),ga=pa(`Literal`),_a=pa(`UniqueSymbol`),va=pa(`Arrays`),ya=pa(`Objects`);var K=class{to;transformation;constructor(e,t){this.to=e,this.transformation=t}};const ba={};var xa=class{isOptional;isMutable;defaultValue;annotations;constructor(e,t,n=void 0,r=void 0){this.isOptional=e,this.isMutable=t,this.defaultValue=n,this.annotations=r}};const Sa=`~effect/Schema`;var q=class{[Sa]=Sa;annotations;checks;encoding;context;constructor(e=void 0,t=void 0,n=void 0,r=void 0){this.annotations=e,this.checks=t,this.encoding=n,this.context=r}toString(){return`<${this._tag}>`}},Ca=class e extends q{_tag=`Declaration`;typeParameters;run;encodingChecks;constructor(e,t,n,r,i,a,o){super(n,r,i,a),this.typeParameters=e,this.run=t,this.encodingChecks=o}getParser(){let e=this.run(this.typeParameters);return(t,n)=>Vt(t)?pi:bi(e(t.value,this,n),N)}_rebuild(t,n,r){let i=bo(this.typeParameters,t);return i===this.typeParameters?this:new e(i,this.run,this.annotations,n,void 0,this.context,r)}recur(e){return this._rebuild(e,this.checks,this.encodingChecks)}flip(e){return this._rebuild(e,this.encodingChecks,this.checks)}getExpected(){let e=this.annotations?.expected;return typeof e==`string`?e:``}};const wa=new class extends q{_tag=`Null`;getParser(){return Oo(this,null)}getExpected(){return`null`}};var Ta=class extends q{_tag=`Literal`;literal;constructor(e,t,n,r,i){if(super(t,n,r,i),typeof e==`number`&&!globalThis.Number.isFinite(e))throw Error(`A numeric literal must be finite, got ${C(e)}`);this.literal=e}getParser(){return Oo(this,this.literal)}matchPart(e,t){return e===globalThis.String(this.literal)?this.literal:void 0}toCodecJson(){return typeof this.literal==`bigint`?Ea(this):this}toCodecStringTree(){return typeof this.literal==`string`?this:Ea(this)}getExpected(){return typeof this.literal==`string`?JSON.stringify(this.literal):globalThis.String(this.literal)}};function Ea(e){let t=globalThis.String(e.literal);return J(e,[new K(new Ta(t),new sa(G(()=>e.literal),G(()=>t)))])}const Da=new class extends q{_tag=`String`;getParser(){return ko(this,u)}matchPart(e,t){return Ao(this,e,t)}getExpected(){return`string`}};var Oa=class extends q{_tag=`Number`;getParser(){return ko(this,d)}matchKey(e,t){return this._match(Po,e,t)}matchPart(e,t){return this._match(No,e,t)}_match(e,t,n){return e.test(t)?Ao(this,globalThis.Number(t),n):void 0}toCodecJson(){return this.checks&&(ka(this.checks,`isFinite`)||ka(this.checks,`isInt`))?this:J(this,[io])}toCodecStringTree(){return this.checks&&(ka(this.checks,`isFinite`)||ka(this.checks,`isInt`))?J(this,[Lo]):J(this,[Ro])}getExpected(){return`number`}};function ka(e,t){return e.some(e=>{switch(e._tag){case`Filter`:return e.annotations?.meta?._tag===t;case`FilterGroup`:return ka(e.checks,t)}})}const Aa=new Oa;var ja=class e extends q{_tag=`Arrays`;isMutable;elements;rest;encodingChecks;constructor(e,t,n,r,i,a,o,s){super(r,i,a,o),this.isMutable=e,this.elements=t,this.rest=n,this.encodingChecks=s;let c=t.findIndex(Y);if(c!==-1&&(t.slice(c+1).some(e=>!Y(e))||n.length>1))throw Error(`A required element cannot follow an optional element. ts(1257)`);if(n.length>1&&n.slice(1).some(Y))throw Error(`An optional element cannot follow a rest element. ts(1266)`)}getParser(e){let t=this,n=t.elements.map(t=>({ast:t,parser:e(t)})),r=t.rest.map(t=>({ast:t,parser:e(t)})),i=n.length,[a,...o]=r,s=o.length;function c(e,t){return t=e?o[t-e]:a}return xi(function*(e,n){if(e._tag===`None`)return e;let r=e.value;if(!Array.isArray(r))return yield*B(new Ni(t,e));let a=r.length,o={ast:t,getParser:c,oinput:e,len:a,tailThreshold:Na(a,i,s),output:new globalThis.Array(a),issues:void 0,options:n},l=Ma(o,r,{concurrency:Pa(n?.concurrency)?.concurrency,end:t.rest.length===0?i:Math.max(a,i+s)});if(l&&(yield*l),t.rest.length===0&&a>i)for(let s=i;s<=a-1;s++){let i=new U([s],new Mi(t,r[s]));if(n.errors===`all`)o.issues?o.issues.push(i):o.issues=[i];else return yield*B(new W(t,e,[i]))}return o.issues?yield*B(new W(t,e,o.issues)):N(o.output)})}_rebuild(t,n,r){let i=bo(this.elements,t),a=bo(this.rest,t);return i===this.elements&&a===this.rest?this:new e(this.isMutable,i,a,this.annotations,n,void 0,this.context,r)}recur(e){return this._rebuild(e,this.checks,this.encodingChecks)}flip(e){return this._rebuild(e,this.encodingChecks,this.checks)}getExpected(){return`array`}};const Ma=Yr()({onItem(e,t,n){let r=n(e=e===`unbounded`?1/0:e??1,e>1?{concurrency:e}:void 0),Fa=(e,t,n,r)=>{if(r.cause.reasons.length===0)return r;let i=Zi(r.cause);if(i===void 0)return ii(ni(r.cause,r=>new W(t,e.oinput,[new U([n],r)])));let a=new U([n],i);if(e.options.errors===`all`)e.issues?e.issues.push(a):e.issues=[a];else return ai(new W(t,e.oinput,[a]))},Ia=`[+-]?\\d*\\.?\\d+(?:[Ee][+-]?\\d+)?`;function La(e,t,n=ba){let r,i;function a(t){switch(t._tag){case`String`:case`TemplateLiteral`:return(r??=Object.keys(e)).filter(e=>t.matchPart(e,n)!==void 0);case`Number`:return(r??=Object.keys(e)).filter(e=>t.matchKey(e,n)!==void 0);case`Symbol`:return(i??=Object.getOwnPropertySymbols(e)).filter(e=>t.matchKey(e,n)!==void 0);case`Union`:return[...new Set(t.types.flatMap(a))];default:return[]}}return a(Mo(wo(t)))}var Ra=class{name;type;constructor(e,t){this.name=e,this.type=t}};function za(e){switch(e._tag){case`String`:case`Number`:case`Symbol`:case`TemplateLiteral`:return!0;case`Union`:return e.types.every(za);default:return!1}}function Ba(e){return za(e)&&za(wo(e))}var Va=class{parameter;type;merge;constructor(e,t,n){if(!Ba(e))throw Error(`Invalid index signature parameter ${e._tag}`);if(this.parameter=e,this.type=t,this.merge=n,Y(t)&&!Do(t))throw Error("Cannot use `Schema.optionalKey` with index signatures, use `Schema.optional` instead.")}},Ha=class e extends q{_tag=`Objects`;propertySignatures;indexSignatures;encodingChecks;constructor(e,t,n,r,i,a,o){super(n,r,i,a),this.propertySignatures=e,this.indexSignatures=t,this.encodingChecks=o;let s=e.map(e=>e.name).filter((e,t,n)=>n.indexOf(e)!==t);if(s.length>0)throw Error(`Duplicate identifiers: ${JSON.stringify(s)}. ts(2300)`)}getParser(e){let t=this,n=[],r=new Set,i=[];for(let a of t.propertySignatures)n.push(a.name),r.add(a.name),i.push({ps:a,parser:e(a.type),name:a.name,type:a.type});let a=t.indexSignatures.length;if(t.propertySignatures.length===0&&t.indexSignatures.length===0)return ko(t,p);let o=a>0?Yr()({onItem:xi(function*(n,[i,a]){let o=e(Mo(a.parameter))(N(i),n.options),s=L(o)?o:yield*_i(o);if(s._tag===`Failure`){let e=Fa(n,t,i,s);e&&(yield*e);return}let c=N(n.input[i]),l=e(a.type)(c,n.options),u=L(l)?l:yield*_i(l);if(u._tag===`Failure`){let e=Fa(n,t,i,u);e&&(yield*e);return}else if(s.value._tag===`Some`&&u.value._tag===`Some`){let e=s.value.value;if(r.has(i)||r.has(e))return;let t=u.value.value;if(a.merge&&a.merge.decode&&Object.hasOwn(n.out,e)){let[r,i]=a.merge.decode.combine([e,n.out[e]],[e,t]);Ei(n.out,r,i)}else Ei(n.out,e,t)}}),step:(e,t,n)=>n._tag===`Failure`?n:void 0}):void 0;return xi(function*(e,s){if(e._tag===`None`)return e;let c=e.value;if(!(typeof c==`object`&&c&&!Array.isArray(c)))return yield*B(new Ni(t,e));let l={},u={ast:t,oinput:e,input:c,out:l,issues:void 0,options:s},d=s.errors===`all`,f=s.onExcessProperty===`error`,p=s.onExcessProperty===`preserve`,m;if(t.indexSignatures.length===0&&(f||p)){m=Reflect.ownKeys(c);for(let n=0;n{let n=t(e.type);return n===e.type?e:new Ra(e.name,n)}),s=bo(this.indexSignatures,e=>{let i=n(e.parameter),a=t(e.type),o=r?e.merge?.flip():e.merge;return i===e.parameter&&a===e.type&&o===e.merge?e:new Va(i,a,o)});return o===this.propertySignatures&&s===this.indexSignatures?this:new e(o,s,this.annotations,i,void 0,this.context,a)}flip(e){return this._rebuild(e,e,!0,this.encodingChecks,this.checks)}recur(e,t=e){return this._rebuild(e,t,!1,this.checks,this.encodingChecks)}getExpected(){return this.propertySignatures.length===0&&this.indexSignatures.length===0?`object | array`:`object`}};const Ua=Yr()({onItem(e,t){let n=Object.hasOwn(e.input,t.name)?N(e.input[t.name]):Bt();return t.parser(n,e.options)},step(e,t,n){if(n._tag===`Failure`)return Fa(e,e.ast,t.name,n);if(n.value._tag===`Some`)Ei(e.out,t.name,n.value.value);else if(!Y(t.type)){let n=new U([t.name],new ji(t.type.context?.annotations));if(e.options.errors===`all`){e.issues?e.issues.push(n):e.issues=[n];return}else return ai(new W(e.ast,e.oinput,[n]))}}});function Wa(e,t){return e?t?[...e,...t]:e:t}function Ga(e,t,n){return new Ha(Reflect.ownKeys(e).map(t=>new Ra(t,e[t].ast)),[],n,t)}function Ka(e){return e.ast}function qa(e,t=void 0){return new ja(!1,e.map(e=>e.ast),[],void 0,t)}function Ja(e,t,n){return new to(e.map(Ka),t,void 0,n)}function Ya(e){switch(e._tag){case`Null`:return[`null`];case`Undefined`:case`Void`:return[`undefined`];case`String`:case`TemplateLiteral`:return[`string`];case`Number`:return[`number`];case`Boolean`:return[`boolean`];case`Symbol`:case`UniqueSymbol`:return[`symbol`];case`BigInt`:return[`bigint`];case`Arrays`:return[`array`];case`ObjectKeyword`:return[`object`,`array`,`function`];case`Objects`:return e.propertySignatures.length||e.indexSignatures.length?[`object`]:[`object`,`array`];case`Enum`:return Array.from(new Set(e.enums.map(([,e])=>typeof e)));case`Literal`:return[typeof e.literal];case`Union`:return Array.from(new Set(e.types.flatMap(Ya)));default:return[`null`,`undefined`,`string`,`number`,`boolean`,`symbol`,`bigint`,`object`,`array`,`function`]}}function Xa(e){switch(e._tag){default:return[];case`Declaration`:{let t=e.annotations?.[`~sentinels`];return Array.isArray(t)?t:[]}case`Objects`:return e.propertySignatures.flatMap(e=>{let t=e.type;if(!Y(t)){if(ga(t))return[{key:e.name,literal:t.literal}];if(_a(t))return[{key:e.name,literal:t.symbol}]}return[]});case`Arrays`:return e.elements.flatMap((e,t)=>ga(e)&&!Y(e)?[{key:t,literal:e.literal}]:[]);case`Suspend`:return Xa(e.thunk())}}const Za=new WeakMap;function Qa(e){let t=Za.get(e);if(t)return t;t={};for(let n of e){let e=wo(n);if(ha(e))continue;let r=Ya(e),i=Xa(e);t.byType??={};for(let e of r)(t.byType[e]??=[]).push(n);if(i.length>0){t.bySentinel??=new Map;for(let{key:e,literal:r}of i){let i=t.bySentinel.get(e);i||t.bySentinel.set(e,i=new Map);let a=i.get(r);a||i.set(r,a=[]),a.push(n)}}else{t.otherwise??={};for(let e of r)(t.otherwise[e]??=[]).push(n)}}return Za.set(e,t),t}function $a(e){return t=>{let n=wo(t);return n._tag===`Literal`?n.literal===e:n._tag===`UniqueSymbol`?n.symbol===e:!0}}function eo(e,t){let n=Qa(t),r=e===null?`null`:Array.isArray(e)?`array`:typeof e;if(n.bySentinel){let t=n.otherwise?.[r]??[];if(r===`object`||r===`array`){for(let[r,i]of n.bySentinel)if(Object.hasOwn(e,r)){let n=i.get(e[r]);if(n)return[...n,...t].filter($a(e))}}return t}return(n.byType?.[r]??[]).filter($a(e))}var to=class e extends q{_tag=`Union`;types;mode;encodingChecks;constructor(e,t,n,r,i,a,o){super(n,r,i,a),this.types=e,this.mode=t,this.encodingChecks=o}getParser(e){let t=this;return(n,r)=>{if(n._tag===`None`)return z(n);let i=n.value,a=eo(i,t.types),o={ast:t,recur:e,oinput:n,input:i,out:void 0,successes:[],issues:void 0,options:r},s=no(o,a,Pa(r?.concurrency));return s?gi(s,e=>o.out?z(o.out):B(new Fi(t,i,o.issues??[]))):o.out?z(o.out):B(new Fi(t,i,o.issues??[]))}}_rebuild(t,n,r){let i=bo(this.types,t);return i===this.types?this:new e(i,this.mode,this.annotations,n,void 0,this.context,r)}recur(e){return this._rebuild(e,this.checks,this.encodingChecks)}flip(e){return this._rebuild(e,this.encodingChecks,this.checks)}matchPart(e,t){for(let n of this.types){let r=n.matchPart(e,t);if(r!==void 0)return r}}getExpected(e){let t=this.annotations?.expected;if(typeof t==`string`)return t;if(this.types.length===0)return`never`;let n=this.types.map(t=>{let n=wo(t);switch(n._tag){case`Arrays`:{let t=n.elements.filter(ga);if(t.length>0)return`${ao(n.isMutable)}[ ${t.map(t=>e(t)+oo(t.context?.isOptional)).join(`, `)}, ... ]`;break}case`Objects`:{let t=n.propertySignatures.filter(e=>ga(e.type));if(t.length>0)return`{ ${t.map(t=>`${ao(t.type.context?.isMutable)}${Re(t.name)}${oo(t.type.context?.isOptional)}: ${e(t.type)}`).join(`, `)}, ... }`;break}}return e(n)});return Array.from(new Set(n)).join(` | `)}};const no=Yr()({onItem(e,t){return e.recur(t)(e.oinput,e.options)},step(e,t,n){if(n._tag===`Failure`){let t=Zi(n.cause);if(t===void 0)return n;e.issues?e.issues.push(t):e.issues=[t]}else{if(e.out&&e.ast.mode===`oneOf`)return e.successes.push(t),ai(new Ii(e.ast,e.input,e.successes));if(e.out=n.value,e.successes.push(t),e.ast.mode===`anyOf`)return oi}}}),ro=new to([new Ta(`Infinity`),new Ta(`-Infinity`),new Ta(`NaN`)],`anyOf`),io=new K(new to([Aa,ro],`anyOf`),new sa(aa(),G(e=>globalThis.Number.isFinite(e)?e:globalThis.String(e))));function ao(e){return e?``:`readonly `}function oo(e){return e?`?`:``}function so(e){switch(e._tag){case`Declaration`:case`Arrays`:case`Objects`:case`Union`:return e.encodingChecks;default:return}}var co=class e extends n{_tag=`Filter`;run;annotations;aborted;constructor(e,t=void 0,n=!1){super(),this.run=e,this.annotations=t,this.aborted=n}annotate(t){return new e(this.run,{...this.annotations,...t},this.aborted)}abort(){return new e(this.run,this.annotations,!0)}and(e,t){return new lo([this,e],t)}},lo=class e extends n{_tag=`FilterGroup`;checks;annotations;constructor(e,t=void 0){super(),this.checks=e,this.annotations=t}annotate(t){return new e(this.checks,{...this.annotations,...t})}and(t,n){return new e([this,t],n)}};function uo(e,t,n=!1){return new co((t,n,r)=>zi(t,n,e(t,n,r)),t,n)}function fo(e,t){let n=e.source;return uo(t=>e.test(t),{expected:`a string matching the RegExp ${n}`,meta:{_tag:`isPattern`,regExp:e},arbitrary:{constraint:{patterns:[e.source]}},...t})}function po(e,t){let n=Object.getOwnPropertyDescriptors(e);return t(n),Object.create(Object.getPrototypeOf(e),n)}function J(e,t){return e.encoding===t?e:po(e,e=>{e.encoding.value=t})}function mo(e,t){return e.context===t?e:po(e,e=>{e.context.value=t})}function ho(e,t){if(e.checks){let n=e.checks[e.checks.length-1];return go(e,Kt(e.checks.slice(0,-1),n.annotate(t)))}return po(e,e=>{e.annotations.value={...e.annotations.value,...t}})}function go(e,t){if(e._tag===`Suspend`&&t!==void 0)throw Error(`Cannot add checks to Suspend`);return e.checks===t?e:po(e,e=>{e.checks.value=t})}function _o(e,t){return go(e,Wa(e.checks,t))}function vo(e,t){let n=e,r=n[n.length-1],i=t(r.to);return i===r.to?e:Kt(e.slice(0,e.length-1),new K(i,r.transformation))}function yo(e,t,n){let r=new K(e,t);return J(n,n.encoding?[...n.encoding,r]:[r])}function bo(e,t){let n=!1,r=Array(e.length);for(let i=0;i{if(e.encoding)return Co(J(e,void 0));let t=e,n=t.recur?.(Co)??t;return so(n)?po(n,e=>{e.encodingChecks.value=void 0}):n}),wo=s(e=>Co(Eo(e)));function To(e,t){let n=t,r=n.length,i=n[r-1],a=[new K(Eo(J(e,void 0)),n[0].transformation.flip())];for(let e=1;e{if(e.encoding)return To(e,e.encoding);let t=e;return t.flip?.(Eo)??t.recur?.(Eo)??t});function Do(e){switch(e._tag){case`Undefined`:return!0;case`Union`:return e.types.some(Do);default:return!1}}function Oo(e,t){let n=mi(t);return r=>r._tag===`None`?pi:r.value===t?n:B(new Ni(e,r))}function ko(e,t){return n=>n._tag===`None`?pi:t(n.value)?z(n):B(new Ni(e,n))}function Ao(e,t,n){if(n?.disableChecks||e.checks===void 0)return t;let r=[];return zo(e.checks,t,r,e,n),r.length===0?t:void 0}function jo(e){function t(n){return n.encoding?J(n,vo(n.encoding,t)):e(n)}return s(t)}const Mo=jo(e=>{switch(e._tag){default:return e;case`Number`:return e.toCodecStringTree();case`Union`:return e.recur(Mo)}}),No=new globalThis.RegExp(`^${Ia}$`),Po=new globalThis.RegExp(`(?:${Ia}|Infinity|-Infinity|NaN)`);function Fo(e){return fo(No,{expected:`a string representing a finite number`,meta:{_tag:`isStringFinite`,regExp:No},...e})}const Io=_o(Da,[Fo()]),Lo=new K(Io,fa),Ro=new K(new to([Io,ro],`anyOf`),fa);function zo(e,t,n,r,i){for(let a=0;ae,Ho=s(e=>{switch(e._tag){case`Declaration`:{let t=e.annotations?.[`~effect/Schema/Class`];if(f(t)){let n=t(e.typeParameters),r=Ho(n.to);return J(e,r===n.to?[n]:[new K(r,n.transformation)])}return e}case`Objects`:case`Arrays`:return e.recur(e=>{let t=e.context?.defaultValue;return t?J(Ho(e),t):Ho(e)});case`Suspend`:return e.recur(Ho);default:return e}});function Uo(e){let t=Jo(Ho(Co(e.ast)));return(e,n)=>t(e,n?.disableChecks?n?.parseOptions?{...n.parseOptions,disableChecks:!0}:{disableChecks:!0}:n?.parseOptions)}function Wo(e){let t=Uo(e);return(e,n)=>{let r=yi(t(e,n));return si(r)?N(r.value):(Qi(r.cause,`Option adapter can only return none for schema issues`),Bt())}}function Go(e){let t=Uo(e);return(e,n)=>{let r=yi(t(e,n));if(si(r))return r.value;let i=Qi(r.cause,`Constructor adapter can only throw schema issues`);throw Error(i.toString(),{cause:i})}}function Ko(e,t){let n=Jo(e.ast);return t===void 0?n:(e,r)=>n(e,qo(t,r))}const qo=(e,t)=>t===void 0?e:{...e,...t};function Jo(e){let t=Xo(e);return(e,n)=>V(t(N(e),n??ba),e=>e._tag===`None`?B(new Pi(e)):z(e.value))}function Yo(e,t){return vi(e,e=>hi(()=>ni(e,t)))}const Xo=s(e=>{let t,n=so(e),r=e.checks??n,i=(r?r[r.length-1].annotations:e.annotations)?.parseOptions;if(!e.context&&!e.encoding&&!e.checks&&!n)return(n,r)=>(t??=e.getParser(Xo),i&&(r={...r,...i}),t(n,r));let a=va(e)||ya(e)||ma(e)&&e.typeParameters.length>0;return(r,o)=>{i&&(o={...o,...i});let s=e.encoding,c;if(s){let t=s,n=t.length;for(let e=n-1;e>=0;e--){let n=t[e],i=n.to,a=Xo(i);if(c=c?V(c,e=>a(e,o)):a(r,o),n.transformation._tag===`Transformation`){let e=n.transformation.decode;c=V(c,t=>e.run(t,o))}else c=n.transformation.decode(c,o)}c=Yo(c,t=>new Ai(e,r,t))}t??=e.getParser(Xo);let l=c?V(c,e=>t(e,o)):t(r,o);if(n&&!o?.disableChecks&&(l=V(l,t=>{if(Ht(r)&&Ht(t)){let t=[];if(zo(n,r.value,t,e,o),Jt(t))return B(new W(e,r,t))}return z(t)})),e.checks&&!o?.disableChecks){let t=e.checks;o?.errors===`all`&&a&&Ht(r)&&(l=Yo(l,n=>{let i=[];return zo(t.filter(e=>e.annotations?.[Bo]),r.value,i,e,o),Jt(i)?n._tag===`Composite`&&n.ast===e?new W(e,n.actual,[...n.issues,...i]):new W(e,r,[n,...i]):n})),l=V(l,n=>{if(Ht(n)){let r=n.value,i=[];if(zo(t,r,i,e,o),Jt(i))return B(new W(e,n,i))}return z(n)})}return l}}),Zo=`~effect/Schema/Schema`,Qo={[Zo]:Zo,pipe(){return e(this,arguments)},annotate(e){return this.rebuild(ho(this.ast,e))},annotateKey(e){return this.rebuild(xo(this.ast,e))},check(...e){return this.rebuild(_o(this.ast,e))}};function $o(e,t){let n=Object.create(Qo);return t&&Object.assign(n,t),n.ast=e,n.rebuild=e=>$o(e,t),n.makeEffect=(e,t)=>ns(Uo(n)(e,t)),n.make=Go(n),n.makeOption=Wo(n),n}const es=`~effect/Schema/SchemaError`;var ts=class extends ri(`SchemaError`){[es]=es;constructor(e){super({issue:e})}get message(){return this.issue.toString()}toString(){return`SchemaError(${this.message})`}};function ns(e){return vi(e,e=>hi(()=>ni(e,e=>new ts(e))))}function rs(){return(e,t,n)=>X(new Ca(e.map(Ka),e=>t(e.map(e=>X(e))),n))}function is(e,t){return rs()([],()=>(t,n)=>e(t)?z(t):B(new Ni(n,N(t))),t)}function as(e){return h(e,es)}function os(e,t){let n=Ko(e,t);return(e,t)=>ns(n(e,t))}function ss(e,t){let n;for(let r of e.reasons){if(!ti(r)||!as(r.error))throw new globalThis.Error(t,{cause:e});n??=r.error}if(n===void 0)throw new globalThis.Error(t,{cause:e});return n}function cs(e){let t=yi(e);if(si(t))return t.value;throw ss(t.cause,`Sync adapter can only throw schema errors`)}function ls(e,t){let n=os(e,t);return(e,t)=>cs(n(e,t))}const X=$o;function us(e){let t=X(new Ta(e),{literal:e,transform(n){return t.pipe(xs(us(n),{decode:G(()=>n),encode:G(()=>e)}))}});return t}const ds=X(wa),Z=X(Da),Q=X(Aa);function fs(e,t){return X(e,{fields:t,mapFields(e,t){let n=e(this.fields);return fs(Ga(n,t?.unsafePreserveChecks?this.ast.checks:void 0),n)}})}function ps(e){return fs(Ga(e,void 0),e)}function ms(e,t){return X(e,{elements:t,mapElements(e,t){let n=e(this.elements);return ms(qa(n,t?.unsafePreserveChecks?this.ast.checks:void 0),n)}})}const hs=Vo(e=>X(new ja(!1,[],[e.ast]),{value:e})),gs=Vo(e=>X(new ja(!0,e.ast.elements,e.ast.rest),{schema:e}));function _s(e,t){return X(e,{members:t,mapMembers(e,t){let n=e(this.members);return _s(Ja(n,this.ast.mode,t?.unsafePreserveChecks?this.ast.checks:void 0),n)}})}function vs(e,t){return _s(Ja(e,t?.mode??`anyOf`,void 0),e)}function ys(e){let t=e.map(us);return X(Ja(t,`anyOf`,void 0),{literals:e,members:t,mapMembers(e){return vs(e(this.members))},pick(e){return ys(e)},transform(e){return vs(t.map((t,n)=>t.transform(e[n])))}})}const bs=Vo(e=>vs([e,ds]));function xs(e,t){return n=>X(So(n.ast,e.ast,t?la(t):da()),{from:n,to:e})}function Ss(e,t){return is(t=>t instanceof e,t)}const Cs=uo;function ws(e){let t=zt(e.order),n=e.formatter??C;return(r,i)=>Cs(e=>t(e,r),{expected:`a value greater than or equal to ${n(r)}`,arbitrary:{constraint:{ordered:{order:e.order,minimum:r}}},...e.annotate?.(r),...i})}function Ts(e){let t=Rt(e.order),n=e.formatter??C;return(r,i)=>Cs(e=>t(e,r),{expected:`a value less than or equal to ${n(r)}`,arbitrary:{constraint:{ordered:{order:e.order,maximum:r}}},...e.annotate?.(r),...i})}const Es=ws({order:Lt,annotate:e=>({meta:{_tag:`isGreaterThanOrEqualTo`,minimum:e}})}),Ds=Ts({order:Lt,annotate:e=>({meta:{_tag:`isLessThanOrEqualTo`,maximum:e}})});function Os(e,t){return e=Math.max(0,Math.floor(e)),Cs(t=>t.length>=e,{expected:`a value with a length of at least ${e}`,meta:{_tag:`isMinLength`,minLength:e},[Bo]:!0,arbitrary:{constraint:{minLength:e}},...t})}function $(e,t){return e=Math.max(0,Math.floor(e)),Cs(t=>t.length<=e,{expected:`a value with a length of at most ${e}`,meta:{_tag:`isMaxLength`,maxLength:e},[Bo]:!0,arbitrary:{constraint:{maxLength:e}},...t})}globalThis.RegExp,globalThis.URL,globalThis.File,globalThis.FormData,globalThis.URLSearchParams,globalThis.Uint8Array;const ks=ps({id:Q,created:Ss(Date),title:Z.check(Os(1),$(100)),type:ys([`jpg`,`png`]),size:Q,url:Z.check(Cs(e=>URL.canParse(e)))}),As=ps({id:Q,stars:Q.check(Es(0),Ds(5)),title:Z.check(Os(1),$(100)),text:Z.check(Os(1),$(1e3)),images:gs(hs(ks))});ls(ps({id:Q,created:Ss(Date),title:Z.check(Os(1),$(100)),brand:Z.check(Os(1),$(30)),description:Z.check(Os(1),$(500)),price:Q.check(Es(1),Ds(1e4)),discount:bs(Q.check(Es(1),Ds(100))),quantity:Q.check(Es(1),Ds(10)),tags:gs(hs(Z.check(Os(1),$(30)))),images:gs(hs(ks)),ratings:gs(hs(As))}))({}); \ No newline at end of file diff --git a/schemas/libraries/effect/@beta/download_compiled/unminified.js b/schemas/libraries/effect/@beta/download_compiled/unminified.js index 32b702fd..35a0f48e 100644 --- a/schemas/libraries/effect/@beta/download_compiled/unminified.js +++ b/schemas/libraries/effect/@beta/download_compiled/unminified.js @@ -1,4 +1,4 @@ -//#region ../node_modules/.pnpm/effect@4.0.0-beta.84/node_modules/effect/dist/Pipeable.js +//#region ../node_modules/.pnpm/effect@4.0.0-beta.85/node_modules/effect/dist/Pipeable.js /** * The `Pipeable` module defines the shared interface and implementation helpers * for values that support Effect-style method chaining with `.pipe(...)`. @@ -100,7 +100,7 @@ const Class$1 = /*#__PURE__*/ function() { return PipeableBase; }(); //#endregion -//#region ../node_modules/.pnpm/effect@4.0.0-beta.84/node_modules/effect/dist/Function.js +//#region ../node_modules/.pnpm/effect@4.0.0-beta.85/node_modules/effect/dist/Function.js /** * Creates a function that can be called in data-first style or data-last * (`pipe`-friendly) style. @@ -311,7 +311,7 @@ function memoize(f) { }; } //#endregion -//#region ../node_modules/.pnpm/effect@4.0.0-beta.84/node_modules/effect/dist/internal/equal.js +//#region ../node_modules/.pnpm/effect@4.0.0-beta.85/node_modules/effect/dist/internal/equal.js /** @internal */ const getAllObjectKeys = (obj) => { const keys = new Set(Reflect.ownKeys(obj)); @@ -330,7 +330,7 @@ const getAllObjectKeys = (obj) => { /** @internal */ const byReferenceInstances = /*#__PURE__*/ new WeakSet(); //#endregion -//#region ../node_modules/.pnpm/effect@4.0.0-beta.84/node_modules/effect/dist/Predicate.js +//#region ../node_modules/.pnpm/effect@4.0.0-beta.85/node_modules/effect/dist/Predicate.js /** * Defines runtime checks for values. * @@ -532,7 +532,7 @@ function isObjectKeyword(input) { */ const hasProperty = /*#__PURE__*/ dual(2, (self, property) => isObjectKeyword(self) && property in self); //#endregion -//#region ../node_modules/.pnpm/effect@4.0.0-beta.84/node_modules/effect/dist/Hash.js +//#region ../node_modules/.pnpm/effect@4.0.0-beta.85/node_modules/effect/dist/Hash.js /** * Computes Effect hash values and defines the interface for objects that want * to provide their own hash implementation. Hashes are small numeric @@ -969,7 +969,7 @@ function withVisitedTracking$1(obj, fn) { return result; } //#endregion -//#region ../node_modules/.pnpm/effect@4.0.0-beta.84/node_modules/effect/dist/Equal.js +//#region ../node_modules/.pnpm/effect@4.0.0-beta.85/node_modules/effect/dist/Equal.js /** * Defines the unique string identifier for the `Equal` interface. * @@ -1202,7 +1202,7 @@ const isEqual = (u) => hasProperty(u, symbol); */ const asEquivalence = () => equals$1; //#endregion -//#region ../node_modules/.pnpm/effect@4.0.0-beta.84/node_modules/effect/dist/Equivalence.js +//#region ../node_modules/.pnpm/effect@4.0.0-beta.85/node_modules/effect/dist/Equivalence.js /** * Creates a custom equivalence relation with an optimized reference equality check. * @@ -1253,14 +1253,14 @@ const asEquivalence = () => equals$1; */ const make$10 = (isEquivalent) => (self, that) => self === that || isEquivalent(self, that); //#endregion -//#region ../node_modules/.pnpm/effect@4.0.0-beta.84/node_modules/effect/dist/internal/array.js +//#region ../node_modules/.pnpm/effect@4.0.0-beta.85/node_modules/effect/dist/internal/array.js /** * @since 2.0.0 */ /** @internal */ const isArrayNonEmpty$1 = (self) => self.length > 0; //#endregion -//#region ../node_modules/.pnpm/effect@4.0.0-beta.84/node_modules/effect/dist/Redactable.js +//#region ../node_modules/.pnpm/effect@4.0.0-beta.85/node_modules/effect/dist/Redactable.js /** * Defines the symbol used to identify objects that implement the {@link Redactable} * protocol. @@ -1374,7 +1374,7 @@ const emptyContext$1 = { } }; //#endregion -//#region ../node_modules/.pnpm/effect@4.0.0-beta.84/node_modules/effect/dist/Formatter.js +//#region ../node_modules/.pnpm/effect@4.0.0-beta.85/node_modules/effect/dist/Formatter.js /** * Formats JavaScript values into readable strings. * @@ -1539,7 +1539,7 @@ function safeToString(input) { } } //#endregion -//#region ../node_modules/.pnpm/effect@4.0.0-beta.84/node_modules/effect/dist/Inspectable.js +//#region ../node_modules/.pnpm/effect@4.0.0-beta.85/node_modules/effect/dist/Inspectable.js /** * Defines the symbol used by Node.js for custom object inspection. * @@ -1604,7 +1604,7 @@ const toJson = (input) => { return redact(input); }; //#endregion -//#region ../node_modules/.pnpm/effect@4.0.0-beta.84/node_modules/effect/dist/Utils.js +//#region ../node_modules/.pnpm/effect@4.0.0-beta.85/node_modules/effect/dist/Utils.js /** * Yields its wrapped value exactly once through an `IterableIterator`. * @@ -1695,7 +1695,7 @@ const pickInternalCall = () => { /** @internal */ const internalCall = /*#__PURE__*/ pickInternalCall(); //#endregion -//#region ../node_modules/.pnpm/effect@4.0.0-beta.84/node_modules/effect/dist/internal/core.js +//#region ../node_modules/.pnpm/effect@4.0.0-beta.85/node_modules/effect/dist/internal/core.js /** @internal */ const EffectTypeId = `~effect/Effect`; /** @internal */ @@ -2028,7 +2028,7 @@ const TaggedError$1 = (tag) => { }; TaggedError$1("NoSuchElementError"); //#endregion -//#region ../node_modules/.pnpm/effect@4.0.0-beta.84/node_modules/effect/dist/internal/option.js +//#region ../node_modules/.pnpm/effect@4.0.0-beta.85/node_modules/effect/dist/internal/option.js /** * @since 2.0.0 */ @@ -2098,11 +2098,11 @@ const some$1 = (value) => { return a; }; //#endregion -//#region ../node_modules/.pnpm/effect@4.0.0-beta.84/node_modules/effect/dist/internal/result.js +//#region ../node_modules/.pnpm/effect@4.0.0-beta.85/node_modules/effect/dist/internal/result.js const TypeId$7 = "~effect/data/Result"; ({ ...PipeInspectableProto }); //#endregion -//#region ../node_modules/.pnpm/effect@4.0.0-beta.84/node_modules/effect/dist/Order.js +//#region ../node_modules/.pnpm/effect@4.0.0-beta.85/node_modules/effect/dist/Order.js /** * Defines comparison functions for ordered values. * @@ -2252,7 +2252,7 @@ const isLessThanOrEqualTo$1 = (O) => dual(2, (self, that) => O(self, that) !== 1 */ const isGreaterThanOrEqualTo$1 = (O) => dual(2, (self, that) => O(self, that) !== -1); //#endregion -//#region ../node_modules/.pnpm/effect@4.0.0-beta.84/node_modules/effect/dist/Option.js +//#region ../node_modules/.pnpm/effect@4.0.0-beta.85/node_modules/effect/dist/Option.js /** * Creates an `Option` representing the absence of a value. * @@ -2409,7 +2409,7 @@ const isSome = isSome$1; */ const map$3 = /*#__PURE__*/ dual(2, (self, f) => isNone(self) ? none() : some(f(self.value))); //#endregion -//#region ../node_modules/.pnpm/effect@4.0.0-beta.84/node_modules/effect/dist/Array.js +//#region ../node_modules/.pnpm/effect@4.0.0-beta.85/node_modules/effect/dist/Array.js /** * Works with JavaScript arrays, readonly arrays, and non-empty arrays. * @@ -2763,7 +2763,7 @@ const dedupeWith = /*#__PURE__*/ dual(2, (self, isEquivalent) => { return []; }); //#endregion -//#region ../node_modules/.pnpm/effect@4.0.0-beta.84/node_modules/effect/dist/BigDecimal.js +//#region ../node_modules/.pnpm/effect@4.0.0-beta.85/node_modules/effect/dist/BigDecimal.js /** * Decimal numbers and arithmetic for cases where JavaScript `number` rounding * is not precise enough. A `BigDecimal` stores digits as a `bigint` plus a @@ -3155,7 +3155,7 @@ const isZero = (n) => n.value === bigint0; */ const isNegative = (n) => n.value < bigint0; //#endregion -//#region ../node_modules/.pnpm/effect@4.0.0-beta.84/node_modules/effect/dist/Effectable.js +//#region ../node_modules/.pnpm/effect@4.0.0-beta.85/node_modules/effect/dist/Effectable.js /** * Create a low-level `Effect` prototype. * @@ -3179,7 +3179,42 @@ const Prototype = (options) => makePrimitiveProto({ [evaluate]: options.evaluate }); //#endregion -//#region ../node_modules/.pnpm/effect@4.0.0-beta.84/node_modules/effect/dist/Context.js +//#region ../node_modules/.pnpm/effect@4.0.0-beta.85/node_modules/effect/dist/internal/stackTraceLimit.js +const ObjectGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; +const ObjectPrototypeHasOwnProperty = Object.prototype.hasOwnProperty; +const ObjectIsExtensible = Object.isExtensible; +/** +* Check if `Error.stackTraceLimit` is writable. +* Returns `false` if the property is frozen, non-writable, or `Error` is non-extensible. +* +* @internal +*/ +const isStackTraceLimitWritable = () => { + const desc = ObjectGetOwnPropertyDescriptor(Error, "stackTraceLimit"); + if (desc === void 0) return ObjectIsExtensible(Error); + return ObjectPrototypeHasOwnProperty.call(desc, "writable") ? desc.writable === true : desc.set !== void 0; +}; +const canWriteStackTraceLimit = /*#__PURE__*/ isStackTraceLimitWritable(); +/** +* Get the current `Error.stackTraceLimit` value. +* Returns `undefined` if the property doesn't exist. +* +* @internal +*/ +const getStackTraceLimit = () => Error.stackTraceLimit; +/** +* Safely set `Error.stackTraceLimit` if possible, otherwise no-op. +* +* Accepts `undefined` so a value read via {@link getStackTraceLimit} can be +* restored faithfully. +* +* @internal +*/ +const setStackTraceLimit = (value) => { + if (canWriteStackTraceLimit) Error.stackTraceLimit = value; +}; +//#endregion +//#region ../node_modules/.pnpm/effect@4.0.0-beta.85/node_modules/effect/dist/Context.js /** * Runtime type identifier attached to `Context` service keys and used by * `isKey` to recognize them. @@ -3237,10 +3272,10 @@ const ServiceTypeId = "~effect/Context/Service"; * @since 4.0.0 */ const Service = function() { - const prevLimit = Error.stackTraceLimit; - Error.stackTraceLimit = 2; + const prevLimit = getStackTraceLimit(); + setStackTraceLimit(2); const err = /* @__PURE__ */ new Error(); - Error.stackTraceLimit = prevLimit; + setStackTraceLimit(prevLimit); function KeyClass() {} const self = KeyClass; Object.setPrototypeOf(self, ServiceProto); @@ -3616,7 +3651,7 @@ const withMapUnsafe = (self, f) => { */ const Reference = Service; //#endregion -//#region ../node_modules/.pnpm/effect@4.0.0-beta.84/node_modules/effect/dist/Scheduler.js +//#region ../node_modules/.pnpm/effect@4.0.0-beta.85/node_modules/effect/dist/Scheduler.js /** * Controls how runnable Effect fiber tasks are dispatched. * @@ -3814,7 +3849,7 @@ const MaxOpsBeforeYield = /*#__PURE__*/ Reference("effect/Scheduler/MaxOpsBefore */ const PreventSchedulerYield = /*#__PURE__*/ Reference("effect/Scheduler/PreventSchedulerYield", { defaultValue: () => false }); //#endregion -//#region ../node_modules/.pnpm/effect@4.0.0-beta.84/node_modules/effect/dist/Tracer.js +//#region ../node_modules/.pnpm/effect@4.0.0-beta.85/node_modules/effect/dist/Tracer.js /** * Defines the low-level tracing model used by Effect. * @@ -3861,11 +3896,11 @@ Service()(ParentSpanKey); */ const TracerKey = "effect/Tracer"; //#endregion -//#region ../node_modules/.pnpm/effect@4.0.0-beta.84/node_modules/effect/dist/internal/metric.js +//#region ../node_modules/.pnpm/effect@4.0.0-beta.85/node_modules/effect/dist/internal/metric.js /** @internal */ const FiberRuntimeMetricsKey = "effect/observability/Metric/FiberRuntimeMetricsKey"; //#endregion -//#region ../node_modules/.pnpm/effect@4.0.0-beta.84/node_modules/effect/dist/internal/references.js +//#region ../node_modules/.pnpm/effect@4.0.0-beta.85/node_modules/effect/dist/internal/references.js /** @internal */ const CurrentStackFrame = /*#__PURE__*/ Reference("effect/References/CurrentStackFrame", { defaultValue: constUndefined }); /** @internal */ @@ -3873,7 +3908,7 @@ const CurrentLogLevel = /*#__PURE__*/ Reference("effect/References/CurrentLogLev /** @internal */ const MinimumLogLevel = /*#__PURE__*/ Reference("effect/References/MinimumLogLevel", { defaultValue: () => "Info" }); //#endregion -//#region ../node_modules/.pnpm/effect@4.0.0-beta.84/node_modules/effect/dist/internal/effect.js +//#region ../node_modules/.pnpm/effect@4.0.0-beta.85/node_modules/effect/dist/internal/effect.js /** @internal */ var Interrupt = class extends ReasonBase { fiberId; @@ -4500,7 +4535,7 @@ const colors = { }; colors.gray, colors.blue, colors.green, colors.yellow, colors.red, colors.bgBrightRed, colors.black; //#endregion -//#region ../node_modules/.pnpm/effect@4.0.0-beta.84/node_modules/effect/dist/Cause.js +//#region ../node_modules/.pnpm/effect@4.0.0-beta.85/node_modules/effect/dist/Cause.js /** * Records the full reason an `Effect` failed. * @@ -4617,7 +4652,7 @@ Service()("effect/Cause/InterruptorStackTrace"); */ const TaggedError = TaggedError$1; //#endregion -//#region ../node_modules/.pnpm/effect@4.0.0-beta.84/node_modules/effect/dist/Exit.js +//#region ../node_modules/.pnpm/effect@4.0.0-beta.85/node_modules/effect/dist/Exit.js /** * Creates a failed Exit from a Cause. * @@ -4708,7 +4743,7 @@ const void_ = exitVoid; */ const isSuccess = exitIsSuccess; //#endregion -//#region ../node_modules/.pnpm/effect@4.0.0-beta.84/node_modules/effect/dist/internal/dateTime.js +//#region ../node_modules/.pnpm/effect@4.0.0-beta.85/node_modules/effect/dist/internal/dateTime.js /** @internal */ const TypeId$4 = "~effect/time/DateTime"; /** @internal */ @@ -5177,7 +5212,7 @@ const fnUntracedEager = fnUntracedEager$1; Service()("effect/DateTime/CurrentTimeZone"); TaggedError("EncodingError"); //#endregion -//#region ../node_modules/.pnpm/effect@4.0.0-beta.84/node_modules/effect/dist/internal/schema/annotations.js +//#region ../node_modules/.pnpm/effect@4.0.0-beta.85/node_modules/effect/dist/internal/schema/annotations.js /** @internal */ function resolve(ast) { return ast.checks ? ast.checks[ast.checks.length - 1].annotations : ast.annotations; @@ -5195,7 +5230,7 @@ const getExpected = /*#__PURE__*/ memoize((ast) => { return ast.getExpected(getExpected); }); //#endregion -//#region ../node_modules/.pnpm/effect@4.0.0-beta.84/node_modules/effect/dist/internal/record.js +//#region ../node_modules/.pnpm/effect@4.0.0-beta.85/node_modules/effect/dist/internal/record.js /** * @since 4.0.0 */ @@ -5211,7 +5246,7 @@ function set(self, key, value) { return self; } //#endregion -//#region ../node_modules/.pnpm/effect@4.0.0-beta.84/node_modules/effect/dist/SchemaIssue.js +//#region ../node_modules/.pnpm/effect@4.0.0-beta.85/node_modules/effect/dist/SchemaIssue.js const TypeId$3 = "~effect/SchemaIssue/Issue"; /** * Returns `true` if the given value is an {@link Issue}. @@ -5894,7 +5929,7 @@ function formatOption(actual) { return format$1(actual.value); } //#endregion -//#region ../node_modules/.pnpm/effect@4.0.0-beta.84/node_modules/effect/dist/internal/schema/cause.js +//#region ../node_modules/.pnpm/effect@4.0.0-beta.85/node_modules/effect/dist/internal/schema/cause.js /** @internal */ function getSchemaIssue(cause) { let issue; @@ -5910,29 +5945,8 @@ function getSchemaIssueOrThrow(cause, message) { if (issue === void 0) throw new Error(message, { cause }); return issue; } -globalThis.RegExp; -/** -* Escapes special characters in a regular expression pattern. -* -* **When to use** -* -* Use to turn literal text into a safe regular expression pattern fragment. -* -* **Example** (Escaping a pattern string) -* -* ```ts -* import { RegExp } from "effect" -* import * as assert from "node:assert" -* -* assert.deepStrictEqual(RegExp.escape("a*b"), "a\\*b") -* ``` -* -* @category RegExp -* @since 2.0.0 -*/ -const escape = (string) => string.replace(/[/\\^$*+?.()|[\]{}]/g, "\\$&"); //#endregion -//#region ../node_modules/.pnpm/effect@4.0.0-beta.84/node_modules/effect/dist/SchemaGetter.js +//#region ../node_modules/.pnpm/effect@4.0.0-beta.85/node_modules/effect/dist/SchemaGetter.js /** * Builds one-way conversions used by schemas. * @@ -6136,7 +6150,7 @@ function Number$3() { return transform$1(globalThis.Number); } //#endregion -//#region ../node_modules/.pnpm/effect@4.0.0-beta.84/node_modules/effect/dist/SchemaTransformation.js +//#region ../node_modules/.pnpm/effect@4.0.0-beta.85/node_modules/effect/dist/SchemaTransformation.js const TypeId$2 = "~effect/SchemaTransformation/Transformation"; /** * Represents a bidirectional transformation between a decoded type `T` and an encoded @@ -6304,7 +6318,7 @@ function passthrough() { */ const numberFromString = /*#__PURE__*/ new Transformation(/*#__PURE__*/ Number$3(), /*#__PURE__*/ String$3()); //#endregion -//#region ../node_modules/.pnpm/effect@4.0.0-beta.84/node_modules/effect/dist/SchemaAST.js +//#region ../node_modules/.pnpm/effect@4.0.0-beta.85/node_modules/effect/dist/SchemaAST.js /** * Represents Effect schemas as runtime trees. * @@ -6392,13 +6406,6 @@ const isArrays = /*#__PURE__*/ makeGuard("Arrays"); */ const isObjects = /*#__PURE__*/ makeGuard("Objects"); /** -* Narrows an {@link AST} to {@link Union}. -* -* @category guards -* @since 3.10.0 -*/ -const isUnion = /*#__PURE__*/ makeGuard("Union"); -/** * Represents a single step in an {@link Encoding} chain. * * **Details** @@ -6536,17 +6543,17 @@ var Declaration = class Declaration extends Base { return mapEager(run(oinput.value, this, options), some); }; } - rebuild(recur, checks, encodingChecks) { + _rebuild(recur, checks, encodingChecks) { const tps = mapOrSame(this.typeParameters, recur); return tps === this.typeParameters ? this : new Declaration(tps, this.run, this.annotations, checks, void 0, this.context, encodingChecks); } /** @internal */ recur(recur) { - return this.rebuild(recur, this.checks, this.encodingChecks); + return this._rebuild(recur, this.checks, this.encodingChecks); } /** @internal */ flip(recur) { - return this.rebuild(recur, this.encodingChecks, this.checks); + return this._rebuild(recur, this.encodingChecks, this.checks); } /** @internal */ getExpected() { @@ -6616,6 +6623,10 @@ var Literal$1 = class extends Base { return fromConst(this, this.literal); } /** @internal */ + matchPart(s, _options) { + return s === globalThis.String(this.literal) ? this.literal : void 0; + } + /** @internal */ toCodecJson() { return typeof this.literal === "bigint" ? literalToString(this) : this; } @@ -6648,6 +6659,10 @@ var String$2 = class extends Base { return fromRefinement(this, isString); } /** @internal */ + matchPart(s, options) { + return applyTemplateLiteralPartChecks(this, s, options); + } + /** @internal */ getExpected() { return "string"; } @@ -6692,6 +6707,17 @@ var Number$2 = class extends Base { return fromRefinement(this, isNumber); } /** @internal */ + matchKey(s, options) { + return this._match(isStringNumberRegExp, s, options); + } + /** @internal */ + matchPart(s, options) { + return this._match(isStringFiniteRegExp, s, options); + } + _match(regexp, s, options) { + return regexp.test(s) ? applyTemplateLiteralPartChecks(this, globalThis.Number(s), options) : void 0; + } + /** @internal */ toCodecJson() { if (this.checks && (hasCheck(this.checks, "isFinite") || hasCheck(this.checks, "isInt"))) return this; return replaceEncoding(this, [numberToJson]); @@ -6837,18 +6863,18 @@ var Arrays = class Arrays extends Base { return some(state.output); }); } - rebuild(recur, checks, encodingChecks) { + _rebuild(recur, checks, encodingChecks) { const elements = mapOrSame(this.elements, recur); const rest = mapOrSame(this.rest, recur); return elements === this.elements && rest === this.rest ? this : new Arrays(this.isMutable, elements, rest, this.annotations, checks, void 0, this.context, encodingChecks); } /** @internal */ recur(recur) { - return this.rebuild(recur, this.checks, this.encodingChecks); + return this._rebuild(recur, this.checks, this.encodingChecks); } /** @internal */ flip(recur) { - return this.rebuild(recur, this.encodingChecks, this.checks); + return this._rebuild(recur, this.encodingChecks, this.checks); } /** @internal */ getExpected() { @@ -6894,24 +6920,24 @@ const wrapPropertyKeyIssue = (s, ast, key, exit) => { * @internal */ const FINITE_PATTERN = "[+-]?\\d*\\.?\\d+(?:[Ee][+-]?\\d+)?"; -const isNumberStringRegExp = /*#__PURE__*/ new globalThis.RegExp(`(?:${FINITE_PATTERN}|Infinity|-Infinity|NaN)`); /** * Returns the object keys that match the index signature parameter schema. * @internal */ -function getIndexSignatureKeys(input, parameter) { - const encoded = toEncoded(parameter); - switch (encoded._tag) { - case "String": return Object.keys(input); - case "TemplateLiteral": { - const regExp = getTemplateLiteralRegExp(encoded); - return Object.keys(input).filter((k) => regExp.test(k)); +function getIndexSignatureKeys(input, parameter, options = defaultParseOptions) { + let stringKeys; + let symbolKeys; + function go(parameter) { + switch (parameter._tag) { + case "String": + case "TemplateLiteral": return (stringKeys ??= Object.keys(input)).filter((k) => parameter.matchPart(k, options) !== void 0); + case "Number": return (stringKeys ??= Object.keys(input)).filter((k) => parameter.matchKey(k, options) !== void 0); + case "Symbol": return (symbolKeys ??= Object.getOwnPropertySymbols(input)).filter((k) => parameter.matchKey(k, options) !== void 0); + case "Union": return [...new Set(parameter.types.flatMap(go))]; + default: return []; } - case "Symbol": return Object.getOwnPropertySymbols(input); - case "Number": return Object.keys(input).filter((k) => isNumberStringRegExp.test(k)); - case "Union": return [...new Set(encoded.types.flatMap((t) => getIndexSignatureKeys(input, t)))]; - default: return []; } + return go(parameterFromPropertyKey(toEncoded(parameter))); } /** * Represents a named property within an {@link Objects} node. @@ -6934,6 +6960,19 @@ var PropertySignature = class { this.type = type; } }; +function isIndexSignatureParameterSide(ast) { + switch (ast._tag) { + case "String": + case "Number": + case "Symbol": + case "TemplateLiteral": return true; + case "Union": return ast.types.every(isIndexSignatureParameterSide); + default: return false; + } +} +function isIndexSignatureParameter(ast) { + return isIndexSignatureParameterSide(ast) && isIndexSignatureParameterSide(toEncoded(ast)); +} /** * Represents an index signature entry within an {@link Objects} node. * @@ -6964,6 +7003,7 @@ var IndexSignature = class { type; merge; constructor(parameter, type, merge) { + if (!isIndexSignatureParameter(parameter)) throw new Error(`Invalid index signature parameter ${parameter._tag}`); this.parameter = parameter; this.type = type; this.merge = merge; @@ -7048,7 +7088,7 @@ var Objects = class Objects extends Base { if (ast.propertySignatures.length === 0 && ast.indexSignatures.length === 0) return fromRefinement(ast, isNotNullish); const parseIndexes = indexCount > 0 ? iterateEager()({ onItem: fnUntracedEager(function* (s, [key, is]) { - const effKey = recur(indexSignatureParameterFromString(is.parameter))(some(key), s.options); + const effKey = recur(parameterFromPropertyKey(is.parameter))(some(key), s.options); const exitKey = effectIsExit(effKey) ? effKey : yield* exit(effKey); if (exitKey._tag === "Failure") { const eff = wrapPropertyKeyIssue(s, ast, key, exitKey); @@ -7112,7 +7152,7 @@ var Objects = class Objects extends Base { const keyPairs = empty$1(); for (let i = 0; i < indexCount; i++) { const is = ast.indexSignatures[i]; - const keys = getIndexSignatureKeys(input, is.parameter); + const keys = getIndexSignatureKeys(input, is.parameter, options); for (let j = 0; j < keys.length; j++) { const key = keys[j]; keyPairs.push([key, is]); @@ -7131,13 +7171,13 @@ var Objects = class Objects extends Base { return some(out); }); } - rebuild(recur, flipMerge, checks, encodingChecks) { + _rebuild(recur, recurParameter, flipMerge, checks, encodingChecks) { const props = mapOrSame(this.propertySignatures, (ps) => { const t = recur(ps.type); return t === ps.type ? ps : new PropertySignature(ps.name, t); }); const indexes = mapOrSame(this.indexSignatures, (is) => { - const p = recur(is.parameter); + const p = recurParameter(is.parameter); const t = recur(is.type); const merge = flipMerge ? is.merge?.flip() : is.merge; return p === is.parameter && t === is.type && merge === is.merge ? is : new IndexSignature(p, t, merge); @@ -7146,11 +7186,11 @@ var Objects = class Objects extends Base { } /** @internal */ flip(recur) { - return this.rebuild(recur, true, this.encodingChecks, this.checks); + return this._rebuild(recur, recur, true, this.encodingChecks, this.checks); } /** @internal */ - recur(recur) { - return this.rebuild(recur, false, this.checks, this.encodingChecks); + recur(recur, recurParameter = recur) { + return this._rebuild(recur, recurParameter, false, this.checks, this.encodingChecks); } /** @internal */ getExpected() { @@ -7176,6 +7216,11 @@ const parseProperties = /*#__PURE__*/ iterateEager()({ } } }); +function combineChecks(a, b) { + if (!a) return b; + if (!b) return a; + return [...a, ...b]; +} /** @internal */ function struct(fields, checks, annotations) { return new Objects(Reflect.ownKeys(fields).map((key) => { @@ -7383,17 +7428,24 @@ var Union$1 = class Union$1 extends Base { }); }; } - rebuild(recur, checks, encodingChecks) { + _rebuild(recur, checks, encodingChecks) { const types = mapOrSame(this.types, recur); return types === this.types ? this : new Union$1(types, this.mode, this.annotations, checks, void 0, this.context, encodingChecks); } /** @internal */ recur(recur) { - return this.rebuild(recur, this.checks, this.encodingChecks); + return this._rebuild(recur, this.checks, this.encodingChecks); } /** @internal */ flip(recur) { - return this.rebuild(recur, this.encodingChecks, this.checks); + return this._rebuild(recur, this.encodingChecks, this.checks); + } + /** @internal */ + matchPart(s, options) { + for (const type of this.types) { + const out = type.matchPart(s, options); + if (out !== void 0) return out; + } } /** @internal */ getExpected(getExpected) { @@ -7633,7 +7685,7 @@ function replaceChecks(ast, checks) { } /** @internal */ function appendChecks(ast, checks) { - return replaceChecks(ast, ast.checks ? [...ast.checks, ...checks] : checks); + return replaceChecks(ast, combineChecks(ast.checks, checks)); } function updateLastLink(encoding, f) { const links = encoding; @@ -7804,29 +7856,6 @@ function containsUndefined(ast) { default: return false; } } -function getTemplateLiteralSource(ast, top) { - return ast.encodedParts.map((part) => handleTemplateLiteralASTPartParens(part, getTemplateLiteralASTPartPattern(part), top)).join(""); -} -/** @internal */ -const getTemplateLiteralRegExp = /*#__PURE__*/ memoize((ast) => { - return new globalThis.RegExp(`^${getTemplateLiteralSource(ast, true)}$`); -}); -function getTemplateLiteralASTPartPattern(part) { - switch (part._tag) { - case "Literal": return escape(globalThis.String(part.literal)); - case "String": return STRING_PATTERN; - case "Number": return FINITE_PATTERN; - case "BigInt": return BIGINT_PATTERN; - case "TemplateLiteral": return getTemplateLiteralSource(part, false); - case "Union": return part.types.map(getTemplateLiteralASTPartPattern).join("|"); - } -} -function handleTemplateLiteralASTPartParens(part, s, top) { - if (isUnion(part)) { - if (!top) return `(?:${s})`; - } else if (!top) return s; - return `(${s})`; -} function fromConst(ast, value) { const succeed = succeedSome(value); return (oinput) => { @@ -7840,6 +7869,12 @@ function fromRefinement(ast, refinement) { return refinement(oinput.value) ? succeed(oinput) : fail(new InvalidType(ast, oinput)); }; } +function applyTemplateLiteralPartChecks(ast, value, options) { + if (options?.disableChecks || ast.checks === void 0) return value; + const issues = []; + collectIssues(ast.checks, value, issues, ast, options); + return issues.length === 0 ? value : void 0; +} /** @internal */ function toCodec(f) { function out(ast) { @@ -7847,19 +7882,15 @@ function toCodec(f) { } return memoize(out); } -const indexSignatureParameterFromString = /*#__PURE__*/ toCodec((ast) => { +const parameterFromPropertyKey = /*#__PURE__*/ toCodec((ast) => { switch (ast._tag) { default: return ast; case "Number": return ast.toCodecStringTree(); - case "Union": return ast.recur(indexSignatureParameterFromString); + case "Union": return ast.recur(parameterFromPropertyKey); } }); -/** -* any string, including newlines -* @internal -*/ -const STRING_PATTERN = "[\\s\\S]*?"; const isStringFiniteRegExp = /*#__PURE__*/ new globalThis.RegExp(`^${FINITE_PATTERN}$`); +const isStringNumberRegExp = /*#__PURE__*/ new globalThis.RegExp(`(?:${FINITE_PATTERN}|Infinity|-Infinity|NaN)`); /** @internal */ function isStringFinite(annotations) { return isPattern$1(isStringFiniteRegExp, { @@ -7874,10 +7905,6 @@ function isStringFinite(annotations) { const finiteString = /*#__PURE__*/ appendChecks(string, [/*#__PURE__*/ isStringFinite()]); const finiteToString = /*#__PURE__*/ new Link(finiteString, numberFromString); const numberToString = /*#__PURE__*/ new Link(/*#__PURE__*/ new Union$1([finiteString, nonFiniteLiterals], "anyOf"), numberFromString); -/** -* signed integer only (no leading "+" because TypeScript doesn't support it) -*/ -const BIGINT_PATTERN = "-?\\d+"; /** @internal */ function collectIssues(checks, value, issues, ast, options) { for (let i = 0; i < checks.length; i++) { @@ -7897,7 +7924,7 @@ const ClassTypeId = "~effect/Schema/Class"; /** @internal */ const STRUCTURAL_ANNOTATION_KEY = "~structural"; //#endregion -//#region ../node_modules/.pnpm/effect@4.0.0-beta.84/node_modules/effect/dist/Struct.js +//#region ../node_modules/.pnpm/effect@4.0.0-beta.85/node_modules/effect/dist/Struct.js /** * Wraps a plain function as a {@link Lambda} value so it can be used with * {@link map}, {@link mapPick}, and {@link mapOmit}. @@ -7936,7 +7963,7 @@ const STRUCTURAL_ANNOTATION_KEY = "~structural"; */ const lambda = (f) => f; //#endregion -//#region ../node_modules/.pnpm/effect@4.0.0-beta.84/node_modules/effect/dist/SchemaParser.js +//#region ../node_modules/.pnpm/effect@4.0.0-beta.85/node_modules/effect/dist/SchemaParser.js /** * Runs schemas against real values. * @@ -8161,7 +8188,7 @@ const recur = /*#__PURE__*/ memoize((ast) => { }; }); //#endregion -//#region ../node_modules/.pnpm/effect@4.0.0-beta.84/node_modules/effect/dist/internal/schema/schema.js +//#region ../node_modules/.pnpm/effect@4.0.0-beta.85/node_modules/effect/dist/internal/schema/schema.js /** @internal */ const TypeId = "~effect/Schema/Schema"; const SchemaProto = { @@ -8209,7 +8236,7 @@ function mapSchemaIssueEffect(self) { return catchCause(self, (cause) => failCauseSync(() => map(cause, (issue) => new SchemaError(issue)))); } //#endregion -//#region ../node_modules/.pnpm/effect@4.0.0-beta.84/node_modules/effect/dist/Schema.js +//#region ../node_modules/.pnpm/effect@4.0.0-beta.85/node_modules/effect/dist/Schema.js /** * Creates a schema for a **parametric** type (a generic container such as * `Array`, `Option`, etc.) by accepting a list of type-parameter schemas diff --git a/schemas/libraries/typebox/download_compiled/compile/minified.js b/schemas/libraries/typebox/download_compiled/compile/minified.js index e646e451..95266b23 100644 --- a/schemas/libraries/typebox/download_compiled/compile/minified.js +++ b/schemas/libraries/typebox/download_compiled/compile/minified.js @@ -1,10 +1,10 @@ -var e=Object.defineProperty,t=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r};const n={assign:0,create:0,clone:0,discard:0,update:0};function r(e,t){return n.assign+=1,{...e,...t}}function i(e,t,n){return e>=t&&e<=n}function a(e){return i(e,127462,127487)}function o(e){return i(e,65024,65039)}function s(e){return i(e,768,879)||i(e,6832,6911)||i(e,7616,7679)||i(e,65056,65071)}function c(e){return e>65535?2:1}function l(e,t){for(;t=t)return!0;return!1}function re(e,t){let n=0,r=0;for(;rt)return!1;return!0}function ie(e,t){if(t===0)return!0;let n=0;for(;n=t)return!0}return!1}function ae(e,t){let n=0;for(;nt)return!1}return!0}var oe=t({Entries:()=>b,EntriesRegExp:()=>ke,Every:()=>Ee,EveryAll:()=>De,GraphemeCount:()=>Ce,HasPropertyKey:()=>y,IsArray:()=>d,IsAsyncIterator:()=>se,IsBigInt:()=>f,IsBoolean:()=>ce,IsClassInstance:()=>xe,IsConstructor:()=>le,IsDeepEqual:()=>Pe,IsEqual:()=>_,IsFunction:()=>ue,IsGreaterEqualThan:()=>ye,IsGreaterThan:()=>ge,IsInteger:()=>de,IsIterator:()=>fe,IsLessEqualThan:()=>ve,IsLessThan:()=>_e,IsMaxLength:()=>we,IsMinLength:()=>Te,IsMultipleOf:()=>be,IsNull:()=>pe,IsNumber:()=>p,IsObject:()=>m,IsObjectNotArray:()=>me,IsString:()=>h,IsSymbol:()=>he,IsUndefined:()=>g,IsUnsafePropertyKey:()=>Oe,IsValueLike:()=>Se,Keys:()=>x,ShiftLeft:()=>v,Symbols:()=>Ae,Values:()=>je});function d(e){return Array.isArray(e)}function se(e){return m(e)&&Symbol.asyncIterator in e}function f(e){return _(typeof e,`bigint`)}function ce(e){return _(typeof e,`boolean`)}function le(e){if(g(e)||!ue(e))return!1;let t=Function.prototype.toString.call(e);return!!(/^class\s/.test(t)||/\[native code\]/.test(t))}function ue(e){return _(typeof e,`function`)}function de(e){return Number.isInteger(e)}function fe(e){return m(e)&&Symbol.iterator in e}function pe(e){return _(e,null)}function p(e){return Number.isFinite(e)}function me(e){return m(e)&&!d(e)}function m(e){return _(typeof e,`object`)&&!pe(e)}function h(e){return _(typeof e,`string`)}function he(e){return _(typeof e,`symbol`)}function g(e){return _(e,void 0)}function _(e,t){return e===t}function ge(e,t){return e>t}function _e(e,t){return e=t}function be(e,t){if(f(e)||f(t))return BigInt(e)%BigInt(t)===0n;if(!p(e)||de(e)&&1/t%1==0)return!0;let n=e%t;return Math.min(Math.abs(n),Math.abs(n-t))<1e-10}function xe(e){if(!m(e))return!1;let t=globalThis.Object.getPrototypeOf(e);return pe(t)?!1:_(typeof t.constructor,`function`)&&!(_(t.constructor,globalThis.Object)||_(t.constructor.name,`Object`))}function Se(e){return f(e)||ce(e)||pe(e)||p(e)||h(e)||g(e)}function Ce(e){return te(e)}function we(e,t){return ae(e,t)}function Te(e,t){return ie(e,t)}function Ee(e,t,n){for(let r=t;r[RegExp(`^${t}$`),e[t]])}function b(e){return Object.entries(e)}function x(e){return Object.getOwnPropertyNames(e)}function Ae(e){return Object.getOwnPropertySymbols(e)}function je(e){return Object.values(e)}function Me(e,t){if(!m(t))return!1;let n=x(e);return _(n.length,x(t).length)&&n.every(n=>Pe(e[n],t[n]))}function Ne(e,t){return d(t)&&_(e.length,t.length)&&e.every((n,r)=>Pe(e[r],t[r]))}function Pe(e,t){return d(e)?Ne(e,t):m(e)?Me(e,t):_(e,t)}const Fe=/^[\p{ID_Start}_$][\p{ID_Continue}_$\u200C\u200D]*$/u;function Ie(e){return Fe.test(e)}function Le(e,t){return`(${e} && ${t})`}function S(e,t){return`(${e} || ${t})`}function Re(e){return`!(${e})`}function ze(e){return`Array.isArray(${e})`}function Be(e){return`Guard.IsAsyncIterator(${e})`}function Ve(e){return`typeof ${e} === "bigint"`}function He(e){return`typeof ${e} === "boolean"`}function Ue(e){return`Number.isInteger(${e})`}function We(e){return`Guard.IsIterator(${e})`}function Ge(e){return`${e} === null`}function Ke(e){return`Number.isFinite(${e})`}function qe(e){return Le(Je(e),Re(ze(e)))}function Je(e){return`typeof ${e} === "object" && ${e} !== null`}function Ye(e){return`typeof ${e} === "string"`}function Xe(e){return`typeof ${e} === "symbol"`}function Ze(e){return`${e} === undefined`}function Qe(e){return`typeof ${e} === "function"`}function $e(e){return`Guard.IsConstructor(${e})`}function et(e,t){return`${e} === ${t}`}function tt(e,t){return`${e} > ${t}`}function nt(e,t){return`${e} < ${t}`}function rt(e,t){return`${e} <= ${t}`}function it(e,t){return`${e} >= ${t}`}function at(e,t){return`Guard.IsMinLength(${e}, ${t})`}function ot(e,t){return`Guard.IsMaxLength(${e}, ${t})`}function st(e,t,n,r){return _(t,`0`)?`${e}.every((${n[0]}, ${n[1]}) => ${r})`:`((value, callback) => { for(let index = ${t}; index < value.length; index++) if (!callback(value[index], index)) return false; return true })(${e}, (${n[0]}, ${n[1]}) => ${r})`}function ct(e){return`Object.entries(${e})`}function lt(e){return`Object.getOwnPropertyNames(${e})`}function ut(e,t){return _(t,`"__proto__"`)||_(t,`"constructor"`)?`Object.prototype.hasOwnProperty.call(${e}, ${t})`:`${t} in ${e}`}function dt(e,t){return`Guard.IsDeepEqual(${e}, ${t})`}function ft(e){return`[${e.join(`, `)}]`}function pt(e,t){return`((${e.join(`, `)}) => ${t})`}function C(e,t){return`${e}(${t.join(`, `)})`}function mt(e,t){return`new ${e}(${t.join(`, `)})`}function w(e,t){return`${e}${Ie(t)?`.${t}`:`[${T(t)}]`}`}function T(e){return h(e)?JSON.stringify(e):`${e}`}function ht(e,t,n){return`(${e} ? ${t} : ${n})`}function gt(e){return`{ ${e.join(`; `)}; }`}function _t(e,t){return`const ${e} = ${t}`}function vt(e,t){return`if(${e}) { ${t} }`}function yt(e){return`return ${e}`}function bt(e){return _(e.length,0)?`true`:e.reduce((e,t)=>Le(e,t))}function xt(e){return _(e.length,0)?`false`:e.reduce((e,t)=>S(e,t))}function St(e){return`++${e}`}function Ct(e,t){return`Guard.IsMultipleOf(${e}, ${t})`}function wt(e){return e instanceof Boolean}function Tt(e){return e instanceof Number}function Et(e){return e instanceof String}function Dt(e){return globalThis.ArrayBuffer.isView(e)}function Ot(e){return e instanceof globalThis.RegExp}function kt(e){return e instanceof globalThis.Date}function At(e){return e instanceof globalThis.Set}function jt(e){return e instanceof globalThis.Map}var Mt=oe;function Nt(e){return m(e)&&y(e,`~guard`)}function Pt(e){return e}function Ft(e){return e.map(e=>zt(e))}function It(e){let t={},n=Object.getOwnPropertyDescriptors(e);for(let e of Object.keys(n)){let r=n[e];y(r,`value`)&&Object.defineProperty(t,e,{...r,value:zt(r.value)})}return t}function Lt(e){return new RegExp(e.source,e.flags)}function Rt(e){return e}function zt(e){return e instanceof RegExp?Lt(e):Nt(e)?Pt(e):d(e)?Ft(e):m(e)?It(e):Rt(e)}function Bt(e){return n.clone+=1,zt(e)}const Vt={immutableTypes:!1,maxErrors:8,useAcceleration:!0,exactOptionalPropertyTypes:!1,enumerableKind:!1,correctiveParse:!1,unionPrioritySort:!0};function Ht(){return Vt}function Ut(e,t){for(let n of Object.keys(t))Object.defineProperty(e,n,{configurable:!0,writable:!0,enumerable:!1,value:t[n]});return e}function Wt(e,t){return{...e,...t}}function E(e,t,r={}){n.create+=1;let i=Ht(),a=Wt(t,r),o=i.enumerableKind?Wt(a,e):Ut(a,e);return i.immutableTypes?Object.freeze(o):o}function Gt(e,t){n.discard+=1;let r={},i=Object.getOwnPropertyDescriptors(Bt(e)),a=new Set(t);for(let e of Object.keys(i))a.has(e)||Object.defineProperty(r,e,i[e]);return r}function D(e,t,r){n.update+=1;let i=Ht(),a=Bt(e);for(let e of Object.keys(t))Object.defineProperty(a,e,{configurable:!0,writable:!0,enumerable:i.enumerableKind,value:t[e]});for(let e of Object.keys(r))Object.defineProperty(a,e,{configurable:!0,enumerable:!0,writable:!0,value:r[e]});return a}function O(e,t){return m(e)&&y(e,`~kind`)&&_(e[`~kind`],t)}function Kt(e){return m(e)}function k(e,t,n){return E({"~kind":`Deferred`},{type:`deferred`,action:e,parameters:t,options:n},{})}function qt(e){return O(e,`Deferred`)}function Jt(e){return{enumerable:Ht().enumerableKind,writable:!1,configurable:!1,value:e}}var Yt=class{constructor(){globalThis.Object.defineProperty(this,`~kind`,Jt(`Base`)),globalThis.Object.defineProperty(this,`~guard`,Jt({check:e=>this.Check(e),errors:e=>this.Errors(e)}))}Check(e){return!0}Errors(e){return[]}Convert(e){return e}Clean(e){return e}Default(e){return e}Create(){throw Error(`Create not implemented`)}Clone(){throw Error(`Clone not implemented`)}};function Xt(e){return O(e,`Base`)}function Zt(e,t){return E({"~kind":`Array`},{type:`array`,items:e},t)}function Qt(e){return O(e,`Array`)}function $t(e){return Gt(e,[`~kind`,`type`,`items`])}function en(e,t){return E({"~kind":`AsyncIterator`},{type:`asyncIterator`,iteratorItems:e},t)}function tn(e){return O(e,`AsyncIterator`)}function nn(e){return Gt(e,[`~kind`,`type`,`iteratorItems`])}function rn(e,t,n={}){return E({"~kind":`Constructor`},{type:`constructor`,parameters:e,instanceType:t},n)}function an(e){return O(e,`Constructor`)}function on(e){return Gt(e,[`~kind`,`type`,`parameters`,`instanceType`])}function sn(e,t,n={}){return E({"~kind":`Function`},{type:`function`,parameters:e,returnType:t},n)}function cn(e){return O(e,`Function`)}function ln(e){return Gt(e,[`~kind`,`type`,`parameters`,`returnType`])}function un(e,t){return E({"~kind":`Ref`},{$ref:e},t)}function dn(e){return O(e,`Ref`)}function fn(e,t){return E({"~kind":`Generic`},{type:`generic`,parameters:e,expression:t})}function pn(e){return O(e,`Generic`)}function mn(e){return E({"~kind":`Any`},{},e)}function hn(e){return O(e,`Any`)}function gn(e){return E({"~kind":`Never`},{not:{}},e)}function _n(e){return O(e,`Never`)}function vn(e){return D(e,{"~optional":!0},{})}function yn(e,t){return D(vn(e),{},t)}function bn(e,t,n,r){return yn(J(e,t,n),r)}function xn(e,t={}){return k(`AddOptional`,[e],t)}function Sn(e,t={}){return yn(e,t)}function Cn(e){return Sn(e)}function wn(e){return Kt(e)&&y(e,`~optional`)}function Tn(e){return x(e).filter(t=>!wn(e[t]))}function En(e){return x(e)}function Dn(e){return je(e)}function A(e,t={}){let n=Tn(e);return E({"~kind":`Object`},{type:`object`,...n.length>0?{required:n}:{},properties:e},t)}function j(e){return O(e,`Object`)}function On(e){return Gt(e,[`~kind`,`type`,`properties`,`required`])}function kn(e){return E({"~kind":`Unknown`},{},e)}function An(e){return O(e,`Unknown`)}function jn(e,t,n){return E({"~kind":`Cyclic`},{$defs:x(e).reduce((t,n)=>({...t,[n]:D(e[n],{},{$id:n})}),{}),$ref:t},n)}function Mn(e){return O(e,`Cyclic`)}function Nn(e){return D(e,{"~unsafe":null},{})}function Pn(e){return me(e)&&y(e,`~unsafe`)&&pe(e[`~unsafe`])}function Fn(e,t){return t[e.length]?.(...e)??(()=>{throw Error(`Invalid Arguments`)})()}function In(...e){let[t,n]=Fn(e,{2:(e,t)=>[e,t,t],1:e=>[e,kn(),kn()]});return E({"~kind":`Infer`},{type:`infer`,name:t,extends:n},{})}function Ln(e){return O(e,`Infer`)}function Rn(e,t,n,r={}){return E({"~kind":`Dependent`},{if:e,then:t,else:n},r)}function zn(e){return O(e,`Dependent`)}function Bn(e){return Gt(e,[`~kind`,`if`,`then`,`else`])}function Vn(e){return me(e)}function Hn(e){return x(e).filter(e=>isNaN(e)).reduce((t,n)=>[...t,e[n]],[])}function Un(e,t){return E({"~kind":`Enum`},{enum:Vn(e)?Hn(e):e},t)}function Wn(e){return O(e,`Enum`)}function Gn(e,t={}){return E({"~kind":`Intersect`},{allOf:e},t)}function M(e){return O(e,`Intersect`)}function Kn(e){return Gt(e,[`~kind`,`allOf`])}let qn;function Jn(){try{return Xn(`null`)(),!0}catch{return!1}}function Yn(){return g(qn)&&(qn=Jn()),qn&&Ht().useAcceleration}function Xn(...e){return new globalThis.Function(...e)}function Zn(){throw Error(`Unreachable`)}var Qn=t({Hash:()=>Dr,HashCode:()=>Er});function $n(e){let t=new Set,n=e;for(;n&&n!==Object.prototype;){for(let e of Reflect.ownKeys(n))e!==`constructor`&&typeof e!=`symbol`&&t.add(e);n=Object.getPrototypeOf(n)}return[...t]}function er(e){return typeof e==`number`}var tr;(function(e){e[e.Array=0]=`Array`,e[e.BigInt=1]=`BigInt`,e[e.Boolean=2]=`Boolean`,e[e.Date=3]=`Date`,e[e.Constructor=4]=`Constructor`,e[e.Function=5]=`Function`,e[e.Null=6]=`Null`,e[e.Number=7]=`Number`,e[e.Object=8]=`Object`,e[e.RegExp=9]=`RegExp`,e[e.String=10]=`String`,e[e.Symbol=11]=`Symbol`,e[e.TypeArray=12]=`TypeArray`,e[e.Undefined=13]=`Undefined`})(tr||={});let nr=BigInt(`14695981039346656037`);const[rr,ir]=[BigInt(`1099511628211`),BigInt(`18446744073709551616`)],ar=Array.from({length:256}).map((e,t)=>BigInt(t)),or=new Float64Array(1),sr=new DataView(or.buffer),cr=new Uint8Array(or.buffer);function lr(e){nr^=ar[e],nr=nr*rr%ir}function ur(e){lr(tr.Array);for(let t of e)Tr(t)}function dr(e){lr(tr.BigInt),sr.setBigInt64(0,e);for(let e of cr)lr(e)}function fr(e){lr(tr.Boolean),lr(+!!e)}function pr(e){lr(tr.Constructor),Tr(e.toString())}function mr(e){lr(tr.Date),Tr(e.getTime())}function hr(e){lr(tr.Function),Tr(e.toString())}function gr(e){lr(tr.Null)}function _r(e){lr(tr.Number),sr.setFloat64(0,e,!0);for(let e of cr)lr(e)}function vr(e){lr(tr.Object);for(let t of $n(e).sort())Tr(t),Tr(e[t])}function yr(e){lr(tr.RegExp),xr(e.toString())}const br=new TextEncoder;function xr(e){lr(tr.String);for(let t of br.encode(e))lr(t)}function Sr(e){lr(tr.Symbol),Tr(e.toString())}function Cr(e){lr(tr.TypeArray);let t=new Uint8Array(e.buffer);for(let e=0;ethis.decode(t[`~codec`].decode(e)):this.decode,encode:Ir(t)?n=>t[`~codec`].encode(e(n)):e};return D(this.type,{"~codec":n},{})}},Mr=class{constructor(e){this.type=e}Decode(e){return new jr(this.type,e)}};function Nr(e){return new Mr(e)}function Pr(e,t){return Nr(e).Decode(t).Encode(()=>{throw Error(`Encode not implemented`)})}function Fr(e,t){return Nr(e).Decode(()=>{throw Error(`Decode not implemented`)}).Encode(t)}function Ir(e){return Kt(e)&&y(e,`~codec`)&&m(e[`~codec`])&&y(e[`~codec`],`encode`)&&y(e[`~codec`],`decode`)}function Lr(e){return Cy(e)}function Rr(e){return Kt(e)&&y(e,`~immutable`)}function zr(e){return D(e,{"~readonly":!0},{})}function Br(e,t){return D(zr(e),{},t)}function Vr(e,t,n,r){return Br(J(e,t,n),r)}function Hr(e,t={}){return k(`AddReadonly`,[e],t)}function Ur(e,t={}){return Br(e,t)}function Wr(e){return Ur(e)}function Gr(e){return Kt(e)&&y(e,`~readonly`)}function Kr(e,t){return D(e,{"~refine":Yr(e)?[...e[`~refine`],t]:[t]},{})}function qr(...e){let[t,n,r]=Fn(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[e,t,()=>`Refine Error`]});return Kr(t,{check:n,error:h(r)?()=>r:r})}function Jr(e){return me(e)&&y(e,`check`)&&y(e,`error`)&&ue(e.check)&&ue(e.error)}function Yr(e){return Kt(e)&&y(e,`~refine`)&&d(e[`~refine`])&&Ee(e[`~refine`],0,e=>Jr(e))}function Xr(e){return E({"~kind":`BigInt`},{type:`bigint`},e)}function Zr(e){return O(e,`BigInt`)}function Qr(e){return E({"~kind":`Boolean`},{type:`boolean`},e)}function $r(e){return O(e,`Boolean`)}function ei(e){return E({"~kind":`Identifier`},{name:e})}function ti(e){return O(e,`Identifier`)}const ni=`-?(?:0|[1-9][0-9]*)`;function ri(e){return E({"~kind":`Integer`},{type:`integer`},e)}function ii(e){return O(e,`Integer`)}function ai(e,t){return E({"~kind":`Iterator`},{type:`iterator`,iteratorItems:e},t)}function oi(e){return O(e,`Iterator`)}function si(e){return Gt(e,[`~kind`,`type`,`iteratorItems`])}var ci=class extends Error{constructor(e){super(`Invalid Literal value`),Object.defineProperty(this,"cause",{value:{value:e},writable:!1,configurable:!1,enumerable:!1})}};function li(e){return f(e)?`bigint`:ce(e)?`boolean`:p(e)?`number`:h(e)?`string`:(()=>{throw new ci(e)})()}function N(e,t){return E({"~kind":`Literal`},{type:li(e),const:e},t)}function ui(e){return f(e)||ce(e)||p(e)||h(e)}function di(e){return P(e)&&f(e.const)}function fi(e){return P(e)&&ce(e.const)}function pi(e){return P(e)&&p(e.const)}function mi(e){return P(e)&&h(e.const)}function P(e){return O(e,`Literal`)}function hi(e){return E({"~kind":`Null`},{type:`null`},e)}function gi(e){return O(e,`Null`)}const _i=`-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?`;function vi(e){return E({"~kind":`Number`},{type:`number`},e)}function yi(e){return O(e,`Number`)}function bi(e){return E({"~kind":`Symbol`},{type:`symbol`},e)}function xi(e){return O(e,`Symbol`)}function Si(...e){let[t,n,r]=Fn(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[e,t,t],1:e=>[e,kn(),kn()]});return E({"~kind":`Parameter`},{name:t,extends:n,equals:r},{})}function Ci(e){return O(e,`Parameter`)}function wi(e,t){return E({"~kind":`Promise`},{type:`promise`,item:e},t)}function Ti(e){return O(e,`Promise`)}function Ei(e){return Gt(e,[`~kind`,`type`,`item`])}function Di(e){return E({"~kind":`String`},{type:`string`},e)}function Oi(e){return O(e,`String`)}function F(e,t={}){return E({"~kind":`Union`},{anyOf:e},t)}function I(e){return O(e,`Union`)}function ki(e){return Gt(e,[`~kind`,`anyOf`])}function Ai(e){let t=Wd(e);return _(t.length,2)?t[0]:[]}function ji(e){return!0}function Mi(e){return v(e,(e,t)=>Pi(e)?Mi(t):!1,()=>!0)}function Ni(e){return _(e.length,0)?!1:Mi(e)}function Pi(e){return I(e)?Ni(e.anyOf):P(e)?ji(e.const):!1}function Fi(e){return Ni(e)}function Ii(e){return E({"~kind":`TemplateLiteral`},{type:`string`,pattern:e},{})}function Li(e,t,n=[]){return v(e,(e,r)=>Li(r,t,[...n,`${e}${t}`]),()=>n)}function Ri(e,t){return _(e.length,0)?[`${t}`]:Li(e,t)}function zi(e,t,n=[]){return v(t,(t,r)=>zi(e,r,[...n,...Bi(e,t)]),()=>n)}function Bi(e,t){return I(t)?zi(e,t.anyOf):P(t)?Ri(e,t.const):Zn()}function Vi(e,t){return v(t,(t,n)=>Vi(Bi(e,t),n),()=>e)}function Hi(e){return e.map(e=>N(e))}function Ui(e){return F(Hi(Vi([],e)))}function Wi(e){return _(e.length,0)?Zn():_(e.length,1)&&P(e[0])?e[0]:Ui(e)}function Gi(e){let t=Ai(e);return _(t.length,0)?Di():Fi(t)?Wi(t):Ii(e)}function Ki(e){let t=Gi(e);return Af(t)?Di():t}function qi(e,t){return E({"~kind":`Record`},{type:`object`,patternProperties:{[e]:t}})}function Ji(e){return qi($a,e)}function Yi(e){return A({true:e,false:e})}function Xi(e,t={}){let[n,r,i]=[e,e.length,!1];return E({"~kind":`Tuple`},{type:`array`,additionalItems:i,items:n,minItems:r},t)}function L(e){return O(e,`Tuple`)}function Zi(e){return Gt(e,[`~kind`,`type`,`items`,`minItems`,`additionalItems`])}function Qi(e){return Gt(e,[`~readonly`])}function $i(e,t){return D(Qi(e),{},t)}function ea(e,t,n,r){return $i(J(e,t,n),r)}function ta(e,t={}){return k(`RemoveReadonly`,[e],t)}function na(e,t={}){return $i(e,t)}function ra(e){return Gt(e,[`~optional`])}function ia(e,t){return D(ra(e),{},t)}function aa(e,t,n,r){return ia(J(e,t,n),r)}function oa(e,t={}){return k(`RemoveOptional`,[e],t)}function sa(e,t={}){return ia(e,t)}function ca(e){return e.reduceRight((e,t,n)=>({[n]:t,...e}),{})}function la(e){return A(ca(e.items))}function ua(e,t){return Gr(e)?!!Gr(t):!1}function da(e,t){return wn(e)?!!wn(t):!1}function fa(e,t){let n=ua(e,t),r=da(e,t),i=na(sa(ka([e,t])));return n&&r?Ur(Sn(i)):n&&!r?Ur(i):!n&&r?Sn(i):i}function pa(e,t,n){return n in e?n in t?fa(e[n],t[n]):e[n]:n in t?t[n]:gn()}function ma(e,t){return[...new Set([...x(t),...x(e)])].reduce((n,r)=>({...n,[r]:pa(e,t,r)}),{})}function ha(e){return j(e)?e.properties:L(e)?ca(e.items):Zn()}function ga(e,t){return A(ma(ha(e),ha(t)))}function _a(e,t){let n=Fm(e,t);return _(n,`left-inside`)?e:_(n,`right-inside`)||_(n,`equal`)?t:gn()}function va(e){return j(e)||L(e)}function ya(e,t){let n=I(e),r=I(t);return n||r}function ba(e,t){let n=Ma(e),r=Ma(t),i=ya(n,r),a=va(n),o=va(r);return i?ka([n,r]):a&&o?ga(n,r):a&&!o?n:!a&&o?r:_a(n,r)}function xa(e,t,n=[]){return v(t,(t,r)=>xa(e,r,[...n,ba(e,t)]),()=>_(n.length,0)?[e]:n)}function Sa(e,t,n=[]){return v(e,(e,r)=>Sa(r,t,[...n,...Ca([e],t)]),()=>n)}function Ca(e,t=[]){return v(e,(e,n)=>I(e)?Ca(n,Sa(e.anyOf,t)):Ca(n,xa(e,t)),()=>t)}function wa(e,t){return If(Pm({},e,t))?[]:[e]}function Ta(e,t){return e.reduce((e,n)=>[...e,...wa(n,t)],[])}function Ea(e,t){let n=Ma(e);return ja(Ta(I(n)?n.anyOf:[n],t))}function Da(e,t,n){return ja([Gn([e,t]),Ea(n,e)])}function Oa(e){return ja(e.map(e=>N(e)))}function ka(e){return Na(Bm(Ca(e)))}function Aa(e){return Ma(Ki(e))}function ja(e){return Na(Bm(e))}function Ma(e){return zn(e)?Da(e.if,e.then,e.else):Wn(e)?Oa(e.enum):M(e)?ka(e.allOf):Af(e)?Aa(e.pattern):I(e)?ja(e.anyOf):e}function Na(e){return _(e.length,1)?e[0]:_(e.length,0)?gn():F(e)}function Pa(e,t){return Ja(Oa(e),t)}function Fa(e,t){return qi(Za,t)}function Ia(e,t){return Ja(ka(e),t)}function La(e,t){return h(e)||p(e)?A({[e]:t}):_(e,!1)?A({false:t}):_(e,!0)?A({true:t}):A({})}function Ra(e,t){return qi(Qa,t)}function za(e,t){return y(e,`pattern`)&&(h(e.pattern)||e.pattern instanceof RegExp)?qi(e.pattern.toString(),t):qi($a,t)}function Ba(e,t){return Fi(Ai(e))?Ja(Aa(e),t):qi(e,t)}function Va(e){return I(e)?Ha(e.anyOf):[e]}function Ha(e){return e.reduce((e,t)=>[...e,...Va(t)],[])}function Ua(e){return e.some(e=>Oi(e)||yi(e)||ii(e))}function Wa(e,t){return _(Ua(e),!0)?qi($a,t):void 0}function Ga(e,t){return e.reduce((e,n)=>P(n)&&(h(n.const)||p(n.const))?{...e,[n.const]:t}:e,{})}function Ka(e,t){return A(Ga(e,t))}function qa(e,t){let n=Ha(e),r=Wa(n,t);return Kt(r)?r:Ka(n,t)}function Ja(e,t){return hn(e)?Ji(t):$r(e)?Yi(t):Wn(e)?Pa(e.enum,t):ii(e)?Fa(e,t):M(e)?Ia(e.allOf,t):P(e)?La(e.const,t):yi(e)?Ra(e,t):I(e)?qa(e.anyOf,t):Oi(e)?za(e,t):Af(e)?Ba(e.pattern,t):A({})}function Ya(e,t,n){return q([e])?D(Ja(e,t),{},n):eo(e,t,n)}function Xa(e,t,n,r,i){return Ya(J(e,t,n),J(e,t,r),i)}const Za=`^${ni}$`,Qa=`^${_i}$`,$a=`^.*$`;function eo(e,t,n={}){return k(`Record`,[e,t],n)}function to(e,t,n={}){return Ya(e,t,n)}function no(e,t){return qi(e,t)}function ro(e){return _(e,$a)?Di():_(e,Za)?ri():_(e,Qa)?vi():Gi(e)}function io(e){return x(e.patternProperties)[0]}function ao(e){return ro(io(e))}function oo(e){return e.patternProperties[io(e)]}function so(e){return O(e,`Record`)}function co(e){return E({"~kind":`Rest`},{type:`rest`,items:e},{})}function lo(e){return O(e,`Rest`)}function uo(e){return E({"~kind":`This`},{$ref:`#`},e)}function fo(e){return O(e,`This`)}function po(e){return E({"~kind":`Undefined`},{type:`undefined`},e)}function mo(e){return O(e,`Undefined`)}function ho(e){return E({"~kind":`Void`},{type:`void`},e)}function go(e){return O(e,`Void`)}function _o(e,t){return _(e,`Array`)?Zt(t[0]):_(e,`AsyncIterator`)?en(t[0]):_(e,`Iterator`)?ai(t[0]):_(e,`Promise`)?wi(t[0]):_(e,`Awaited`)?bh(t[0]):_(e,`Capitalize`)?Ah(t[0]):_(e,`ConstructorParameters`)?tg(t[0]):_(e,`Evaluate`)?wy(t[0]):_(e,`Exclude`)?og(t[0],t[1]):_(e,`Extract`)?ug(t[0],t[1]):_(e,`Index`)?yg(t[0],t[1]):_(e,`InstanceType`)?m_(t[0]):_(e,`Lowercase`)?Mh(t[0]):_(e,`NonNullable`)?X_(t[0]):_(e,`Omit`)?tv(t[0],t[1]):_(e,`Parameters`)?cv(t[0]):_(e,`Partial`)?pv(t[0]):_(e,`Pick`)?Cv(t[0],t[1]):_(e,`Readonly`)?kv(t[0]):_(e,`KeyOf`)?y_(t[0]):_(e,`Record`)?eo(t[0],t[1]):_(e,`Required`)?Yv(t[0]):_(e,`ReturnType`)?$v(t[0]):_(e,`Uncapitalize`)?Ph(t[0]):_(e,`Uppercase`)?Ih(t[0]):mh(un(e),t)}function vo(){throw Error(`Unreachable`)}const yo=(e,t=[])=>e.reduce((e,t)=>d(t)&&_(t.length,2)?[...e,t[0]]:[...e,t],[]),bo=e=>{let[t,n]=e;return yo([...t,...n])};function xo(e){return Si(e[0],e[2],e[4])}function So(e){return Si(e[0],e[2],e[2])}function Co(e){return Si(e[0],kn(),e[2])}function wo(e){return Si(e,kn(),kn())}function To(e){return e}function Eo(e){return bo(e)}function Do(e){return e[1]}function Oo(e){return bo(e)}function ko(e){return e[1]}function Ao(e){return _o(e[0],e[1])}function jo(e){return null}function Mo(e){return Di()}function No(e){return vi()}function Po(e){return Qr()}function Fo(e){return po()}function Io(e){return hi()}function Lo(e){return ri()}function Ro(e){return Xr()}function zo(e){return kn()}function Bo(e){return mn()}function Vo(e){return A({})}function Ho(e){return gn()}function Uo(e){return bi()}function Wo(e){return ho()}function Go(e){return uo()}function Ko(e){return N(BigInt(e))}function qo(e){return N(_(e,`true`))}function Jo(e){return N(parseFloat(e))}function Yo(e){return N(e)}function Xo(e){return e[1]}function Zo(e){return N(e)}function Qo(e){return _(e.length,3)?[e[0],e[1],...e[2]]:[e[0]]}function $o(e){return e[1]}function es(e){return Tf(e)}function ts(e){return _(e.length,6)?Rn(e[1],e[3],e[5]):Rn(e[1],e[3],kn())}function ns(e){return e.length>0}function rs(e){return e.reduce((e,t)=>_(t.length,3)?[...e,[t[1]]]:[...e,[]],[])}function is(e){return _(e.length,6)?[e[1],e[3],e[5]]:[]}function as(e){return d(e)&&_(e.length,3)?e[1]:e}function os(e){return _(e.length,2)?e[1]:[]}function ss(e,t){return t.reduce((e,t)=>{let n=t;return _(n.length,1)?yg(e,n[0]):_(n.length,0)?Zt(e):vo()},e)}function cs(e,t){return _(t.length,3)?Xh(e,t[0],t[1],t[2]):e}function ls(e,t){return d(t)&&_(t.length,0)?e:iy(e,t)}function us(e){let[t,n,r,i,a]=e;return ls(cs(t?y_(ss(n,r)):ss(n,r),i),a)}function ds(e,t){return _(t.length,3)?(()=>{let[n,r,i]=t,a=ds(r,i);if(_(n,`&`))return M(a)?Gn([e,...a.allOf]):Gn([e,a]);if(_(n,`|`))return I(a)?F([e,...a.anyOf]):F([e,a]);vo()})():e}function fs(e){return e}function ps(e){let[t,n]=e;return ds(t,n)}function ms(e){return e}function hs(e){let[t,n]=e;return ds(t,n)}function gs(e){return Sy(e[1])}function _s(e){return e[1]}function vs(e){return fn(e[0],e[2])}function ys(e){return _(e.length,4)?In(e[1],e[3]):_(e.length,2)?In(e[1],kn()):vo()}function bs(e){return e}function xs(e){return`${e}`}function Ss(e){return e}function Cs(e){return e}function ws(e){return ii(e[3])?Za:yi(e[3])?Qa:xi(e[3])||Oi(e[3])?$a:vo()}function Ts(e){return e}function Es(e){return e.length>0}function Ds(e){return e.length>0}function Os(e){let[t,n,r,i,a]=e;return{[n]:t&&r?Hr(xn(a)):t&&!r?Hr(a):!t&&r?xn(a):a}}function ks(e){return e}function As(e){return bo(e)}function js(e){return e.reduce((e,t)=>y(t,Za)||y(t,Qa)||y(t,$a)?[e[0],r(e[1],t)]:[r(e[0],t),e[1]],[{},{}])}function Ms(e){return js(e[1])}function Ns(e){let[t,n]=e;return A(t,_(x(n).length,0)?{}:{patternProperties:n})}function Ps(e){return _(e.length,5)?Hr(xn(e[4])):_(e.length,3)?e[2]:_(e.length,4)?_(e[2],`readonly`)?Hr(e[3]):xn(e[3]):vo()}function Fs(e){return Hr(xn(e[1]))}function Is(e){return Hr(e[1])}function Ls(e){return xn(e[0])}function Rs(e){return e}function zs(e){return _(e.length,2)?co(e[1]):_(e.length,1)?e[0]:vo()}function Bs(e){return bo(e)}function Vs(e){return Xi(e[1])}function Hs(e){return Hr(xn(e[4]))}function Us(e){return Hr(e[3])}function Ws(e){return xn(e[3])}function Gs(e){return e[2]}function Ks(e){return e}function qs(e){return _(e.length,2)?co(e[1]):_(e.length,1)?e[0]:vo()}function Js(e){return bo(e)}function Ys(e){return sn(e[1],e[4])}function Xs(e){return rn(e[2],e[5])}function Zs(e,t){return _(e,`remove`)?ta(t):_(e,`add`)?Hr(t):t}function Qs(e){return _(e.length,2)&&_(e[0],`-`)?`remove`:_(e.length,2)&&_(e[0],`+`)||_(e.length,1)?`add`:`none`}function $s(e,t){return _(e,`remove`)?oa(t):_(e,`add`)?xn(t):t}function ec(e){return _(e.length,2)&&_(e[0],`-`)?`remove`:_(e.length,2)&&_(e[0],`+`)||_(e.length,1)?`add`:`none`}function tc(e){return _(e.length,2)?[e[1]]:[]}function nc(e){return d(e[6])&&_(e[6].length,1)?j_(ei(e[3]),e[5],e[6][0],Zs(e[1],$s(e[8],e[10]))):j_(ei(e[3]),e[5],un(e[3]),Zs(e[1],$s(e[8],e[10])))}function rc(e){return un(e)}function ic(e){return BigInt(e)}function ac(e){return parseFloat(e)}function oc(e){return _(e,`true`)}function sc(e){return e}function cc(e){return null}function lc(e){return{[e[0]]:e[2]}}function uc(e){return bo(e)}function dc(e){return e.reduce((e,t)=>r(e,t),{})}function fc(e){return dc(e[1])}function pc(e){return bo(e)}function mc(e){return e[1]}function hc(e){return e}function gc(e){return Xr()}function _c(e){return Di()}function vc(e){return vi()}function yc(e){return ri()}function bc(e){return gn()}function xc(e){return N(e)}function Sc(e){return e}function Cc(e){return F(e[1])}function wc(e){return e.length===3?[...e[0],...e[2]]:e.length===1?[...e[0]]:[]}function Tc(e){return[e[0],...e[1]]}function Ec(e){return e}function Dc(e){return e[1]}function Oc(e){return bo(e)}function kc(e){return _(e.length,2)?e[1]:[]}function Ac(e){let t=e[2],n=e[3],[r,i]=e[4],a=_(x(i).length,0)?{}:{patternProperties:i};return{[e[1]]:fn(t,sm(n,r,a))}}function jc(e){let t=e[2],[n,r]=e[3],i=_(x(r).length,0)?{}:{patternProperties:r};return{[e[1]]:sm(t,n,i)}}function Mc(e){return{[e[1]]:fn(e[2],e[4])}}function Nc(e){return{[e[1]]:e[3]}}function Pc(e){return null}function Fc(e){return e}function Ic(e){return js(bo(e))}function Lc(e){return e[1]}function Rc(e){let t=e[0],n=e[1];return Ey(r(t,n[0]))}function zc(e){return e}function Bc(e){return _(e.length,2)}function R(e,t,n){return Bc(e)?t(e[0],e[1]):n()}function Vc(e,t){return _(t.indexOf(e),0)?[e,t.slice(e.length)]:[]}function Hc(e,t){for(let n=0;nString.fromCharCode(e+n))}const Wc=[...Uc(97,122),...Uc(65,90)],Gc=Uc(49,57),Kc=[`0`,...Gc];function qc(e){let t=e.indexOf(`*/`);return _(t,-1)?``:e.slice(t+2)}function Jc(e){let t=e.indexOf(` -`);return _(t,-1)?``:e.slice(t)}function Yc(e){return e.replace(/^[ \t\r\f\v]+/,``)}function Xc(e){let t=Yc(e);return t.startsWith(`/*`)?Xc(qc(t.slice(2))):t.startsWith(`//`)?Xc(Jc(t.slice(2))):t}function Zc(e){let t=e.trimStart();return t.startsWith(`/*`)?Zc(qc(t.slice(2))):t.startsWith(`//`)?Zc(Jc(t.slice(2))):t}function Qc(e,t){return R(Hc([e],t),(e,t)=>[e,t],()=>[``,t])}function $c(e,t){return e.includes(t)}function el(e,t,n,r=``){return R(Hc(e,n),(n,i)=>$c(t,n)?el(e,t,i,r):el(e,t,i,`${r}${n}`),()=>[r,n])}function tl(e){return Hc(Gc,e)}const nl=[...Kc,`_`];function rl(e){return el(nl,[`_`],e)}function il(e){return R(Hc([`0`],e),(e,t)=>[e,t],()=>R(tl(e),(e,t)=>R(rl(t),(t,n)=>[`${e}${t}`,n],()=>[]),()=>[]))}function al(e){return il(Zc(e))}function ol(e){return Qc(`-`,e)}function sl(e){return R(ol(e),(e,t)=>R(al(t),(t,n)=>[`${e}${t}`,n],()=>[]),()=>[])}function cl(e){return sl(Zc(e))}function ll(e){return R(cl(e),(e,t)=>R(Hc([`n`],t),(t,n)=>[`${e}`,n],()=>[]),()=>[])}function ul(e){return ll(e)}function dl(e,t){return Hc([e],t)}function z(e,t){return _(e,``)?[``,t]:e.startsWith(` -`)?dl(e,Xc(t)):e.startsWith(` `)?dl(e,t):dl(e,Zc(t))}const fl=[...Wc,`_`,`$`];function pl(e){return Hc(fl,e)}const ml=[...fl,...Kc];function hl(e,t=``){return R(Hc(ml,e),(e,n)=>hl(n,`${t}${e}`),()=>[t,e])}function gl(e){return R(pl(e),(e,t)=>R(hl(t),(t,n)=>[`${e}${t}`,n],()=>[]),()=>[])}function B(e){return gl(Zc(e))}const _l=[...Kc,`_`];function vl(e){return Bc(Hc([`.`],e))}function yl(e){return R(el(_l,[`_`],e),(e,t)=>_(e,``)?[]:[e,t],()=>[])}function bl(e){return R(Hc([`.`],e),(e,t)=>R(yl(t),(t,n)=>[`0${e}${t}`,n],()=>[]),()=>[])}function xl(e){return R(al(e),(e,t)=>R(Hc([`.`],t),(t,n)=>R(yl(n),(n,r)=>[`${e}${t}${n}`,r],()=>[`${e}`,n]),()=>[`${e}`,t]),()=>[])}function Sl(e){return vl(e)?bl(e):xl(e)}function Cl(e){return Sl(Zc(e))}function wl(e){return Qc(`-`,e)}function Tl(e){return R(wl(e),(e,t)=>R(Cl(t),(t,n)=>[`${e}${t}`,n],()=>[]),()=>[])}function El(e){return Tl(Zc(e))}function Dl(e){return _(e,``)?[]:[e.slice(0,1),e.slice(1)]}function Ol(e,t){return v(e,(e,n)=>t.startsWith(e)?!0:Ol(n,t),()=>!1)}function kl(e,t,n=``){return R(Dl(t),(r,i)=>Ol(e,t)?[n,t]:kl(e,i,`${n}${r}`),()=>[])}function Al(e,t,n){return R(Hc([e],n),(e,n)=>R(kl([t],n),(e,n)=>R(Hc([t],n),(t,n)=>[`${e}`,n],()=>[]),()=>[]),()=>[])}function jl(e,t,n){return R(Hc([e],n),(e,n)=>R(kl([` -`,t],n),(e,n)=>R(Hc([t],n),(t,n)=>[`${e}`,n],()=>[]),()=>[]),()=>[])}function Ml(e,t,n,r){return n?Al(e,t,Zc(r)):jl(e,t,Zc(r))}function Nl(e,t){return Hc(e,t)}function Pl(e,t){return Ml(e,e,!1,t)}function Fl(e,t){return R(Nl(e,t),(e,t)=>Pl(e,`${e}${t}`),()=>[])}function Il(e,t){return Fl(e,Zc(t))}function Ll(e,t){return R(kl(e,t),(e,t)=>_(e,``)?[]:[e,t],()=>[])}const V=(e,t,n=()=>[])=>e.length===2?t(e):n(),Rl=e=>V(V(B(e),([e,t])=>V(z(`extends`,t),([t,n])=>V(H(n),([n,r])=>V(z(`=`,r),([r,i])=>V(H(i),([i,a])=>[[e,t,n,r,i],a]))))),([e,t])=>[xo(e),t]),zl=e=>V(V(B(e),([e,t])=>V(z(`extends`,t),([t,n])=>V(H(n),([n,r])=>[[e,t,n],r]))),([e,t])=>[So(e),t]),Bl=e=>V(V(B(e),([e,t])=>V(z(`=`,t),([t,n])=>V(H(n),([n,r])=>[[e,t,n],r]))),([e,t])=>[Co(e),t]),Vl=e=>V(B(e),([e,t])=>[wo(e),t]),Hl=e=>V(V(Rl(e),([e,t])=>[e,t],()=>V(zl(e),([e,t])=>[e,t],()=>V(Bl(e),([e,t])=>[e,t],()=>V(Vl(e),([e,t])=>[e,t],()=>[])))),([e,t])=>[To(e),t]),Ul=(e,t=[])=>V(V(Hl(e),([e,t])=>V(z(`,`,t),([t,n])=>[[e,t],n])),([e,n])=>Ul(n,[...t,e]),()=>[t,e]),Wl=e=>V(V(Ul(e),([e,t])=>V(V(V(Hl(t),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>V([[],t],([e,t])=>[e,t],()=>[])),([t,n])=>[[e,t],n])),([e,t])=>[Eo(e),t]),Gl=e=>V(V(z(`<`,e),([e,t])=>V(Wl(t),([t,n])=>V(z(`>`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[Do(e),t]),Kl=(e,t=[])=>V(V(H(e),([e,t])=>V(z(`,`,t),([t,n])=>[[e,t],n])),([e,n])=>Kl(n,[...t,e]),()=>[t,e]),ql=e=>V(V(Kl(e),([e,t])=>V(V(V(H(t),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>V([[],t],([e,t])=>[e,t],()=>[])),([t,n])=>[[e,t],n])),([e,t])=>[Oo(e),t]),Jl=e=>V(V(z(`<`,e),([e,t])=>V(ql(t),([t,n])=>V(z(`>`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[ko(e),t]),Yl=e=>V(V(B(e),([e,t])=>V(Jl(t),([t,n])=>[[e,t],n])),([e,t])=>[Ao(e),t]),Xl=e=>V(V(V(z(`;`,e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>V([[],e],([e,t])=>[e,t],()=>[])),([e,t])=>[jo(e),t]),Zl=e=>V(z(`string`,e),([e,t])=>[Mo(e),t]),Ql=e=>V(z(`number`,e),([e,t])=>[No(e),t]),$l=e=>V(z(`boolean`,e),([e,t])=>[Po(e),t]),eu=e=>V(z(`undefined`,e),([e,t])=>[Fo(e),t]),tu=e=>V(z(`null`,e),([e,t])=>[Io(e),t]),nu=e=>V(z(`integer`,e),([e,t])=>[Lo(e),t]),ru=e=>V(z(`bigint`,e),([e,t])=>[Ro(e),t]),iu=e=>V(z(`unknown`,e),([e,t])=>[zo(e),t]),au=e=>V(z(`any`,e),([e,t])=>[Bo(e),t]),ou=e=>V(z(`object`,e),([e,t])=>[Vo(e),t]),su=e=>V(z(`never`,e),([e,t])=>[Ho(e),t]),cu=e=>V(z(`symbol`,e),([e,t])=>[Uo(e),t]),lu=e=>V(z(`void`,e),([e,t])=>[Wo(e),t]),uu=e=>V(z(`this`,e),([e,t])=>[Go(e),t]),du=e=>V(V(z("${",e),([e,t])=>V(H(t),([t,n])=>V(z(`}`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[Xo(e),t]),fu=e=>V(kl(["${","`"],e),([e,t])=>[Zo(e),t]),pu=e=>V(V(V(fu(e),([e,t])=>V(du(t),([t,n])=>V(pu(n),([n,r])=>[[e,t,n],r]))),([e,t])=>[e,t],()=>V(V(fu(e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>V(V(fu(e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>[]))),([e,t])=>[Qo(e),t]),mu=e=>V(V(z("`",e),([e,t])=>V(pu(t),([t,n])=>V(z("`",n),([n,r])=>[[e,t,n],r]))),([e,t])=>[$o(e),t]),hu=e=>V(mu(e),([e,t])=>[es(e),t]),gu=e=>V(V(V(z(`if`,e),([e,t])=>V(H(t),([t,n])=>V(z(`then`,n),([n,r])=>V(H(r),([r,i])=>V(z(`else`,i),([i,a])=>V(H(a),([a,o])=>[[e,t,n,r,i,a],o])))))),([e,t])=>[e,t],()=>V(V(z(`if`,e),([e,t])=>V(H(t),([t,n])=>V(z(`then`,n),([n,r])=>V(H(r),([r,i])=>[[e,t,n,r],i])))),([e,t])=>[e,t],()=>[])),([e,t])=>[ts(e),t]),_u=e=>V(ul(e),([e,t])=>[Ko(e),t]),vu=e=>V(V(z(`true`,e),([e,t])=>[e,t],()=>V(z(`false`,e),([e,t])=>[e,t],()=>[])),([e,t])=>[qo(e),t]),yu=e=>V(El(e),([e,t])=>[Jo(e),t]),bu=e=>V(Il([`'`,`"`],e),([e,t])=>[Yo(e),t]),xu=e=>V(V(V(z(`keyof`,e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>V([[],e],([e,t])=>[e,t],()=>[])),([e,t])=>[ns(e),t]),Su=(e,t=[])=>V(V(V(z(`[`,e),([e,t])=>V(H(t),([t,n])=>V(z(`]`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[e,t],()=>V(V(z(`[`,e),([e,t])=>V(z(`]`,t),([t,n])=>[[e,t],n])),([e,t])=>[e,t],()=>[])),([e,n])=>Su(n,[...t,e]),()=>[t,e]),Cu=e=>V(Su(e),([e,t])=>[rs(e),t]),wu=e=>V(V(V(z(`extends`,e),([e,t])=>V(H(t),([t,n])=>V(z(`?`,n),([n,r])=>V(H(r),([r,i])=>V(z(`:`,i),([i,a])=>V(H(a),([a,o])=>[[e,t,n,r,i,a],o])))))),([e,t])=>[e,t],()=>V([[],e],([e,t])=>[e,t],()=>[])),([e,t])=>[is(e),t]),Tu=e=>V(V(V(z(`(`,e),([e,t])=>V(H(t),([t,n])=>V(z(`)`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[e,t],()=>V(Zl(e),([e,t])=>[e,t],()=>V(Ql(e),([e,t])=>[e,t],()=>V($l(e),([e,t])=>[e,t],()=>V(eu(e),([e,t])=>[e,t],()=>V(tu(e),([e,t])=>[e,t],()=>V(nu(e),([e,t])=>[e,t],()=>V(ru(e),([e,t])=>[e,t],()=>V(iu(e),([e,t])=>[e,t],()=>V(au(e),([e,t])=>[e,t],()=>V(ou(e),([e,t])=>[e,t],()=>V(su(e),([e,t])=>[e,t],()=>V(cu(e),([e,t])=>[e,t],()=>V(lu(e),([e,t])=>[e,t],()=>V(uu(e),([e,t])=>[e,t],()=>V(_u(e),([e,t])=>[e,t],()=>V(vu(e),([e,t])=>[e,t],()=>V(yu(e),([e,t])=>[e,t],()=>V(bu(e),([e,t])=>[e,t],()=>V(hu(e),([e,t])=>[e,t],()=>V(gu(e),([e,t])=>[e,t],()=>V(Ju(e),([e,t])=>[e,t],()=>V(rd(e),([e,t])=>[e,t],()=>V(pd(e),([e,t])=>[e,t],()=>V(fd(e),([e,t])=>[e,t],()=>V(_d(e),([e,t])=>[e,t],()=>V(Yl(e),([e,t])=>[e,t],()=>V(vd(e),([e,t])=>[e,t],()=>[])))))))))))))))))))))))))))),([e,t])=>[as(e),t]),Eu=e=>V(V(V(z(`with`,e),([e,t])=>V(Od(t),([t,n])=>[[e,t],n])),([e,t])=>[e,t],()=>V([[],e],([e,t])=>[e,t],()=>[])),([e,t])=>[os(e),t]),Du=e=>V(V(xu(e),([e,t])=>V(Tu(t),([t,n])=>V(Cu(n),([n,r])=>V(wu(r),([r,i])=>V(Eu(i),([i,a])=>[[e,t,n,r,i],a]))))),([e,t])=>[us(e),t]),Ou=e=>V(V(V(z(`&`,e),([e,t])=>V(Du(t),([t,n])=>V(Ou(n),([n,r])=>[[e,t,n],r]))),([e,t])=>[e,t],()=>V([[],e],([e,t])=>[e,t],()=>[])),([e,t])=>[fs(e),t]),ku=e=>V(V(Du(e),([e,t])=>V(Ou(t),([t,n])=>[[e,t],n])),([e,t])=>[ps(e),t]),Au=e=>V(V(V(z(`|`,e),([e,t])=>V(ku(t),([t,n])=>V(Au(n),([n,r])=>[[e,t,n],r]))),([e,t])=>[e,t],()=>V([[],e],([e,t])=>[e,t],()=>[])),([e,t])=>[ms(e),t]),ju=e=>V(V(ku(e),([e,t])=>V(Au(t),([t,n])=>[[e,t],n])),([e,t])=>[hs(e),t]),Mu=e=>V(V(z(`readonly`,e),([e,t])=>V(ju(t),([t,n])=>[[e,t],n])),([e,t])=>[gs(e),t]),Nu=e=>V(V(z(`|`,e),([e,t])=>V(ju(t),([t,n])=>[[e,t],n])),([e,t])=>[_s(e),t]),Pu=e=>V(V(Gl(e),([e,t])=>V(z(`=`,t),([t,n])=>V(H(n),([n,r])=>[[e,t,n],r]))),([e,t])=>[vs(e),t]),Fu=e=>V(V(V(z(`infer`,e),([e,t])=>V(B(t),([t,n])=>V(z(`extends`,n),([n,r])=>V(ju(r),([r,i])=>[[e,t,n,r],i])))),([e,t])=>[e,t],()=>V(V(z(`infer`,e),([e,t])=>V(B(t),([t,n])=>[[e,t],n])),([e,t])=>[e,t],()=>[])),([e,t])=>[ys(e),t]),H=e=>V(V(Fu(e),([e,t])=>[e,t],()=>V(Nu(e),([e,t])=>[e,t],()=>V(Mu(e),([e,t])=>[e,t],()=>V(ju(e),([e,t])=>[e,t],()=>[])))),([e,t])=>[bs(e),t]),Iu=e=>V(El(e),([e,t])=>[xs(e),t]),Lu=e=>V(B(e),([e,t])=>[Ss(e),t]),Ru=e=>V(Il([`'`,`"`],e),([e,t])=>[Cs(e),t]),zu=e=>V(V(z(`[`,e),([e,t])=>V(B(t),([t,n])=>V(z(`:`,n),([n,r])=>V(V(nu(r),([e,t])=>[e,t],()=>V(Ql(r),([e,t])=>[e,t],()=>V(Zl(r),([e,t])=>[e,t],()=>V(cu(r),([e,t])=>[e,t],()=>[])))),([r,i])=>V(z(`]`,i),([i,a])=>[[e,t,n,r,i],a]))))),([e,t])=>[ws(e),t]),Bu=e=>V(V(Iu(e),([e,t])=>[e,t],()=>V(Lu(e),([e,t])=>[e,t],()=>V(Ru(e),([e,t])=>[e,t],()=>V(zu(e),([e,t])=>[e,t],()=>[])))),([e,t])=>[Ts(e),t]),Vu=e=>V(V(V(z(`readonly`,e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>V([[],e],([e,t])=>[e,t],()=>[])),([e,t])=>[Es(e),t]),Hu=e=>V(V(V(z(`?`,e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>V([[],e],([e,t])=>[e,t],()=>[])),([e,t])=>[Ds(e),t]),Uu=e=>V(V(Vu(e),([e,t])=>V(Bu(t),([t,n])=>V(Hu(n),([n,r])=>V(z(`:`,r),([r,i])=>V(H(i),([i,a])=>[[e,t,n,r,i],a]))))),([e,t])=>[Os(e),t]),Wu=e=>V(V(V(z(`,`,e),([e,t])=>V(z(` -`,t),([t,n])=>[[e,t],n])),([e,t])=>[e,t],()=>V(V(z(`;`,e),([e,t])=>V(z(` -`,t),([t,n])=>[[e,t],n])),([e,t])=>[e,t],()=>V(V(z(`,`,e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>V(V(z(`;`,e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>V(V(z(` -`,e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>[]))))),([e,t])=>[ks(e),t]),Gu=(e,t=[])=>V(V(Uu(e),([e,t])=>V(Wu(t),([t,n])=>[[e,t],n])),([e,n])=>Gu(n,[...t,e]),()=>[t,e]),Ku=e=>V(V(Gu(e),([e,t])=>V(V(V(Uu(t),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>V([[],t],([e,t])=>[e,t],()=>[])),([t,n])=>[[e,t],n])),([e,t])=>[As(e),t]),qu=e=>V(V(z(`{`,e),([e,t])=>V(Ku(t),([t,n])=>V(z(`}`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[Ms(e),t]),Ju=e=>V(qu(e),([e,t])=>[Ns(e),t]),Yu=e=>V(V(V(B(e),([e,t])=>V(z(`?`,t),([t,n])=>V(z(`:`,n),([n,r])=>V(z(`readonly`,r),([r,i])=>V(H(i),([i,a])=>[[e,t,n,r,i],a]))))),([e,t])=>[e,t],()=>V(V(B(e),([e,t])=>V(z(`:`,t),([t,n])=>V(z(`readonly`,n),([n,r])=>V(H(r),([r,i])=>[[e,t,n,r],i])))),([e,t])=>[e,t],()=>V(V(B(e),([e,t])=>V(z(`?`,t),([t,n])=>V(z(`:`,n),([n,r])=>V(H(r),([r,i])=>[[e,t,n,r],i])))),([e,t])=>[e,t],()=>V(V(B(e),([e,t])=>V(z(`:`,t),([t,n])=>V(H(n),([n,r])=>[[e,t,n],r]))),([e,t])=>[e,t],()=>[])))),([e,t])=>[Ps(e),t]),Xu=e=>V(V(z(`readonly`,e),([e,t])=>V(H(t),([t,n])=>V(z(`?`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[Fs(e),t]),Zu=e=>V(V(z(`readonly`,e),([e,t])=>V(H(t),([t,n])=>[[e,t],n])),([e,t])=>[Is(e),t]),Qu=e=>V(V(H(e),([e,t])=>V(z(`?`,t),([t,n])=>[[e,t],n])),([e,t])=>[Ls(e),t]),$u=e=>V(V(Yu(e),([e,t])=>[e,t],()=>V(Xu(e),([e,t])=>[e,t],()=>V(Zu(e),([e,t])=>[e,t],()=>V(Qu(e),([e,t])=>[e,t],()=>V(H(e),([e,t])=>[e,t],()=>[]))))),([e,t])=>[Rs(e),t]),ed=e=>V(V(V(z(`...`,e),([e,t])=>V($u(t),([t,n])=>[[e,t],n])),([e,t])=>[e,t],()=>V(V($u(e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>[])),([e,t])=>[zs(e),t]),td=(e,t=[])=>V(V(ed(e),([e,t])=>V(z(`,`,t),([t,n])=>[[e,t],n])),([e,n])=>td(n,[...t,e]),()=>[t,e]),nd=e=>V(V(td(e),([e,t])=>V(V(V(ed(t),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>V([[],t],([e,t])=>[e,t],()=>[])),([t,n])=>[[e,t],n])),([e,t])=>[Bs(e),t]),rd=e=>V(V(z(`[`,e),([e,t])=>V(nd(t),([t,n])=>V(z(`]`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[Vs(e),t]),id=e=>V(V(B(e),([e,t])=>V(z(`?`,t),([t,n])=>V(z(`:`,n),([n,r])=>V(z(`readonly`,r),([r,i])=>V(H(i),([i,a])=>[[e,t,n,r,i],a]))))),([e,t])=>[Hs(e),t]),ad=e=>V(V(B(e),([e,t])=>V(z(`:`,t),([t,n])=>V(z(`readonly`,n),([n,r])=>V(H(r),([r,i])=>[[e,t,n,r],i])))),([e,t])=>[Us(e),t]),od=e=>V(V(B(e),([e,t])=>V(z(`?`,t),([t,n])=>V(z(`:`,n),([n,r])=>V(H(r),([r,i])=>[[e,t,n,r],i])))),([e,t])=>[Ws(e),t]),sd=e=>V(V(B(e),([e,t])=>V(z(`:`,t),([t,n])=>V(H(n),([n,r])=>[[e,t,n],r]))),([e,t])=>[Gs(e),t]),cd=e=>V(V(id(e),([e,t])=>[e,t],()=>V(ad(e),([e,t])=>[e,t],()=>V(od(e),([e,t])=>[e,t],()=>V(sd(e),([e,t])=>[e,t],()=>[])))),([e,t])=>[Ks(e),t]),ld=e=>V(V(V(z(`...`,e),([e,t])=>V(cd(t),([t,n])=>[[e,t],n])),([e,t])=>[e,t],()=>V(V(cd(e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>[])),([e,t])=>[qs(e),t]),ud=(e,t=[])=>V(V(ld(e),([e,t])=>V(z(`,`,t),([t,n])=>[[e,t],n])),([e,n])=>ud(n,[...t,e]),()=>[t,e]),dd=e=>V(V(ud(e),([e,t])=>V(V(V(ld(t),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>V([[],t],([e,t])=>[e,t],()=>[])),([t,n])=>[[e,t],n])),([e,t])=>[Js(e),t]),fd=e=>V(V(z(`(`,e),([e,t])=>V(dd(t),([t,n])=>V(z(`)`,n),([n,r])=>V(z(`=>`,r),([r,i])=>V(H(i),([i,a])=>[[e,t,n,r,i],a]))))),([e,t])=>[Ys(e),t]),pd=e=>V(V(z(`new`,e),([e,t])=>V(z(`(`,t),([t,n])=>V(dd(n),([n,r])=>V(z(`)`,r),([r,i])=>V(z(`=>`,i),([i,a])=>V(H(a),([a,o])=>[[e,t,n,r,i,a],o])))))),([e,t])=>[Xs(e),t]),md=e=>V(V(V(z(`+`,e),([e,t])=>V(z(`readonly`,t),([t,n])=>[[e,t],n])),([e,t])=>[e,t],()=>V(V(z(`-`,e),([e,t])=>V(z(`readonly`,t),([t,n])=>[[e,t],n])),([e,t])=>[e,t],()=>V(V(z(`readonly`,e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>V([[],e],([e,t])=>[e,t],()=>[])))),([e,t])=>[Qs(e),t]),hd=e=>V(V(V(z(`+`,e),([e,t])=>V(z(`?`,t),([t,n])=>[[e,t],n])),([e,t])=>[e,t],()=>V(V(z(`-`,e),([e,t])=>V(z(`?`,t),([t,n])=>[[e,t],n])),([e,t])=>[e,t],()=>V(V(z(`?`,e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>V([[],e],([e,t])=>[e,t],()=>[])))),([e,t])=>[ec(e),t]),gd=e=>V(V(V(z(`as`,e),([e,t])=>V(H(t),([t,n])=>[[e,t],n])),([e,t])=>[e,t],()=>V([[],e],([e,t])=>[e,t],()=>[])),([e,t])=>[tc(e),t]),_d=e=>V(V(z(`{`,e),([e,t])=>V(md(t),([t,n])=>V(z(`[`,n),([n,r])=>V(B(r),([r,i])=>V(z(`in`,i),([i,a])=>V(H(a),([a,o])=>V(gd(o),([o,s])=>V(z(`]`,s),([s,c])=>V(hd(c),([c,l])=>V(z(`:`,l),([l,u])=>V(H(u),([u,ee])=>V(Xl(ee),([ee,te])=>V(z(`}`,te),([te,ne])=>[[e,t,n,r,i,a,o,s,c,l,u,ee,te],ne]))))))))))))),([e,t])=>[nc(e),t]),vd=e=>V(B(e),([e,t])=>[rc(e),t]),yd=e=>V(ul(e),([e,t])=>[ic(e),t]),bd=e=>V(El(e),([e,t])=>[ac(e),t]),xd=e=>V(V(z(`true`,e),([e,t])=>[e,t],()=>V(z(`false`,e),([e,t])=>[e,t],()=>[])),([e,t])=>[oc(e),t]),Sd=e=>V(Il([`"`,`'`],e),([e,t])=>[sc(e),t]),Cd=e=>V(z(`null`,e),([e,t])=>[cc(e),t]),wd=e=>V(z(`undefined`,e),([e,t])=>[void 0,t]),Td=e=>V(V(Bu(e),([e,t])=>V(z(`:`,t),([t,n])=>V(Md(n),([n,r])=>[[e,t,n],r]))),([e,t])=>[lc(e),t]),Ed=(e,t=[])=>V(V(Td(e),([e,t])=>V(Wu(t),([t,n])=>[[e,t],n])),([e,n])=>Ed(n,[...t,e]),()=>[t,e]),Dd=e=>V(V(Ed(e),([e,t])=>V(V(V(Td(t),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>V([[],t],([e,t])=>[e,t],()=>[])),([t,n])=>[[e,t],n])),([e,t])=>[uc(e),t]),Od=e=>V(V(z(`{`,e),([e,t])=>V(Dd(t),([t,n])=>V(z(`}`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[fc(e),t]),kd=(e,t=[])=>V(V(Md(e),([e,t])=>V(z(`,`,t),([t,n])=>[[e,t],n])),([e,n])=>kd(n,[...t,e]),()=>[t,e]),Ad=e=>V(V(kd(e),([e,t])=>V(V(V(Md(t),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>V([[],t],([e,t])=>[e,t],()=>[])),([t,n])=>[[e,t],n])),([e,t])=>[pc(e),t]),jd=e=>V(V(z(`[`,e),([e,t])=>V(Ad(t),([t,n])=>V(z(`]`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[mc(e),t]),Md=e=>V(V(yd(e),([e,t])=>[e,t],()=>V(bd(e),([e,t])=>[e,t],()=>V(xd(e),([e,t])=>[e,t],()=>V(Sd(e),([e,t])=>[e,t],()=>V(Cd(e),([e,t])=>[e,t],()=>V(wd(e),([e,t])=>[e,t],()=>V(Od(e),([e,t])=>[e,t],()=>V(jd(e),([e,t])=>[e,t],()=>[])))))))),([e,t])=>[hc(e),t]),Nd=e=>V(z(`-?(?:0|[1-9][0-9]*)n`,e),([e,t])=>[gc(e),t]),Pd=e=>V(z(`.*`,e),([e,t])=>[_c(e),t]),Fd=e=>V(z(`-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?`,e),([e,t])=>[vc(e),t]),Id=e=>V(z(`-?(?:0|[1-9][0-9]*)`,e),([e,t])=>[yc(e),t]),Ld=e=>V(z(`(?!)`,e),([e,t])=>[bc(e),t]),Rd=e=>V(Ll([`-?(?:0|[1-9][0-9]*)n`,`.*`,`-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?`,`-?(?:0|[1-9][0-9]*)`,`(?!)`,`(`,`)`,`$`,`|`],e),([e,t])=>[xc(e),t]),zd=e=>V(V(Nd(e),([e,t])=>[e,t],()=>V(Pd(e),([e,t])=>[e,t],()=>V(Fd(e),([e,t])=>[e,t],()=>V(Id(e),([e,t])=>[e,t],()=>V(Ld(e),([e,t])=>[e,t],()=>V(Bd(e),([e,t])=>[e,t],()=>V(Rd(e),([e,t])=>[e,t],()=>[]))))))),([e,t])=>[Sc(e),t]),Bd=e=>V(V(z(`(`,e),([e,t])=>V(Ud(t),([t,n])=>V(z(`)`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[Cc(e),t]),Vd=e=>V(V(V(Hd(e),([e,t])=>V(z(`|`,t),([t,n])=>V(Vd(n),([n,r])=>[[e,t,n],r]))),([e,t])=>[e,t],()=>V(V(Hd(e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>V([[],e],([e,t])=>[e,t],()=>[]))),([e,t])=>[wc(e),t]),Hd=e=>V(V(zd(e),([e,t])=>V(Ud(t),([t,n])=>[[e,t],n])),([e,t])=>[Tc(e),t]),Ud=e=>V(V(Vd(e),([e,t])=>[e,t],()=>V(Hd(e),([e,t])=>[e,t],()=>[])),([e,t])=>[Ec(e),t]),Wd=e=>V(V(z(`^`,e),([e,t])=>V(Ud(t),([t,n])=>V(z(`$`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[Dc(e),t]),Gd=(e,t=[])=>V(V(H(e),([e,t])=>V(z(`,`,t),([t,n])=>[[e,t],n])),([e,n])=>Gd(n,[...t,e]),()=>[t,e]),Kd=e=>V(V(Gd(e),([e,t])=>V(V(V(H(t),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>V([[],t],([e,t])=>[e,t],()=>[])),([t,n])=>[[e,t],n])),([e,t])=>[Oc(e),t]),qd=e=>V(V(V(z(`extends`,e),([e,t])=>V(Kd(t),([t,n])=>[[e,t],n])),([e,t])=>[e,t],()=>V([[],e],([e,t])=>[e,t],()=>[])),([e,t])=>[kc(e),t]),Jd=e=>V(V(z(`interface`,e),([e,t])=>V(B(t),([t,n])=>V(Gl(n),([n,r])=>V(qd(r),([r,i])=>V(qu(i),([i,a])=>[[e,t,n,r,i],a]))))),([e,t])=>[Ac(e),t]),Yd=e=>V(V(z(`interface`,e),([e,t])=>V(B(t),([t,n])=>V(qd(n),([n,r])=>V(qu(r),([r,i])=>[[e,t,n,r],i])))),([e,t])=>[jc(e),t]),Xd=e=>V(V(z(`type`,e),([e,t])=>V(B(t),([t,n])=>V(Gl(n),([n,r])=>V(z(`=`,r),([r,i])=>V(H(i),([i,a])=>[[e,t,n,r,i],a]))))),([e,t])=>[Mc(e),t]),Zd=e=>V(V(z(`type`,e),([e,t])=>V(B(t),([t,n])=>V(z(`=`,n),([n,r])=>V(H(r),([r,i])=>[[e,t,n,r],i])))),([e,t])=>[Nc(e),t]),Qd=e=>V(V(V(z(`export`,e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>V([[],e],([e,t])=>[e,t],()=>[])),([e,t])=>[Pc(e),t]),$d=e=>V(V(V(z(`;`,e),([e,t])=>V(z(` -`,t),([t,n])=>[[e,t],n])),([e,t])=>[e,t],()=>V(V(z(`;`,e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>V(V(z(` -`,e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>[]))),([e,t])=>[Fc(e),t]),ef=(e,t=[])=>V(V(nf(e),([e,t])=>V($d(t),([t,n])=>[[e,t],n])),([e,n])=>ef(n,[...t,e]),()=>[t,e]),tf=e=>V(V(ef(e),([e,t])=>V(V(V(nf(t),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>V([[],t],([e,t])=>[e,t],()=>[])),([t,n])=>[[e,t],n])),([e,t])=>[Ic(e),t]),nf=e=>V(V(Qd(e),([e,t])=>V(V(Jd(t),([e,t])=>[e,t],()=>V(Yd(t),([e,t])=>[e,t],()=>V(Xd(t),([e,t])=>[e,t],()=>V(Zd(t),([e,t])=>[e,t],()=>[])))),([t,n])=>V(Xl(n),([n,r])=>[[e,t,n],r]))),([e,t])=>[Lc(e),t]),rf=e=>V(V(nf(e),([e,t])=>V(tf(t),([t,n])=>[[e,t],n])),([e,t])=>[Rc(e),t]),af=e=>V(V(rf(e),([e,t])=>[e,t],()=>V(Pu(e),([e,t])=>[e,t],()=>V(H(e),([e,t])=>[e,t],()=>[]))),([e,t])=>[zc(e),t]);function of(e){let t=mu(`\`${e}\``);return _(t.length,2)?t[0]:Zn()}function sf(e){return e.join(`|`)}function cf(e){return e.slice(1,e.length-1)}function lf(e,t,n){return bf(t,`${n}${e}`)}function uf(e,t){return bf(e,`${t}-?(?:0|[1-9][0-9]*)n`)}function df(e,t){return bf(e,`${t}${ni}`)}function ff(e,t){return bf(e,`${t}${_i}`)}function pf(e,t){return yf(F([N(`false`),N(`true`)]),e,t)}function mf(e,t){return bf(e,`${t}.*`)}function hf(e,t,n){return bf(t,`${n}${cf(e)}`)}function gf(e,t,n){return yf(Cf(e,{}),t,n)}function _f(e,t,n){return yf(Oa(e),t,n)}function vf(e,t,n,r=[]){return v(e,(e,i)=>vf(i,t,n,[...r,yf(e,[],``)]),()=>bf(t,`${n}(${sf(r)})`))}function yf(e,t,n){return Wn(e)?_f(e.enum,t,n):ii(e)?df(t,n):P(e)?lf(e.const,t,n):Zr(e)?uf(t,n):$r(e)?pf(t,n):yi(e)?ff(t,n):Oi(e)?mf(t,n):Af(e)?hf(e.pattern,t,n):Ef(e)?gf(e.parameters[0],t,n):I(e)?vf(e.anyOf,t,n):`(?!)`}function bf(e,t){return v(e,(e,n)=>yf(e,n,t),()=>t)}function xf(e){return`^${bf(e,``)}$`}function Sf(e){return Ii(xf(e))}function Cf(e,t){return q(e)?D(Sf(e),{},t):Tf(e,t)}function wf(e,t,n,r){return Cf(my(e,t,n),r)}function Tf(e,t={}){return k(`TemplateLiteral`,[e],t)}function Ef(e){return Kt(e)&&y(e,`action`)&&_(e.action,`TemplateLiteral`)}function Df(e){return Cf(e,{})}function Of(e){return Df(of(e))}function kf(e,t={}){return D(h(e)?Of(e):Df(e),{},t)}function Af(e){return O(e,`TemplateLiteral`)}var jf=t({ExtendsFalse:()=>W,ExtendsTrue:()=>U,ExtendsUnion:()=>Mf,IsExtendsFalse:()=>Ff,IsExtendsTrue:()=>Pf,IsExtendsTrueLike:()=>If,IsExtendsUnion:()=>Nf,Match:()=>Lf});function Mf(e){return E({"~kind":`ExtendsUnion`},{inferred:e})}function Nf(e){return m(e)&&y(e,`~kind`)&&y(e,`inferred`)&&_(e[`~kind`],`ExtendsUnion`)&&m(e.inferred)}function U(e){return E({"~kind":`ExtendsTrue`},{inferred:e})}function Pf(e){return m(e)&&y(e,`~kind`)&&y(e,`inferred`)&&_(e[`~kind`],`ExtendsTrue`)&&m(e.inferred)}function W(){return E({"~kind":`ExtendsFalse`},{})}function Ff(e){return m(e)&&y(e,`~kind`)&&_(e[`~kind`],`ExtendsFalse`)}function If(e){return Nf(e)||Pf(e)}function Lf(e,t,n){return If(e)?t(e.inferred):n()}function Rf(e,t,n,i){return Lf(K(e,n,i),i=>U(r(r(e,i),{[t]:n})),()=>W())}function zf(e,t){return U(e)}function Bf(e,t,n,r,i){return Lf(K(e,t,n),e=>Lf(K(e,t,r),e=>U(e),()=>W()),()=>Lf(K(e,t,i),e=>U(e),()=>W()))}function Vf(e,t,n){return K(e,t,Oa(n))}function Hf(e,t,n){return v(n,(n,r)=>Lf(K(e,t,n),e=>Hf(e,t,r),()=>W()),()=>U(e))}function Uf(e,t,n){return K(e,t,Aa(n))}function Wf(e,t,n){return v(n,(n,r)=>Lf(K(e,t,n),e=>U(e),()=>Wf(e,t,r)),()=>W())}function G(e,t,n){return hn(n)?zf(e,t):zn(n)?Bf(e,t,n.if,n.then,n.else):Wn(n)?Vf(e,t,n.enum):Ln(n)?Rf(e,n.name,t,n.extends):M(n)?Hf(e,t,n.allOf):Af(n)?Uf(e,t,n.pattern):I(n)?Wf(e,t,n.anyOf):An(n)?U(e):W()}function Gf(e,t,n){return Ln(n)?G(e,t,n):hn(n)||An(n)?U(e):Mf(e)}function Kf(e,t){let n=Rr(e),r=Rr(t);return n&&r||!n&&r?!0:!(n&&!r)}function qf(e,t,n,r){return Qt(r)?Kf(t,r)?K(e,n,r.items):W():G(e,t,r)}function Jf(e,t,n){return tn(n)?K(e,t,n.iteratorItems):G(e,en(t),n)}function Yf(e,t,n){return Zr(n)?U(e):G(e,t,n)}function Xf(e,t,n){return $r(n)?U(e):G(e,t,n)}function Zf(e,t,n,r,i){let a=Ln(r)?t:r,o=Ln(r)?r:t,s=wn(t),c=wn(r);return!s&&c?W():Lf(K(e,a,o),e=>ep(e,n,i),()=>W())}function Qf(e,t,n,r){return v(r,(r,i)=>Zf(e,t,n,r,i),()=>wn(t)?U(e):W())}function $f(e,t,n){return v(t,(t,r)=>Qf(e,t,r,n),()=>U(e))}function ep(e,t,n){return $f(e,t,n)}function tp(e,t,n){return go(n)?U(e):K(e,t,n)}function np(e,t,n,r){return hn(r)||An(r)?U(e):an(r)?Lf(ep(e,t,r.parameters),e=>tp(e,n,r.instanceType),()=>W()):W()}function rp(e,t,n,r,i){return Lf(K(e,t,i),()=>K(e,n,i),()=>K(e,r,i))}function ip(e,t,n){return K(e,Oa(t),n)}function ap(e,t,n,r){return hn(r)||An(r)?U(e):cn(r)?Lf(ep(e,t,r.parameters),e=>tp(e,n,r.returnType),()=>W()):W()}function op(e,t,n){return ii(n)||yi(n)?U(e):G(e,t,n)}function sp(e,t,n){return K(e,ka(t),n)}function cp(e,t,n){return oi(n)?K(e,t,n.iteratorItems):G(e,ai(t),n)}function lp(e,t,n){return t===n?U(e):W()}function up(e,t,n){return P(n)?lp(e,t,n.const):Zr(n)?U(e):G(e,N(t),n)}function dp(e,t,n){return P(n)?lp(e,t,n.const):$r(n)?U(e):G(e,N(t),n)}function fp(e,t,n){return P(n)?lp(e,t,n.const):yi(n)?U(e):G(e,N(t),n)}function pp(e,t,n){return P(n)?lp(e,t,n.const):Oi(n)?U(e):G(e,N(t),n)}function mp(e,t,n){return f(t.const)?up(e,t.const,n):ce(t.const)?dp(e,t.const,n):p(t.const)?fp(e,t.const,n):h(t.const)?pp(e,t.const,n):Zn()}function hp(e,t,n){return Ln(n)?G(e,t,n):U(e)}function gp(e,t,n){return gi(n)?U(e):G(e,t,n)}function _p(e,t,n){return yi(n)?U(e):G(e,t,n)}function vp(e,t,n){return wn(t)?wn(n)?U(e):W():U(e)}function yp(e,t,n){return Ln(n)&&_n(n.extends)?W():Lf(K(e,t,n),e=>vp(e,t,n),()=>W())}function bp(e,t){return e.reduce((e,n)=>n in t&&If(t[n])?{...e,...t[n].inferred}:Zn(),{})}function xp(e,t,n){let i={};for(let a of x(n))i[a]=a in t?yp({},t[a],n[a]):wn(n[a])?Ln(n[a])?U(r(e,{[n[a].name]:n[a].extends})):U(e):W();let a=je(i).every(e=>If(e)),o=a?bp(x(i),i):{};return a?U(o):W()}function Sp(e,t,n){let i=xp(e,t,n);return If(i)?U(r(e,i.inferred)):W()}function Cp(e,t,n){return Sp(e,t,n)}function wp(e,t){return x(t).reduce((n,r)=>({...n,[r]:y(e,r)?I(n[r])?F([...n[r].anyOf,t[r]]):F([e[r],t[r]]):t[r]}),e)}function Tp(e,t,n,r){return v(t,(t,i)=>Lf(K({},e[t],n),t=>Tp(e,i,n,wp(r,t)),()=>W()),()=>U(r))}function Ep(e,t,n,r){return Tp(t,x(t),r,e)}function Dp(e,t,n){return so(n)?Ep(e,t,io(n),oo(n)):j(n)?Cp(e,t,n.properties):G(e,A(t),n)}function Op(e,t,n){return Ti(n)?K(e,t,n.item):G(e,wi(t),n)}function kp(e,t){return _(x(t).length,0)?U(e):W()}function Ap(e,t,n,r,i){return K(e,n,i)}function jp(e,t,n,r){return so(r)?Ap(e,ro(t),n,ro(io(r)),oo(r)):j(r)?kp(e,r.properties):hn(r)||An(r)?U(e):W()}function Mp(e,t,n){return Oi(n)?U(e):G(e,t,n)}function Np(e,t,n){return xi(n)?U(e):G(e,t,n)}function Pp(e,t,n){return K(e,Aa(t),n)}function Fp(e,t){return E({"~kind":`Inferrable`},{name:e,type:t},{})}function Ip(e){return m(e)&&y(e,`~kind`)&&y(e,`name`)&&y(e,`type`)&&_(e[`~kind`],`Inferrable`)&&h(e.name)&&m(e.type)}function Lp(e){return lo(e)?Ln(e.items)?Qt(e.items.extends)?Fp(e.items.name,e.items.extends.items):An(e.items.extends)?Fp(e.items.name,e.items.extends):void 0:Zn():void 0}function Rp(e){return Ln(e)?Fp(e.name,e.extends):void 0}function zp(e,t,n=[]){return v(e,(e,r)=>Lf(K({},e,t),()=>zp(r,t,[...n,e]),()=>void 0),()=>n)}function Bp(e,t,n,i){let a=zp(n,i);return d(a)?U(r(e,{[t]:Xi(a)})):W()}function Vp(e,t,n,i){let a=zp(n,i);return d(a)?U(r(e,{[t]:F(a)})):W()}function Hp(e){return[...e].reverse()}function Up(e,t){return t?Hp(e):e}function Wp(e){let t=e.length>0?e[0]:void 0;return Kt(Kt(t)?Lp(t):void 0)}function Gp(e,t,n,r,i,a){return Lf(K(e,n,i),e=>Jp(e,t,r,a),()=>W())}function Kp(e,t,n,r,i){let a=Lp(r);return Ip(a)?Bp(e,a.name,Up(n,t),a.type):v(n,(n,a)=>Gp(e,t,n,a,r,i),()=>W())}function qp(e,t,n,r){return v(r,(r,i)=>Kp(e,t,n,r,i),()=>_(n.length,0)?U(e):W())}function Jp(e,t,n,r){return qp(e,t,n,r)}function Yp(e,t,n){let r=py(e,dy([],[]),n),i=Wp(r);return Jp(e,i,Up(t,i),Up(r,i))}function Xp(e,t,n){let r=Rp(n);return Ip(r)?Vp(e,r.name,t,r.type):v(t,(t,r)=>Lf(K(e,t,n),e=>Xp(e,r,n),()=>W()),()=>U(e))}function Zp(e,t,n){let r=py(e,dy([],[]),t);return L(n)?Yp(e,r,n.items):Qt(n)?Xp(e,r,n.items):G(e,Xi(r),n)}function Qp(e,t,n){return go(n)||mo(n)?U(e):G(e,t,n)}function $p(e,t,n){return v(n,(n,r)=>Lf(K(e,t,n),e=>U(e),()=>$p(e,t,r)),()=>W())}function em(e,t,n){return v(t,(t,r)=>Lf($p(e,t,n),e=>em(e,r,n),()=>W()),()=>U(e))}function tm(e,t,n){let r=Rp(n);return Ip(r)?Vp(e,r.name,t,r.type):I(n)?em(e,t,n.anyOf):em(e,t,[n])}function nm(e,t,n){return Ln(n)?G(e,t,n):hn(n)||An(n)?U(e):W()}function rm(e,t,n){return go(n)?U(e):G(e,t,n)}function K(e,t,n){return hn(t)?Gf(e,t,n):Qt(t)?qf(e,t,t.items,n):tn(t)?Jf(e,t.iteratorItems,n):Zr(t)?Yf(e,t,n):$r(t)?Xf(e,t,n):an(t)?np(e,t.parameters,t.instanceType,n):zn(t)?rp(e,t.if,t.then,t.else,n):Wn(t)?ip(e,t.enum,n):cn(t)?ap(e,t.parameters,t.returnType,n):ii(t)?op(e,t,n):M(t)?sp(e,t.allOf,n):oi(t)?cp(e,t.iteratorItems,n):P(t)?mp(e,t,n):_n(t)?hp(e,t,n):gi(t)?gp(e,t,n):yi(t)?_p(e,t,n):j(t)?Dp(e,t.properties,n):Ti(t)?Op(e,t.item,n):so(t)?jp(e,io(t),oo(t),n):Oi(t)?Mp(e,t,n):xi(t)?Np(e,t,n):Af(t)?Pp(e,t.pattern,n):L(t)?Zp(e,t.items,n):mo(t)?Qp(e,t,n):I(t)?tm(e,t.anyOf,n):An(t)?nm(e,t,n):go(t)?rm(e,t,n):W()}function im(e,t){return ka([...e,A(t)])}function am(e,t,n){return q(e)?D(im(e,t),{},n):sm(e,t,n)}function om(e,t,n,r,i){return am(my(e,t,n),fy(e,t,r),i)}function sm(e,t,n={}){return k(`Interface`,[e,t],n)}function cm(e){return Kt(e)&&y(e,`action`)&&_(e.action,`Interface`)}function lm(e,t,n={}){return am(e,t,n)}function um(e,t,n){return e.includes(n)?!0:pm([...e,n],t,t[n])}function dm(e,t,n){return fm(e,t,Dn(n))}function fm(e,t,n){return v(n,(n,r)=>pm(e,t,n)?!0:fm(e,t,r),()=>!1)}function pm(e,t,n){return dn(n)?um(e,t,n.$ref):Qt(n)?pm(e,t,n.items):tn(n)?pm(e,t,n.iteratorItems):an(n)?fm(e,t,[...n.parameters,n.instanceType]):cn(n)?fm(e,t,[...n.parameters,n.returnType]):cm(n)?dm(e,t,n.parameters[1]):M(n)?fm(e,t,n.allOf):oi(n)?pm(e,t,n.iteratorItems):j(n)?dm(e,t,n.properties):Ti(n)?pm(e,t,n.item):I(n)?fm(e,t,n.anyOf):L(n)?fm(e,t,n.items):so(n)?pm(e,t,oo(n)):!1}function mm(e,t,n){return pm(e,t,n)}function hm(e,t){return t.reduce((t,n)=>mm([n],e,e[n])?[...t,n]:t,[])}function gm(e){return hm(e,En(e))}function _m(e,t,n){return n.includes(t)?n:t in e?bm(e,e[t],[...n,t]):Zn()}function vm(e,t,n){return ym(e,Dn(t),n)}function ym(e,t,n){return t.reduce((t,n)=>bm(e,n,t),n)}function bm(e,t,n){return dn(t)?_m(e,t.$ref,n):Qt(t)?bm(e,t.items,n):tn(t)?bm(e,t.iteratorItems,n):an(t)?ym(e,[...t.parameters,t.instanceType],n):cn(t)?ym(e,[...t.parameters,t.returnType],n):cm(t)?vm(e,t.parameters[1],n):M(t)?ym(e,t.allOf,n):oi(t)?bm(e,t.iteratorItems,n):j(t)?vm(e,t.properties,n):Ti(t)?bm(e,t.item,n):I(t)?ym(e,t.anyOf,n):L(t)?ym(e,t.items,n):so(t)?bm(e,oo(t),n):n}function xm(e,t,n){return bm(e,n,[t])}function Sm(e){return mn()}function Cm(e){return x(e).reduce((t,n)=>({...t,[n]:Tm(e[n])}),{})}function wm(e){return e.reduce((e,t)=>[...e,Tm(t)],[])}function Tm(e){return dn(e)?Sm(e.$ref):Qt(e)?Zt(Tm(e.items),$t(e)):tn(e)?en(Tm(e.iteratorItems)):an(e)?rn(wm(e.parameters),Tm(e.instanceType)):cn(e)?sn(wm(e.parameters),Tm(e.returnType)):M(e)?Gn(wm(e.allOf)):oi(e)?ai(Tm(e.iteratorItems)):j(e)?A(Cm(e.properties)):Ti(e)?wi(Tm(e.item)):so(e)?to(ao(e),Tm(oo(e))):I(e)?F(wm(e.anyOf)):L(e)?Xi(wm(e.items)):e}function Em(e,t){return t in e?Tm(e[t]):kn()}function Dm(e){return Em(e.$defs,e.$ref)}function Om(e,t,n){let r=my(e,dy([],[]),t),i=fy({},dy([],[]),n);return ka([...r,A(i)])}function km(e,t){return x(e).filter(e=>t.includes(e)).reduce((t,n)=>{let r=e[n],i=cm(r)?Om(e,r.parameters[0],r.parameters[1]):r;return{...t,[n]:i}},{})}function Am(e,t,n){return jn(km(e,xm(e,t,n)),t)}function jm(e,t){return t in e?dn(e[t])?jm(e,e[t].$ref):e[t]:gn()}function Mm(e,t){return jm(e,t)}function Nm(e){return Mn(e)?Dm(e):Pn(e)?kn():e}function Pm(e,t,n){return K(e,Nm(t),Nm(n))}function Fm(e,t){let n=[An(e)?W():Pm({},e,t),An(e)?U({}):Pm({},t,e)];return If(n[0])&&If(n[1])?`equal`:If(n[0])&&Ff(n[1])?`left-inside`:Ff(n[0])&&If(n[1])?`right-inside`:`disjoint`}function Im(e,t){return t.filter(t=>Fm(e,t)!==`right-inside`)}function Lm(e,t){return _(t.some(t=>{let n=Fm(e,t);return _(n,`left-inside`)||_(n,`equal`)}),!1)}function Rm(e,t){let n=Ma(e);return hn(n)?[n]:Lm(n,t)?[...Im(n,t),n]:t}function zm(e){return e.reduce((e,t)=>j(t)?[...e,t]:_n(t)?e:Rm(t,e),[])}function Bm(e){return Ha(zm(e))}function Vm(e,t){return D(Ma(e),{},t)}function Hm(e,t,n,r){return Vm(J(e,t,n),r)}function Um(e,t=[]){return qt(e)&&_(e.action,`Conditional`)?dn(e.parameters[0])?Um(e.parameters[2],Um(e.parameters[3],[...t,e.parameters[0].$ref])):Um(e.parameters[2],Um(e.parameters[3],t)):qt(e)&&_(e.action,`Mapped`)&&qt(e.parameters[1])&&_(e.parameters[1].action,`KeyOf`)&&dn(e.parameters[1].parameters[0])?[...t,e.parameters[1].parameters[0].$ref]:t}function Wm(e,t){return e.reduce((e,n)=>[...e,t.includes(n.name)],[])}function Gm(e,t,n=[]){return v(e,(e,r)=>v(t,(t,i)=>Gm(r,i,[...n,[t,e]]),()=>n),()=>n)}function Km(e){return I(e)?[...e.anyOf]:[e]}function qm(e,t){return e.reduce((e,n)=>[...e,[...n,t]],[])}function Jm(e,t){return t.reduce((t,n)=>[...t,...qm(e,n)],[])}function Ym(e){return e.reduce((e,t)=>_(t[0],!0)?Jm(e,Km(t[1])):Jm(e,[t[1]]),[[]])}function Xm(e,t,n){let r=Gm(t,Wm(e,Um(n)));return qt(n)&&_(n.action,`Conditional`)||qt(n)&&_(n.action,`Mapped`)?Ym(r):[t]}function Zm(){return[`(not-resolvable)`,gn()]}function Qm(){return[`(not-generic)`,gn()]}function $m(e,t,n){return[e,fn(t,n)]}function eh(e,t,n){return t in e?th(e,t,e[t],n):Zm()}function th(e,t,n,r){return pn(n)?$m(t,n.parameters,n.expression):dn(n)?eh(e,n.$ref,r):Qm()}function nh(e,t,n){return th(e,`(anonymous)`,t,n)}function rh(e,t,n){if(Ln(t)||gh(t)||If(Pm({},t,n)))return;let r={parameter:e,expect:n,actual:t};throw Error(`Argument for parameter ${e} does not satisfy constraint`,{cause:r})}function ih(e,t,n,i,a){let o=J(e,t,a);return rh(n,o,i),r(e,{[n]:o})}function ah(e,t,n,r,i){let a=J(e,t,n.extends),o=J(e,t,n.equals);return v(i,(i,o)=>oh(ih(e,t,n.name,a,i),t,r,o),()=>oh(ih(e,t,n.name,a,o),t,r,[]))}function oh(e,t,n,r){return v(n,(n,i)=>ah(e,t,n,i,r),()=>e)}function sh(e,t,n,r){return oh(e,t,n,r)}function ch(e){return ge(e.callstack.length,0)?e.callstack[e.callstack.length-1]:``}function lh(e,t){return _(ch(e),t)}function uh(e,t,n,r,i,a){let o=sh(e,t,r,a),s=J(o,dy([...t.callstack,n.$ref],t.visited),i);return J(o,dy([],[]),s)}function dh(e,t,n,r,i,a){return a.reduce((a,o)=>[...a,uh(e,t,n,r,i,o)],[])}function fh(e,t,n,r,i,a){let o=dh(e,t,n,r,i,Xm(r,a,i));return _(o.length,1)?o[0]:ja(o)}function ph(e,t,n,r){let i=my(e,t,r),a=nh(e,n,r),o=a[0],s=a[1];return pn(s)?lh(t,o)?mh(un(o),i):fh(e,t,un(o),s.parameters,s.expression,i):mh(n,i)}function mh(e,t){return E({"~kind":`Call`},{type:`call`,target:e,arguments:t},{})}function hh(e,t){return ph({},dy([],[]),e,t)}function gh(e){return O(e,`Call`)}function _h(e){return Gt(e,[`~immutable`])}function vh(e,t){return D(_h(e),{},t)}function yh(e,t,n,r){return vh(J(e,t,n),r)}function bh(e,t={}){return k(`Awaited`,[e],t)}function xh(e,t={}){return Ch(e,t)}function Sh(e){return Ti(e)?Sh(e.item):e}function Ch(e,t){return q([e])?D(Sh(e),{},t):bh(e,t)}function wh(e,t,n,r){return Ch(J(e,t,n),r)}function Th(e,t){return e(t)}function Eh(e,t){return h(t)?N(Th(e,t)):N(t)}function Dh(e,t){return kh(e,Aa(t))}function Oh(e,t){return F(t.map(t=>kh(e,t)))}function kh(e,t){return P(t)?Eh(e,t.const):Af(t)?Dh(e,t.pattern):I(t)?Oh(e,t.anyOf):t}function Ah(e,t={}){return k(`Capitalize`,[e],t)}function jh(e,t={}){return Hh(e,t)}function Mh(e,t={}){return k(`Lowercase`,[e],t)}function Nh(e,t={}){return Uh(e,t)}function Ph(e,t={}){return k(`Uncapitalize`,[e],t)}function Fh(e,t={}){return Wh(e,t)}function Ih(e,t={}){return k(`Uppercase`,[e],t)}function Lh(e,t={}){return Gh(e,t)}const Rh=e=>e[0].toUpperCase()+e.slice(1),zh=e=>e.toLowerCase(),Bh=e=>e[0].toLowerCase()+e.slice(1),Vh=e=>e.toUpperCase();function Hh(e,t){return q([e])?D(kh(Rh,e),{},t):Ah(e,t)}function Uh(e,t){return q([e])?D(kh(zh,e),{},t):Mh(e,t)}function Wh(e,t){return q([e])?D(kh(Bh,e),{},t):Ph(e,t)}function Gh(e,t){return q([e])?D(kh(Vh,e),{},t):Ih(e,t)}function Kh(e,t,n,r){return Hh(J(e,t,n),r)}function qh(e,t,n,r){return Uh(J(e,t,n),r)}function Jh(e,t,n,r){return Wh(J(e,t,n),r)}function Yh(e,t,n,r){return Gh(J(e,t,n),r)}function Xh(e,t,n,r,i={}){return k(`Conditional`,[e,t,n,r],i)}function Zh(e,t,n,r,i={}){return $h({},dy([],[]),e,t,n,r,i)}function Qh(e,t,n,r,i,a){let o=Pm(e,n,r);return Nf(o)?F([J(o.inferred,t,i),J(e,t,a)]):Pf(o)?J(o.inferred,t,i):J(e,t,a)}function $h(e,t,n,r,i,a,o){return q([n,r])?D(Qh(e,t,n,r,i,a),{},o):Xh(n,r,i,a,o)}function eg(e,t,n,r,i,a,o){return $h(e,t,J(e,t,n),J(e,t,r),i,a,o)}function tg(e,t={}){return k(`ConstructorParameters`,[e],t)}function ng(e,t={}){return ig(e,t)}function rg(e){let t=an(e)?e.parameters:[];return Xi(py({},dy([],[]),t))}function ig(e,t){return q([e])?D(rg(e),{},t):tg(e,t)}function ag(e,t,n,r){return ig(J(e,t,n),r)}function og(e,t,n={}){return k(`Exclude`,[e,t],n)}function sg(e,t,n={}){return cg(e,t,n)}function cg(e,t,n){return q([e,t])?D(Ea(e,t),{},n):og(e,t,n)}function lg(e,t,n,r,i){return cg(J(e,t,n),J(e,t,r),i)}function ug(e,t,n={}){return k(`Extract`,[e,t],n)}function dg(e,t,n={}){return hg(e,t,n)}function fg(e,t){return If(Pm({},e,t))?[e]:[]}function pg(e,t){return e.reduce((e,n)=>[...e,...fg(n,t)],[])}function mg(e,t){let n=Ma(e);return ja(pg(I(n)?n.anyOf:[n],t))}function hg(e,t,n){return q([e,t])?D(mg(e,t),{},n):ug(e,t,n)}function gg(e,t,n,r,i){return hg(J(e,t,n),J(e,t,r),i)}function _g(e){return e.reduce((e,t)=>ui(t)?[...e,N(t)]:e,[])}function vg(e){return F(_g(e))}function yg(e,t,n={}){return k(`Index`,[e,t],n)}function bg(e,t,n={}){return f_(e,d(t)?vg(t):t,n)}function xg(e,t){return Ag(Mm(e,t))}function Sg(e,t,n){return Ag(Da(e,t,n))}function Cg(e,t){let n=x(e).filter(e=>!y(t,e)),i=x(t).filter(t=>!y(e,t)),a=x(e).filter(e=>y(t,e)),o=n.reduce((t,n)=>({...t,[n]:e[n]}),{}),s=i.reduce((e,n)=>({...e,[n]:t[n]}),{}),c=a.reduce((n,r)=>({...n,[r]:ka([e[r],t[r]])}),{});return r(r(o,s),c)}function wg(e){return e.reduce((e,t)=>Cg(e,Ag(t)),{})}function Tg(e){return e}function Eg(e){return Ag(la(Xi(e)))}function Dg(e,t){return x(e).filter(e=>e in t).reduce((n,r)=>({...n,[r]:ja([e[r],t[r]])}),{})}function Og(e,t){return v(e,(e,n)=>Og(n,Dg(t,Ag(e))),()=>t)}function kg(e){return v(e,(e,t)=>Og(t,Ag(e)),()=>Zn())}function Ag(e){return Mn(e)?xg(e.$defs,e.$ref):zn(e)?Sg(e.if,e.then,e.else):M(e)?wg(e.allOf):I(e)?kg(e.anyOf):L(e)?Eg(e.items):j(e)?Tg(e.properties):{}}function jg(e){return A(Ag(e))}const Mg=RegExp(`^(?:0|[1-9][0-9]*)$`);function Ng(e){let t=`${e}`;return Mg.test(t)?parseInt(t):e}function Pg(e){return N(Ng(e))}function Fg(e){return e.map(e=>Ig(e))}function Ig(e){return M(e)?Gn(Fg(e.allOf)):I(e)?F(Fg(e.anyOf)):P(e)?Pg(e.const):e}function Lg(e,t){return If(Pm({},Ig(t),vi()))?e:P(t)&&_(t.const,`length`)?vi():gn()}function Rg(e,t){return Gg(Mm(e,t))}function zg(e,t,n){return Gg(Da(e,t,n))}function Bg(e){return Gg(Oa(e))}function Vg(e){return Gg(ka(e))}function Hg(e){return[`${e}`]}function Ug(e){return Gg(Aa(e))}function Wg(e){return e.reduce((e,t)=>[...e,...Gg(t)],[])}function Gg(e){return Mn(e)?Rg(e.$defs,e.$ref):zn(e)?zg(e.if,e.then,e.else):Wn(e)?Bg(e.enum):M(e)?Vg(e.allOf):P(e)?Hg(e.const):Af(e)?Ug(e.pattern):I(e)?Wg(e.anyOf):[]}function Kg(e){return Gg(e)}function qg(e,t){return t.map(t=>Jg(e,t))}function Jg(e,t){return Qt(t)?Zt(Jg(e,t.items)):tn(t)?en(Jg(e,t.iteratorItems)):an(t)?rn(qg(e,t.parameters),Jg(e,t.instanceType)):cn(t)?sn(qg(e,t.parameters),Jg(e,t.returnType)):oi(t)?ai(Jg(e,t.iteratorItems)):Ti(t)?wi(Jg(e,t.item)):L(t)?Xi(qg(e,t.items)):I(t)?F(qg(e,t.anyOf)):M(t)?Gn(qg(e,t.allOf)):fo(t)?A(e):t}function Yg(e,t){return Jg(e,t)}function Xg(e,t){return Yg(e,t in e?e[t]:gn())}function Zg(e,t){return t.reduce((t,n)=>[...t,Xg(e,n)],[])}function Qg(e,t){return ja(Zg(e,Kg(t)))}const $g=new RegExp(Za);function e_(e){return e.filter(e=>$g.test(e))}function t_(e){return ja(Zg(e,e_(En(e))))}function n_(e,t){return yi(t)?t_(e):Qg(e,t)}function r_(e){return N(Ng(e))}function i_(e){return e.map(e=>a_(e))}function a_(e){return M(e)?Gn(i_(e.allOf)):I(e)?F(i_(e.anyOf)):P(e)?r_(e.const):e}function o_(e,t){return e.reduceRight((e,n,r)=>If(Pm({},N(r),t))?[n,...e]:e,[])}function s_(e,t){return Na(o_(e,a_(t)))}function c_(e){return Na(e)}function l_(e,t){return P(t)&&_(t.const,`length`)?N(e.length):yi(t)||ii(t)?c_(e):s_(e,t)}function u_(e,t){return Qt(e)?Lg(e.items,t):j(e)?n_(e.properties,t):L(e)?l_(e.items,t):gn()}function d_(e){return Mn(e)||zn(e)||M(e)||I(e)?jg(e):e}function f_(e,t,n){return q([e,t])?D(u_(d_(e),t),{},n):yg(e,t,n)}function p_(e,t,n,r,i){return f_(J(e,t,n),J(e,t,r),i)}function m_(e,t={}){return k(`InstanceType`,[e],t)}function h_(e,t={}){return __(e,t)}function g_(e){return an(e)?e.instanceType:gn()}function __(e,t){return q([e])?D(g_(e),{},t):m_(e,t)}function v_(e,t,n,r={}){return __(J(e,t,n),r)}function y_(e,t={}){return k(`KeyOf`,[e],t)}function b_(e,t={}){return k_(e,t)}function x_(){return F([vi(),Di(),bi()])}function S_(e){return vi()}function C_(e){return e.reduce((e,t)=>ui(t)?[...e,N(Ng(t))]:Zn(),[])}function w_(e){return Na(C_(x(e)))}function T_(e){return ao(e)}function E_(e){return Na(e.map((e,t)=>N(t)))}function D_(e){return hn(e)?x_():Qt(e)?S_(e.items):j(e)?w_(e.properties):so(e)?T_(e):L(e)?E_(e.items):gn()}function O_(e){return Mn(e)||zn(e)||M(e)||I(e)?jg(e):e}function k_(e,t){return q([e])?D(D_(O_(e)),{},t):y_(e,t)}function A_(e,t,n,r){return k_(J(e,t,n),r)}function j_(e,t,n,r,i={}){return k(`Mapped`,[e,t,n,r],i)}function M_(e,t,n,r,i={}){return W_({},dy([],[]),e,t,n,r,i)}function N_(e){return L_(Aa(e))}function P_(e){return e.reduce((e,t)=>[...e,...L_(t)],[])}function F_(e){return L_(Oa(e))}function I_(e){return p(e)?[N(`${e}`)]:[N(e)]}function L_(e){return Wn(e)?F_(e.enum):P(e)?I_(e.const):Af(e)?N_(e.pattern):I(e)?P_(e.anyOf):[e]}function R_(e){return L_(e)}function z_(e){return Af(e)?Aa(e.pattern):e}function B_(e,t,n,i,a,o){let s=r(e,{[n.name]:i}),c=z_(J(s,t,a)),l=J(s,t,o);return pi(c)||mi(c)?{[c.const]:l}:{}}function V_(e,t,n,r,i,a){return r.reduce((r,o)=>[...r,B_(e,t,n,o,i,a)],[])}function H_(e){return e.reduce((e,t)=>[...e,A(t)],[])}function U_(e,t,n,r,i,a){return ka(H_(V_(e,t,n,R_(r),i,a)))}function W_(e,t,n,r,i,a,o){return q([r])?D(U_(e,t,n,r,i,a),{},o):j_(n,r,i,a,o)}function G_(e,t,n,r,i,a,o){return W_(e,t,n,J(e,t,r),i,a,o)}function K_(e,t,n){let i=r(e,t);return x(t).filter(e=>n.includes(e)).reduce((e,n)=>({...e,[n]:Am(i,n,t[n])}),{})}function q_(e,t,n){let i=r(e,t);return x(t).filter(e=>!n.includes(e)).reduce((e,n)=>({...e,[n]:J(i,dy([],[]),t[n])}),{})}function J_(e,t,n){let r=gm(t),i=K_(e,t,r),a=q_(e,t,r);return D({...i,...a},{},n)}function Y_(e,t,n,r){return J_(e,n,r)}function X_(e,t={}){return k(`NonNullable`,[e],t)}function Z_(e,t={}){return $_(e,t)}function Q_(e){return cg(e,F([hi(),po()]),{})}function $_(e,t){return q([e])?D(Q_(e),{},t):X_(e,t)}function ev(e,t,n,r){return $_(J(e,t,n),r)}function tv(e,t,n={}){return k(`Omit`,[e,t],n)}function nv(e,t,n={}){return ov(e,d(t)?vg(t):t,n)}function rv(e){let t=jg(e);return j(t)?t.properties:Zn()}function iv(e,t){return x(e).reduce((n,r)=>t.includes(r)?n:{...n,[r]:e[r]},{})}function av(e,t){return A(iv(rv(e),Kg(t)))}function ov(e,t,n){return q([e,t])?D(av(e,t),{},n):tv(e,t,n)}function sv(e,t,n,r,i){return ov(J(e,t,n),J(e,t,r),i)}function cv(e,t={}){return k(`Parameters`,[e],t)}function lv(e,t={}){return dv(e,t)}function uv(e){let t=cn(e)?e.parameters:[];return Xi(py({},dy([],[]),t))}function dv(e,t){return q([e])?D(uv(e),{},t):cv(e,t)}function fv(e,t,n,r){return dv(J(e,t,n),r)}function pv(e,t={}){return k(`Partial`,[e],t)}function mv(e,t={}){return xv(e,t)}function hv(e,t){let n=bv(Mm(e,t));return jn(r(e,{[t]:n}),t)}function gv(e,t,n){return bv(Da(e,t,n))}function _v(e){return bv(ka(e))}function vv(e){return F(e.map(e=>bv(e)))}function yv(e){return A(x(e).reduce((t,n)=>({...t,[n]:Sn(e[n])}),{}))}function bv(e){return Mn(e)?hv(e.$defs,e.$ref):zn(e)?gv(e.if,e.then,e.else):M(e)?_v(e.allOf):I(e)?vv(e.anyOf):j(e)?yv(e.properties):A({})}function xv(e,t){return q([e])?D(bv(e),{},t):pv(e,t)}function Sv(e,t,n,r){return xv(J(e,t,n),r)}function Cv(e,t,n={}){return k(`Pick`,[e,t],n)}function wv(e,t,n={}){return Dv(e,d(t)?vg(t):t,n)}function Tv(e,t){return x(e).reduce((n,i)=>t.includes(i)?r(n,{[i]:e[i]}):n,{})}function Ev(e,t){return A(Tv(rv(e),Kg(t)))}function Dv(e,t,n){return q([e,t])?D(Ev(e,t),{},n):Cv(e,t,n)}function Ov(e,t,n,r,i){return Dv(J(e,t,n),J(e,t,r),i)}function kv(e,t={}){return k(`ReadonlyObject`,[e],t)}function Av(e,t={}){return Bv(e,t)}const jv=Av;function Mv(e){return Cy(Zt(e))}function Nv(e,t){let n=zv(Mm(e,t));return jn(r(e,{[t]:n}),t)}function Pv(e,t,n){return zv(Da(e,t,n))}function Fv(e){return zv(ka(e))}function Iv(e){return A(x(e).reduce((t,n)=>({...t,[n]:Ur(e[n])}),{}))}function Lv(e){return Cy(Xi(e))}function Rv(e){return F(e.map(e=>zv(e)))}function zv(e){return Qt(e)?Mv(e.items):Mn(e)?Nv(e.$defs,e.$ref):zn(e)?Pv(e.if,e.then,e.else):M(e)?Fv(e.allOf):j(e)?Iv(e.properties):L(e)?Lv(e.items):I(e)?Rv(e.anyOf):e}function Bv(e,t){return q([e])?D(zv(e),{},t):kv(e)}function Vv(e,t,n,r){return Bv(J(e,t,n),r)}function Hv(e,t,n,r){return t.visited.includes(r)?n:r in e?J(e,dy(t.callstack,[...t.visited,r]),e[r]):n}function Uv(e,t){let n=Jv(Mm(e,t));return jn(r(e,{[t]:n}),t)}function Wv(e,t,n){return Jv(Da(e,t,n))}function Gv(e){return Jv(ka(e))}function Kv(e){return F(e.map(e=>Jv(e)))}function qv(e){return A(x(e).reduce((t,n)=>({...t,[n]:sa(e[n])}),{}))}function Jv(e){return Mn(e)?Uv(e.$defs,e.$ref):zn(e)?Wv(e.if,e.then,e.else):M(e)?Gv(e.allOf):I(e)?Kv(e.anyOf):j(e)?qv(e.properties):A({})}function Yv(e,t={}){return k(`Required`,[e],t)}function Xv(e,t={}){return Zv(e,t)}function Zv(e,t){return q([e])?D(Jv(e),{},t):Yv(e,t)}function Qv(e,t,n,r){return Zv(J(e,t,n),r)}function $v(e,t={}){return k(`ReturnType`,[e],t)}function ey(e,t={}){return ny(e,t)}function ty(e){return cn(e)?e.returnType:gn()}function ny(e,t){return q([e])?D(ty(e),{},t):$v(e,t)}function ry(e,t,n,r={}){return ny(J(e,t,n),r)}function iy(e,t){return k(`With`,[e,t],{})}function ay(e,t){return sy(e,t)}function oy(e,t){return ay(e,t)}function sy(e,t){return q([e])?D(e,{},t):iy(e,t)}function cy(e,t,n,r){return sy(J(e,t,n),r)}function ly(e){return lo(e)?L(e.items)?uy(e.items.items):Ln(e.items)||dn(e.items)?[e]:[gn()]:[e]}function uy(e){return e.reduce((e,t)=>[...e,...ly(t)],[])}function dy(e,t){return{callstack:e,visited:t}}function q(e){return v(e,(e,t)=>dn(e)?!1:q(t),()=>!0)}function fy(e,t,n){return x(n).reduce((r,i)=>({...r,[i]:J(e,t,n[i])}),{})}function py(e,t,n){return uy(my(e,t,n))}function my(e,t,n){return n.map(n=>J(e,t,n))}function hy(e,t,n,r,i){return _(n,`AddImmutable`)?xy(e,t,r[0],i):_(n,`RemoveImmutable`)?yh(e,t,r[0],i):_(n,`AddReadonly`)?Vr(e,t,r[0],i):_(n,`RemoveReadonly`)?ea(e,t,r[0],i):_(n,`AddOptional`)?bn(e,t,r[0],i):_(n,`RemoveOptional`)?aa(e,t,r[0],i):_(n,`Awaited`)?wh(e,t,r[0],i):_(n,`Capitalize`)?Kh(e,t,r[0],i):_(n,`Conditional`)?eg(e,t,r[0],r[1],r[2],r[3],i):_(n,`ConstructorParameters`)?ag(e,t,r[0],i):_(n,`Evaluate`)?Hm(e,t,r[0],i):_(n,`Exclude`)?lg(e,t,r[0],r[1],i):_(n,`Extract`)?gg(e,t,r[0],r[1],i):_(n,`Index`)?p_(e,t,r[0],r[1],i):_(n,`InstanceType`)?v_(e,t,r[0],i):_(n,`Interface`)?om(e,t,r[0],r[1],i):_(n,`KeyOf`)?A_(e,t,r[0],i):_(n,`Lowercase`)?qh(e,t,r[0],i):_(n,`Mapped`)?G_(e,t,r[0],r[1],r[2],r[3],i):_(n,`Module`)?Y_(e,t,r[0],i):_(n,`NonNullable`)?ev(e,t,r[0],i):_(n,`Pick`)?Ov(e,t,r[0],r[1],i):_(n,`Parameters`)?fv(e,t,r[0],i):_(n,`Partial`)?Sv(e,t,r[0],i):_(n,`Omit`)?sv(e,t,r[0],r[1],i):_(n,`ReadonlyObject`)?Vv(e,t,r[0],i):_(n,`Record`)?Xa(e,t,r[0],r[1],i):_(n,`Required`)?Qv(e,t,r[0],i):_(n,`ReturnType`)?ry(e,t,r[0],i):_(n,`TemplateLiteral`)?wf(e,t,r[0],i):_(n,`Uncapitalize`)?Jh(e,t,r[0],i):_(n,`Uppercase`)?Yh(e,t,r[0],i):_(n,`With`)?cy(e,t,r[0],r[1]):k(n,r,i)}function gy(e,t,n){return n=Xt(n)?n.Clone():n,dn(n)?Hv(e,t,n,n.$ref):Qt(n)?Zt(J(e,t,n.items),$t(n)):tn(n)?en(J(e,t,n.iteratorItems),nn(n)):gh(n)?ph(e,t,n.target,n.arguments):an(n)?rn(my(e,t,n.parameters),J(e,t,n.instanceType),on(n)):qt(n)?hy(e,t,n.action,n.parameters,n.options):cn(n)?sn(my(e,t,n.parameters),J(e,t,n.returnType),ln(n)):zn(n)?Rn(J(e,t,n.if),J(e,t,n.then),J(e,t,n.else),Bn(n)):M(n)?Gn(my(e,t,n.allOf),Kn(n)):oi(n)?ai(J(e,t,n.iteratorItems),si(n)):j(n)?A(fy(e,t,n.properties),On(n)):Ti(n)?wi(J(e,t,n.item),Ei(n)):so(n)?no(io(n),J(e,t,oo(n))):lo(n)?co(J(e,t,n.items)):L(n)?Xi(py(e,t,n.items),Zi(n)):I(n)?F(my(e,t,n.anyOf),ki(n)):n}function _y(e,t){let n=Rr(e)?Lr(t):t,r=Gr(e)?Wr(n):n;return wn(e)?Cn(r):r}function J(e,t,n){let r=gy(e,t,n);return qt(n)?r:_y(n,r)}function vy(e,t){return J(e,dy([],[]),t)}function yy(e){return D(e,{"~immutable":!0},{})}function by(e,t){return D(yy(e),{},t)}function xy(e,t,n,r){return by(J(e,t,n),r)}function Sy(e,t={}){return k(`AddImmutable`,[e],t)}function Cy(e,t={}){return by(e,t)}function wy(e,t={}){return k(`Evaluate`,[e],t)}function Ty(e,t={}){return Vm(e,t)}function Ey(e,t={}){return k(`Module`,[e],t)}function Dy(e,t={}){return Y_({},dy([],[]),e,t)}function Oy(e,t){let n=Fm(e,t);return _(n,`right-inside`)?1:+!!_(n,`disjoint`)}function ky(e,t,n=[]){return v(t,(r,i)=>_(Oy(e,r),1)?ky(e,i,[...n,r]):[...n,e,...t],()=>[...n,e])}function Ay(e,t=[]){return v(e,(e,n)=>Ay(n,ky(e,t)),()=>t)}function jy(e){return Ay(e)}function My(...e){let[t,n,r]=Fn(e,{2:(e,t)=>h(e)?[{},e,t]:[e,t,{}],3:(e,t,n)=>[e,t,n],1:e=>[{},e,{}]}),i=af(n);return D(d(i)&&_(i.length,2)?J(t,dy([],[]),i[0]):gn(),{},r)}var Y=t({Any:()=>mn,Array:()=>Zt,AsyncIterator:()=>en,Awaited:()=>xh,Base:()=>Yt,BigInt:()=>Xr,Boolean:()=>Qr,Call:()=>hh,Capitalize:()=>jh,Codec:()=>Nr,Conditional:()=>Zh,Constructor:()=>rn,ConstructorParameters:()=>ng,Cyclic:()=>jn,Decode:()=>Pr,DecodeBuilder:()=>Mr,Dependent:()=>Rn,Encode:()=>Fr,EncodeBuilder:()=>jr,Enum:()=>Un,Evaluate:()=>Ty,Exclude:()=>sg,Extends:()=>Pm,ExtendsResult:()=>jf,Extract:()=>dg,Function:()=>sn,Generic:()=>fn,Identifier:()=>ei,Immutable:()=>Lr,Index:()=>bg,Infer:()=>In,InstanceType:()=>h_,Instantiate:()=>vy,Integer:()=>ri,Interface:()=>lm,Intersect:()=>Gn,IsAny:()=>hn,IsArray:()=>Qt,IsAsyncIterator:()=>tn,IsBase:()=>Xt,IsBigInt:()=>Zr,IsBoolean:()=>$r,IsCall:()=>gh,IsCodec:()=>Ir,IsConstructor:()=>an,IsCyclic:()=>Mn,IsDependent:()=>zn,IsEnum:()=>Wn,IsFunction:()=>cn,IsGeneric:()=>pn,IsIdentifier:()=>ti,IsImmutable:()=>Rr,IsInfer:()=>Ln,IsInteger:()=>ii,IsIntersect:()=>M,IsIterator:()=>oi,IsKind:()=>O,IsLiteral:()=>P,IsNever:()=>_n,IsNull:()=>gi,IsNumber:()=>yi,IsObject:()=>j,IsOptional:()=>wn,IsParameter:()=>Ci,IsPromise:()=>Ti,IsReadonly:()=>Gr,IsRecord:()=>so,IsRef:()=>dn,IsRefine:()=>Yr,IsRest:()=>lo,IsSchema:()=>Kt,IsString:()=>Oi,IsSymbol:()=>xi,IsTemplateLiteral:()=>Af,IsThis:()=>fo,IsTuple:()=>L,IsUndefined:()=>mo,IsUnion:()=>I,IsUnknown:()=>An,IsUnsafe:()=>Pn,IsVoid:()=>go,Iterator:()=>ai,KeyOf:()=>b_,Literal:()=>N,Lowercase:()=>Nh,Mapped:()=>M_,Module:()=>Dy,Never:()=>gn,NonNullable:()=>Z_,Null:()=>hi,Number:()=>vi,Object:()=>A,Omit:()=>nv,Optional:()=>Cn,Options:()=>oy,Parameter:()=>Si,Parameters:()=>lv,Partial:()=>mv,Pick:()=>wv,Promise:()=>wi,Readonly:()=>Wr,ReadonlyObject:()=>Av,ReadonlyType:()=>jv,Record:()=>to,RecordKey:()=>ao,RecordPattern:()=>io,RecordValue:()=>oo,Ref:()=>un,Refine:()=>qr,Required:()=>Xv,Rest:()=>co,ReturnType:()=>ey,Script:()=>My,String:()=>Di,Symbol:()=>bi,TemplateLiteral:()=>kf,This:()=>uo,Tuple:()=>Xi,Uncapitalize:()=>Fh,Undefined:()=>po,Union:()=>F,Unknown:()=>kn,Unsafe:()=>Nn,Uppercase:()=>Lh,Void:()=>ho,With:()=>ay});function Ny(e){return m(e)&&y(e,`check`)&&y(e,`errors`)&&ue(e.check)&&ue(e.errors)}function Py(e){return y(e,`~guard`)&&Ny(e[`~guard`])}function Fy(e){return y(e,`~refine`)&&d(e[`~refine`])&&Ee(e[`~refine`],0,e=>m(e)&&y(e,`check`)&&y(e,`error`)&&ue(e.check)&&ue(e.error))}function Iy(e){return m(e)&&!d(e)}function Ly(e){return ce(e)}function X(e){return Iy(e)||Ly(e)}function Ry(e){return y(e,`additionalItems`)&&X(e.additionalItems)}function zy(e){return y(e,`additionalProperties`)&&X(e.additionalProperties)}function By(e){return y(e,`allOf`)&&d(e.allOf)&&e.allOf.every(e=>X(e))}function Vy(e){return y(e,`$anchor`)&&h(e.$anchor)}function Hy(e){return y(e,`anyOf`)&&d(e.anyOf)&&e.anyOf.every(e=>X(e))}function Uy(e){return y(e,`const`)}function Wy(e){return y(e,`contains`)&&X(e.contains)}function Gy(e){return y(e,`default`)}function Ky(e){return y(e,`dependencies`)&&m(e.dependencies)&&Object.values(e.dependencies).every(e=>X(e)||d(e)&&e.every(e=>h(e)))}function qy(e){return y(e,`dependentRequired`)&&m(e.dependentRequired)&&Object.values(e.dependentRequired).every(e=>d(e)&&e.every(e=>h(e)))}function Jy(e){return y(e,`dependentSchemas`)&&m(e.dependentSchemas)&&Object.values(e.dependentSchemas).every(e=>X(e))}function Yy(e){return y(e,`$dynamicAnchor`)&&h(e.$dynamicAnchor)}function Xy(e){return y(e,`$dynamicRef`)&&h(e.$dynamicRef)}function Zy(e){return y(e,`else`)&&X(e.else)}function Qy(e){return y(e,`enum`)&&d(e.enum)}function $y(e){return y(e,`exclusiveMaximum`)&&(p(e.exclusiveMaximum)||f(e.exclusiveMaximum))}function eb(e){return y(e,`exclusiveMinimum`)&&(p(e.exclusiveMinimum)||f(e.exclusiveMinimum))}function tb(e){return y(e,`format`)&&h(e.format)}function nb(e){return y(e,`$id`)&&h(e.$id)}function rb(e){return y(e,`if`)&&X(e.if)}function ib(e){return y(e,`items`)&&(X(e.items)||d(e.items)&&e.items.every(e=>X(e)))}function ab(e){return ib(e)&&d(e.items)}function ob(e){return y(e,`maximum`)&&(p(e.maximum)||f(e.maximum))}function sb(e){return y(e,`maxContains`)&&p(e.maxContains)}function cb(e){return y(e,`maxItems`)&&p(e.maxItems)}function lb(e){return y(e,`maxLength`)&&p(e.maxLength)}function ub(e){return y(e,`maxProperties`)&&p(e.maxProperties)}function db(e){return y(e,`minimum`)&&(p(e.minimum)||f(e.minimum))}function fb(e){return y(e,`minContains`)&&p(e.minContains)}function pb(e){return y(e,`minItems`)&&p(e.minItems)}function mb(e){return y(e,`minLength`)&&p(e.minLength)}function hb(e){return y(e,`minProperties`)&&p(e.minProperties)}function gb(e){return y(e,`multipleOf`)&&(p(e.multipleOf)||f(e.multipleOf))}function _b(e){return y(e,`not`)&&X(e.not)}function vb(e){return y(e,`oneOf`)&&d(e.oneOf)&&e.oneOf.every(e=>X(e))}function yb(e){return y(e,`pattern`)&&(h(e.pattern)||e.pattern instanceof RegExp)}function bb(e){return y(e,`patternProperties`)&&m(e.patternProperties)&&Object.values(e.patternProperties).every(e=>X(e))}function xb(e){return y(e,`prefixItems`)&&d(e.prefixItems)&&e.prefixItems.every(e=>X(e))}function Sb(e){return y(e,`properties`)&&m(e.properties)&&Object.values(e.properties).every(e=>X(e))}function Cb(e){return y(e,`propertyNames`)&&(m(e.propertyNames)||X(e.propertyNames))}function wb(e){return y(e,`$recursiveAnchor`)&&ce(e.$recursiveAnchor)}function Tb(e){return wb(e)&&_(e.$recursiveAnchor,!0)}function Eb(e){return y(e,`$recursiveRef`)&&h(e.$recursiveRef)}function Db(e){return y(e,`$ref`)&&h(e.$ref)}function Ob(e){return y(e,`required`)&&d(e.required)&&e.required.every(e=>h(e))}function kb(e){return y(e,`then`)&&X(e.then)}function Ab(e){return y(e,`type`)&&(h(e.type)||d(e.type)&&e.type.every(e=>h(e)))}function jb(e){return y(e,`uniqueItems`)&&ce(e.uniqueItems)}function Mb(e){return y(e,`unevaluatedItems`)&&X(e.unevaluatedItems)}function Nb(e){return y(e,`unevaluatedProperties`)&&X(e.unevaluatedProperties)}function Pb(e){return Mb(e)||Nb(e)||x(e).some(t=>Ib(e[t]))}function Fb(e){return e.some(e=>Ib(e))}function Ib(e){return d(e)?Fb(e):m(e)?Pb(e):!1}function Lb(e,t){return Ib(t)||x(e).some(t=>Ib(e[t]))}var Rb=class{constructor(e){this.hasUnevaluated=e}UseUnevaluated(){return this.hasUnevaluated}Push(){return C(w(`context`,`Push`),[])}Pop(){return C(w(`context`,`Pop`),[])}AddIndex(e){return C(w(`context`,`AddIndex`),[e])}AddKey(e){return C(w(`context`,`AddKey`),[e])}Merge(e){return C(w(`context`,`Merge`),[e])}},zb=class{constructor(){let e=new Set,t=new Set;this.stack=[{indices:e,keys:t}]}Push(){let e=new Set,t=new Set;return this.stack.push({indices:e,keys:t}),!0}Pop(){return this.stack.pop(),!0}AddIndex(e){return this.GetIndices().add(e),!0}AddKey(e){return this.GetKeys().add(e),!0}GetIndices(){return this.stack[this.stack.length-1].indices}GetKeys(){return this.stack[this.stack.length-1].keys}Merge(e){for(let t of e)t.GetIndices().forEach(e=>this.GetIndices().add(e)),t.GetKeys().forEach(e=>this.GetKeys().add(e));return!0}},Bb=class extends zb{constructor(e){super(),this.callback=e}AddError(e){return this.callback(e),!1}},Vb=class extends Bb{constructor(){super(e=>this.errors.push(e)),this.errors=[]}AddError(e){return this.errors.push(e),!1}GetErrors(){return this.errors}};const Hb={identifier:`External`,variables:[]};function Ub(e){let t=`External[${Hb.variables.length}]`;return Hb.variables.push(e),t}function Wb(){Hb.variables=[]}function Gb(){return{...Hb}}function Kb(e,t,n,r){return C(w(w(Ub(n),`~guard`),`check`),[r])}function qb(e,t,n,r){return n[`~guard`].check(r)}function Jb(e,t,n,r,i,a){return i[`~guard`].check(a)||t.AddError({keyword:`~guard`,schemaPath:n,instancePath:r,params:{errors:i[`~guard`].errors(a)}})}function Yb(e,t,n,r){return st(Ub(n[`~refine`].map(e=>e)),T(0),[`refinement`,`_`],C(w(`refinement`,`check`),[r]))}function Xb(e,t,n,r){return Ee(n[`~refine`],0,(e,t)=>e.check(r))}function Zb(e,t,n,r,i,a){return De(i[`~refine`],0,(e,i)=>e.check(a)||t.AddError({keyword:`~refine`,schemaPath:n,instancePath:r,params:{index:i,message:e.error(a)}}))}let Qb=0;function $b(){return`var_${Qb++}`}function ex(e){return ib(e)&&d(e.items)}function tx(e,t,n,r){if(!ex(n))return T(!0);let[i,a]=[$b(),$b()],o=OT(e,t,n.additionalItems,i),s=nt(a,T(n.items.length)),c=t.AddIndex(a),l=t.UseUnevaluated()?S(s,Le(o,c)):S(s,o);return C(w(r,`every`),[pt([i,a],l)])}function nx(e,t,n,r){return ex(n)?r.every((r,i)=>_e(i,n.items.length)||AT(e,t,n.additionalItems,r)&&t.AddIndex(i)):!0}function rx(e,t,n,r,i,a){return ex(i)?a.every((a,o)=>{let s=`${n}/additionalItems`,c=`${r}/${o}`;return _e(o,i.items.length)||jT(e,t,s,c,i.additionalItems,a)&&t.AddIndex(o)}):!0}function ix(e){return`^${e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}$`}function ax(e){let t=[];return bb(e)&&t.push(...x(e.patternProperties)),Sb(e)&&t.push(...x(e.properties).map(ix)),_(t.length,0)?`(?!)`:`(${t.join(`|`)})`}function ox(e,t,n){return Ob(t)&&Sb(t)&&!bb(t)&&_(t.additionalProperties,!1)&&_(x(t.properties).length,t.required.length)}function sx(e,t,n){return et(w(C(w(`Object`,`getOwnPropertyNames`),[n]),`length`),T(t.required.length))}function cx(e,t,n,r){let[i,a]=[$b(),$b()],o=Ub(new RegExp(ax(n))),s=OT(e,t,n.additionalProperties,`${r}[${i}]`),c=C(w(o,`test`),[i]),l=t.AddKey(i),u=t.UseUnevaluated()?S(c,Le(s,l)):S(c,s);return st(lt(r),T(0),[i,a],u)}function lx(e,t,n,r){return ox(t,n,r)?sx(t,n,r):cx(e,t,n,r)}function ux(e,t,n,r){let i=new RegExp(ax(n));return Ee(x(r),0,(a,o)=>i.test(a)||AT(e,t,n.additionalProperties,r[a])&&t.AddKey(a))}function dx(e,t,n,r,i,a){let o=new RegExp(ax(i)),s=[];return De(x(a),0,(c,l)=>{let u=`${n}/additionalProperties`,ee=`${r}/${c}`,te=new Vb,ne=o.test(c)||jT(e,te,u,ee,i.additionalProperties,a[c])&&t.AddKey(c);return ne||s.push(c),ne})||t.AddError({keyword:`additionalProperties`,schemaPath:n,instancePath:r,params:{additionalProperties:s}})}function fx(e,t,n,r,i){let a=_t(`results`,`[]`),o=n.map((e,t)=>_t(`context_${t}`,mt(`CheckContext`,[]))),s=n.map((n,i)=>_t(`condition_${i}`,C(pt([`context`],kT(e,t,n,r)),[`context_${i}`]))),c=n.map((e,t)=>vt(`condition_${t}`,C(w(`results`,`push`),[`context_${t}`]))),l=yt(Le(i,t.Merge(`results`)));return C(pt([],gt([a,...o,...s,...c,l])),[])}function px(e,t,n,r){return fx(e,t,n.allOf,r,et(w(`results`,`length`),T(n.allOf.length)))}function mx(e,t,n,r){return bt(n.allOf.map(n=>kT(e,t,n,r)))}function hx(e,t,n,r){return t.UseUnevaluated()?px(e,t,n,r):mx(e,t,n,r)}function gx(e,t,n,r){let i=n.allOf.reduce((t,n)=>{let i=new zb;return Q(e,i,n,r)?[...t,i]:t},[]);return _(i.length,n.allOf.length)&&t.Merge(i)}function _x(e,t,n,r,i,a){let o=[],s=i.allOf.reduce((t,i,s)=>{let c=`${n}/allOf/${s}`,l=new Vb,u=MT(e,l,c,r,i,a);return u||o.push(l),u?[...t,l]:t},[]),c=_(s.length,i.allOf.length)&&t.Merge(s);return c||o.forEach(e=>e.GetErrors().forEach(e=>t.AddError(e))),c}function vx(e,t,n,r){return fx(e,t,n.anyOf,r,tt(w(`results`,`length`),T(0)))}function yx(e,t,n,r){return xt(n.anyOf.map(n=>kT(e,t,n,r)))}function bx(e,t,n,r){return t.UseUnevaluated()?vx(e,t,n,r):yx(e,t,n,r)}function xx(e,t,n,r){let i=n.anyOf.reduce((t,n)=>{let i=new zb;return Q(e,i,n,r)?[...t,i]:t},[]);return ge(i.length,0)&&t.Merge(i)}function Sx(e,t,n,r,i,a){let o=[],s=i.anyOf.reduce((t,i,s)=>{let c=new Vb,l=MT(e,c,`${n}/anyOf/${s}`,r,i,a);return l||o.push(c),l?[...t,c]:t},[]),c=ge(s.length,0)&&t.Merge(s);return c||o.forEach(e=>e.GetErrors().forEach(e=>t.AddError(e))),c||t.AddError({keyword:`anyOf`,schemaPath:n,instancePath:r,params:{}})}function Cx(e,t,n,r){return T(!!n)}function wx(e,t,n,r){return n}function Tx(e,t,n,r,i,a){return wx(e,t,i,a)||t.AddError({keyword:`boolean`,schemaPath:n,instancePath:r,params:{}})}function Ex(e,t,n,r){return Se(n.const)?et(r,T(n.const)):dt(r,Ub(n.const))}function Dx(e,t,n,r){return Se(n.const)?_(r,n.const):Pe(r,n.const)}function Ox(e,t,n,r,i,a){return Dx(e,t,i,a)||t.AddError({keyword:`const`,schemaPath:n,instancePath:r,params:{allowedValue:i.const}})}function kx(e){return!(fb(e)&&_(e.minContains,0))}function Ax(e,t,n,r){if(!kx(n))return T(!0);let i=$b();return Le(Re(et(w(r,`length`),T(0))),C(w(r,`some`),[pt([i],kT(e,t,n.contains,i))]))}function jx(e,t,n,r){return kx(n)?!_(r.length,0)&&r.some(r=>Q(e,t,n.contains,r)):!0}function Mx(e,t,n,r,i,a){return jx(e,t,i,a)||t.AddError({keyword:`contains`,schemaPath:n,instancePath:r,params:{minContains:1}})}function Nx(e,t,n,r){return S(et(w(lt(r),`length`),T(0)),bt(b(n.dependencies).map(([n,i])=>{let a=Re(ut(r,T(n))),o=kT(e,t,i,r);return S(a,d(i)?(e=>bt(e.map(e=>ut(r,T(e)))))(i):o)})))}function Px(e,t,n,r){let i=_(x(r).length,0),a=Ee(b(n.dependencies),0,([n,i])=>!y(r,n)||(d(i)?i.every(e=>y(r,e)):Q(e,t,i,r)));return i||a}function Fx(e,t,n,r,i,a){let o=_(x(a).length,0),s=De(b(i.dependencies),0,([i,o])=>{let s=`${n}/dependencies/${i}`;return!y(a,i)||(d(o)?o.every(e=>y(a,e)||t.AddError({keyword:`dependencies`,schemaPath:n,instancePath:r,params:{property:i,dependencies:o}})):MT(e,t,s,r,o,a))});return o||s}function Ix(e,t,n,r){return S(et(w(lt(r),`length`),T(0)),bt(b(n.dependentRequired).map(([e,t])=>S(Re(ut(r,T(e))),bt(t.map(e=>ut(r,T(e))))))))}function Lx(e,t,n,r){let i=_(x(r).length,0),a=Ee(b(n.dependentRequired),0,([e,t])=>!y(r,e)||t.every(e=>y(r,e)));return i||a}function Rx(e,t,n,r,i,a){let o=_(x(a).length,0),s=De(b(i.dependentRequired),0,([e,i])=>!y(a,e)||De(i,0,o=>y(a,o)||t.AddError({keyword:`dependentRequired`,schemaPath:n,instancePath:r,params:{property:e,dependencies:i}})));return o||s}function zx(e,t,n,r){return S(et(w(lt(r),`length`),T(0)),bt(b(n.dependentSchemas).map(([n,i])=>S(Re(ut(r,T(n))),kT(e,t,i,r)))))}function Bx(e,t,n,r){let i=_(x(r).length,0),a=Ee(b(n.dependentSchemas),0,([n,i])=>!y(r,n)||Q(e,t,i,r));return i||a}function Vx(e,t,n,r,i,a){let o=_(x(a).length,0),s=De(b(i.dependentSchemas),0,([i,o])=>{let s=`${n}/dependentSchemas/${i}`;return!y(a,i)||MT(e,t,s,r,o,a)});return o||s}function Hx(e,t,n,r){return RT(e,t,e.DynamicRef(n)??!1,r)}function Ux(e,t,n,r){let i=e.DynamicRef(n)??!1;return X(i)&&Q(e,t,i,r)}function Wx(e,t,n,r,i,a){let o=e.DynamicRef(i)??!1;return X(o)&&MT(e,t,`#`,r,o,a)}function Gx(e,t,n,r){return xt(n.enum.map(e=>Se(e)?et(r,T(e)):dt(r,Ub(e))))}function Kx(e,t,n,r){return n.enum.some(e=>Se(e)?_(r,e):Pe(r,e))}function qx(e,t,n,r,i,a){return Kx(e,t,i,a)||t.AddError({keyword:`enum`,schemaPath:n,instancePath:r,params:{allowedValues:i.enum}})}function Jx(e,t,n,r){return nt(r,T(n.exclusiveMaximum))}function Yx(e,t,n,r){return _e(r,n.exclusiveMaximum)}function Xx(e,t,n,r,i,a){return Yx(e,t,i,a)||t.AddError({keyword:`exclusiveMaximum`,schemaPath:n,instancePath:r,params:{comparison:`<`,limit:i.exclusiveMaximum}})}function Zx(e,t,n,r){return tt(r,T(n.exclusiveMinimum))}function Qx(e,t,n,r){return ge(r,n.exclusiveMinimum)}function $x(e,t,n,r,i,a){return Qx(e,t,i,a)||t.AddError({keyword:`exclusiveMinimum`,schemaPath:n,instancePath:r,params:{comparison:`>`,limit:i.exclusiveMinimum}})}const eS=[0,31,28,31,30,31,30,31,31,30,31,30,31],tS=/^(\d\d\d\d)-(\d\d)-(\d\d)$/;function nS(e){return e%4==0&&(e%100!=0||e%400==0)}function rS(e){let t=tS.exec(e);if(!t)return!1;let n=+t[1],r=+t[2],i=+t[3];return r>=1&&r<=12&&i>=1&&i<=(r===2&&nS(n)?29:eS[r])}const iS=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(?:Z|([+-])(\d\d):(\d\d))?$/i;function aS(e,t=!0){let n=iS.exec(e);if(!n)return!1;let r=+n[1],i=+n[2],a=+n[3],o=n[4]===`-`?-1:1,s=+(n[5]||0),c=+(n[6]||0);if(s>23||c>59||t&&!n[4]&&e.toLowerCase().indexOf(`z`)===-1)return!1;if(r<=23&&i<=59&&a<60)return!0;let l=i-c*o,u=r-s*o-+(l<0);return(u===23||u===-1)&&(l===59||l===-1)&&a<61}function oS(e,t=!0){let n=e.split(/T/i);return n.length===2&&rS(n[0])&&aS(n[1],t)}const sS=/^P((\d+Y(\d+M(\d+D)?)?|\d+M(\d+D)?|\d+D)(T(\d+H(\d+M(\d+S)?)?|\d+M(\d+S)?|\d+S))?|T(\d+H(\d+M(\d+S)?)?|\d+M(\d+S)?|\d+S)|\d+W)$/;function cS(e){return sS.test(e)}const lS=/^(?!.*\.\.)[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i;function uS(e){return lS.test(e)}function dS(e,t,n){e=n?Math.floor(e/700):e>>1,e+=Math.floor(e/t);let r=0;for(;e>455;)e=Math.floor(e/35),r+=36;return r+Math.floor(36*e/(e+38))}function fS(e){let t=[],n=128,r=0,i=72,a=e.lastIndexOf(`-`);if(a>0)for(let n=0;n=128)throw Error(`Invalid punycode: non-basic before delimiter`);t.push(r)}let o=a<0?0:a+1;for(;o=e.length)throw Error(`Invalid punycode: unexpected end of input`);let t=e.charCodeAt(o++),n;if(t>=97&&t<=122)n=t-97;else if(t>=48&&t<=57)n=t-48+26;else if(t>=65&&t<=90)n=t-65;else throw Error(`Invalid punycode: bad digit character`);r+=n*s;let a=c<=i?1:c>=i+26?26:c-i;if(n=1632&&e<=1641}function TS(e){return e>=1776&&e<=1785}function ES(e){return vS.has(e)}function DS(e){if(e.length===0)return!1;let t=[...e].map(e=>e.codePointAt(0)),n=t.length;if(t[0]===45||t[n-1]===45||n>=4&&t[2]===45&&t[3]===45||gS(t[0]))return!1;let r=!1,i=!1,a=!1;for(let e=0;e=4&&e.charCodeAt(2)===45&&e.charCodeAt(3)===45)return!1;for(let t=0;t=97&&n<=122||n>=65&&n<=90||n>=48&&n<=57||n===45))return!1}return!0}function kS(e){return e.toLowerCase().startsWith(`xn--`)}function AS(e){try{return DS(fS(e.slice(4)))}catch{return!1}}function jS(e){return e.length===0||e.length>63?!1:kS(e)?AS(e):DS(e)}function MS(e){return e.length===0||e.length>63?!1:kS(e)?AS(e):OS(e)}function NS(e){if(e.length===0||e.length>253||e.charCodeAt(e.length-1)===46)return!1;for(let t of e.split(`.`))if(!MS(t))return!1;return!0}const PS=/^(?!.*\.\.)[\p{L}\p{N}!#$%&'*+/=?^_`{|}~-]+(?:\.[\p{L}\p{N}!#$%&'*+/=?^_`{|}~-]+)*@[\p{L}\p{N}](?:[\p{L}\p{N}-]{0,61}[\p{L}\p{N}])?(?:\.[\p{L}\p{N}](?:[\p{L}\p{N}-]{0,61}[\p{L}\p{N}])?)*$/iu;function FS(e){return PS.test(e)}function IS(e){if(e.length===0||e.includes(` `))return!1;let t=e.normalize(`NFC`).replace(/[\u002E\u3002\uFF0E\uFF61]/g,`.`);if(t.length>253)return!1;for(let e of t.split(`.`))if(!jS(e))return!1;return!0}function LS(e,t,n){let r=0,i=0,a=0,o=0;for(let s=t;s255||o===48&&a>1)return!1;r++,i=0,a=0,o=0}else if(t>=48&&t<=57)a===0&&(o=t),i=i*10+(t-48),a++;else return!1}return r===3&&a>0&&i<=255&&!(o===48&&a>1)}function RS(e){return LS(e,0,e.length)}function zS(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function BS(e){let t=e.length;if(t===0)return!1;let n=0,r=!1,i=0;if(e.charCodeAt(0)===58&&e.charCodeAt(1)===58){if(t===2)return!0;r=!0,i=2}for(;i4)return!1;if(n++,i===t)break;if(s!==58)return!1;if(i++,e.charCodeAt(i)===58){if(r||e.charCodeAt(i+1)===58)return!1;if(r=!0,i++,i===t)break}}return r?n<=7:n===8}function VS(e){try{return new URL(e,`http://example.com`),!0}catch{return!1}}function HS(e){if(e.includes(` `)||e.includes(`\\`)||/[\x00-\x1F\x7F]/.test(e)||/%(?![0-9a-fA-F]{2})/.test(e))return!1;if(e===``)return!0;let t=e.indexOf(`:`);return t>0&&/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(e.substring(0,t))?VS(e):e.match(/^([a-zA-Z][a-zA-Z0-9+\-.]*)(\/\/)/)&&t===-1?!1:VS(e)}function US(e){try{return new URL(e),!0}catch{return!1}}const WS=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i;function GS(e){return WS.test(e)}const KS=/^(?:\/(?:[^~/]|~0|~1)*)*$/;function qS(e){return KS.test(e)}function JS(e){if(e.length===0)return!1;try{return new RegExp(e),!0}catch{return!1}}const YS=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;function XS(e){return YS.test(e)}const ZS=/^(?!.*[^\x00-\x7F])(?!.*\\)(?:(?:[a-z][a-z0-9+\-.]*:)?(?:\/\/[^\s[\]{}<>^`|]*)?|[^\s[\]{}<>^`|]*)(?:\?[^\s[\]{}<>^`|]*)?(?:#[^\s[\]{}<>^`|]*)?$/i;function QS(e){return ZS.test(e)}const $S=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i;function eC(e){return $S.test(e)}function tC(e){return e>=97&&e<=122||e>=65&&e<=90}function nC(e){return tC(e)||e>=48&&e<=57}function rC(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function iC(e){return nC(e)||e===43||e===45||e===46}function aC(e){return nC(e)||e===45||e===46||e===95||e===126}function oC(e){return e===33||e===36||e===38||e===39||e===40||e===41||e===42||e===43||e===44||e===59||e===61}function sC(e){return aC(e)||oC(e)||e===58||e===64}function cC(e){let t=e.length;if(t===0||!tC(e.charCodeAt(0)))return!1;let n=1;for(;n=i||!rC(e.charCodeAt(t+1))||!rC(e.charCodeAt(t+2)))return!1;t+=2}else if(!aC(n)&&!oC(n)&&n!==58)return!1}n=i+1}if(e.charCodeAt(n)===91){for(n++;n57)return!1;n++}}for(;n=t||!rC(e.charCodeAt(n+1))||!rC(e.charCodeAt(n+2)))return!1;n+=2}else if(r>127)return!1;else if(!(sC(r)||r===47||r===63||r===35))return!1;n++}return!0}const lC=/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu;function uC(e){return lC.test(e)}const dC=/^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;function fC(e){return dC.test(e)}const Z=new Map;function pC(){Z.clear()}function mC(){return[...Z.entries()]}function hC(e,t){Z.set(e,t)}function gC(e){return Z.has(e)}function _C(e){return Z.get(e)}function vC(e,t){return Z.get(e)?.(t)??!0}function yC(){pC(),Z.set(`date-time`,oS),Z.set(`date`,rS),Z.set(`duration`,cS),Z.set(`email`,uS),Z.set(`hostname`,NS),Z.set(`idn-email`,FS),Z.set(`idn-hostname`,IS),Z.set(`ipv4`,RS),Z.set(`ipv6`,BS),Z.set(`iri-reference`,HS),Z.set(`iri`,US),Z.set(`json-pointer-uri-fragment`,GS),Z.set(`json-pointer`,qS),Z.set(`regex`,JS),Z.set(`relative-json-pointer`,XS),Z.set(`time`,aS),Z.set(`uri-reference`,QS),Z.set(`uri-template`,eC),Z.set(`uri`,cC),Z.set(`url`,uC),Z.set(`uuid`,fC)}yC();var bC=t({Clear:()=>pC,Entries:()=>mC,Get:()=>_C,Has:()=>gC,IsDate:()=>rS,IsDateTime:()=>oS,IsDuration:()=>cS,IsEmail:()=>uS,IsHostname:()=>NS,IsIPv4:()=>RS,IsIPv6:()=>BS,IsIdnEmail:()=>FS,IsIdnHostname:()=>IS,IsIri:()=>US,IsIriReference:()=>HS,IsJsonPointer:()=>qS,IsJsonPointerUriFragment:()=>GS,IsRegex:()=>JS,IsRelativeJsonPointer:()=>XS,IsTime:()=>aS,IsUri:()=>cC,IsUriReference:()=>QS,IsUriTemplate:()=>eC,IsUrl:()=>uC,IsUuid:()=>fC,Reset:()=>yC,Set:()=>hC,Test:()=>vC});function xC(e,t,n,r){return C(w(`Format`,`Test`),[T(n.format),r])}function SC(e,t,n,r){return vC(n.format,r)}function CC(e,t,n,r,i,a){return SC(e,t,i,a)||t.AddError({keyword:`format`,schemaPath:n,instancePath:r,params:{format:i.format}})}function wC(e,t,n,r){let i=kb(n)?n.then:!0,a=Zy(n)?n.else:!0;return ht(kT(e,t,n.if,r),kT(e,t,i,r),kT(e,t,a,r))}function TC(e,t,n,r){let i=kb(n)?n.then:!0,a=Zy(n)?n.else:!0;return Q(e,t,n.if,r)?Q(e,t,i,r):Q(e,t,a,r)}function EC(e,t,n,r,i,a){let o=kb(i)?i.then:!0,s=Zy(i)?i.else:!0,c=new Vb,l=MT(e,c,`${n}/if`,r,i.if,a)?MT(e,c,`${n}/then`,r,o,a)||t.AddError({keyword:`if`,schemaPath:n,instancePath:r,params:{failingKeyword:`then`}}):MT(e,t,`${n}/else`,r,s,a)||t.AddError({keyword:`if`,schemaPath:n,instancePath:r,params:{failingKeyword:`else`}});return l&&t.Merge([c]),l}function DC(e,t,n,r){return bt(n.items.map((n,i)=>{let a=rt(w(r,`length`),T(i)),o=OT(e,t,n,`${r}[${i}]`),s=t.AddIndex(T(i));return S(a,t.UseUnevaluated()?Le(o,s):o)}))}function OC(e,t,n,r){return Ee(n.items,0,(n,i)=>ve(r.length,i)||AT(e,t,n,r[i])&&t.AddIndex(i))}function kC(e,t,n,r,i,a){return De(i.items,0,(i,o)=>{let s=`${n}/items/${o}`,c=`${r}/${o}`;return ve(a.length,o)||jT(e,t,s,c,i,a[o])&&t.AddIndex(o)})}function AC(e,t,n,r){let i=xb(n)?n.prefixItems.length:0,a=OT(e,t,n.items,`element`),o=t.AddIndex(`index`),s=t.UseUnevaluated()?Le(a,o):a;return st(r,T(i),[`element`,`index`],s)}function jC(e,t,n,r){return Ee(r,xb(n)?n.prefixItems.length:0,(r,i)=>AT(e,t,n.items,r)&&t.AddIndex(i))}function MC(e,t,n,r,i,a){return De(a,xb(i)?i.prefixItems.length:0,(a,o)=>jT(e,t,`${n}/items`,`${r}/${o}`,i.items,a)&&t.AddIndex(o))}function NC(e,t,n,r){return ab(n)?DC(e,t,n,r):AC(e,t,n,r)}function PC(e,t,n,r){return ab(n)?OC(e,t,n,r):jC(e,t,n,r)}function FC(e,t,n,r,i,a){return ab(i)?kC(e,t,n,r,i,a):MC(e,t,n,r,i,a)}function IC(e){return Wy(e)}function LC(e,t,n,r){if(!IC(n))return T(!0);let[i,a]=[$b(),$b()];return rt(C(w(r,`reduce`),[pt([i,a],ht(kT(e,t,n.contains,a),St(i),i)),T(0)]),T(n.maxContains))}function RC(e,t,n,r){return IC(n)?ve(r.reduce((r,i)=>Q(e,t,n.contains,i)?++r:r,0),n.maxContains):!0}function zC(e,t,n,r,i,a){let o=fb(i)?i.minContains:1;return RC(e,t,i,a)||t.AddError({keyword:`contains`,schemaPath:n,instancePath:r,params:{minContains:o,maxContains:i.maxContains}})}function BC(e,t,n,r){return rt(r,T(n.maximum))}function VC(e,t,n,r){return ve(r,n.maximum)}function HC(e,t,n,r,i,a){return VC(e,t,i,a)||t.AddError({keyword:`maximum`,schemaPath:n,instancePath:r,params:{comparison:`<=`,limit:i.maximum}})}function UC(e,t,n,r){return rt(w(r,`length`),T(n.maxItems))}function WC(e,t,n,r){return ve(r.length,n.maxItems)}function GC(e,t,n,r,i,a){return WC(e,t,i,a)||t.AddError({keyword:`maxItems`,schemaPath:n,instancePath:r,params:{limit:i.maxItems}})}function KC(e,t,n,r){return ot(r,T(n.maxLength))}function qC(e,t,n,r){return we(r,n.maxLength)}function JC(e,t,n,r,i,a){return qC(e,t,i,a)||t.AddError({keyword:`maxLength`,schemaPath:n,instancePath:r,params:{limit:i.maxLength}})}function YC(e,t,n,r){return rt(w(lt(r),`length`),T(n.maxProperties))}function XC(e,t,n,r){return ve(x(r).length,n.maxProperties)}function ZC(e,t,n,r,i,a){return XC(e,t,i,a)||t.AddError({keyword:`maxProperties`,schemaPath:n,instancePath:r,params:{limit:i.maxProperties}})}function QC(e){return Wy(e)}function $C(e,t,n,r){if(!QC(n))return T(!0);let[i,a]=[$b(),$b()];return it(C(w(r,`reduce`),[pt([i,a],ht(kT(e,t,n.contains,a),St(i),i)),T(0)]),T(n.minContains))}function ew(e,t,n,r){return QC(n)?ye(r.reduce((r,i)=>Q(e,t,n.contains,i)?++r:r,0),n.minContains):!0}function tw(e,t,n,r,i,a){return ew(e,t,i,a)||t.AddError({keyword:`contains`,schemaPath:n,instancePath:r,params:{minContains:i.minContains}})}function nw(e,t,n,r){return it(r,T(n.minimum))}function rw(e,t,n,r){return ye(r,n.minimum)}function iw(e,t,n,r,i,a){return rw(e,t,i,a)||t.AddError({keyword:`minimum`,schemaPath:n,instancePath:r,params:{comparison:`>=`,limit:i.minimum}})}function aw(e,t,n,r){return it(w(r,`length`),T(n.minItems))}function ow(e,t,n,r){return ye(r.length,n.minItems)}function sw(e,t,n,r,i,a){return ow(e,t,i,a)||t.AddError({keyword:`minItems`,schemaPath:n,instancePath:r,params:{limit:i.minItems}})}function cw(e,t,n,r){return at(r,T(n.minLength))}function lw(e,t,n,r){return Te(r,n.minLength)}function uw(e,t,n,r,i,a){return lw(e,t,i,a)||t.AddError({keyword:`minLength`,schemaPath:n,instancePath:r,params:{limit:i.minLength}})}function dw(e,t,n,r){return it(w(lt(r),`length`),T(n.minProperties))}function fw(e,t,n,r){return ye(x(r).length,n.minProperties)}function pw(e,t,n,r,i,a){return fw(e,t,i,a)||t.AddError({keyword:`minProperties`,schemaPath:n,instancePath:r,params:{limit:i.minProperties}})}function mw(e,t,n,r){return Ct(r,T(n.multipleOf))}function hw(e,t,n,r){return be(r,n.multipleOf)}function gw(e,t,n,r,i,a){return hw(e,t,i,a)||t.AddError({keyword:`multipleOf`,schemaPath:n,instancePath:r,params:{multipleOf:i.multipleOf}})}function _w(e,t,n,r){return fx(e,t,[n.not],r,Re(et(w(`results`,`length`),T(1))))}function vw(e,t,n,r){return Re(kT(e,t,n.not,r))}function yw(e,t,n,r){return t.UseUnevaluated()?_w(e,t,n,r):vw(e,t,n,r)}function bw(e,t,n,r){let i=new zb;return!Q(e,i,n.not,r)&&t.Merge([i])}function xw(e,t,n,r,i,a){return bw(e,t,i,a)||t.AddError({keyword:`not`,schemaPath:n,instancePath:r,params:{}})}function Sw(e,t,n,r){return fx(e,t,n.oneOf,r,et(w(`results`,`length`),T(1)))}function Cw(e,t,n,r){return et(C(w(ft(n.oneOf.map(n=>kT(e,t,n,r))),`reduce`),[pt([`count`,`result`],ht(et(`result`,T(!0)),St(`count`),`count`)),T(0)]),T(1))}function ww(e,t,n,r){return t.UseUnevaluated()?Sw(e,t,n,r):Cw(e,t,n,r)}function Tw(e,t,n,r){let i=n.oneOf.reduce((t,n)=>{let i=new zb;return Q(e,i,n,r)?[...t,i]:t},[]);return _(i.length,1)&&t.Merge(i)}function Ew(e,t,n,r,i,a){let o=[],s=[],c=i.oneOf.reduce((t,i,c)=>{let l=new Vb,u=MT(e,l,`${n}/oneOf/${c}`,r,i,a);return u&&s.push(c),u||o.push(l),u?[...t,l]:t},[]),l=_(c.length,1)&&t.Merge(c);return!l&&_(s.length,0)&&o.forEach(e=>e.GetErrors().forEach(e=>t.AddError(e))),l||t.AddError({keyword:`oneOf`,schemaPath:n,instancePath:r,params:{passingSchemas:s}})}function Dw(e,t,n,r){return C(w(Ub(h(n.pattern)?new RegExp(n.pattern,`u`):n.pattern),`test`),[r])}function Ow(e,t,n,r){return(h(n.pattern)?new RegExp(n.pattern,`u`):n.pattern).test(r)}function kw(e,t,n,r,i,a){return Ow(e,t,i,a)||t.AddError({keyword:`pattern`,schemaPath:n,instancePath:r,params:{pattern:i.pattern}})}function Aw(e,t,n,r){return bt(b(n.patternProperties).map(([n,i])=>{let[a,o]=[$b(),$b()],s=Re(C(w(Ub(new RegExp(n,`u`)),`test`),[a])),c=OT(e,t,i,o),l=t.AddKey(a),u=t.UseUnevaluated()?S(s,Le(c,l)):S(s,c);return st(ct(r),T(0),[`[${a}, ${o}]`,`_`],u)}))}function jw(e,t,n,r){return Ee(b(n.patternProperties),0,([n,i])=>{let a=new RegExp(n,`u`);return Ee(b(r),0,([n,r])=>!a.test(n)||AT(e,t,i,r)&&t.AddKey(n))})}function Mw(e,t,n,r,i,a){return De(b(i.patternProperties),0,([i,o])=>{let s=`${n}/patternProperties/${i}`,c=new RegExp(i,`u`);return De(b(a),0,([n,i])=>{let a=`${r}/${n}`;return!c.test(n)||jT(e,t,s,a,o,i)&&t.AddKey(n)})})}function Nw(e,t,n,r){return bt(n.prefixItems.map((n,i)=>{let a=rt(w(r,`length`),T(i)),o=OT(e,t,n,`${r}[${i}]`),s=t.AddIndex(T(i));return S(a,t.UseUnevaluated()?Le(o,s):o)}))}function Pw(e,t,n,r){return _(r.length,0)||Ee(n.prefixItems,0,(n,i)=>ve(r.length,i)||AT(e,t,n,r[i])&&t.AddIndex(i))}function Fw(e,t,n,r,i,a){return _(a.length,0)||De(i.prefixItems,0,(i,o)=>{let s=`${n}/prefixItems/${o}`,c=`${r}/${o}`;return ve(a.length,o)||jT(e,t,s,c,i,a[o])&&t.AddIndex(o)})}function Iw(e,t){return e.includes(t)||Ht().exactOptionalPropertyTypes}function Lw(e,t){return Ze(w(e,t))}function Rw(e,t){return g(e[t])}function zw(e,t,n,r){let i=Ob(n)?n.required:[];return bt(b(n.properties).map(([n,a])=>{let o=Re(ut(r,T(n))),s=OT(e,t,a,w(r,n)),c=t.AddKey(T(n)),l=t.UseUnevaluated()?Le(s,c):s,u=i.includes(n)?l:S(o,l);return Iw(i,n)?u:S(Lw(r,n),u)}))}function Bw(e,t,n,r){let i=Ob(n)?n.required:[];return Ee(b(n.properties),0,([n,a])=>{let o=!y(r,n)||AT(e,t,a,r[n])&&t.AddKey(n);return Iw(i,n)?o:Rw(r,n)||o})}function Vw(e,t,n,r,i,a){let o=Ob(i)?i.required:[];return De(b(i.properties),0,([i,s])=>{let c=`${n}/properties/${i}`,l=`${r}/${i}`,u=()=>!y(a,i)||jT(e,t,c,l,s,a[i])&&t.AddKey(i);return Iw(o,i)?u():Rw(a,i)||u()})}function Hw(e,t,n,r){let[i,a]=[$b(),$b()];return st(lt(r),T(0),[i,a],kT(e,t,n.propertyNames,i))}function Uw(e,t,n,r){return Ee(x(r),0,(r,i)=>Q(e,t,n.propertyNames,r))}function Ww(e,t,n,r,i,a){let o=[];return De(x(a),0,(t,a)=>{let s=`${r}/${t}`,c=`${n}/propertyNames`,l=MT(e,new Vb,c,s,i.propertyNames,t);return l||o.push(t),l})||t.AddError({keyword:`propertyNames`,schemaPath:n,instancePath:r,params:{propertyNames:o}})}function Gw(e,t,n,r){return RT(e,t,e.RecursiveRef(n)??!1,r)}function Kw(e,t,n,r){let i=e.RecursiveRef(n)??!1;return X(i)&&Q(e,t,i,r)}function qw(e,t,n,r,i,a){let o=e.RecursiveRef(i)??!1;return X(o)&&MT(e,t,`#`,r,o,a)}function Jw(e,t,n,r){let i=pt([`context`,`value`],RT(e,t,n,`value`));return C(pt([`context`,`value`],gt([_t(`nextContext`,mt(`CheckContext`,[])),_t(`result`,C(i,[`nextContext`,`value`])),vt(`result`,t.Merge(`[nextContext]`)),yt(`result`)])),[`context`,r])}function Yw(e,t,n,r){return RT(e,t,n,r)}function Xw(e,t,n,r){let i=e.Ref(n)??!1;return t.UseUnevaluated()?Jw(e,t,i,r):Yw(e,t,i,r)}function Zw(e,t,n,r){let i=e.Ref(n)??!1,a=new zb,o=X(i)&&Q(e,a,i,r);return o&&t.Merge([a]),o}function Qw(e,t,n,r,i,a){let o=e.Ref(i)??!1,s=new Vb,c=X(o)&&MT(e,s,`#`,r,o,a);return c&&t.Merge([s]),c||s.GetErrors().forEach(e=>t.AddError(e)),c}function $w(e,t,n,r){return bt(n.required.map(e=>ut(r,T(e))))}function eT(e,t,n,r){return Ee(n.required,0,e=>y(r,e))}function tT(e,t,n,r,i,a){let o=[];return De(i.required,0,e=>{let t=y(a,e);return t||o.push(e),t})||t.AddError({keyword:`required`,schemaPath:n,instancePath:r,params:{requiredProperties:o}})}function nT(e,t,n,r){return _(n,`object`)?qe(r):_(n,`array`)?ze(r):_(n,`boolean`)?He(r):_(n,`integer`)?Ue(r):_(n,`number`)?Ke(r):_(n,`null`)?Ge(r):_(n,`string`)?Ye(r):_(n,`asyncIterator`)?Be(r):_(n,`bigint`)?Ve(r):_(n,`constructor`)?$e(r):_(n,`function`)?Qe(r):_(n,`iterator`)?We(r):_(n,`symbol`)?Xe(r):_(n,`undefined`)||_(n,`void`)?Ze(r):T(!0)}function rT(e,t,n,r,i){return _(n,`object`)?me(i):_(n,`array`)?d(i):_(n,`boolean`)?ce(i):_(n,`integer`)?de(i):_(n,`number`)?p(i):_(n,`null`)?pe(i):_(n,`string`)?h(i):_(n,`asyncIterator`)?se(i):_(n,`bigint`)?f(i):_(n,`constructor`)?le(i):_(n,`function`)?ue(i):_(n,`iterator`)?fe(i):_(n,`symbol`)?he(i):_(n,`undefined`)||_(n,`void`)?g(i):!0}function iT(e,t,n,r){return xt(n.map(n=>nT(e,t,n,r)))}function aT(e,t,n,r,i){return n.some(n=>rT(e,t,n,r,i))}function oT(e,t,n,r){return d(n.type)?iT(e,t,n.type,r):nT(e,t,n.type,r)}function sT(e,t,n,r){return d(n.type)?aT(e,t,n.type,n,r):rT(e,t,n.type,n,r)}function cT(e,t,n,r,i,a){return(d(i.type)?aT(e,t,i.type,i,a):rT(e,t,i.type,i,a))||t.AddError({keyword:`type`,schemaPath:n,instancePath:r,params:{type:i.type}})}function lT(e,t,n,r){let[i,a]=[$b(),$b()],o=C(w(`context`,`GetIndices`),[]),s=C(w(`indices`,`has`),[i]),c=kT(e,t,n.unevaluatedItems,a),l=C(w(`context`,`AddIndex`),[i]),u=st(r,T(0),[a,i],Le(S(s,c),l));return C(pt([`context`],gt([_t(`indices`,o),yt(u)])),[`context`])}function uT(e,t,n,r){let i=t.GetIndices();return Ee(r,0,(r,a)=>(i.has(a)||Q(e,t,n.unevaluatedItems,r))&&t.AddIndex(a))}function dT(e,t,n,r,i,a){let o=t.GetIndices(),s=[];return De(a,0,(a,c)=>{let l=new Vb,u=(o.has(c)||MT(e,l,n,r,i.unevaluatedItems,a))&&t.AddIndex(c);return u||s.push(c),u})||t.AddError({keyword:`unevaluatedItems`,schemaPath:n,instancePath:r,params:{unevaluatedItems:s}})}function fT(e,t,n,r){let[i,a]=[$b(),$b()],o=C(w(`context`,`GetKeys`),[]),s=C(w(`keys`,`has`),[i]),c=C(w(`context`,`AddKey`),[i]),l=kT(e,t,n.unevaluatedProperties,a),u=st(ct(r),T(0),[`[${i}, ${a}]`,`_`],S(s,Le(l,c)));return C(pt([`context`],gt([_t(`keys`,o),yt(u)])),[`context`])}function pT(e,t,n,r){let i=t.GetKeys();return Ee(b(r),0,([r,a])=>i.has(r)||Q(e,t,n.unevaluatedProperties,a)&&t.AddKey(r))}function mT(e,t,n,r,i,a){let o=t.GetKeys(),s=[];return De(b(a),0,([a,c])=>{let l=new Vb,u=o.has(a)||MT(e,l,n,r,i.unevaluatedProperties,c)&&t.AddKey(a);return u||s.push(a),u})||t.AddError({keyword:`unevaluatedProperties`,schemaPath:n,instancePath:r,params:{unevaluatedProperties:s}})}function hT(e){return!_(e.uniqueItems,!1)}function gT(e,t,n,r){return hT(n)?et(w(mt(`Set`,[C(w(r,`map`),[w(`Hashing`,`Hash`)])]),`size`),w(r,`length`)):T(!0)}function _T(e,t,n,r){if(!hT(n))return!0;let i=new Set(r.map(Dr)).size,a=r.length;return _(i,a)}function vT(e,t,n,r,i,a){if(!hT(i))return!0;let o=new Set,s=a.reduce((e,t,n)=>{let r=Dr(t);return o.has(r)?[...e,n]:(o.add(r),e)},[]);return _(s.length,0)||t.AddError({keyword:`uniqueItems`,schemaPath:n,instancePath:r,params:{duplicateItems:s}})}function yT(e,t){return Ab(e)&&(d(e.type)&&e.type.includes(t)||_(e.type,t))}function bT(e){return yT(e,`object`)}function xT(e){return Iy(e)&&(zy(e)||Ky(e)||qy(e)||Jy(e)||Sb(e)||bb(e)||Cb(e)||hb(e)||ub(e)||Ob(e)||Nb(e))}function ST(e){return yT(e,`array`)}function CT(e){return Iy(e)&&(Ry(e)||ib(e)||Wy(e)||sb(e)||cb(e)||fb(e)||pb(e)||xb(e)||Mb(e)||jb(e))}function wT(e){return yT(e,`string`)}function TT(e){return Iy(e)&&(mb(e)||lb(e)||tb(e)||yb(e))}function ET(e){return yT(e,`number`)||yT(e,`bigint`)}function DT(e){return Iy(e)&&(db(e)||ob(e)||$y(e)||eb(e)||gb(e))}function OT(e,t,n,r){return t.UseUnevaluated()?Le(Le(t.Push(),kT(e,t,n,r)),t.Pop()):kT(e,t,n,r)}function kT(e,t,n,r){e.Push(n);let i=[];if(Ly(n))return Cx(e,t,n,r);if(Ab(n)&&i.push(oT(e,t,n,r)),xT(n)){let a=[];Ob(n)&&a.push($w(e,t,n,r)),zy(n)&&a.push(lx(e,t,n,r)),Ky(n)&&a.push(Nx(e,t,n,r)),qy(n)&&a.push(Ix(e,t,n,r)),Jy(n)&&a.push(zx(e,t,n,r)),bb(n)&&a.push(Aw(e,t,n,r)),Sb(n)&&a.push(zw(e,t,n,r)),Cb(n)&&a.push(Hw(e,t,n,r)),hb(n)&&a.push(dw(e,t,n,r)),ub(n)&&a.push(YC(e,t,n,r));let o=bt(a),s=S(Re(qe(r)),o);i.push(bT(n)?o:s)}if(CT(n)){let a=[];Ry(n)&&a.push(tx(e,t,n,r)),Wy(n)&&a.push(Ax(e,t,n,r)),ib(n)&&a.push(NC(e,t,n,r)),sb(n)&&a.push(LC(e,t,n,r)),cb(n)&&a.push(UC(e,t,n,r)),fb(n)&&a.push($C(e,t,n,r)),pb(n)&&a.push(aw(e,t,n,r)),xb(n)&&a.push(Nw(e,t,n,r)),jb(n)&&a.push(gT(e,t,n,r));let o=bt(a),s=S(Re(ze(r)),o);i.push(ST(n)?o:s)}if(TT(n)){let a=[];lb(n)&&a.push(KC(e,t,n,r)),mb(n)&&a.push(cw(e,t,n,r)),tb(n)&&a.push(xC(e,t,n,r)),yb(n)&&a.push(Dw(e,t,n,r));let o=bt(a),s=S(Re(Ye(r)),o);i.push(wT(n)?o:s)}if(DT(n)){let a=[];$y(n)&&a.push(Jx(e,t,n,r)),eb(n)&&a.push(Zx(e,t,n,r)),ob(n)&&a.push(BC(e,t,n,r)),db(n)&&a.push(nw(e,t,n,r)),gb(n)&&a.push(mw(e,t,n,r));let o=bt(a),s=S(Re(S(Ke(r),Ve(r))),o);i.push(ET(n)?o:s)}Db(n)&&i.push(Xw(e,t,n,r)),Eb(n)&&i.push(Gw(e,t,n,r)),Xy(n)&&i.push(Hx(e,t,n,r)),Py(n)&&i.push(Kb(e,t,n,r)),Uy(n)&&i.push(Ex(e,t,n,r)),Qy(n)&&i.push(Gx(e,t,n,r)),rb(n)&&i.push(wC(e,t,n,r)),_b(n)&&i.push(yw(e,t,n,r)),By(n)&&i.push(hx(e,t,n,r)),Hy(n)&&i.push(bx(e,t,n,r)),vb(n)&&i.push(ww(e,t,n,r)),Mb(n)&&i.push(S(Re(ze(r)),lT(e,t,n,r))),Nb(n)&&i.push(S(Re(Je(r)),fT(e,t,n,r))),Fy(n)&&i.push(Yb(e,t,n,r));let a=bt(i);return e.Pop(n),a}function AT(e,t,n,r){return t.Push()&&Q(e,t,n,r)&&t.Pop()}function Q(e,t,n,r){e.Push(n);let i=Ly(n)?wx(e,t,n,r):(!Ab(n)||sT(e,t,n,r))&&(!(m(r)&&!d(r))||(!Ob(n)||eT(e,t,n,r))&&(!zy(n)||ux(e,t,n,r))&&(!Ky(n)||Px(e,t,n,r))&&(!qy(n)||Lx(e,t,n,r))&&(!Jy(n)||Bx(e,t,n,r))&&(!bb(n)||jw(e,t,n,r))&&(!Sb(n)||Bw(e,t,n,r))&&(!Cb(n)||Uw(e,t,n,r))&&(!hb(n)||fw(e,t,n,r))&&(!ub(n)||XC(e,t,n,r)))&&(!d(r)||(!Ry(n)||nx(e,t,n,r))&&(!Wy(n)||jx(e,t,n,r))&&(!ib(n)||PC(e,t,n,r))&&(!sb(n)||RC(e,t,n,r))&&(!cb(n)||WC(e,t,n,r))&&(!fb(n)||ew(e,t,n,r))&&(!pb(n)||ow(e,t,n,r))&&(!xb(n)||Pw(e,t,n,r))&&(!jb(n)||_T(e,t,n,r)))&&(!h(r)||(!lb(n)||qC(e,t,n,r))&&(!mb(n)||lw(e,t,n,r))&&(!tb(n)||SC(e,t,n,r))&&(!yb(n)||Ow(e,t,n,r)))&&(!(p(r)||f(r))||(!$y(n)||Yx(e,t,n,r))&&(!eb(n)||Qx(e,t,n,r))&&(!ob(n)||VC(e,t,n,r))&&(!db(n)||rw(e,t,n,r))&&(!gb(n)||hw(e,t,n,r)))&&(!Db(n)||Zw(e,t,n,r))&&(!Eb(n)||Kw(e,t,n,r))&&(!Xy(n)||Ux(e,t,n,r))&&(!Py(n)||qb(e,t,n,r))&&(!Uy(n)||Dx(e,t,n,r))&&(!Qy(n)||Kx(e,t,n,r))&&(!rb(n)||TC(e,t,n,r))&&(!_b(n)||bw(e,t,n,r))&&(!By(n)||gx(e,t,n,r))&&(!Hy(n)||xx(e,t,n,r))&&(!vb(n)||Tw(e,t,n,r))&&(!Mb(n)||!d(r)||uT(e,t,n,r))&&(!Nb(n)||!m(r)||pT(e,t,n,r))&&(!Fy(n)||Xb(e,t,n,r));return e.Pop(n),i}function jT(e,t,n,r,i,a){return t.Push()&&MT(e,t,n,r,i,a)&&t.Pop()}function MT(e,t,n,r,i,a){e.Push(i);let o=Ly(i)?Tx(e,t,n,r,i,a):!!((!Ab(i)||cT(e,t,n,r,i,a))&+(!(m(a)&&!d(a))||!!((!Ob(i)||tT(e,t,n,r,i,a))&+(!zy(i)||dx(e,t,n,r,i,a))&(!Ky(i)||Fx(e,t,n,r,i,a))&(!qy(i)||Rx(e,t,n,r,i,a))&(!Jy(i)||Vx(e,t,n,r,i,a))&(!bb(i)||Mw(e,t,n,r,i,a))&(!Sb(i)||Vw(e,t,n,r,i,a))&(!Cb(i)||Ww(e,t,n,r,i,a))&(!hb(i)||pw(e,t,n,r,i,a))&(!ub(i)||ZC(e,t,n,r,i,a))))&(!d(a)||!!((!Ry(i)||rx(e,t,n,r,i,a))&+(!Wy(i)||Mx(e,t,n,r,i,a))&(!ib(i)||FC(e,t,n,r,i,a))&(!sb(i)||zC(e,t,n,r,i,a))&(!cb(i)||GC(e,t,n,r,i,a))&(!fb(i)||tw(e,t,n,r,i,a))&(!pb(i)||sw(e,t,n,r,i,a))&(!xb(i)||Fw(e,t,n,r,i,a))&(!jb(i)||vT(e,t,n,r,i,a))))&(!h(a)||!!((!lb(i)||JC(e,t,n,r,i,a))&+(!mb(i)||uw(e,t,n,r,i,a))&(!tb(i)||CC(e,t,n,r,i,a))&(!yb(i)||kw(e,t,n,r,i,a))))&(!(p(a)||f(a))||!!((!$y(i)||Xx(e,t,n,r,i,a))&+(!eb(i)||$x(e,t,n,r,i,a))&(!ob(i)||HC(e,t,n,r,i,a))&(!db(i)||iw(e,t,n,r,i,a))&(!gb(i)||gw(e,t,n,r,i,a))))&(!Db(i)||Qw(e,t,n,r,i,a))&(!Eb(i)||qw(e,t,n,r,i,a))&(!Xy(i)||Wx(e,t,n,r,i,a))&(!Py(i)||Jb(e,t,n,r,i,a))&(!Uy(i)||Ox(e,t,n,r,i,a))&(!Qy(i)||qx(e,t,n,r,i,a))&(!rb(i)||EC(e,t,n,r,i,a))&(!_b(i)||xw(e,t,n,r,i,a))&(!By(i)||_x(e,t,n,r,i,a))&(!Hy(i)||Sx(e,t,n,r,i,a))&(!vb(i)||Ew(e,t,n,r,i,a))&(!Mb(i)||!d(a)||dT(e,t,n,r,i,a))&(!Nb(i)||!m(a)||mT(e,t,n,r,i,a)))&&(!Fy(i)||Zb(e,t,n,r,i,a));return e.Pop(i),o}const NT=new Map;function PT(e,t,n,r){return e.UseUnevaluated()?C(`check_${n}`,[`context`,r]):C(`check_${n}`,[r])}function FT(e,t,n,r){let i=kT(e,t,n,`value`);return t.UseUnevaluated()?_t(`check_${r}`,pt([`context`,`value`],i)):_t(`check_${r}`,pt([`value`],i))}function IT(){NT.clear()}function LT(){return[...NT.values()]}function RT(e,t,n,r){let i=Iy(n)?Dr({__baseURL:e.BaseURL().href,...n}):Dr(n),a=PT(t,n,i,r);return NT.has(i)?a:(NT.set(i,``),NT.set(i,FT(e,t,n,i)),a)}function zT(e,t){return m(t)&&!Oe(e)?t[e]:void 0}function BT(e,t){return e.reduce((e,t)=>zT(t,e),t)}function VT(e){if(_(e.length,0))return[];let t=e.split(`/`).map(e=>e.replace(/~1/g,`/`).replace(/~0/g,`~`));return t.length>0&&t[0]===``?t.slice(1):t}function HT(e,t){return BT(VT(t),e)}function UT(e,t,n){if(e.$id===n.hash)return e;let r=new URL(e.$id,t.href),i=new URL(n.href,t.href);if(_(r.pathname,i.pathname))return n.hash.startsWith(`#`)?KT(e,t,n):e}function WT(e,t,n){let r=new URL(`#${e.$anchor}`,t.href),i=new URL(n.href,t.href);return _(r.href,i.href)?e:void 0}function GT(e,t,n){let r=new URL(`#${e.$dynamicAnchor}`,t.href),i=new URL(n.href,t.href);return _(r.href,i.href)?e:void 0}function KT(e,t,n){if(n.href.endsWith(`#`))return e;if(!n.hash.startsWith(`#`))return;let r=decodeURIComponent(n.hash.slice(1));if(r.startsWith(`/`))return HT(e,r)}function qT(e,t,n){if(nb(e)){let r=UT(e,t,n);if(!g(r))return r}if(Vy(e)){let r=WT(e,t,n);if(!g(r))return r}if(Yy(e)){let r=GT(e,t,n);if(!g(r))return r}return KT(e,t,n)}function JT(e,t,n){return e.reduce((e,r)=>{let i=XT(r,t,n);return g(i)?e:i},void 0)}function YT(e,t,n){return x(e).reduce((r,i)=>{let a=XT(e[i],t,n);return g(a)?r:a},void 0)}function XT(e,t,n){let r=Iy(e)&&nb(e)?new URL(e.$id,t.href):t;if(Iy(e)){let t=qT(e,r,n);if(!g(t))return t}if(d(e))return JT(e,r,n);if(m(e))return YT(e,r,n)}function ZT(e,t){let n=new URL(`http://unknown/`),r=nb(e)?new URL(e.$id,n.href):n;return XT(e,r,new URL(t,r.href))}function QT(e,t,n,r){let i=n.$dynamicRef.startsWith(`#`)?ZT(t,n.$dynamicRef):ZT(e,n.$dynamicRef);if(!g(i))return!Iy(i)||!Yy(i)||new URL(n.$dynamicRef,`http://unknown/`).hash.startsWith(`#/`)?i:r.find(e=>e.$dynamicAnchor===i.$dynamicAnchor)??i}var $T=function(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)},eE,tE,nE,rE,iE,aE=class{constructor(e,t){eE.add(this),this.context=e,this.schema=t,this.ids=[],this.anchors=[],this.recursiveAnchors=[],this.dynamicAnchors=[]}BaseURL(){return this.ids.reduce((e,t)=>new URL(t.$id,e),new URL(`http://unknown`))}Base(){return this.ids[this.ids.length-1]??this.schema}Push(e){Iy(e)&&(nb(e)&&(this.ids.push(e),$T(this,eE,`m`,tE).call(this,e)),Vy(e)&&this.anchors.push(e),Tb(e)&&this.recursiveAnchors.push(e),Yy(e)&&this.dynamicAnchors.push(e))}Pop(e){Iy(e)&&(nb(e)&&(this.ids.pop(),$T(this,eE,`m`,nE).call(this,e)),Vy(e)&&this.anchors.pop(),Tb(e)&&this.recursiveAnchors.pop(),Yy(e)&&this.dynamicAnchors.pop())}Ref(e){return $T(this,eE,`m`,rE).call(this,e)??$T(this,eE,`m`,iE).call(this,e)}RecursiveRef(e){return Tb(this.Base())?ZT(this.recursiveAnchors[0],e.$recursiveRef):ZT(this.Base(),e.$recursiveRef)}DynamicRef(e){let t=this.schema;return QT(t,this.Base(),e,this.dynamicAnchors)}};eE=new WeakSet,tE=function e(t,n=!0){if(!Iy(t))return;let r=t;if(!(!n&&nb(r))){!n&&Yy(r)&&this.dynamicAnchors.push(r);for(let t of x(r))$T(this,eE,`m`,e).call(this,r[t],!1)}},nE=function e(t,n=!0){if(!Iy(t))return;let r=t;if(!(!n&&nb(r))){!n&&Yy(r)&&this.dynamicAnchors.pop();for(let t of x(r))$T(this,eE,`m`,e).call(this,r[t],!1)}},rE=function(e){return y(this.context,e.$ref)?this.context[e.$ref]:void 0},iE=function(e){let t=this.schema;return e.$ref.startsWith(`#`)?ZT(this.Base(),e.$ref):ZT(t,e.$ref)};function oE(e){return`${e.Functions().join(`; -`)}; return (value) => { ${(e.UseUnevaluated()?[`const context = new CheckContext({}, {})`,`return ${e.Entry()}`]:[`return ${e.Entry()}`]).join(`; `)} }`}function sE(e,t){return Xn(`CheckContext`,`Guard`,`Format`,`Hashing`,e.External().identifier,t)(zb,oe,bC,Qn,e.External().variables)}function cE(e){let t=new aE(e.Context(),e.Schema()),n=new zb;return r=>Q(t,n,e.Schema(),r)}function lE(e,t){return Yn()?sE(e,t):cE(e)}var uE=class{constructor(e,t,n){this.isAccelerated=e,this.code=t,this.check=n}IsAccelerated(){return this.isAccelerated}Code(){return this.code}Check(e){return this.check(e)}},dE=class{constructor(e,t,n,r,i,a){this.context=e,this.schema=t,this.external=n,this.functions=r,this.entry=i,this.useUnevaluated=a}Context(){return this.context}Schema(){return this.schema}UseUnevaluated(){return this.useUnevaluated}External(){return this.external}Functions(){return this.functions}Entry(){return this.entry}Evaluate(){let e=oE(this),t=lE(this,e);return new uE(Yn(),e,t)}};function fE(...e){let[t,n]=Fn(e,{2:(e,t)=>[e,t],1:e=>[{},e]});Wb(),IT();let r=new aE(t,n),i=new Rb(Lb(t,n)),a=RT(r,i,n,`value`),o=LT();return new dE(t,n,Gb(),o,a,i.UseUnevaluated())}function pE(...e){let[t,n,r]=Fn(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]}),i=Ht(),a=Ar(),o=[];return[MT(new aE(t,n),new Bb(e=>{if(!ye(o.length,i.maxErrors))return o.push({...e,message:a(e)})}),`#`,``,n,r),o]}function mE(...e){let[t,n,r]=Fn(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]});return Q(new aE(t,n),new zb,n,r)}function hE(...e){let[t,n,r]=Fn(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]});return mE(t,n,r)}function gE(...e){let[t,n,r]=Fn(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]}),[i,a]=pE(t,n,r);return a}var _E=class extends Error{constructor(e,t,n){super(e),Object.defineProperty(this,"cause",{value:{source:e,errors:n,value:t},writable:!1,configurable:!1,enumerable:!1})}};function vE(e,t,n){return d(n)?n.map(n=>BE(e,t.items,n)):n}function yE(e,t,n){return t.Clean(n)}function bE(e,t,n){return BE({...e,...t.$defs},un(t.$ref),n)}function xE(e,t){let n=y(t,`unevaluatedProperties`)?{additionalProperties:t.unevaluatedProperties}:{},r=Ty(vy(e,t));return j(r)?ay(r,n):r}function SE(e,t,n){return BE(e,xE(e,t),n)}function CE(e){return y(e,`additionalProperties`)?e.additionalProperties:void 0}function wE(e,t,n){if(!m(n)||d(n))return n;let r=CE(t);for(let i of x(n)){if(y(t.properties,i)){n[i]=BE(e,t.properties[i],n[i]);continue}if(ce(r)&&_(r,!0)||Kt(r)&&hE(e,r,n[i])){n[i]=BE(e,r,n[i]);continue}delete n[i]}return n}function TE(e,t,n){if(!m(n))return n;let r=CE(t),[i,a]=[new RegExp(io(t)),oo(t)];for(let t of x(n)){if(i.test(t)){n[t]=BE(e,a,n[t]);continue}if(ce(r)&&_(r,!0)||Kt(r)&&hE(e,r,n[t])){n[t]=BE(e,r,n[t]);continue}delete n[t]}return n}function EE(e,t,n){return y(e,t.$ref)?BE(e,e[t.$ref],n):n}function DE(e,t,n){if(!d(n))return n;let r=Math.min(n.length,t.items.length);for(let i=0;iRE(e))}function PE(e){return e.slice()}function FE(e){return new Map(RE([...e.entries()]))}function IE(e){return new Set(RE([...e.values()]))}function LE(e){return e}function RE(e){return Dt(e)?PE(e):jt(e)?FE(e):At(e)?IE(e):d(e)?NE(e):m(e)?ME(e):LE(e)}function zE(e,t,n){for(let r of t.anyOf){let t=BE(e,r,RE(n));if(hE(e,r,t))return t}return n}function BE(e,t,n){return Qt(t)?vE(e,t,n):Xt(t)?yE(e,t,n):Mn(t)?bE(e,t,n):M(t)?SE(e,t,n):j(t)?wE(e,t,n):so(t)?TE(e,t,n):dn(t)?EE(e,t,n):L(t)?DE(e,t,n):I(t)?zE(e,t,n):n}function VE(e,t){for(let n of Mt.Keys(e))Mt.HasPropertyKey(t,n)||(t[n]=e[n]);return t}function HE(e){let t={};for(let n of Mt.Keys(e))t[n]=GE(e[n]);return t}function UE(e){return WE(jy(e))}function WE(e){return e.map(e=>GE(e))}function GE(e){return VE(e,Qt(e)?Zt(GE(e.items),$t(e)):M(e)?Gn(WE(e.allOf)):I(e)?F(UE(e.anyOf)):j(e)?A(HE(e.properties)):so(e)?to(ao(e),GE(oo(e))):L(e)?Xi(WE(e.items)):e)}function KE(e){return GE(e)}function qE(...e){let[t,n,r]=Fn(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]});return BE(t,Ht().unionPrioritySort?KE(n):n,r)}function JE(e){return m(e)&&y(e,`value`)}function $(e){return{value:e}}function YE(e){return d(e)?$(e):$([e])}function XE(e){return _(e,!0)?$(BigInt(1)):$(BigInt(0))}const ZE=/^-?(0|[1-9]\d*)n$/,QE=/^-?(0|[1-9]\d*)\.\d+$/,$E=/^-?(0|[1-9]\d*)$/;function eD(e){return ZE.test(e)}function tD(e){return QE.test(e)}function nD(e){return $E.test(e)}function rD(e){let t=e.toLowerCase();return eD(e)?$(BigInt(e.slice(0,e.length-1))):tD(e)?$(BigInt(e.split(`.`)[0])):nD(e)?$(BigInt(e)):_(t,`false`)?$(BigInt(0)):_(t,`true`)?$(BigInt(1)):void 0}function iD(e){return f(e)?$(e):ce(e)?XE(e):p(e)?$(BigInt(Math.trunc(e))):pe(e)?$(BigInt(0)):h(e)?rD(e):g(e)?$(BigInt(0)):void 0}function aD(e){return _(e,BigInt(0))?$(!1):_(e,BigInt(1))?$(!0):void 0}function oD(e){return _(e,0)?$(!1):_(e,1)?$(!0):void 0}function sD(e){return _(e.toLowerCase(),`false`)?$(!1):_(e.toLowerCase(),`true`)?$(!0):_(e,`0`)?$(!1):_(e,`1`)?$(!0):void 0}function cD(e){return f(e)?aD(e):ce(e)?$(e):p(e)?oD(e):pe(e)?$(!1):h(e)?sD(e):g(e)?$(!1):void 0}function lD(e){return _(e,BigInt(0))?$(null):void 0}function uD(e){return _(e,!1)?$(null):void 0}function dD(e){return _(e,0)?$(null):void 0}function fD(e){let t=e.toLowerCase();return _(t,`undefined`)||_(t,`null`)||_(e,``)||_(e,`0`)?$(null):void 0}function pD(e){return f(e)?lD(e):ce(e)?uD(e):p(e)?dD(e):pe(e)?$(null):h(e)?fD(e):g(e)?$(null):void 0}const mD=BigInt(2**53-1),hD=BigInt(-(2**53-1));function gD(e){return e<=mD&&e>=hD?$(Number(e)):void 0}function _D(e){return $(+!!e)}function vD(e){let t=+e;if(p(t))return $(t);let n=e.toLowerCase();if(_(n,`false`))return $(0);if(_(n,`true`))return $(1);let r=iD(e);if(JE(r))return r.value<=mD&&r.value>=hD?$(Number(r.value)):void 0}function yD(e){return f(e)?gD(e):ce(e)?_D(e):p(e)?$(e):pe(e)?$(0):h(e)?vD(e):g(e)?$(0):void 0}function bD(e){return f(e)||ce(e)||p(e)?$(e.toString()):pe(e)?$(`null`):h(e)?$(e):g(e)?$(``):void 0}function xD(e){return _(e,BigInt(0))?$(void 0):void 0}function SD(e){return _(e,!1)?$(void 0):void 0}function CD(e){return _(e,0)?$(void 0):void 0}function wD(e){let t=e.toLowerCase();return _(t,`undefined`)||_(t,`null`)||_(e,``)||_(e,`0`)?$(void 0):void 0}function TD(e){return f(e)?xD(e):ce(e)?SD(e):p(e)?CD(e):pe(e)?$(void 0):h(e)?wD(e):g(e)?$(e):void 0}function ED(e,t,n){return YE(n).value.map(n=>eO(e,t.items,n))}function DD(e,t,n){return t.Convert(n)}function OD(e,t,n){let r=iD(n);return JE(r)?r.value:n}function kD(e,t,n){let r=cD(n);return JE(r)?r.value:n}function AD(e,t,n){return eO({...e,...t.$defs},un(t.$ref),n)}function jD(e,t,n){return eO(e,Ty(t),n)}function MD(e,t,n){let r=yD(n);return JE(r)?Math.trunc(r.value):n}function ND(e,t,n){return eO(e,Ty(vy(e,t)),n)}function PD(e,t,n){let r=iD(n);return JE(r)&&_(t.const,r.value)?r.value:n}function FD(e,t,n){let r=cD(n);return JE(r)&&_(t.const,r.value)?r.value:n}function ID(e,t,n){let r=yD(n);return JE(r)&&_(t.const,r.value)?r.value:n}function LD(e,t,n){let r=bD(n);return JE(r)&&_(t.const,r.value)?r.value:n}function RD(e,t,n){return _(t.const,n)?n:di(t)?PD(e,t,n):fi(t)?FD(e,t,n):pi(t)?ID(e,t,n):mi(t)?LD(e,t,n):Zn()}function zD(e,t,n){let r=pD(n);return JE(r)?r.value:n}function BD(e,t,n){let r=yD(n);return JE(r)?r.value:n}function VD(e,t,n,r){let i=x(r);for(let[a,o]of t)for(let t of i)a.test(t)||(r[t]=eO(e,n,r[t]));return r}function HD(e,t,n){return wn(e)&&g(n[t])}function UD(e,t,n){let r=ke(t.properties),i=x(n);for(let[t,a]of r)for(let r of i)!t.test(r)||HD(a,r,n)||(n[r]=eO(e,a,n[r]));return y(t,`additionalProperties`)&&m(t.additionalProperties)?VD(e,r,t.additionalProperties,n):n}function WD(e,t,n){return me(n)?UD(e,t,n):n}function GD(e,t,n){let r=ke(t.patternProperties),i=x(n);for(let[t,a]of r)for(let r of i)t.test(r)&&(n[r]=eO(e,a,n[r]));return y(t,`additionalProperties`)&&m(t.additionalProperties)?VD(e,r,t.additionalProperties,n):n}function KD(e,t,n){return me(n)?GD(e,t,n):n}function qD(e,t,n){return y(e,t.$ref)?eO(e,e[t.$ref],n):n}function JD(e,t,n){let r=bD(n);return JE(r)?r.value:n}function YD(e,t,n){return eO(e,Ty(t),n)}function XD(e,t,n){if(!d(n))return n;for(let r=0;rhE(e,t,n)))return n;let r=t.anyOf.map(t=>eO(e,t,RE(n))).find(n=>hE(e,t,n));return g(r)?n:r}function $D(e,t,n){return JE(TD(n))?void 0:n}function eO(e,t,n){return Qt(t)?ED(e,t,n):Xt(t)?DD(e,t,n):Zr(t)?OD(e,t,n):$r(t)?kD(e,t,n):Mn(t)?AD(e,t,n):Wn(t)?jD(e,t,n):ii(t)?MD(e,t,n):M(t)?ND(e,t,n):P(t)?RD(e,t,n):gi(t)?zD(e,t,n):yi(t)?BD(e,t,n):j(t)?WD(e,t,n):so(t)?KD(e,t,n):dn(t)?qD(e,t,n):Oi(t)?JD(e,t,n):Af(t)?YD(e,t,n):L(t)?XD(e,t,n):mo(t)?ZD(e,t,n):I(t)?QD(e,t,n):go(t)?$D(e,t,n):n}function tO(...e){let[t,n,r]=Fn(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]});return eO(t,n,r)}function nO(e,t,n){if(!d(n))return n;for(let r=0;r[e,t,n],2:(e,t)=>[{},e,t]});return fO(t,n,r)}function mO(e){return(...t)=>{let[n,r,i]=Fn(t,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]});return e.reduce((e,t)=>t(n,r,e),i)}}function hO(e,t,n){return t[`~codec`].decode(n)}function gO(e,t,n){return t[`~codec`].encode(n)}function _O(e,t,n,r){return Ir(n)?_(e,`Decode`)?hO(t,n,r):gO(t,n,r):r}function vO(e,t,n,r){if(!d(r))return r;for(let i=0;i({...e,...t}),{})}function CO(e,t){for(let n of t)if(!Pe(e,n))return n;return e}function wO(e,t,n,r){if(_(n.allOf.length,0))return _O(e,t,n,r);let i=n.allOf.map(n=>VO(e,t,n,qE(n,RE(r))));return _O(e,t,n,i.every(e=>m(e))?SO(i):CO(r,i))}function TO(e,t,n,r){if(_(n.allOf.length,0))return _O(e,t,n,r);let i=_O(e,t,n,r),a=n.allOf.map(n=>VO(e,t,n,qE(n,RE(i))));return a.every(e=>m(e))?SO(a):CO(i,a)}function EO(e,t,n,r){return _(e,`Decode`)?wO(e,t,n,r):TO(e,t,n,r)}function DO(e,t,n,r){if(!me(r))return r;for(let i of x(n.properties))!y(r,i)||HD(n.properties[i],i,r)||(r[i]=VO(e,t,n.properties[i],r[i]));return _O(e,t,n,r)}function OO(e,t,n,r){let i=_O(e,t,n,r);if(!me(i))return i;for(let r of x(n.properties))!y(i,r)||HD(n.properties[r],r,i)||(i[r]=VO(e,t,n.properties[r],i[r]));return i}function kO(e,t,n,r){return _(e,`Decode`)?DO(e,t,n,r):OO(e,t,n,r)}function AO(e,t,n,r){if(!me(r))return r;let i=new RegExp(io(n));for(let a of x(r))i.test(a)&&(r[a]=VO(e,t,oo(n),r[a]));return _O(e,t,n,r)}function jO(e,t,n,r){let i=_O(e,t,n,r);if(!me(i))return i;let a=new RegExp(io(n));for(let r of x(i))a.test(r)&&(i[r]=VO(e,t,oo(n),i[r]));return i}function MO(e,t,n,r){return _(e,`Decode`)?AO(e,t,n,r):jO(e,t,n,r)}function NO(e,t,n,r){return y(t,n.$ref)?VO(e,t,t[n.$ref],r):r}function PO(e,t,n,r){return _(e,`Decode`)?_O(e,t,n,NO(e,t,n,r)):NO(e,t,n,_O(e,t,n,r))}function FO(e,t,n,r){if(!d(r))return r;for(let i=0;iRE(n),(e,t,n)=>pO(e,t,n),(e,t,n)=>tO(e,t,n),(e,t,n)=>qE(e,t,n),(e,t,n)=>UO(e,t,n),(e,t,n)=>WO(e,t,n)]);function KO(...e){let[t,n,r]=Fn(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]});return GO(t,n,r)}var qO=class extends _E{constructor(e,t){super(`Encode`,e,t)}};function JO(e,t,n){if(!hE(e,t,n))throw new qO(n,gE(e,t,n));return n}function YO(e,t,n){return VO(`Encode`,e,Ht().unionPrioritySort?KE(t):t,n)}const XO=mO([(e,t,n)=>RE(n),(e,t,n)=>YO(e,t,n),(e,t,n)=>pO(e,t,n),(e,t,n)=>tO(e,t,n),(e,t,n)=>qE(e,t,n),(e,t,n)=>JO(e,t,n)]);function ZO(...e){let[t,n,r]=Fn(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]});return XO(t,n,r)}function QO(e,t){return Ir(t)||ok(e,t.items)}function $O(e,t){return Ir(t)||rk({...e,...t.$defs},un(t.$ref))}function ek(e,t){return Ir(t)||t.allOf.some(t=>ok(e,t))}function tk(e,t){return Ir(t)||x(t.properties).some(n=>ok(e,t.properties[n]))}function nk(e,t){return Ir(t)||ok(e,oo(t))}function rk(e,t){return sk.has(t.$ref)?!1:(sk.add(t.$ref),Ir(t)||y(e,t.$ref)&&ok(e,e[t.$ref]))}function ik(e,t){return Ir(t)||t.items.some(t=>ok(e,t))}function ak(e,t){return Ir(t)||t.anyOf.some(t=>ok(e,t))}function ok(e,t){return Qt(t)?QO(e,t):Mn(t)?$O(e,t):M(t)?ek(e,t):j(t)?tk(e,t):so(t)?nk(e,t):dn(t)?rk(e,t):L(t)?ik(e,t):I(t)?ak(e,t):Ir(t)}const sk=new Set;function ck(...e){let[t,n]=Fn(e,{2:(e,t)=>[e,t],1:e=>[{},e]});return sk.clear(),ok(t,n)}var lk=class extends Error{constructor(e,t){super(t),this.type=e}};function uk(e,t){return ue(t.default)?t.default(t):m(t.default)?RE(t.default):t.default}function dk(e,t){if(jb(t)&&!Gy(t))throw new lk(t,`Arrays with uniqueItems constraints must specify a default annotation`);let n=pb(t)?t.minItems:0;return Array.from({length:n},()=>Rk(e,t.items))}async function*fk(){}function pk(e,t){return fk()}function mk(e,t){return t.Create()}function hk(e,t){return eb(t)?BigInt(t.exclusiveMinimum)+BigInt(1):db(t)?BigInt(t.minimum):BigInt(0)}function gk(e,t){return!1}function _k(e,t){let n=Rk(e,t.instanceType);return class{constructor(){Object.assign(this,n)}}}function vk(e,t){return Rk({...e,...t.$defs},un(t.$ref))}function yk(e,t){return Rk(e,Ty(t))}function bk(e,t){let n=Rk(e,t.returnType);return()=>n}function xk(e,t){return eb(t)&&p(t.exclusiveMinimum)?t.exclusiveMinimum+1:db(t)?t.minimum:0}function Sk(e,t){return Rk(e,Ty(vy(e,t)))}function*Ck(){}function wk(e,t){return Ck()}function Tk(e,t){return t.const}function Ek(e,t){throw new lk(t,`Cannot create TNever types`)}function Dk(e,t){return null}function Ok(e,t){return eb(t)&&p(t.exclusiveMinimum)?t.exclusiveMinimum+1:db(t)?t.minimum:0}function kk(e,t){return(g(t.required)?[]:t.required).reduce((n,r)=>({...n,[r]:Rk(e,t.properties[r])}),{})}function Ak(e,t){return Promise.resolve(Rk(e,t.item))}function jk(e,t){if(hb(t)&&!Gy(t))throw new lk(t,`Record with the minProperties constraint must have a default annotation`);return{}}function Mk(e,t){return y(e,t.$ref)?Rk(e,e[t.$ref]):(()=>{throw new lk(t,`Unable to deref Ref`)})()}function Nk(e,t){if((yb(t)||tb(t))&&!Gy(t))throw Error(`Strings with format or pattern constraints must specify default`);let n=mb(t)?t.minLength:0;return``.padEnd(n)}function Pk(e,t){return Symbol()}function Fk(e,t){let n=Ki(t.pattern);if(Oi(n))throw new lk(t,`Unable to create TemplateLiteral due to infinite type expansion`);return Rk(e,n)}function Ik(e,t){return Array.from({length:t.minItems},(n,r)=>Rk(e,t.items[r]))}function Lk(e,t){if(_(t.anyOf.length,0))throw Error(`Unable to create Union with no variants`);return Rk(e,t.anyOf[0])}function Rk(e,t){return Gy(t)?uk(e,t):Qt(t)?dk(e,t):tn(t)?pk(e,t):Xt(t)?mk(e,t):Zr(t)?hk(e,t):$r(t)?gk(e,t):an(t)?_k(e,t):Mn(t)?vk(e,t):Wn(t)?yk(e,t):cn(t)?bk(e,t):ii(t)?xk(e,t):M(t)?Sk(e,t):oi(t)?wk(e,t):P(t)?Tk(e,t):_n(t)?Ek(e,t):gi(t)?Dk(e,t):yi(t)?Ok(e,t):j(t)?kk(e,t):Ti(t)?Ak(e,t):so(t)?jk(e,t):dn(t)?Mk(e,t):Oi(t)?Nk(e,t):xi(t)?Pk(e,t):Af(t)?Fk(e,t):L(t)?Ik(e,t):mo(t)?void 0:I(t)?Lk(e,t):(go(t),void 0)}function zk(...e){let[t,n]=Fn(e,{2:(e,t)=>[e,t],1:e=>[{},e]});return Rk(t,n)}var Bk=class extends _E{constructor(e,t){super(`Parse`,e,t)}};function Vk(e,t,n){if(!hE(e,t,n))throw new Bk(n,gE(e,t,n));return n}const Hk=mO([(e,t,n)=>RE(n),(e,t,n)=>pO(e,t,n),(e,t,n)=>tO(e,t,n),(e,t,n)=>qE(e,t,n),(e,t,n)=>Vk(e,t,n)]);F([A({type:N(`insert`),path:Di(),value:kn()}),Object({type:N(`update`),path:Di(),value:kn()}),A({type:N(`delete`),path:Di()})]);var Uk=class e extends Yt{constructor(...e){super();let t=Fn(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[e,t]});if(t.length===3&&t[1]instanceof dE&&t[2]instanceof uE){let[e,n,r]=t;this.hasCodec=e,this.buildResult=n,this.evaluateResult=r}else{let[e,n]=t;this.hasCodec=ck(e,n),this.buildResult=fE(e,n),this.evaluateResult=this.buildResult.Evaluate()}}IsAccelerated(){return this.evaluateResult.IsAccelerated()}Context(){return this.buildResult.Context()}Type(){return this.buildResult.Schema()}Code(){return this.evaluateResult.Code()}Check(e){return this.evaluateResult.Check(e)}Parse(e){if(this.Check(e))return e;if(Ht().correctiveParse)return Hk(this.Context(),this.Type(),e);throw new Bk(e,this.Errors(e))}Errors(e){return this.IsAccelerated()&&this.Check(e)?[]:gE(this.Context(),this.Type(),e)}Clean(e){return qE(this.Context(),this.Type(),e)}Convert(e){return tO(this.Context(),this.Type(),e)}Create(){return zk(this.Context(),this.Type())}Default(e){return pO(this.Context(),this.Type(),e)}Decode(e){return this.hasCodec?KO(this.Context(),this.Type(),e):this.Parse(e)}Encode(e){return this.hasCodec?ZO(this.Context(),this.Type(),e):this.Parse(e)}Clone(){return new e(this.hasCodec,this.buildResult,this.evaluateResult)}};function Wk(...e){let[t,n]=Fn(e,{2:(e,t)=>[e,t],1:e=>[{},e]});return new Uk(t,n)}var Gk=Wk;const Kk=Y.Refine(Y.Unsafe({}),e=>e instanceof Date),qk=Y.Object({id:Y.Number(),created:Kk,title:Y.String({minLength:1,maxLength:100}),type:Y.Enum([`jpg`,`png`]),size:Y.Number(),url:Y.String({format:`url`})}),Jk=Y.Object({id:Y.Number(),stars:Y.Number({minimum:1,maximum:5}),title:Y.String({minLength:1,maxLength:100}),text:Y.String({minLength:1,maxLength:1e3}),images:Y.Array(qk)});Gk(Y.Object({id:Y.Number(),created:Kk,title:Y.String({minLength:1,maxLength:100}),brand:Y.String({minLength:1,maxLength:30}),description:Y.String({minLength:1,maxLength:500}),price:Y.Number({minimum:1,maximum:1e4}),discount:Y.Union([Y.Number({minimum:1,maximum:100}),Y.Null()]),quantity:Y.Number({minimum:1,maximum:10}),tags:Y.Array(Y.String({minLength:1,maxLength:30})),images:Y.Array(qk),ratings:Y.Array(Jk)})).Parse({}); \ No newline at end of file +var e=Object.defineProperty,t=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r};const n={assign:0,create:0,clone:0,discard:0,update:0};function r(e,t){return n.assign+=1,{...e,...t}}function i(e,t,n){return e>=t&&e<=n}function a(e){return i(e,127462,127487)}function o(e){return i(e,65024,65039)}function s(e){return i(e,768,879)||i(e,6832,6911)||i(e,7616,7679)||i(e,65056,65071)}function c(e){return e>65535?2:1}function l(e,t){for(;t=t)return!0;return!1}function re(e,t){let n=0,r=0;for(;rt)return!1;return!0}function ie(e,t){if(t===0)return!0;let n=0;for(;n=t)return!0}return!1}function ae(e,t){let n=0;for(;nt)return!1}return!0}var oe=t({Entries:()=>x,EntriesRegExp:()=>Ee,Every:()=>Ce,EveryAll:()=>we,GraphemeCount:()=>be,HasPropertyKey:()=>b,IsArray:()=>d,IsBigInt:()=>f,IsBoolean:()=>p,IsClassInstance:()=>ve,IsConstructor:()=>se,IsDeepEqual:()=>je,IsEqual:()=>v,IsFunction:()=>ce,IsGreaterEqualThan:()=>ge,IsGreaterThan:()=>pe,IsInteger:()=>le,IsLessEqualThan:()=>he,IsLessThan:()=>me,IsMaxLength:()=>xe,IsMinLength:()=>Se,IsMultipleOf:()=>_e,IsNull:()=>ue,IsNumber:()=>m,IsObject:()=>h,IsObjectNotArray:()=>de,IsString:()=>g,IsSymbol:()=>fe,IsUndefined:()=>_,IsUnsafePropertyKey:()=>Te,IsValueLike:()=>ye,Keys:()=>S,ShiftLeft:()=>y,Symbols:()=>De,Values:()=>Oe});function d(e){return Array.isArray(e)}function f(e){return v(typeof e,`bigint`)}function p(e){return v(typeof e,`boolean`)}function se(e){if(_(e)||!ce(e))return!1;let t=Function.prototype.toString.call(e);return!!(/^class\s/.test(t)||/\[native code\]/.test(t))}function ce(e){return v(typeof e,`function`)}function le(e){return Number.isInteger(e)}function ue(e){return v(e,null)}function m(e){return Number.isFinite(e)}function de(e){return h(e)&&!d(e)}function h(e){return v(typeof e,`object`)&&!ue(e)}function g(e){return v(typeof e,`string`)}function fe(e){return v(typeof e,`symbol`)}function _(e){return v(e,void 0)}function v(e,t){return e===t}function pe(e,t){return e>t}function me(e,t){return e=t}function _e(e,t){if(f(e)||f(t))return BigInt(e)%BigInt(t)===0n;if(!m(e)||le(e)&&1/t%1==0)return!0;let n=e%t;return Math.min(Math.abs(n),Math.abs(n-t))<1e-10}function ve(e){if(!h(e))return!1;let t=globalThis.Object.getPrototypeOf(e);return ue(t)?!1:v(typeof t.constructor,`function`)&&!(v(t.constructor,globalThis.Object)||v(t.constructor.name,`Object`))}function ye(e){return f(e)||p(e)||ue(e)||m(e)||g(e)||_(e)}function be(e){return te(e)}function xe(e,t){return ae(e,t)}function Se(e,t){return ie(e,t)}function Ce(e,t,n){for(let r=t;r[RegExp(`^${t}$`),e[t]])}function x(e){return Object.entries(e)}function S(e){return Object.getOwnPropertyNames(e)}function De(e){return Object.getOwnPropertySymbols(e)}function Oe(e){return Object.values(e)}function ke(e,t){if(!h(t))return!1;let n=S(e);return v(n.length,S(t).length)&&n.every(n=>je(e[n],t[n]))}function Ae(e,t){return d(t)&&v(e.length,t.length)&&e.every((n,r)=>je(e[r],t[r]))}function je(e,t){return d(e)?Ae(e,t):h(e)?ke(e,t):v(e,t)}const Me=/^[\p{ID_Start}_$][\p{ID_Continue}_$\u200C\u200D]*$/u;function Ne(e){return Me.test(e)}function Pe(e,t){return`(${e} && ${t})`}function C(e,t){return`(${e} || ${t})`}function Fe(e){return`!(${e})`}function Ie(e){return`Array.isArray(${e})`}function Le(e){return`typeof ${e} === "bigint"`}function Re(e){return`typeof ${e} === "boolean"`}function ze(e){return`Number.isInteger(${e})`}function Be(e){return`${e} === null`}function Ve(e){return`Number.isFinite(${e})`}function He(e){return Pe(Ue(e),Fe(Ie(e)))}function Ue(e){return`typeof ${e} === "object" && ${e} !== null`}function We(e){return`typeof ${e} === "string"`}function Ge(e){return`typeof ${e} === "symbol"`}function Ke(e){return`${e} === undefined`}function qe(e){return`typeof ${e} === "function"`}function Je(e){return`Guard.IsConstructor(${e})`}function Ye(e,t){return`${e} === ${t}`}function Xe(e,t){return`${e} > ${t}`}function Ze(e,t){return`${e} < ${t}`}function Qe(e,t){return`${e} <= ${t}`}function $e(e,t){return`${e} >= ${t}`}function et(e,t){return`Guard.IsMinLength(${e}, ${t})`}function tt(e,t){return`Guard.IsMaxLength(${e}, ${t})`}function nt(e,t,n,r){return v(t,`0`)?`${e}.every((${n[0]}, ${n[1]}) => ${r})`:`((value, callback) => { for(let index = ${t}; index < value.length; index++) if (!callback(value[index], index)) return false; return true })(${e}, (${n[0]}, ${n[1]}) => ${r})`}function rt(e){return`Object.entries(${e})`}function it(e){return`Object.getOwnPropertyNames(${e})`}function at(e,t){return v(t,`"__proto__"`)||v(t,`"constructor"`)?`Object.prototype.hasOwnProperty.call(${e}, ${t})`:`${t} in ${e}`}function ot(e,t){return`Guard.IsDeepEqual(${e}, ${t})`}function st(e){return`[${e.join(`, `)}]`}function ct(e,t){return`((${e.join(`, `)}) => ${t})`}function w(e,t){return`${e}(${t.join(`, `)})`}function lt(e,t){return`new ${e}(${t.join(`, `)})`}function T(e,t){return`${e}${Ne(t)?`.${t}`:`[${E(t)}]`}`}function E(e){return g(e)?JSON.stringify(e):`${e}`}function ut(e,t,n){return`(${e} ? ${t} : ${n})`}function dt(e){return`{ ${e.join(`; `)}; }`}function ft(e,t){return`const ${e} = ${t}`}function pt(e,t){return`if(${e}) { ${t} }`}function mt(e){return`return ${e}`}function ht(e){return v(e.length,0)?`true`:e.reduce((e,t)=>Pe(e,t))}function gt(e){return v(e.length,0)?`false`:e.reduce((e,t)=>C(e,t))}function _t(e){return`++${e}`}function vt(e,t){return`Guard.IsMultipleOf(${e}, ${t})`}function yt(e){return e instanceof Boolean}function bt(e){return e instanceof Number}function xt(e){return e instanceof String}function St(e){return globalThis.ArrayBuffer.isView(e)}function Ct(e){return e instanceof globalThis.RegExp}function wt(e){return e instanceof globalThis.Date}function Tt(e){return e instanceof globalThis.Set}function Et(e){return e instanceof globalThis.Map}var Dt=oe;function Ot(e){return e}function kt(e){return b(e,`~kind`)}function At(e){let t={},n=Object.getOwnPropertyDescriptors(e);for(let e of Object.keys(n)){if(Te(e))continue;let r=n[e];b(r,`value`)&&Object.defineProperty(t,e,{...r,value:Rt(r.value)})}return t}function jt(e){let t={};for(let n of S(e))Te(n)||(t[n]=Rt(e[n]));for(let n of De(e))t[n]=Rt(e[n]);return t}function Mt(e){return ve(e)?Ot(e):kt(e)?At(e):jt(e)}function Nt(e){return e.map(e=>Rt(e))}function Pt(e){return e.slice()}function Ft(e){return new RegExp(e.source,e.flags)}function It(e){return new Map(Rt([...e.entries()]))}function Lt(e){return new Set(Rt([...e.values()]))}function Rt(e){return St(e)?Pt(e):Ct(e)?Ft(e):Et(e)?It(e):Tt(e)?Lt(e):d(e)?Nt(e):h(e)?Mt(e):e}function zt(e){return n.clone+=1,Rt(e)}const Bt={immutableTypes:!1,maxErrors:8,useAcceleration:!0,exactOptionalPropertyTypes:!1,enumerableKind:!1,correctiveParse:!1,unionPrioritySort:!0};function Vt(){return Bt}function Ht(e,t){for(let n of Object.keys(t))Object.defineProperty(e,n,{configurable:!0,writable:!0,enumerable:!1,value:t[n]});return e}function Ut(e,t){return{...e,...t}}function D(e,t,r={}){n.create+=1;let i=Vt(),a=Ut(t,r),o=i.enumerableKind?Ut(a,e):Ht(a,e);return i.immutableTypes?Object.freeze(o):o}function Wt(e,t){n.discard+=1;let r={},i=Object.getOwnPropertyDescriptors(zt(e)),a=new Set(t);for(let e of Object.keys(i))a.has(e)||Object.defineProperty(r,e,i[e]);return r}function O(e,t,r){n.update+=1;let i=Vt(),a=zt(e);for(let e of Object.keys(t))Object.defineProperty(a,e,{configurable:!0,writable:!0,enumerable:i.enumerableKind,value:t[e]});for(let e of Object.keys(r))Object.defineProperty(a,e,{configurable:!0,enumerable:!0,writable:!0,value:r[e]});return a}function k(e,t){return h(e)&&b(e,`~kind`)&&v(e[`~kind`],t)}function Gt(e){return h(e)}function A(e,t,n){return D({"~kind":`Deferred`},{type:`deferred`,action:e,parameters:t,options:n},{})}function Kt(e){return k(e,`Deferred`)}function qt(e){return O(e,{"~readonly":!0},{})}function Jt(e,t){return O(qt(e),{},t)}function Yt(e,t,n,r){return Jt(J(e,t,n),r)}function Xt(e){return O(e,{"~optional":!0},{})}function Zt(e,t){return O(Xt(e),{},t)}function Qt(e,t,n,r){return Zt(J(e,t,n),r)}function $t(e,t){return D({"~kind":`Array`},{type:`array`,items:e},t)}function en(e){return k(e,`Array`)}function tn(e){return Wt(e,[`~kind`,`type`,`items`])}function nn(e,t,n={}){return D({"~kind":`Constructor`},{type:`constructor`,parameters:e,instanceType:t},n)}function rn(e){return k(e,`Constructor`)}function an(e){return Wt(e,[`~kind`,`type`,`parameters`,`instanceType`])}function on(e,t,n={}){return D({"~kind":`Function`},{type:`function`,parameters:e,returnType:t},n)}function sn(e){return k(e,`Function`)}function cn(e){return Wt(e,[`~kind`,`type`,`parameters`,`returnType`])}function ln(e,t){return D({"~kind":`Ref`},{$ref:e},t)}function un(e){return k(e,`Ref`)}function dn(e,t){return D({"~kind":`Generic`},{type:`generic`,parameters:e,expression:t})}function fn(e){return k(e,`Generic`)}function pn(e){return D({"~kind":`Any`},{},e)}function mn(e){return k(e,`Any`)}function hn(e){return D({"~kind":`Never`},{not:{}},e)}function gn(e){return k(e,`Never`)}function _n(e,t={}){return A(`AddOptional`,[e],t)}function vn(e,t={}){return Zt(e,t)}function yn(e){return vn(e)}function bn(e){return Gt(e)&&b(e,`~optional`)}function xn(e){return S(e).filter(t=>!bn(e[t]))}function Sn(e){return S(e)}function Cn(e){return Oe(e)}function j(e,t={}){let n=xn(e);return D({"~kind":`Object`},{type:`object`,...n.length>0?{required:n}:{},properties:e},t)}function M(e){return k(e,`Object`)}function wn(e){return Wt(e,[`~kind`,`type`,`properties`,`required`])}function Tn(e){return D({"~kind":`Unknown`},{},e)}function En(e){return k(e,`Unknown`)}function Dn(e,t,n){return D({"~kind":`Cyclic`},{$defs:S(e).reduce((t,n)=>({...t,[n]:O(e[n],{},{$id:n})}),{}),$ref:t},n)}function On(e){return k(e,`Cyclic`)}function kn(e){return O(e,{"~unsafe":null},{})}function An(e){return de(e)&&b(e,`~unsafe`)&&ue(e[`~unsafe`])}function jn(e,t){return t[e.length]?.(...e)??(()=>{throw Error(`Invalid Arguments`)})()}function Mn(...e){let[t,n]=jn(e,{2:(e,t)=>[e,t,t],1:e=>[e,Tn(),Tn()]});return D({"~kind":`Infer`},{type:`infer`,name:t,extends:n},{})}function Nn(e){return k(e,`Infer`)}function Pn(e,t,n,r={}){return D({"~kind":`Dependent`},{if:e,then:t,else:n},r)}function Fn(e){return k(e,`Dependent`)}function In(e){return Wt(e,[`~kind`,`if`,`then`,`else`])}function Ln(e){return de(e)}function Rn(e){return S(e).filter(e=>isNaN(e)).reduce((t,n)=>[...t,e[n]],[])}function zn(e,t){return D({"~kind":`Enum`},{enum:Ln(e)?Rn(e):e},t)}function Bn(e){return k(e,`Enum`)}function Vn(e,t={}){return D({"~kind":`Intersect`},{allOf:e},t)}function N(e){return k(e,`Intersect`)}function Hn(e){return Wt(e,[`~kind`,`allOf`])}let Un;function Wn(){try{return Kn(`null`)(),!0}catch{return!1}}function Gn(){return _(Un)&&(Un=Wn()),Un&&Vt().useAcceleration}function Kn(...e){return new globalThis.Function(...e)}function qn(){throw Error(`Unreachable`)}var Jn=t({Hash:()=>Cr,HashCode:()=>Sr});function Yn(e){let t=new Set,n=e;for(;n&&n!==Object.prototype;){for(let e of Reflect.ownKeys(n))e!==`constructor`&&typeof e!=`symbol`&&t.add(e);n=Object.getPrototypeOf(n)}return[...t]}function Xn(e){return typeof e==`number`}var Zn;(function(e){e[e.Array=0]=`Array`,e[e.BigInt=1]=`BigInt`,e[e.Boolean=2]=`Boolean`,e[e.Date=3]=`Date`,e[e.Constructor=4]=`Constructor`,e[e.Function=5]=`Function`,e[e.Null=6]=`Null`,e[e.Number=7]=`Number`,e[e.Object=8]=`Object`,e[e.RegExp=9]=`RegExp`,e[e.String=10]=`String`,e[e.Symbol=11]=`Symbol`,e[e.TypeArray=12]=`TypeArray`,e[e.Undefined=13]=`Undefined`})(Zn||={});let Qn=BigInt(`14695981039346656037`);const[$n,er]=[BigInt(`1099511628211`),BigInt(`18446744073709551616`)],tr=Array.from({length:256}).map((e,t)=>BigInt(t)),nr=new Float64Array(1),rr=new DataView(nr.buffer),ir=new Uint8Array(nr.buffer);function ar(e){Qn^=tr[e],Qn=Qn*$n%er}function or(e){ar(Zn.Array);for(let t of e)xr(t)}function sr(e){ar(Zn.BigInt),rr.setBigInt64(0,e);for(let e of ir)ar(e)}function cr(e){ar(Zn.Boolean),ar(+!!e)}function lr(e){ar(Zn.Constructor),xr(e.toString())}function ur(e){ar(Zn.Date),xr(e.getTime())}function dr(e){ar(Zn.Function),xr(e.toString())}function fr(e){ar(Zn.Null)}function pr(e){ar(Zn.Number),rr.setFloat64(0,e,!0);for(let e of ir)ar(e)}function mr(e){ar(Zn.Object);for(let t of Yn(e).sort())xr(t),xr(e[t])}function hr(e){ar(Zn.RegExp),_r(e.toString())}const gr=new TextEncoder;function _r(e){ar(Zn.String);for(let t of gr.encode(e))ar(t)}function vr(e){ar(Zn.Symbol),xr(e.toString())}function yr(e){ar(Zn.TypeArray);let t=new Uint8Array(e.buffer);for(let e=0;ethis.decode(t[`~codec`].decode(e)):this.decode,encode:Mr(t)?n=>t[`~codec`].encode(e(n)):e};return O(this.type,{"~codec":n},{})}},Or=class{constructor(e){this.type=e}Decode(e){return new Dr(this.type,e)}};function kr(e){return new Or(e)}function Ar(e,t){return kr(e).Decode(t).Encode(()=>{throw Error(`Encode not implemented`)})}function jr(e,t){return kr(e).Decode(()=>{throw Error(`Decode not implemented`)}).Encode(t)}function Mr(e){return Gt(e)&&b(e,`~codec`)&&h(e[`~codec`])&&b(e[`~codec`],`encode`)&&b(e[`~codec`],`decode`)}function Nr(e){return ty(e)}function Pr(e){return Gt(e)&&b(e,`~immutable`)}function Fr(e,t={}){return A(`AddReadonly`,[e],t)}function Ir(e,t={}){return Jt(e,t)}function Lr(e){return Ir(e)}function Rr(e){return Gt(e)&&b(e,`~readonly`)}function zr(e,t){return O(e,{"~refine":Hr(e)?[...e[`~refine`],t]:[t]},{})}function Br(...e){let[t,n,r]=jn(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[e,t,()=>`Refine Error`]});return zr(t,{check:n,error:r})}function Vr(e){return de(e)&&b(e,`check`)&&b(e,`error`)&&ce(e.check)&&ce(e.error)}function Hr(e){return Gt(e)&&b(e,`~refine`)&&d(e[`~refine`])&&Ce(e[`~refine`],0,e=>Vr(e))}function Ur(e){return D({"~kind":`BigInt`},{type:`bigint`},e)}function Wr(e){return k(e,`BigInt`)}function Gr(e){return D({"~kind":`Boolean`},{type:`boolean`},e)}function Kr(e){return k(e,`Boolean`)}function qr(e){return D({"~kind":`Identifier`},{name:e})}function Jr(e){return k(e,`Identifier`)}const Yr=`-?(?:0|[1-9][0-9]*)`;function Xr(e){return D({"~kind":`Integer`},{type:`integer`},e)}function Zr(e){return k(e,`Integer`)}var Qr=class extends Error{constructor(e){super(`Invalid Literal value`),Object.defineProperty(this,"cause",{value:{value:e},writable:!1,configurable:!1,enumerable:!1})}};function $r(e){return f(e)?`bigint`:p(e)?`boolean`:m(e)?`number`:g(e)?`string`:(()=>{throw new Qr(e)})()}function P(e,t){return D({"~kind":`Literal`},{type:$r(e),const:e},t)}function ei(e){return f(e)||p(e)||m(e)||g(e)}function ti(e){return F(e)&&f(e.const)}function ni(e){return F(e)&&p(e.const)}function ri(e){return F(e)&&m(e.const)}function ii(e){return F(e)&&g(e.const)}function F(e){return k(e,`Literal`)}function ai(e){return D({"~kind":`Null`},{type:`null`},e)}function oi(e){return k(e,`Null`)}const si=`-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?`;function ci(e){return D({"~kind":`Number`},{type:`number`},e)}function li(e){return k(e,`Number`)}function ui(e){return D({"~kind":`Symbol`},{type:`symbol`},e)}function di(e){return k(e,`Symbol`)}function fi(...e){let[t,n,r]=jn(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[e,t,t],1:e=>[e,Tn(),Tn()]});return D({"~kind":`Parameter`},{name:t,extends:n,equals:r},{})}function pi(e){return k(e,`Parameter`)}function mi(e){return D({"~kind":`String`},{type:`string`},e)}function hi(e){return k(e,`String`)}function I(e,t={}){return D({"~kind":`Union`},{anyOf:e},t)}function L(e){return k(e,`Union`)}function gi(e){return Wt(e,[`~kind`,`anyOf`])}function _i(e){let t=jd(e);return v(t.length,2)?t[0]:[]}function vi(e){return!0}function yi(e){return y(e,(e,t)=>xi(e)?yi(t):!1,()=>!0)}function bi(e){return v(e.length,0)?!1:yi(e)}function xi(e){return L(e)?bi(e.anyOf):F(e)?vi(e.const):!1}function Si(e){return bi(e)}function Ci(e){return D({"~kind":`TemplateLiteral`},{type:`string`,pattern:e},{})}function wi(e,t,n=[]){return y(e,(e,r)=>wi(r,t,[...n,`${e}${t}`]),()=>n)}function Ti(e,t){return v(e.length,0)?[`${t}`]:wi(e,t)}function Ei(e,t,n=[]){return y(t,(t,r)=>Ei(e,r,[...n,...Di(e,t)]),()=>n)}function Di(e,t){return L(t)?Ei(e,t.anyOf):F(t)?Ti(e,t.const):qn()}function Oi(e,t){return y(t,(t,n)=>Oi(Di(e,t),n),()=>e)}function ki(e){return e.map(e=>P(e))}function Ai(e){return I(ki(Oi([],e)))}function ji(e){return v(e.length,0)?qn():v(e.length,1)&&F(e[0])?e[0]:Ai(e)}function Mi(e){let t=_i(e);return v(t.length,0)?mi():Si(t)?ji(t):Ci(e)}function Ni(e){let t=Mi(e);return _f(t)?mi():t}function Pi(e,t){return D({"~kind":`Record`},{type:`object`,patternProperties:{[e]:t}})}function Fi(e){return Pi(Ba,e)}function Ii(e){return j({true:e,false:e})}function Li(e,t={}){let[n,r,i]=[e,e.length,!1];return D({"~kind":`Tuple`},{type:`array`,additionalItems:i,items:n,minItems:r},t)}function R(e){return k(e,`Tuple`)}function Ri(e){return Wt(e,[`~kind`,`type`,`items`,`minItems`,`additionalItems`])}function zi(e){return Wt(e,[`~readonly`])}function Bi(e,t){return O(zi(e),{},t)}function Vi(e,t,n,r){return Bi(J(e,t,n),r)}function Hi(e,t={}){return A(`RemoveReadonly`,[e],t)}function Ui(e,t={}){return Bi(e,t)}function Wi(e){return Wt(e,[`~optional`])}function Gi(e,t){return O(Wi(e),{},t)}function Ki(e,t,n,r){return Gi(J(e,t,n),r)}function qi(e,t={}){return A(`RemoveOptional`,[e],t)}function Ji(e,t={}){return Gi(e,t)}function Yi(e){return e.reduceRight((e,t,n)=>({[n]:t,...e}),{})}function Xi(e){return j(Yi(e.items))}function Zi(e,t){return Rr(e)?!!Rr(t):!1}function Qi(e,t){return bn(e)?!!bn(t):!1}function $i(e,t){let n=Zi(e,t),r=Qi(e,t),i=Ui(Ji(ga([e,t])));return n&&r?Ir(vn(i)):n&&!r?Ir(i):!n&&r?vn(i):i}function ea(e,t,n){return n in e?n in t?$i(e[n],t[n]):e[n]:n in t?t[n]:hn()}function ta(e,t){return[...new Set([...S(t),...S(e)])].reduce((n,r)=>({...n,[r]:ea(e,t,r)}),{})}function na(e){return M(e)?e.properties:R(e)?Yi(e.items):qn()}function ra(e,t){return j(ta(na(e),na(t)))}function ia(e,t){let n=bm(e,t);return v(n,`left-inside`)?e:v(n,`right-inside`)||v(n,`equal`)?t:hn()}function aa(e){return M(e)||R(e)}function oa(e,t){let n=L(e),r=L(t);return n||r}function sa(e,t){let n=ya(e),r=ya(t),i=oa(n,r),a=aa(n),o=aa(r);return i?ga([n,r]):a&&o?ra(n,r):a&&!o?n:!a&&o?r:ia(n,r)}function ca(e,t,n=[]){return y(t,(t,r)=>ca(e,r,[...n,sa(e,t)]),()=>v(n.length,0)?[e]:n)}function la(e,t,n=[]){return y(e,(e,r)=>la(r,t,[...n,...ua([e],t)]),()=>n)}function ua(e,t=[]){return y(e,(e,n)=>L(e)?ua(n,la(e.anyOf,t)):ua(n,ca(e,t)),()=>t)}function da(e,t){return Cf(ym({},e,t))?[]:[e]}function fa(e,t){return e.reduce((e,n)=>[...e,...da(n,t)],[])}function pa(e,t){let n=ya(e);return va(fa(L(n)?n.anyOf:[n],t))}function ma(e,t,n){return va([Vn([e,t]),pa(n,e)])}function ha(e){return va(e.map(e=>P(e)))}function ga(e){return ba(Tm(ua(e)))}function _a(e){return ya(Ni(e))}function va(e){return ba(Tm(e))}function ya(e){return Fn(e)?ma(e.if,e.then,e.else):Bn(e)?ha(e.enum):N(e)?ga(e.allOf):_f(e)?_a(e.pattern):L(e)?va(e.anyOf):e}function ba(e){return v(e.length,1)?e[0]:v(e.length,0)?hn():I(e)}function xa(e,t){return Fa(ha(e),t)}function Sa(e,t){return Pi(Ra,t)}function Ca(e,t){return Fa(ga(e),t)}function wa(e,t){return g(e)||m(e)?j({[e]:t}):v(e,!1)?j({false:t}):v(e,!0)?j({true:t}):j({})}function Ta(e,t){return Pi(za,t)}function Ea(e,t){return b(e,`pattern`)&&(g(e.pattern)||e.pattern instanceof RegExp)?Pi(e.pattern.toString(),t):Pi(Ba,t)}function Da(e,t){return Si(_i(e))?Fa(_a(e),t):Pi(e,t)}function Oa(e){return L(e)?ka(e.anyOf):[e]}function ka(e){return e.reduce((e,t)=>[...e,...Oa(t)],[])}function Aa(e){return e.some(e=>hi(e)||li(e)||Zr(e))}function ja(e,t){return v(Aa(e),!0)?Pi(Ba,t):void 0}function Ma(e,t){return e.reduce((e,n)=>F(n)&&(g(n.const)||m(n.const))?{...e,[n.const]:t}:e,{})}function Na(e,t){return j(Ma(e,t))}function Pa(e,t){let n=ka(e),r=ja(n,t);return Gt(r)?r:Na(n,t)}function Fa(e,t){return mn(e)?Fi(t):Kr(e)?Ii(t):Bn(e)?xa(e.enum,t):Zr(e)?Sa(e,t):N(e)?Ca(e.allOf,t):F(e)?wa(e.const,t):li(e)?Ta(e,t):L(e)?Pa(e.anyOf,t):hi(e)?Ea(e,t):_f(e)?Da(e.pattern,t):j({})}function Ia(e,t,n){return q([e])?O(Fa(e,t),{},n):Va(e,t,n)}function La(e,t,n,r,i){return Ia(J(e,t,n),J(e,t,r),i)}const Ra=`^${Yr}$`,za=`^${si}$`,Ba=`^.*$`;function Va(e,t,n={}){return A(`Record`,[e,t],n)}function Ha(e,t,n={}){return Ia(e,t,n)}function Ua(e,t){return Pi(e,t)}function Wa(e){return v(e,Ba)?mi():v(e,Ra)?Xr():v(e,za)?ci():Mi(e)}function Ga(e){return S(e.patternProperties)[0]}function Ka(e){return Wa(Ga(e))}function qa(e){return e.patternProperties[Ga(e)]}function Ja(e){return k(e,`Record`)}function Ya(e){return D({"~kind":`Rest`},{type:`rest`,items:e},{})}function Xa(e){return k(e,`Rest`)}function Za(e){return D({"~kind":`This`},{$ref:`#`},e)}function Qa(e){return k(e,`This`)}function $a(e){return D({"~kind":`Undefined`},{type:`undefined`},e)}function eo(e){return k(e,`Undefined`)}function to(e){return D({"~kind":`Void`},{type:`void`},e)}function no(e){return k(e,`Void`)}function ro(e,t){return v(e,`Array`)?$t(t[0]):v(e,`Capitalize`)?uh(t[0]):v(e,`ConstructorParameters`)?Fh(t[0]):v(e,`Evaluate`)?ny(t[0]):v(e,`Exclude`)?Bh(t[0],t[1]):v(e,`Extract`)?Wh(t[0],t[1]):v(e,`Index`)?$h(t[0],t[1]):v(e,`InstanceType`)?Jg(t[0]):v(e,`Lowercase`)?fh(t[0]):v(e,`NonNullable`)?A_(t[0]):v(e,`Omit`)?F_(t[0],t[1]):v(e,`Parameters`)?H_(t[0]):v(e,`Partial`)?q_(t[0]):v(e,`Pick`)?rv(t[0],t[1]):v(e,`Readonly`)?lv(t[0]):v(e,`KeyOf`)?$g(t[0]):v(e,`Record`)?Va(t[0],t[1]):v(e,`Required`)?Ov(t[0]):v(e,`ReturnType`)?Mv(t[0]):v(e,`Uncapitalize`)?mh(t[0]):v(e,`Uppercase`)?gh(t[0]):$m(ln(e),t)}function io(){throw Error(`Unreachable`)}const ao=(e,t=[])=>e.reduce((e,t)=>d(t)&&v(t.length,2)?[...e,t[0]]:[...e,t],[]),oo=e=>{let[t,n]=e;return ao([...t,...n])};function so(e){return fi(e[0],e[2],e[4])}function co(e){return fi(e[0],e[2],e[2])}function lo(e){return fi(e[0],Tn(),e[2])}function uo(e){return fi(e,Tn(),Tn())}function fo(e){return e}function po(e){return oo(e)}function mo(e){return e[1]}function ho(e){return oo(e)}function go(e){return e[1]}function _o(e){return ro(e[0],e[1])}function vo(e){return null}function yo(e){return mi()}function bo(e){return ci()}function xo(e){return Gr()}function So(e){return $a()}function Co(e){return ai()}function wo(e){return Xr()}function To(e){return Ur()}function Eo(e){return Tn()}function Do(e){return pn()}function Oo(e){return j({})}function ko(e){return hn()}function Ao(e){return ui()}function jo(e){return to()}function Mo(e){return Za()}function No(e){return P(BigInt(e))}function Po(e){return P(v(e,`true`))}function Fo(e){return P(parseFloat(e))}function Io(e){return P(e)}function Lo(e){return e[1]}function Ro(e){return P(e)}function zo(e){return v(e.length,3)?[e[0],e[1],...e[2]]:[e[0]]}function Bo(e){return e[1]}function Vo(e){return ff(e)}function Ho(e){return v(e.length,6)?Pn(e[1],e[3],e[5]):Pn(e[1],e[3],Tn())}function Uo(e){return e.length>0}function Wo(e){return e.reduce((e,t)=>v(t.length,3)?[...e,[t[1]]]:[...e,[]],[])}function Go(e){return v(e.length,6)?[e[1],e[3],e[5]]:[]}function Ko(e){return d(e)&&v(e.length,3)?e[1]:e}function qo(e){return v(e.length,2)?e[1]:[]}function Jo(e,t){return t.reduce((e,t)=>{let n=t;return v(n.length,1)?$h(e,n[0]):v(n.length,0)?$t(e):io()},e)}function Yo(e,t){return v(t.length,3)?Ah(e,t[0],t[1],t[2]):e}function Xo(e,t){return d(t)&&v(t.length,0)?e:Lv(e,t)}function Zo(e){let[t,n,r,i,a]=e;return Xo(Yo(t?$g(Jo(n,r)):Jo(n,r),i),a)}function Qo(e,t){return v(t.length,3)?(()=>{let[n,r,i]=t,a=Qo(r,i);if(v(n,`&`))return N(a)?Vn([e,...a.allOf]):Vn([e,a]);if(v(n,`|`))return L(a)?I([e,...a.anyOf]):I([e,a]);io()})():e}function $o(e){return e}function es(e){let[t,n]=e;return Qo(t,n)}function ts(e){return e}function ns(e){let[t,n]=e;return Qo(t,n)}function rs(e){return ey(e[1])}function is(e){return e[1]}function as(e){return dn(e[0],e[2])}function os(e){return v(e.length,4)?Mn(e[1],e[3]):v(e.length,2)?Mn(e[1],Tn()):io()}function ss(e){return e}function cs(e){return`${e}`}function ls(e){return e}function us(e){return e}function ds(e){return Zr(e[3])?Ra:li(e[3])?za:di(e[3])||hi(e[3])?Ba:io()}function fs(e){return e}function ps(e){return e.length>0}function ms(e){return e.length>0}function hs(e){let[t,n,r,i,a]=e;return{[n]:t&&r?Fr(_n(a)):t&&!r?Fr(a):!t&&r?_n(a):a}}function gs(e){return e}function _s(e){return oo(e)}function vs(e){return e.reduce((e,t)=>b(t,Ra)||b(t,za)||b(t,Ba)?[e[0],r(e[1],t)]:[r(e[0],t),e[1]],[{},{}])}function ys(e){return vs(e[1])}function bs(e){let[t,n]=e;return j(t,v(S(n).length,0)?{}:{patternProperties:n})}function xs(e){return v(e.length,5)?Fr(_n(e[4])):v(e.length,3)?e[2]:v(e.length,4)?v(e[2],`readonly`)?Fr(e[3]):_n(e[3]):io()}function Ss(e){return Fr(_n(e[1]))}function Cs(e){return Fr(e[1])}function ws(e){return _n(e[0])}function Ts(e){return e}function Es(e){return v(e.length,2)?Ya(e[1]):v(e.length,1)?e[0]:io()}function Ds(e){return oo(e)}function Os(e){return Li(e[1])}function ks(e){return Fr(_n(e[4]))}function As(e){return Fr(e[3])}function js(e){return _n(e[3])}function Ms(e){return e[2]}function Ns(e){return e}function Ps(e){return v(e.length,2)?Ya(e[1]):v(e.length,1)?e[0]:io()}function Fs(e){return oo(e)}function Is(e){return on(e[1],e[4])}function Ls(e){return nn(e[2],e[5])}function Rs(e,t){return v(e,`remove`)?Hi(t):v(e,`add`)?Fr(t):t}function zs(e){return v(e.length,2)&&v(e[0],`-`)?`remove`:v(e.length,2)&&v(e[0],`+`)||v(e.length,1)?`add`:`none`}function Bs(e,t){return v(e,`remove`)?qi(t):v(e,`add`)?_n(t):t}function Vs(e){return v(e.length,2)&&v(e[0],`-`)?`remove`:v(e.length,2)&&v(e[0],`+`)||v(e.length,1)?`add`:`none`}function Hs(e){return v(e.length,2)?[e[1]]:[]}function Us(e){return d(e[6])&&v(e[6].length,1)?d_(qr(e[3]),e[5],e[6][0],Rs(e[1],Bs(e[8],e[10]))):d_(qr(e[3]),e[5],ln(e[3]),Rs(e[1],Bs(e[8],e[10])))}function Ws(e){return ln(e)}function Gs(e){return BigInt(e)}function Ks(e){return parseFloat(e)}function qs(e){return v(e,`true`)}function Js(e){return e}function Ys(e){return null}function Xs(e){return{[e[0]]:e[2]}}function Zs(e){return oo(e)}function Qs(e){return e.reduce((e,t)=>r(e,t),{})}function $s(e){return Qs(e[1])}function ec(e){return oo(e)}function tc(e){return e[1]}function nc(e){return e}function rc(e){return Ur()}function ic(e){return mi()}function ac(e){return ci()}function oc(e){return Xr()}function sc(e){return hn()}function cc(e){return P(e)}function lc(e){return e}function uc(e){return I(e[1])}function dc(e){return e.length===3?[...e[0],...e[2]]:e.length===1?[...e[0]]:[]}function fc(e){return[e[0],...e[1]]}function pc(e){return e}function mc(e){return e[1]}function hc(e){return oo(e)}function gc(e){return v(e.length,2)?e[1]:[]}function _c(e){let t=e[2],n=e[3],[r,i]=e[4],a=v(S(i).length,0)?{}:{patternProperties:i};return{[e[1]]:dn(t,Kp(n,r,a))}}function vc(e){let t=e[2],[n,r]=e[3],i=v(S(r).length,0)?{}:{patternProperties:r};return{[e[1]]:Kp(t,n,i)}}function yc(e){return{[e[1]]:dn(e[2],e[4])}}function bc(e){return{[e[1]]:e[3]}}function xc(e){return null}function Sc(e){return e}function Cc(e){return vs(oo(e))}function wc(e){return e[1]}function Tc(e){let t=e[0],n=e[1];return iy(r(t,n[0]))}function Ec(e){return e}function Dc(e){return v(e.length,2)}function z(e,t,n){return Dc(e)?t(e[0],e[1]):n()}function Oc(e,t){return v(t.indexOf(e),0)?[e,t.slice(e.length)]:[]}function kc(e,t){for(let n=0;nString.fromCharCode(e+n))}const jc=[...Ac(97,122),...Ac(65,90)],Mc=Ac(49,57),Nc=[`0`,...Mc];function Pc(e){let t=e.indexOf(`*/`);return v(t,-1)?``:e.slice(t+2)}function Fc(e){let t=e.indexOf(` +`);return v(t,-1)?``:e.slice(t)}function Ic(e){return e.replace(/^[ \t\r\f\v]+/,``)}function Lc(e){let t=Ic(e);return t.startsWith(`/*`)?Lc(Pc(t.slice(2))):t.startsWith(`//`)?Lc(Fc(t.slice(2))):t}function Rc(e){let t=e.trimStart();return t.startsWith(`/*`)?Rc(Pc(t.slice(2))):t.startsWith(`//`)?Rc(Fc(t.slice(2))):t}function zc(e,t){return z(kc([e],t),(e,t)=>[e,t],()=>[``,t])}function Bc(e,t){return e.includes(t)}function Vc(e,t,n,r=``){return z(kc(e,n),(n,i)=>Bc(t,n)?Vc(e,t,i,r):Vc(e,t,i,`${r}${n}`),()=>[r,n])}function Hc(e){return kc(Mc,e)}const Uc=[...Nc,`_`];function Wc(e){return Vc(Uc,[`_`],e)}function Gc(e){return z(kc([`0`],e),(e,t)=>[e,t],()=>z(Hc(e),(e,t)=>z(Wc(t),(t,n)=>[`${e}${t}`,n],()=>[]),()=>[]))}function Kc(e){return Gc(Rc(e))}function qc(e){return zc(`-`,e)}function Jc(e){return z(qc(e),(e,t)=>z(Kc(t),(t,n)=>[`${e}${t}`,n],()=>[]),()=>[])}function Yc(e){return Jc(Rc(e))}function Xc(e){return z(Yc(e),(e,t)=>z(kc([`n`],t),(t,n)=>[`${e}`,n],()=>[]),()=>[])}function Zc(e){return Xc(e)}function Qc(e,t){return kc([e],t)}function B(e,t){return v(e,``)?[``,t]:e.startsWith(` +`)?Qc(e,Lc(t)):e.startsWith(` `)?Qc(e,t):Qc(e,Rc(t))}const $c=[...jc,`_`,`$`];function el(e){return kc($c,e)}const tl=[...$c,...Nc];function nl(e,t=``){return z(kc(tl,e),(e,n)=>nl(n,`${t}${e}`),()=>[t,e])}function rl(e){return z(el(e),(e,t)=>z(nl(t),(t,n)=>[`${e}${t}`,n],()=>[]),()=>[])}function V(e){return rl(Rc(e))}const il=[...Nc,`_`];function al(e){return Dc(kc([`.`],e))}function ol(e){return z(Vc(il,[`_`],e),(e,t)=>v(e,``)?[]:[e,t],()=>[])}function sl(e){return z(kc([`.`],e),(e,t)=>z(ol(t),(t,n)=>[`0${e}${t}`,n],()=>[]),()=>[])}function cl(e){return z(Kc(e),(e,t)=>z(kc([`.`],t),(t,n)=>z(ol(n),(n,r)=>[`${e}${t}${n}`,r],()=>[`${e}`,n]),()=>[`${e}`,t]),()=>[])}function ll(e){return al(e)?sl(e):cl(e)}function ul(e){return ll(Rc(e))}function dl(e){return zc(`-`,e)}function fl(e){return z(dl(e),(e,t)=>z(ul(t),(t,n)=>[`${e}${t}`,n],()=>[]),()=>[])}function pl(e){return fl(Rc(e))}function ml(e){return v(e,``)?[]:[e.slice(0,1),e.slice(1)]}function hl(e,t){return y(e,(e,n)=>t.startsWith(e)?!0:hl(n,t),()=>!1)}function gl(e,t,n=``){return z(ml(t),(r,i)=>hl(e,t)?[n,t]:gl(e,i,`${n}${r}`),()=>[])}function _l(e,t,n){return z(kc([e],n),(e,n)=>z(gl([t],n),(e,n)=>z(kc([t],n),(t,n)=>[`${e}`,n],()=>[]),()=>[]),()=>[])}function vl(e,t,n){return z(kc([e],n),(e,n)=>z(gl([` +`,t],n),(e,n)=>z(kc([t],n),(t,n)=>[`${e}`,n],()=>[]),()=>[]),()=>[])}function yl(e,t,n,r){return n?_l(e,t,Rc(r)):vl(e,t,Rc(r))}function bl(e,t){return kc(e,t)}function xl(e,t){return yl(e,e,!1,t)}function Sl(e,t){return z(bl(e,t),(e,t)=>xl(e,`${e}${t}`),()=>[])}function Cl(e,t){return Sl(e,Rc(t))}function wl(e,t){return z(gl(e,t),(e,t)=>v(e,``)?[]:[e,t],()=>[])}const H=(e,t,n=()=>[])=>e.length===2?t(e):n(),Tl=e=>H(H(V(e),([e,t])=>H(B(`extends`,t),([t,n])=>H(U(n),([n,r])=>H(B(`=`,r),([r,i])=>H(U(i),([i,a])=>[[e,t,n,r,i],a]))))),([e,t])=>[so(e),t]),El=e=>H(H(V(e),([e,t])=>H(B(`extends`,t),([t,n])=>H(U(n),([n,r])=>[[e,t,n],r]))),([e,t])=>[co(e),t]),Dl=e=>H(H(V(e),([e,t])=>H(B(`=`,t),([t,n])=>H(U(n),([n,r])=>[[e,t,n],r]))),([e,t])=>[lo(e),t]),Ol=e=>H(V(e),([e,t])=>[uo(e),t]),kl=e=>H(H(Tl(e),([e,t])=>[e,t],()=>H(El(e),([e,t])=>[e,t],()=>H(Dl(e),([e,t])=>[e,t],()=>H(Ol(e),([e,t])=>[e,t],()=>[])))),([e,t])=>[fo(e),t]),Al=(e,t=[])=>H(H(kl(e),([e,t])=>H(B(`,`,t),([t,n])=>[[e,t],n])),([e,n])=>Al(n,[...t,e]),()=>[t,e]),jl=e=>H(H(Al(e),([e,t])=>H(H(H(kl(t),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>H([[],t],([e,t])=>[e,t],()=>[])),([t,n])=>[[e,t],n])),([e,t])=>[po(e),t]),Ml=e=>H(H(B(`<`,e),([e,t])=>H(jl(t),([t,n])=>H(B(`>`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[mo(e),t]),Nl=(e,t=[])=>H(H(U(e),([e,t])=>H(B(`,`,t),([t,n])=>[[e,t],n])),([e,n])=>Nl(n,[...t,e]),()=>[t,e]),Pl=e=>H(H(Nl(e),([e,t])=>H(H(H(U(t),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>H([[],t],([e,t])=>[e,t],()=>[])),([t,n])=>[[e,t],n])),([e,t])=>[ho(e),t]),Fl=e=>H(H(B(`<`,e),([e,t])=>H(Pl(t),([t,n])=>H(B(`>`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[go(e),t]),Il=e=>H(H(V(e),([e,t])=>H(Fl(t),([t,n])=>[[e,t],n])),([e,t])=>[_o(e),t]),Ll=e=>H(H(H(B(`;`,e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>H([[],e],([e,t])=>[e,t],()=>[])),([e,t])=>[vo(e),t]),Rl=e=>H(B(`string`,e),([e,t])=>[yo(e),t]),zl=e=>H(B(`number`,e),([e,t])=>[bo(e),t]),Bl=e=>H(B(`boolean`,e),([e,t])=>[xo(e),t]),Vl=e=>H(B(`undefined`,e),([e,t])=>[So(e),t]),Hl=e=>H(B(`null`,e),([e,t])=>[Co(e),t]),Ul=e=>H(B(`integer`,e),([e,t])=>[wo(e),t]),Wl=e=>H(B(`bigint`,e),([e,t])=>[To(e),t]),Gl=e=>H(B(`unknown`,e),([e,t])=>[Eo(e),t]),Kl=e=>H(B(`any`,e),([e,t])=>[Do(e),t]),ql=e=>H(B(`object`,e),([e,t])=>[Oo(e),t]),Jl=e=>H(B(`never`,e),([e,t])=>[ko(e),t]),Yl=e=>H(B(`symbol`,e),([e,t])=>[Ao(e),t]),Xl=e=>H(B(`void`,e),([e,t])=>[jo(e),t]),Zl=e=>H(B(`this`,e),([e,t])=>[Mo(e),t]),Ql=e=>H(H(B("${",e),([e,t])=>H(U(t),([t,n])=>H(B(`}`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[Lo(e),t]),$l=e=>H(gl(["${","`"],e),([e,t])=>[Ro(e),t]),eu=e=>H(H(H($l(e),([e,t])=>H(Ql(t),([t,n])=>H(eu(n),([n,r])=>[[e,t,n],r]))),([e,t])=>[e,t],()=>H(H($l(e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>H(H($l(e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>[]))),([e,t])=>[zo(e),t]),tu=e=>H(H(B("`",e),([e,t])=>H(eu(t),([t,n])=>H(B("`",n),([n,r])=>[[e,t,n],r]))),([e,t])=>[Bo(e),t]),nu=e=>H(tu(e),([e,t])=>[Vo(e),t]),ru=e=>H(H(H(B(`if`,e),([e,t])=>H(U(t),([t,n])=>H(B(`then`,n),([n,r])=>H(U(r),([r,i])=>H(B(`else`,i),([i,a])=>H(U(a),([a,o])=>[[e,t,n,r,i,a],o])))))),([e,t])=>[e,t],()=>H(H(B(`if`,e),([e,t])=>H(U(t),([t,n])=>H(B(`then`,n),([n,r])=>H(U(r),([r,i])=>[[e,t,n,r],i])))),([e,t])=>[e,t],()=>[])),([e,t])=>[Ho(e),t]),iu=e=>H(Zc(e),([e,t])=>[No(e),t]),au=e=>H(H(B(`true`,e),([e,t])=>[e,t],()=>H(B(`false`,e),([e,t])=>[e,t],()=>[])),([e,t])=>[Po(e),t]),ou=e=>H(pl(e),([e,t])=>[Fo(e),t]),su=e=>H(Cl([`'`,`"`],e),([e,t])=>[Io(e),t]),cu=e=>H(H(H(B(`keyof`,e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>H([[],e],([e,t])=>[e,t],()=>[])),([e,t])=>[Uo(e),t]),lu=(e,t=[])=>H(H(H(B(`[`,e),([e,t])=>H(U(t),([t,n])=>H(B(`]`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[e,t],()=>H(H(B(`[`,e),([e,t])=>H(B(`]`,t),([t,n])=>[[e,t],n])),([e,t])=>[e,t],()=>[])),([e,n])=>lu(n,[...t,e]),()=>[t,e]),uu=e=>H(lu(e),([e,t])=>[Wo(e),t]),du=e=>H(H(H(B(`extends`,e),([e,t])=>H(U(t),([t,n])=>H(B(`?`,n),([n,r])=>H(U(r),([r,i])=>H(B(`:`,i),([i,a])=>H(U(a),([a,o])=>[[e,t,n,r,i,a],o])))))),([e,t])=>[e,t],()=>H([[],e],([e,t])=>[e,t],()=>[])),([e,t])=>[Go(e),t]),fu=e=>H(H(H(B(`(`,e),([e,t])=>H(U(t),([t,n])=>H(B(`)`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[e,t],()=>H(Rl(e),([e,t])=>[e,t],()=>H(zl(e),([e,t])=>[e,t],()=>H(Bl(e),([e,t])=>[e,t],()=>H(Vl(e),([e,t])=>[e,t],()=>H(Hl(e),([e,t])=>[e,t],()=>H(Ul(e),([e,t])=>[e,t],()=>H(Wl(e),([e,t])=>[e,t],()=>H(Gl(e),([e,t])=>[e,t],()=>H(Kl(e),([e,t])=>[e,t],()=>H(ql(e),([e,t])=>[e,t],()=>H(Jl(e),([e,t])=>[e,t],()=>H(Yl(e),([e,t])=>[e,t],()=>H(Xl(e),([e,t])=>[e,t],()=>H(Zl(e),([e,t])=>[e,t],()=>H(iu(e),([e,t])=>[e,t],()=>H(au(e),([e,t])=>[e,t],()=>H(ou(e),([e,t])=>[e,t],()=>H(su(e),([e,t])=>[e,t],()=>H(nu(e),([e,t])=>[e,t],()=>H(ru(e),([e,t])=>[e,t],()=>H(Fu(e),([e,t])=>[e,t],()=>H(Wu(e),([e,t])=>[e,t],()=>H(ed(e),([e,t])=>[e,t],()=>H($u(e),([e,t])=>[e,t],()=>H(id(e),([e,t])=>[e,t],()=>H(Il(e),([e,t])=>[e,t],()=>H(ad(e),([e,t])=>[e,t],()=>[])))))))))))))))))))))))))))),([e,t])=>[Ko(e),t]),pu=e=>H(H(H(B(`with`,e),([e,t])=>H(hd(t),([t,n])=>[[e,t],n])),([e,t])=>[e,t],()=>H([[],e],([e,t])=>[e,t],()=>[])),([e,t])=>[qo(e),t]),mu=e=>H(H(cu(e),([e,t])=>H(fu(t),([t,n])=>H(uu(n),([n,r])=>H(du(r),([r,i])=>H(pu(i),([i,a])=>[[e,t,n,r,i],a]))))),([e,t])=>[Zo(e),t]),hu=e=>H(H(H(B(`&`,e),([e,t])=>H(mu(t),([t,n])=>H(hu(n),([n,r])=>[[e,t,n],r]))),([e,t])=>[e,t],()=>H([[],e],([e,t])=>[e,t],()=>[])),([e,t])=>[$o(e),t]),gu=e=>H(H(mu(e),([e,t])=>H(hu(t),([t,n])=>[[e,t],n])),([e,t])=>[es(e),t]),_u=e=>H(H(H(B(`|`,e),([e,t])=>H(gu(t),([t,n])=>H(_u(n),([n,r])=>[[e,t,n],r]))),([e,t])=>[e,t],()=>H([[],e],([e,t])=>[e,t],()=>[])),([e,t])=>[ts(e),t]),vu=e=>H(H(gu(e),([e,t])=>H(_u(t),([t,n])=>[[e,t],n])),([e,t])=>[ns(e),t]),yu=e=>H(H(B(`readonly`,e),([e,t])=>H(vu(t),([t,n])=>[[e,t],n])),([e,t])=>[rs(e),t]),bu=e=>H(H(B(`|`,e),([e,t])=>H(vu(t),([t,n])=>[[e,t],n])),([e,t])=>[is(e),t]),xu=e=>H(H(Ml(e),([e,t])=>H(B(`=`,t),([t,n])=>H(U(n),([n,r])=>[[e,t,n],r]))),([e,t])=>[as(e),t]),Su=e=>H(H(H(B(`infer`,e),([e,t])=>H(V(t),([t,n])=>H(B(`extends`,n),([n,r])=>H(vu(r),([r,i])=>[[e,t,n,r],i])))),([e,t])=>[e,t],()=>H(H(B(`infer`,e),([e,t])=>H(V(t),([t,n])=>[[e,t],n])),([e,t])=>[e,t],()=>[])),([e,t])=>[os(e),t]),U=e=>H(H(Su(e),([e,t])=>[e,t],()=>H(bu(e),([e,t])=>[e,t],()=>H(yu(e),([e,t])=>[e,t],()=>H(vu(e),([e,t])=>[e,t],()=>[])))),([e,t])=>[ss(e),t]),Cu=e=>H(pl(e),([e,t])=>[cs(e),t]),wu=e=>H(V(e),([e,t])=>[ls(e),t]),Tu=e=>H(Cl([`'`,`"`],e),([e,t])=>[us(e),t]),Eu=e=>H(H(B(`[`,e),([e,t])=>H(V(t),([t,n])=>H(B(`:`,n),([n,r])=>H(H(Ul(r),([e,t])=>[e,t],()=>H(zl(r),([e,t])=>[e,t],()=>H(Rl(r),([e,t])=>[e,t],()=>H(Yl(r),([e,t])=>[e,t],()=>[])))),([r,i])=>H(B(`]`,i),([i,a])=>[[e,t,n,r,i],a]))))),([e,t])=>[ds(e),t]),Du=e=>H(H(Cu(e),([e,t])=>[e,t],()=>H(wu(e),([e,t])=>[e,t],()=>H(Tu(e),([e,t])=>[e,t],()=>H(Eu(e),([e,t])=>[e,t],()=>[])))),([e,t])=>[fs(e),t]),Ou=e=>H(H(H(B(`readonly`,e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>H([[],e],([e,t])=>[e,t],()=>[])),([e,t])=>[ps(e),t]),ku=e=>H(H(H(B(`?`,e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>H([[],e],([e,t])=>[e,t],()=>[])),([e,t])=>[ms(e),t]),Au=e=>H(H(Ou(e),([e,t])=>H(Du(t),([t,n])=>H(ku(n),([n,r])=>H(B(`:`,r),([r,i])=>H(U(i),([i,a])=>[[e,t,n,r,i],a]))))),([e,t])=>[hs(e),t]),ju=e=>H(H(H(B(`,`,e),([e,t])=>H(B(` +`,t),([t,n])=>[[e,t],n])),([e,t])=>[e,t],()=>H(H(B(`;`,e),([e,t])=>H(B(` +`,t),([t,n])=>[[e,t],n])),([e,t])=>[e,t],()=>H(H(B(`,`,e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>H(H(B(`;`,e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>H(H(B(` +`,e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>[]))))),([e,t])=>[gs(e),t]),Mu=(e,t=[])=>H(H(Au(e),([e,t])=>H(ju(t),([t,n])=>[[e,t],n])),([e,n])=>Mu(n,[...t,e]),()=>[t,e]),Nu=e=>H(H(Mu(e),([e,t])=>H(H(H(Au(t),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>H([[],t],([e,t])=>[e,t],()=>[])),([t,n])=>[[e,t],n])),([e,t])=>[_s(e),t]),Pu=e=>H(H(B(`{`,e),([e,t])=>H(Nu(t),([t,n])=>H(B(`}`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[ys(e),t]),Fu=e=>H(Pu(e),([e,t])=>[bs(e),t]),Iu=e=>H(H(H(V(e),([e,t])=>H(B(`?`,t),([t,n])=>H(B(`:`,n),([n,r])=>H(B(`readonly`,r),([r,i])=>H(U(i),([i,a])=>[[e,t,n,r,i],a]))))),([e,t])=>[e,t],()=>H(H(V(e),([e,t])=>H(B(`:`,t),([t,n])=>H(B(`readonly`,n),([n,r])=>H(U(r),([r,i])=>[[e,t,n,r],i])))),([e,t])=>[e,t],()=>H(H(V(e),([e,t])=>H(B(`?`,t),([t,n])=>H(B(`:`,n),([n,r])=>H(U(r),([r,i])=>[[e,t,n,r],i])))),([e,t])=>[e,t],()=>H(H(V(e),([e,t])=>H(B(`:`,t),([t,n])=>H(U(n),([n,r])=>[[e,t,n],r]))),([e,t])=>[e,t],()=>[])))),([e,t])=>[xs(e),t]),Lu=e=>H(H(B(`readonly`,e),([e,t])=>H(U(t),([t,n])=>H(B(`?`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[Ss(e),t]),Ru=e=>H(H(B(`readonly`,e),([e,t])=>H(U(t),([t,n])=>[[e,t],n])),([e,t])=>[Cs(e),t]),zu=e=>H(H(U(e),([e,t])=>H(B(`?`,t),([t,n])=>[[e,t],n])),([e,t])=>[ws(e),t]),Bu=e=>H(H(Iu(e),([e,t])=>[e,t],()=>H(Lu(e),([e,t])=>[e,t],()=>H(Ru(e),([e,t])=>[e,t],()=>H(zu(e),([e,t])=>[e,t],()=>H(U(e),([e,t])=>[e,t],()=>[]))))),([e,t])=>[Ts(e),t]),Vu=e=>H(H(H(B(`...`,e),([e,t])=>H(Bu(t),([t,n])=>[[e,t],n])),([e,t])=>[e,t],()=>H(H(Bu(e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>[])),([e,t])=>[Es(e),t]),Hu=(e,t=[])=>H(H(Vu(e),([e,t])=>H(B(`,`,t),([t,n])=>[[e,t],n])),([e,n])=>Hu(n,[...t,e]),()=>[t,e]),Uu=e=>H(H(Hu(e),([e,t])=>H(H(H(Vu(t),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>H([[],t],([e,t])=>[e,t],()=>[])),([t,n])=>[[e,t],n])),([e,t])=>[Ds(e),t]),Wu=e=>H(H(B(`[`,e),([e,t])=>H(Uu(t),([t,n])=>H(B(`]`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[Os(e),t]),Gu=e=>H(H(V(e),([e,t])=>H(B(`?`,t),([t,n])=>H(B(`:`,n),([n,r])=>H(B(`readonly`,r),([r,i])=>H(U(i),([i,a])=>[[e,t,n,r,i],a]))))),([e,t])=>[ks(e),t]),Ku=e=>H(H(V(e),([e,t])=>H(B(`:`,t),([t,n])=>H(B(`readonly`,n),([n,r])=>H(U(r),([r,i])=>[[e,t,n,r],i])))),([e,t])=>[As(e),t]),qu=e=>H(H(V(e),([e,t])=>H(B(`?`,t),([t,n])=>H(B(`:`,n),([n,r])=>H(U(r),([r,i])=>[[e,t,n,r],i])))),([e,t])=>[js(e),t]),Ju=e=>H(H(V(e),([e,t])=>H(B(`:`,t),([t,n])=>H(U(n),([n,r])=>[[e,t,n],r]))),([e,t])=>[Ms(e),t]),Yu=e=>H(H(Gu(e),([e,t])=>[e,t],()=>H(Ku(e),([e,t])=>[e,t],()=>H(qu(e),([e,t])=>[e,t],()=>H(Ju(e),([e,t])=>[e,t],()=>[])))),([e,t])=>[Ns(e),t]),Xu=e=>H(H(H(B(`...`,e),([e,t])=>H(Yu(t),([t,n])=>[[e,t],n])),([e,t])=>[e,t],()=>H(H(Yu(e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>[])),([e,t])=>[Ps(e),t]),Zu=(e,t=[])=>H(H(Xu(e),([e,t])=>H(B(`,`,t),([t,n])=>[[e,t],n])),([e,n])=>Zu(n,[...t,e]),()=>[t,e]),Qu=e=>H(H(Zu(e),([e,t])=>H(H(H(Xu(t),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>H([[],t],([e,t])=>[e,t],()=>[])),([t,n])=>[[e,t],n])),([e,t])=>[Fs(e),t]),$u=e=>H(H(B(`(`,e),([e,t])=>H(Qu(t),([t,n])=>H(B(`)`,n),([n,r])=>H(B(`=>`,r),([r,i])=>H(U(i),([i,a])=>[[e,t,n,r,i],a]))))),([e,t])=>[Is(e),t]),ed=e=>H(H(B(`new`,e),([e,t])=>H(B(`(`,t),([t,n])=>H(Qu(n),([n,r])=>H(B(`)`,r),([r,i])=>H(B(`=>`,i),([i,a])=>H(U(a),([a,o])=>[[e,t,n,r,i,a],o])))))),([e,t])=>[Ls(e),t]),td=e=>H(H(H(B(`+`,e),([e,t])=>H(B(`readonly`,t),([t,n])=>[[e,t],n])),([e,t])=>[e,t],()=>H(H(B(`-`,e),([e,t])=>H(B(`readonly`,t),([t,n])=>[[e,t],n])),([e,t])=>[e,t],()=>H(H(B(`readonly`,e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>H([[],e],([e,t])=>[e,t],()=>[])))),([e,t])=>[zs(e),t]),nd=e=>H(H(H(B(`+`,e),([e,t])=>H(B(`?`,t),([t,n])=>[[e,t],n])),([e,t])=>[e,t],()=>H(H(B(`-`,e),([e,t])=>H(B(`?`,t),([t,n])=>[[e,t],n])),([e,t])=>[e,t],()=>H(H(B(`?`,e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>H([[],e],([e,t])=>[e,t],()=>[])))),([e,t])=>[Vs(e),t]),rd=e=>H(H(H(B(`as`,e),([e,t])=>H(U(t),([t,n])=>[[e,t],n])),([e,t])=>[e,t],()=>H([[],e],([e,t])=>[e,t],()=>[])),([e,t])=>[Hs(e),t]),id=e=>H(H(B(`{`,e),([e,t])=>H(td(t),([t,n])=>H(B(`[`,n),([n,r])=>H(V(r),([r,i])=>H(B(`in`,i),([i,a])=>H(U(a),([a,o])=>H(rd(o),([o,s])=>H(B(`]`,s),([s,c])=>H(nd(c),([c,l])=>H(B(`:`,l),([l,u])=>H(U(u),([u,ee])=>H(Ll(ee),([ee,te])=>H(B(`}`,te),([te,ne])=>[[e,t,n,r,i,a,o,s,c,l,u,ee,te],ne]))))))))))))),([e,t])=>[Us(e),t]),ad=e=>H(V(e),([e,t])=>[Ws(e),t]),od=e=>H(Zc(e),([e,t])=>[Gs(e),t]),sd=e=>H(pl(e),([e,t])=>[Ks(e),t]),cd=e=>H(H(B(`true`,e),([e,t])=>[e,t],()=>H(B(`false`,e),([e,t])=>[e,t],()=>[])),([e,t])=>[qs(e),t]),ld=e=>H(Cl([`"`,`'`],e),([e,t])=>[Js(e),t]),ud=e=>H(B(`null`,e),([e,t])=>[Ys(e),t]),dd=e=>H(B(`undefined`,e),([e,t])=>[void 0,t]),fd=e=>H(H(Du(e),([e,t])=>H(B(`:`,t),([t,n])=>H(yd(n),([n,r])=>[[e,t,n],r]))),([e,t])=>[Xs(e),t]),pd=(e,t=[])=>H(H(fd(e),([e,t])=>H(ju(t),([t,n])=>[[e,t],n])),([e,n])=>pd(n,[...t,e]),()=>[t,e]),md=e=>H(H(pd(e),([e,t])=>H(H(H(fd(t),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>H([[],t],([e,t])=>[e,t],()=>[])),([t,n])=>[[e,t],n])),([e,t])=>[Zs(e),t]),hd=e=>H(H(B(`{`,e),([e,t])=>H(md(t),([t,n])=>H(B(`}`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[$s(e),t]),gd=(e,t=[])=>H(H(yd(e),([e,t])=>H(B(`,`,t),([t,n])=>[[e,t],n])),([e,n])=>gd(n,[...t,e]),()=>[t,e]),_d=e=>H(H(gd(e),([e,t])=>H(H(H(yd(t),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>H([[],t],([e,t])=>[e,t],()=>[])),([t,n])=>[[e,t],n])),([e,t])=>[ec(e),t]),vd=e=>H(H(B(`[`,e),([e,t])=>H(_d(t),([t,n])=>H(B(`]`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[tc(e),t]),yd=e=>H(H(od(e),([e,t])=>[e,t],()=>H(sd(e),([e,t])=>[e,t],()=>H(cd(e),([e,t])=>[e,t],()=>H(ld(e),([e,t])=>[e,t],()=>H(ud(e),([e,t])=>[e,t],()=>H(dd(e),([e,t])=>[e,t],()=>H(hd(e),([e,t])=>[e,t],()=>H(vd(e),([e,t])=>[e,t],()=>[])))))))),([e,t])=>[nc(e),t]),bd=e=>H(B(`-?(?:0|[1-9][0-9]*)n`,e),([e,t])=>[rc(e),t]),xd=e=>H(B(`.*`,e),([e,t])=>[ic(e),t]),Sd=e=>H(B(`-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?`,e),([e,t])=>[ac(e),t]),Cd=e=>H(B(`-?(?:0|[1-9][0-9]*)`,e),([e,t])=>[oc(e),t]),wd=e=>H(B(`(?!)`,e),([e,t])=>[sc(e),t]),Td=e=>H(wl([`-?(?:0|[1-9][0-9]*)n`,`.*`,`-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?`,`-?(?:0|[1-9][0-9]*)`,`(?!)`,`(`,`)`,`$`,`|`],e),([e,t])=>[cc(e),t]),Ed=e=>H(H(bd(e),([e,t])=>[e,t],()=>H(xd(e),([e,t])=>[e,t],()=>H(Sd(e),([e,t])=>[e,t],()=>H(Cd(e),([e,t])=>[e,t],()=>H(wd(e),([e,t])=>[e,t],()=>H(Dd(e),([e,t])=>[e,t],()=>H(Td(e),([e,t])=>[e,t],()=>[]))))))),([e,t])=>[lc(e),t]),Dd=e=>H(H(B(`(`,e),([e,t])=>H(Ad(t),([t,n])=>H(B(`)`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[uc(e),t]),Od=e=>H(H(H(kd(e),([e,t])=>H(B(`|`,t),([t,n])=>H(Od(n),([n,r])=>[[e,t,n],r]))),([e,t])=>[e,t],()=>H(H(kd(e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>H([[],e],([e,t])=>[e,t],()=>[]))),([e,t])=>[dc(e),t]),kd=e=>H(H(Ed(e),([e,t])=>H(Ad(t),([t,n])=>[[e,t],n])),([e,t])=>[fc(e),t]),Ad=e=>H(H(Od(e),([e,t])=>[e,t],()=>H(kd(e),([e,t])=>[e,t],()=>[])),([e,t])=>[pc(e),t]),jd=e=>H(H(B(`^`,e),([e,t])=>H(Ad(t),([t,n])=>H(B(`$`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[mc(e),t]),Md=(e,t=[])=>H(H(U(e),([e,t])=>H(B(`,`,t),([t,n])=>[[e,t],n])),([e,n])=>Md(n,[...t,e]),()=>[t,e]),Nd=e=>H(H(Md(e),([e,t])=>H(H(H(U(t),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>H([[],t],([e,t])=>[e,t],()=>[])),([t,n])=>[[e,t],n])),([e,t])=>[hc(e),t]),Pd=e=>H(H(H(B(`extends`,e),([e,t])=>H(Nd(t),([t,n])=>[[e,t],n])),([e,t])=>[e,t],()=>H([[],e],([e,t])=>[e,t],()=>[])),([e,t])=>[gc(e),t]),Fd=e=>H(H(B(`interface`,e),([e,t])=>H(V(t),([t,n])=>H(Ml(n),([n,r])=>H(Pd(r),([r,i])=>H(Pu(i),([i,a])=>[[e,t,n,r,i],a]))))),([e,t])=>[_c(e),t]),Id=e=>H(H(B(`interface`,e),([e,t])=>H(V(t),([t,n])=>H(Pd(n),([n,r])=>H(Pu(r),([r,i])=>[[e,t,n,r],i])))),([e,t])=>[vc(e),t]),Ld=e=>H(H(B(`type`,e),([e,t])=>H(V(t),([t,n])=>H(Ml(n),([n,r])=>H(B(`=`,r),([r,i])=>H(U(i),([i,a])=>[[e,t,n,r,i],a]))))),([e,t])=>[yc(e),t]),Rd=e=>H(H(B(`type`,e),([e,t])=>H(V(t),([t,n])=>H(B(`=`,n),([n,r])=>H(U(r),([r,i])=>[[e,t,n,r],i])))),([e,t])=>[bc(e),t]),zd=e=>H(H(H(B(`export`,e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>H([[],e],([e,t])=>[e,t],()=>[])),([e,t])=>[xc(e),t]),Bd=e=>H(H(H(B(`;`,e),([e,t])=>H(B(` +`,t),([t,n])=>[[e,t],n])),([e,t])=>[e,t],()=>H(H(B(`;`,e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>H(H(B(` +`,e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>[]))),([e,t])=>[Sc(e),t]),Vd=(e,t=[])=>H(H(Ud(e),([e,t])=>H(Bd(t),([t,n])=>[[e,t],n])),([e,n])=>Vd(n,[...t,e]),()=>[t,e]),Hd=e=>H(H(Vd(e),([e,t])=>H(H(H(Ud(t),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>H([[],t],([e,t])=>[e,t],()=>[])),([t,n])=>[[e,t],n])),([e,t])=>[Cc(e),t]),Ud=e=>H(H(zd(e),([e,t])=>H(H(Fd(t),([e,t])=>[e,t],()=>H(Id(t),([e,t])=>[e,t],()=>H(Ld(t),([e,t])=>[e,t],()=>H(Rd(t),([e,t])=>[e,t],()=>[])))),([t,n])=>H(Ll(n),([n,r])=>[[e,t,n],r]))),([e,t])=>[wc(e),t]),Wd=e=>H(H(Ud(e),([e,t])=>H(Hd(t),([t,n])=>[[e,t],n])),([e,t])=>[Tc(e),t]),Gd=e=>H(H(Wd(e),([e,t])=>[e,t],()=>H(xu(e),([e,t])=>[e,t],()=>H(U(e),([e,t])=>[e,t],()=>[]))),([e,t])=>[Ec(e),t]);function Kd(e){let t=tu(`\`${e}\``);return v(t.length,2)?t[0]:qn()}function qd(e){return e.join(`|`)}function Jd(e){return e.slice(1,e.length-1)}function Yd(e,t,n){return sf(t,`${n}${e}`)}function Xd(e,t){return sf(e,`${t}-?(?:0|[1-9][0-9]*)n`)}function Zd(e,t){return sf(e,`${t}${Yr}`)}function Qd(e,t){return sf(e,`${t}${si}`)}function $d(e,t){return of(I([P(`false`),P(`true`)]),e,t)}function ef(e,t){return sf(e,`${t}.*`)}function tf(e,t,n){return sf(t,`${n}${Jd(e)}`)}function nf(e,t,n){return of(uf(e,{}),t,n)}function rf(e,t,n){return of(ha(e),t,n)}function af(e,t,n,r=[]){return y(e,(e,i)=>af(i,t,n,[...r,of(e,[],``)]),()=>sf(t,`${n}(${qd(r)})`))}function of(e,t,n){return Bn(e)?rf(e.enum,t,n):Zr(e)?Zd(t,n):F(e)?Yd(e.const,t,n):Wr(e)?Xd(t,n):Kr(e)?$d(t,n):li(e)?Qd(t,n):hi(e)?ef(t,n):_f(e)?tf(e.pattern,t,n):pf(e)?nf(e.parameters[0],t,n):L(e)?af(e.anyOf,t,n):`(?!)`}function sf(e,t){return y(e,(e,n)=>of(e,n,t),()=>t)}function cf(e){return`^${sf(e,``)}$`}function lf(e){return Ci(cf(e))}function uf(e,t){return q(e)?O(lf(e),{},t):ff(e,t)}function df(e,t,n,r){return uf(Kv(e,t,n),r)}function ff(e,t={}){return A(`TemplateLiteral`,[e],t)}function pf(e){return Gt(e)&&b(e,`action`)&&v(e.action,`TemplateLiteral`)}function mf(e){return uf(e,{})}function hf(e){return mf(Kd(e))}function gf(e,t={}){return O(g(e)?hf(e):mf(e),{},t)}function _f(e){return k(e,`TemplateLiteral`)}var vf=t({ExtendsFalse:()=>G,ExtendsTrue:()=>W,ExtendsUnion:()=>yf,IsExtendsFalse:()=>Sf,IsExtendsTrue:()=>xf,IsExtendsTrueLike:()=>Cf,IsExtendsUnion:()=>bf,Match:()=>wf});function yf(e){return D({"~kind":`ExtendsUnion`},{inferred:e})}function bf(e){return h(e)&&b(e,`~kind`)&&b(e,`inferred`)&&v(e[`~kind`],`ExtendsUnion`)&&h(e.inferred)}function W(e){return D({"~kind":`ExtendsTrue`},{inferred:e})}function xf(e){return h(e)&&b(e,`~kind`)&&b(e,`inferred`)&&v(e[`~kind`],`ExtendsTrue`)&&h(e.inferred)}function G(){return D({"~kind":`ExtendsFalse`},{})}function Sf(e){return h(e)&&b(e,`~kind`)&&v(e[`~kind`],`ExtendsFalse`)}function Cf(e){return bf(e)||xf(e)}function wf(e,t,n){return Cf(e)?t(e.inferred):n()}function Tf(e,t,n,i){return wf(K(e,n,i),i=>W(r(r(e,i),{[t]:n})),()=>G())}function Ef(e,t){return W(e)}function Df(e,t,n,r,i){return wf(K(e,t,n),e=>wf(K(e,t,r),e=>W(e),()=>G()),()=>wf(K(e,t,i),e=>W(e),()=>G()))}function Of(e,t,n){return K(e,t,ha(n))}function kf(e,t,n){return y(n,(n,r)=>wf(K(e,t,n),e=>kf(e,t,r),()=>G()),()=>W(e))}function Af(e,t,n){return K(e,t,_a(n))}function jf(e,t,n){return y(n,(n,r)=>wf(K(e,t,n),e=>W(e),()=>jf(e,t,r)),()=>G())}function Mf(e,t,n){return mn(n)?Ef(e,t):Fn(n)?Df(e,t,n.if,n.then,n.else):Bn(n)?Of(e,t,n.enum):Nn(n)?Tf(e,n.name,t,n.extends):N(n)?kf(e,t,n.allOf):_f(n)?Af(e,t,n.pattern):L(n)?jf(e,t,n.anyOf):En(n)?W(e):G()}function Nf(e,t,n){return Nn(n)?Mf(e,t,n):mn(n)||En(n)?W(e):yf(e)}function Pf(e,t){let n=Pr(e),r=Pr(t);return n&&r||!n&&r?!0:!(n&&!r)}function Ff(e,t,n,r){return en(r)?Pf(t,r)?K(e,n,r.items):G():Mf(e,t,r)}function If(e,t,n){return Wr(n)?W(e):Mf(e,t,n)}function Lf(e,t,n){return Kr(n)?W(e):Mf(e,t,n)}function Rf(e,t,n,r,i){let a=Nn(r)?t:r,o=Nn(r)?r:t,s=bn(t),c=bn(r);return!s&&c?G():wf(K(e,a,o),e=>Vf(e,n,i),()=>G())}function zf(e,t,n,r){return y(r,(r,i)=>Rf(e,t,n,r,i),()=>bn(t)?W(e):G())}function Bf(e,t,n){return y(t,(t,r)=>zf(e,t,r,n),()=>W(e))}function Vf(e,t,n){return Bf(e,t,n)}function Hf(e,t,n){return no(n)?W(e):K(e,t,n)}function Uf(e,t,n,r){return mn(r)||En(r)?W(e):rn(r)?wf(Vf(e,t,r.parameters),e=>Hf(e,n,r.instanceType),()=>G()):G()}function Wf(e,t,n,r,i){return wf(K(e,t,i),()=>K(e,n,i),()=>K(e,r,i))}function Gf(e,t,n){return K(e,ha(t),n)}function Kf(e,t,n,r){return mn(r)||En(r)?W(e):sn(r)?wf(Vf(e,t,r.parameters),e=>Hf(e,n,r.returnType),()=>G()):G()}function qf(e,t,n){return Zr(n)||li(n)?W(e):Mf(e,t,n)}function Jf(e,t,n){return K(e,ga(t),n)}function Yf(e,t,n){return t===n?W(e):G()}function Xf(e,t,n){return F(n)?Yf(e,t,n.const):Wr(n)?W(e):Mf(e,P(t),n)}function Zf(e,t,n){return F(n)?Yf(e,t,n.const):Kr(n)?W(e):Mf(e,P(t),n)}function Qf(e,t,n){return F(n)?Yf(e,t,n.const):li(n)?W(e):Mf(e,P(t),n)}function $f(e,t,n){return F(n)?Yf(e,t,n.const):hi(n)?W(e):Mf(e,P(t),n)}function ep(e,t,n){return f(t.const)?Xf(e,t.const,n):p(t.const)?Zf(e,t.const,n):m(t.const)?Qf(e,t.const,n):g(t.const)?$f(e,t.const,n):qn()}function tp(e,t,n){return Nn(n)?Mf(e,t,n):W(e)}function np(e,t,n){return oi(n)?W(e):Mf(e,t,n)}function rp(e,t,n){return li(n)?W(e):Mf(e,t,n)}function ip(e,t,n){return bn(t)?bn(n)?W(e):G():W(e)}function ap(e,t,n){return Nn(n)&&gn(n.extends)?G():wf(K(e,t,n),e=>ip(e,t,n),()=>G())}function op(e,t){return e.reduce((e,n)=>n in t&&Cf(t[n])?{...e,...t[n].inferred}:qn(),{})}function sp(e,t,n){let i={};for(let a of S(n))i[a]=a in t?ap({},t[a],n[a]):bn(n[a])?Nn(n[a])?W(r(e,{[n[a].name]:n[a].extends})):W(e):G();let a=Oe(i).every(e=>Cf(e)),o=a?op(S(i),i):{};return a?W(o):G()}function cp(e,t,n){let i=sp(e,t,n);return Cf(i)?W(r(e,i.inferred)):G()}function lp(e,t,n){return cp(e,t,n)}function up(e,t){return S(t).reduce((n,r)=>({...n,[r]:b(e,r)?L(n[r])?I([...n[r].anyOf,t[r]]):I([e[r],t[r]]):t[r]}),e)}function dp(e,t,n,r){return y(t,(t,i)=>wf(K({},e[t],n),t=>dp(e,i,n,up(r,t)),()=>G()),()=>W(r))}function fp(e,t,n,r){return dp(t,S(t),r,e)}function pp(e,t,n){return Ja(n)?fp(e,t,Ga(n),qa(n)):M(n)?lp(e,t,n.properties):Mf(e,j(t),n)}function mp(e,t){return v(S(t).length,0)?W(e):G()}function hp(e,t,n,r,i){return K(e,n,i)}function gp(e,t,n,r){return Ja(r)?hp(e,Wa(t),n,Wa(Ga(r)),qa(r)):M(r)?mp(e,r.properties):mn(r)||En(r)?W(e):G()}function _p(e,t,n){return hi(n)?W(e):Mf(e,t,n)}function vp(e,t,n){return di(n)?W(e):Mf(e,t,n)}function yp(e,t,n){return K(e,_a(t),n)}function bp(e,t){return D({"~kind":`Inferrable`},{name:e,type:t},{})}function xp(e){return h(e)&&b(e,`~kind`)&&b(e,`name`)&&b(e,`type`)&&v(e[`~kind`],`Inferrable`)&&g(e.name)&&h(e.type)}function Sp(e){return Xa(e)?Nn(e.items)?en(e.items.extends)?bp(e.items.name,e.items.extends.items):En(e.items.extends)?bp(e.items.name,e.items.extends):void 0:qn():void 0}function Cp(e){return Nn(e)?bp(e.name,e.extends):void 0}function wp(e,t,n=[]){return y(e,(e,r)=>wf(K({},e,t),()=>wp(r,t,[...n,e]),()=>void 0),()=>n)}function Tp(e,t,n,i){let a=wp(n,i);return d(a)?W(r(e,{[t]:Li(a)})):G()}function Ep(e,t,n,i){let a=wp(n,i);return d(a)?W(r(e,{[t]:I(a)})):G()}function Dp(e){return[...e].reverse()}function Op(e,t){return t?Dp(e):e}function kp(e){let t=e.length>0?e[0]:void 0;return Gt(Gt(t)?Sp(t):void 0)}function Ap(e,t,n,r,i,a){return wf(K(e,n,i),e=>Np(e,t,r,a),()=>G())}function jp(e,t,n,r,i){let a=Sp(r);return xp(a)?Tp(e,a.name,Op(n,t),a.type):y(n,(n,a)=>Ap(e,t,n,a,r,i),()=>G())}function Mp(e,t,n,r){return y(r,(r,i)=>jp(e,t,n,r,i),()=>v(n.length,0)?W(e):G())}function Np(e,t,n,r){return Mp(e,t,n,r)}function Pp(e,t,n){let r=Gv(e,Uv([],[]),n),i=kp(r);return Np(e,i,Op(t,i),Op(r,i))}function Fp(e,t,n){let r=Cp(n);return xp(r)?Ep(e,r.name,t,r.type):y(t,(t,r)=>wf(K(e,t,n),e=>Fp(e,r,n),()=>G()),()=>W(e))}function Ip(e,t,n){let r=Gv(e,Uv([],[]),t);return R(n)?Pp(e,r,n.items):en(n)?Fp(e,r,n.items):Mf(e,Li(r),n)}function Lp(e,t,n){return no(n)||eo(n)?W(e):Mf(e,t,n)}function Rp(e,t,n){return y(n,(n,r)=>wf(K(e,t,n),e=>W(e),()=>Rp(e,t,r)),()=>G())}function zp(e,t,n){return y(t,(t,r)=>wf(Rp(e,t,n),e=>zp(e,r,n),()=>G()),()=>W(e))}function Bp(e,t,n){let r=Cp(n);return xp(r)?Ep(e,r.name,t,r.type):L(n)?zp(e,t,n.anyOf):zp(e,t,[n])}function Vp(e,t,n){return Nn(n)?Mf(e,t,n):mn(n)||En(n)?W(e):G()}function Hp(e,t,n){return no(n)?W(e):Mf(e,t,n)}function K(e,t,n){return mn(t)?Nf(e,t,n):en(t)?Ff(e,t,t.items,n):Wr(t)?If(e,t,n):Kr(t)?Lf(e,t,n):rn(t)?Uf(e,t.parameters,t.instanceType,n):Fn(t)?Wf(e,t.if,t.then,t.else,n):Bn(t)?Gf(e,t.enum,n):sn(t)?Kf(e,t.parameters,t.returnType,n):Zr(t)?qf(e,t,n):N(t)?Jf(e,t.allOf,n):F(t)?ep(e,t,n):gn(t)?tp(e,t,n):oi(t)?np(e,t,n):li(t)?rp(e,t,n):M(t)?pp(e,t.properties,n):Ja(t)?gp(e,Ga(t),qa(t),n):hi(t)?_p(e,t,n):di(t)?vp(e,t,n):_f(t)?yp(e,t.pattern,n):R(t)?Ip(e,t.items,n):eo(t)?Lp(e,t,n):L(t)?Bp(e,t.anyOf,n):En(t)?Vp(e,t,n):no(t)?Hp(e,t,n):G()}function Up(e,t){return ga([...e,j(t)])}function Wp(e,t,n){return q(e)?O(Up(e,t),{},n):Kp(e,t,n)}function Gp(e,t,n,r,i){return Wp(Kv(e,t,n),Wv(e,t,r),i)}function Kp(e,t,n={}){return A(`Interface`,[e,t],n)}function qp(e){return Gt(e)&&b(e,`action`)&&v(e.action,`Interface`)}function Jp(e,t,n={}){return Wp(e,t,n)}function Yp(e,t,n){return e.includes(n)?!0:Qp([...e,n],t,t[n])}function Xp(e,t,n){return Zp(e,t,Cn(n))}function Zp(e,t,n){return y(n,(n,r)=>Qp(e,t,n)?!0:Zp(e,t,r),()=>!1)}function Qp(e,t,n){return un(n)?Yp(e,t,n.$ref):en(n)?Qp(e,t,n.items):rn(n)?Zp(e,t,[...n.parameters,n.instanceType]):sn(n)?Zp(e,t,[...n.parameters,n.returnType]):qp(n)?Xp(e,t,n.parameters[1]):N(n)?Zp(e,t,n.allOf):M(n)?Xp(e,t,n.properties):L(n)?Zp(e,t,n.anyOf):R(n)?Zp(e,t,n.items):Ja(n)?Qp(e,t,qa(n)):!1}function $p(e,t,n){return Qp(e,t,n)}function em(e,t){return t.reduce((t,n)=>$p([n],e,e[n])?[...t,n]:t,[])}function tm(e){return em(e,Sn(e))}function nm(e,t,n){return n.includes(t)?n:t in e?am(e,e[t],[...n,t]):qn()}function rm(e,t,n){return im(e,Cn(t),n)}function im(e,t,n){return t.reduce((t,n)=>am(e,n,t),n)}function am(e,t,n){return un(t)?nm(e,t.$ref,n):en(t)?am(e,t.items,n):rn(t)?im(e,[...t.parameters,t.instanceType],n):sn(t)?im(e,[...t.parameters,t.returnType],n):qp(t)?rm(e,t.parameters[1],n):N(t)?im(e,t.allOf,n):M(t)?rm(e,t.properties,n):L(t)?im(e,t.anyOf,n):R(t)?im(e,t.items,n):Ja(t)?am(e,qa(t),n):n}function om(e,t,n){return am(e,n,[t])}function sm(e){return pn()}function cm(e){return S(e).reduce((t,n)=>({...t,[n]:um(e[n])}),{})}function lm(e){return e.reduce((e,t)=>[...e,um(t)],[])}function um(e){return un(e)?sm(e.$ref):en(e)?$t(um(e.items),tn(e)):rn(e)?nn(lm(e.parameters),um(e.instanceType)):sn(e)?on(lm(e.parameters),um(e.returnType)):N(e)?Vn(lm(e.allOf)):M(e)?j(cm(e.properties)):Ja(e)?Ha(Ka(e),um(qa(e))):L(e)?I(lm(e.anyOf)):R(e)?Li(lm(e.items)):e}function dm(e,t){return t in e?um(e[t]):Tn()}function fm(e){return dm(e.$defs,e.$ref)}function pm(e,t,n){let r=Kv(e,Uv([],[]),t),i=Wv({},Uv([],[]),n);return ga([...r,j(i)])}function mm(e,t){return S(e).filter(e=>t.includes(e)).reduce((t,n)=>{let r=e[n],i=qp(r)?pm(e,r.parameters[0],r.parameters[1]):r;return{...t,[n]:i}},{})}function hm(e,t,n){return Dn(mm(e,om(e,t,n)),t)}function gm(e,t){return t in e?un(e[t])?gm(e,e[t].$ref):e[t]:hn()}function _m(e,t){return gm(e,t)}function vm(e){return On(e)?fm(e):An(e)?Tn():e}function ym(e,t,n){return K(e,vm(t),vm(n))}function bm(e,t){let n=[En(e)?G():ym({},e,t),En(e)?W({}):ym({},t,e)];return Cf(n[0])&&Cf(n[1])?`equal`:Cf(n[0])&&Sf(n[1])?`left-inside`:Sf(n[0])&&Cf(n[1])?`right-inside`:`disjoint`}function xm(e,t){return t.filter(t=>bm(e,t)!==`right-inside`)}function Sm(e,t){return v(t.some(t=>{let n=bm(e,t);return v(n,`left-inside`)||v(n,`equal`)}),!1)}function Cm(e,t){let n=ya(e);return mn(n)?[n]:Sm(n,t)?[...xm(n,t),n]:t}function wm(e){return e.reduce((e,t)=>M(t)?[...e,t]:gn(t)?e:Cm(t,e),[])}function Tm(e){return ka(wm(e))}function Em(e,t){return O(ya(e),{},t)}function Dm(e,t,n,r){return Em(J(e,t,n),r)}function Om(e,t=[]){return Kt(e)&&v(e.action,`Conditional`)?un(e.parameters[0])?Om(e.parameters[2],Om(e.parameters[3],[...t,e.parameters[0].$ref])):Om(e.parameters[2],Om(e.parameters[3],t)):Kt(e)&&v(e.action,`Mapped`)&&Kt(e.parameters[1])&&v(e.parameters[1].action,`KeyOf`)&&un(e.parameters[1].parameters[0])?[...t,e.parameters[1].parameters[0].$ref]:t}function km(e,t){return e.reduce((e,n)=>[...e,t.includes(n.name)],[])}function Am(e,t,n=[]){return y(e,(e,r)=>y(t,(t,i)=>Am(r,i,[...n,[t,e]]),()=>n),()=>n)}function jm(e){return L(e)?[...e.anyOf]:[e]}function Mm(e,t){return e.reduce((e,n)=>[...e,[...n,t]],[])}function Nm(e,t){return t.reduce((t,n)=>[...t,...Mm(e,n)],[])}function Pm(e){return e.reduce((e,t)=>v(t[0],!0)?Nm(e,jm(t[1])):Nm(e,[t[1]]),[[]])}function Fm(e,t,n){let r=Am(t,km(e,Om(n)));return Kt(n)&&v(n.action,`Conditional`)||Kt(n)&&v(n.action,`Mapped`)?Pm(r):[t]}function Im(){return[`(not-resolvable)`,hn()]}function Lm(){return[`(not-generic)`,hn()]}function Rm(e,t,n){return[e,dn(t,n)]}function zm(e,t,n){return t in e?Bm(e,t,e[t],n):Im()}function Bm(e,t,n,r){return fn(n)?Rm(t,n.parameters,n.expression):un(n)?zm(e,n.$ref,r):Lm()}function Vm(e,t,n){return Bm(e,`(anonymous)`,t,n)}function Hm(e,t,n){if(Nn(t)||th(t)||Cf(ym({},t,n)))return;let r={parameter:e,expect:n,actual:t};throw Error(`Argument for parameter ${e} does not satisfy constraint`,{cause:r})}function Um(e,t,n,i,a){let o=J(e,t,a);return Hm(n,o,i),r(e,{[n]:o})}function Wm(e,t,n,r,i){let a=J(e,t,n.extends),o=J(e,t,n.equals);return y(i,(i,o)=>Gm(Um(e,t,n.name,a,i),t,r,o),()=>Gm(Um(e,t,n.name,a,o),t,r,[]))}function Gm(e,t,n,r){return y(n,(n,i)=>Wm(e,t,n,i,r),()=>e)}function Km(e,t,n,r){return Gm(e,t,n,r)}function qm(e){return pe(e.callstack.length,0)?e.callstack[e.callstack.length-1]:``}function Jm(e,t){return v(qm(e),t)}function Ym(e,t,n,r,i,a){let o=Km(e,t,r,a),s=J(o,Uv([...t.callstack,n.$ref],t.visited),i);return J(o,Uv([],[]),s)}function Xm(e,t,n,r,i,a){return a.reduce((a,o)=>[...a,Ym(e,t,n,r,i,o)],[])}function Zm(e,t,n,r,i,a){let o=Xm(e,t,n,r,i,Fm(r,a,i));return v(o.length,1)?o[0]:va(o)}function Qm(e,t,n,r){let i=Kv(e,t,r),a=Vm(e,n,r),o=a[0],s=a[1];return fn(s)?Jm(t,o)?$m(ln(o),i):Zm(e,t,ln(o),s.parameters,s.expression,i):$m(n,i)}function $m(e,t){return D({"~kind":`Call`},{type:`call`,target:e,arguments:t},{})}function eh(e,t){return Qm({},Uv([],[]),e,t)}function th(e){return k(e,`Call`)}function nh(e){return Wt(e,[`~immutable`])}function rh(e,t){return O(nh(e),{},t)}function ih(e,t,n,r){return rh(J(e,t,n),r)}function ah(e,t){return e(t)}function oh(e,t){return g(t)?P(ah(e,t)):P(t)}function sh(e,t){return lh(e,_a(t))}function ch(e,t){return I(t.map(t=>lh(e,t)))}function lh(e,t){return F(t)?oh(e,t.const):_f(t)?sh(e,t.pattern):L(t)?ch(e,t.anyOf):t}function uh(e,t={}){return A(`Capitalize`,[e],t)}function dh(e,t={}){return Sh(e,t)}function fh(e,t={}){return A(`Lowercase`,[e],t)}function ph(e,t={}){return Ch(e,t)}function mh(e,t={}){return A(`Uncapitalize`,[e],t)}function hh(e,t={}){return wh(e,t)}function gh(e,t={}){return A(`Uppercase`,[e],t)}function _h(e,t={}){return Th(e,t)}const vh=e=>e[0].toUpperCase()+e.slice(1),yh=e=>e.toLowerCase(),bh=e=>e[0].toLowerCase()+e.slice(1),xh=e=>e.toUpperCase();function Sh(e,t){return q([e])?O(lh(vh,e),{},t):uh(e,t)}function Ch(e,t){return q([e])?O(lh(yh,e),{},t):fh(e,t)}function wh(e,t){return q([e])?O(lh(bh,e),{},t):mh(e,t)}function Th(e,t){return q([e])?O(lh(xh,e),{},t):gh(e,t)}function Eh(e,t,n,r){return Sh(J(e,t,n),r)}function Dh(e,t,n,r){return Ch(J(e,t,n),r)}function Oh(e,t,n,r){return wh(J(e,t,n),r)}function kh(e,t,n,r){return Th(J(e,t,n),r)}function Ah(e,t,n,r,i={}){return A(`Conditional`,[e,t,n,r],i)}function jh(e,t,n,r,i={}){return Nh({},Uv([],[]),e,t,n,r,i)}function Mh(e,t,n,r,i,a){let o=ym(e,n,r);return bf(o)?I([J(o.inferred,t,i),J(e,t,a)]):xf(o)?J(o.inferred,t,i):J(e,t,a)}function Nh(e,t,n,r,i,a,o){return q([n,r])?O(Mh(e,t,n,r,i,a),{},o):Ah(n,r,i,a,o)}function Ph(e,t,n,r,i,a,o){return Nh(e,t,J(e,t,n),J(e,t,r),i,a,o)}function Fh(e,t={}){return A(`ConstructorParameters`,[e],t)}function Ih(e,t={}){return Rh(e,t)}function Lh(e){let t=rn(e)?e.parameters:[];return Li(Gv({},Uv([],[]),t))}function Rh(e,t){return q([e])?O(Lh(e),{},t):Fh(e,t)}function zh(e,t,n,r){return Rh(J(e,t,n),r)}function Bh(e,t,n={}){return A(`Exclude`,[e,t],n)}function Vh(e,t,n={}){return Hh(e,t,n)}function Hh(e,t,n){return q([e,t])?O(pa(e,t),{},n):Bh(e,t,n)}function Uh(e,t,n,r,i){return Hh(J(e,t,n),J(e,t,r),i)}function Wh(e,t,n={}){return A(`Extract`,[e,t],n)}function Gh(e,t,n={}){return Yh(e,t,n)}function Kh(e,t){return Cf(ym({},e,t))?[e]:[]}function qh(e,t){return e.reduce((e,n)=>[...e,...Kh(n,t)],[])}function Jh(e,t){let n=ya(e);return va(qh(L(n)?n.anyOf:[n],t))}function Yh(e,t,n){return q([e,t])?O(Jh(e,t),{},n):Wh(e,t,n)}function Xh(e,t,n,r,i){return Yh(J(e,t,n),J(e,t,r),i)}function Zh(e){return e.reduce((e,t)=>ei(t)?[...e,P(t)]:e,[])}function Qh(e){return I(Zh(e))}function $h(e,t,n={}){return A(`Index`,[e,t],n)}function eg(e,t,n={}){return Kg(e,d(t)?Qh(t):t,n)}function tg(e,t){return ug(_m(e,t))}function ng(e,t,n){return ug(ma(e,t,n))}function rg(e,t){let n=S(e).filter(e=>!b(t,e)),i=S(t).filter(t=>!b(e,t)),a=S(e).filter(e=>b(t,e)),o=n.reduce((t,n)=>({...t,[n]:e[n]}),{}),s=i.reduce((e,n)=>({...e,[n]:t[n]}),{}),c=a.reduce((n,r)=>({...n,[r]:ga([e[r],t[r]])}),{});return r(r(o,s),c)}function ig(e){return e.reduce((e,t)=>rg(e,ug(t)),{})}function ag(e){return e}function og(e){return ug(Xi(Li(e)))}function sg(e,t){return S(e).filter(e=>e in t).reduce((n,r)=>({...n,[r]:va([e[r],t[r]])}),{})}function cg(e,t){return y(e,(e,n)=>cg(n,sg(t,ug(e))),()=>t)}function lg(e){return y(e,(e,t)=>cg(t,ug(e)),()=>qn())}function ug(e){return On(e)?tg(e.$defs,e.$ref):Fn(e)?ng(e.if,e.then,e.else):N(e)?ig(e.allOf):L(e)?lg(e.anyOf):R(e)?og(e.items):M(e)?ag(e.properties):{}}function dg(e){return j(ug(e))}const fg=RegExp(`^(?:0|[1-9][0-9]*)$`);function pg(e){let t=`${e}`;return fg.test(t)?parseInt(t):e}function mg(e){return P(pg(e))}function hg(e){return e.map(e=>gg(e))}function gg(e){return N(e)?Vn(hg(e.allOf)):L(e)?I(hg(e.anyOf)):F(e)?mg(e.const):e}function _g(e,t){return Cf(ym({},gg(t),ci()))?e:F(t)&&v(t.const,`length`)?ci():hn()}function vg(e,t){return Tg(_m(e,t))}function yg(e,t,n){return Tg(ma(e,t,n))}function bg(e){return Tg(ha(e))}function xg(e){return Tg(ga(e))}function Sg(e){return[`${e}`]}function Cg(e){return Tg(_a(e))}function wg(e){return e.reduce((e,t)=>[...e,...Tg(t)],[])}function Tg(e){return On(e)?vg(e.$defs,e.$ref):Fn(e)?yg(e.if,e.then,e.else):Bn(e)?bg(e.enum):N(e)?xg(e.allOf):F(e)?Sg(e.const):_f(e)?Cg(e.pattern):L(e)?wg(e.anyOf):[]}function Eg(e){return Tg(e)}function Dg(e,t){return t.map(t=>Og(e,t))}function Og(e,t){return en(t)?$t(Og(e,t.items)):rn(t)?nn(Dg(e,t.parameters),Og(e,t.instanceType)):sn(t)?on(Dg(e,t.parameters),Og(e,t.returnType)):R(t)?Li(Dg(e,t.items)):L(t)?I(Dg(e,t.anyOf)):N(t)?Vn(Dg(e,t.allOf)):Qa(t)?j(e):t}function kg(e,t){return Og(e,t)}function Ag(e,t){return kg(e,t in e?e[t]:hn())}function jg(e,t){return t.reduce((t,n)=>[...t,Ag(e,n)],[])}function Mg(e,t){return va(jg(e,Eg(t)))}const Ng=new RegExp(Ra);function Pg(e){return e.filter(e=>Ng.test(e))}function Fg(e){return va(jg(e,Pg(Sn(e))))}function Ig(e,t){return li(t)?Fg(e):Mg(e,t)}function Lg(e){return P(pg(e))}function Rg(e){return e.map(e=>zg(e))}function zg(e){return N(e)?Vn(Rg(e.allOf)):L(e)?I(Rg(e.anyOf)):F(e)?Lg(e.const):e}function Bg(e,t){return e.reduceRight((e,n,r)=>Cf(ym({},P(r),t))?[n,...e]:e,[])}function Vg(e,t){return ba(Bg(e,zg(t)))}function Hg(e){return ba(e)}function Ug(e,t){return F(t)&&v(t.const,`length`)?P(e.length):li(t)||Zr(t)?Hg(e):Vg(e,t)}function Wg(e,t){return en(e)?_g(e.items,t):M(e)?Ig(e.properties,t):R(e)?Ug(e.items,t):hn()}function Gg(e){return On(e)||Fn(e)||N(e)||L(e)?dg(e):e}function Kg(e,t,n){return q([e,t])?O(Wg(Gg(e),t),{},n):$h(e,t,n)}function qg(e,t,n,r,i){return Kg(J(e,t,n),J(e,t,r),i)}function Jg(e,t={}){return A(`InstanceType`,[e],t)}function Yg(e,t={}){return Zg(e,t)}function Xg(e){return rn(e)?e.instanceType:hn()}function Zg(e,t){return q([e])?O(Xg(e),{},t):Jg(e,t)}function Qg(e,t,n,r={}){return Zg(J(e,t,n),r)}function $g(e,t={}){return A(`KeyOf`,[e],t)}function e_(e,t={}){return l_(e,t)}function t_(){return I([ci(),mi(),ui()])}function n_(e){return ci()}function r_(e){return e.reduce((e,t)=>ei(t)?[...e,P(pg(t))]:qn(),[])}function i_(e){return ba(r_(S(e)))}function a_(e){return Ka(e)}function o_(e){return ba(e.map((e,t)=>P(t)))}function s_(e){return mn(e)?t_():en(e)?n_(e.items):M(e)?i_(e.properties):Ja(e)?a_(e):R(e)?o_(e.items):hn()}function c_(e){return On(e)||Fn(e)||N(e)||L(e)?dg(e):e}function l_(e,t){return q([e])?O(s_(c_(e)),{},t):$g(e,t)}function u_(e,t,n,r){return l_(J(e,t,n),r)}function d_(e,t,n,r,i={}){return A(`Mapped`,[e,t,n,r],i)}function f_(e,t,n,r,i={}){return w_({},Uv([],[]),e,t,n,r,i)}function p_(e){return __(_a(e))}function m_(e){return e.reduce((e,t)=>[...e,...__(t)],[])}function h_(e){return __(ha(e))}function g_(e){return m(e)?[P(`${e}`)]:[P(e)]}function __(e){return Bn(e)?h_(e.enum):F(e)?g_(e.const):_f(e)?p_(e.pattern):L(e)?m_(e.anyOf):[e]}function v_(e){return __(e)}function y_(e){return _f(e)?_a(e.pattern):e}function b_(e,t,n,i,a,o){let s=r(e,{[n.name]:i}),c=y_(J(s,t,a)),l=J(s,t,o);return ri(c)||ii(c)?{[c.const]:l}:{}}function x_(e,t,n,r,i,a){return r.reduce((r,o)=>[...r,b_(e,t,n,o,i,a)],[])}function S_(e){return e.reduce((e,t)=>[...e,j(t)],[])}function C_(e,t,n,r,i,a){return ga(S_(x_(e,t,n,v_(r),i,a)))}function w_(e,t,n,r,i,a,o){return q([r])?O(C_(e,t,n,r,i,a),{},o):d_(n,r,i,a,o)}function T_(e,t,n,r,i,a,o){return w_(e,t,n,J(e,t,r),i,a,o)}function E_(e,t,n){let i=r(e,t);return S(t).filter(e=>n.includes(e)).reduce((e,n)=>({...e,[n]:hm(i,n,t[n])}),{})}function D_(e,t,n){let i=r(e,t);return S(t).filter(e=>!n.includes(e)).reduce((e,n)=>({...e,[n]:J(i,Uv([],[]),t[n])}),{})}function O_(e,t,n){let r=tm(t),i=E_(e,t,r),a=D_(e,t,r);return O({...i,...a},{},n)}function k_(e,t,n,r){return O_(e,n,r)}function A_(e,t={}){return A(`NonNullable`,[e],t)}function j_(e,t={}){return N_(e,t)}function M_(e){return Hh(e,I([ai(),$a()]),{})}function N_(e,t){return q([e])?O(M_(e),{},t):A_(e,t)}function P_(e,t,n,r){return N_(J(e,t,n),r)}function F_(e,t,n={}){return A(`Omit`,[e,t],n)}function I_(e,t,n={}){return B_(e,d(t)?Qh(t):t,n)}function L_(e){let t=dg(e);return M(t)?t.properties:qn()}function R_(e,t){return S(e).reduce((n,r)=>t.includes(r)?n:{...n,[r]:e[r]},{})}function z_(e,t){return j(R_(L_(e),Eg(t)))}function B_(e,t,n){return q([e,t])?O(z_(e,t),{},n):F_(e,t,n)}function V_(e,t,n,r,i){return B_(J(e,t,n),J(e,t,r),i)}function H_(e,t={}){return A(`Parameters`,[e],t)}function U_(e,t={}){return G_(e,t)}function W_(e){let t=sn(e)?e.parameters:[];return Li(Gv({},Uv([],[]),t))}function G_(e,t){return q([e])?O(W_(e),{},t):H_(e,t)}function K_(e,t,n,r){return G_(J(e,t,n),r)}function q_(e,t={}){return A(`Partial`,[e],t)}function J_(e,t={}){return tv(e,t)}function Y_(e,t){let n=ev(_m(e,t));return Dn(r(e,{[t]:n}),t)}function X_(e,t,n){return ev(ma(e,t,n))}function Z_(e){return ev(ga(e))}function Q_(e){return I(e.map(e=>ev(e)))}function $_(e){return j(S(e).reduce((t,n)=>({...t,[n]:vn(e[n])}),{}))}function ev(e){return On(e)?Y_(e.$defs,e.$ref):Fn(e)?X_(e.if,e.then,e.else):N(e)?Z_(e.allOf):L(e)?Q_(e.anyOf):M(e)?$_(e.properties):j({})}function tv(e,t){return q([e])?O(ev(e),{},t):q_(e,t)}function nv(e,t,n,r){return tv(J(e,t,n),r)}function rv(e,t,n={}){return A(`Pick`,[e,t],n)}function iv(e,t,n={}){return sv(e,d(t)?Qh(t):t,n)}function av(e,t){return S(e).reduce((n,i)=>t.includes(i)?r(n,{[i]:e[i]}):n,{})}function ov(e,t){return j(av(L_(e),Eg(t)))}function sv(e,t,n){return q([e,t])?O(ov(e,t),{},n):rv(e,t,n)}function cv(e,t,n,r,i){return sv(J(e,t,n),J(e,t,r),i)}function lv(e,t={}){return A(`ReadonlyObject`,[e],t)}function uv(e,t={}){return yv(e,t)}function dv(e){return ty($t(e))}function fv(e,t){let n=vv(_m(e,t));return Dn(r(e,{[t]:n}),t)}function pv(e,t,n){return vv(ma(e,t,n))}function mv(e){return vv(ga(e))}function hv(e){return j(S(e).reduce((t,n)=>({...t,[n]:Ir(e[n])}),{}))}function gv(e){return ty(Li(e))}function _v(e){return I(e.map(e=>vv(e)))}function vv(e){return en(e)?dv(e.items):On(e)?fv(e.$defs,e.$ref):Fn(e)?pv(e.if,e.then,e.else):N(e)?mv(e.allOf):M(e)?hv(e.properties):R(e)?gv(e.items):L(e)?_v(e.anyOf):e}function yv(e,t){return q([e])?O(vv(e),{},t):lv(e)}function bv(e,t,n,r){return yv(J(e,t,n),r)}function xv(e,t,n,r){return t.visited.includes(r)?n:r in e?J(e,Uv(t.callstack,[...t.visited,r]),e[r]):n}function Sv(e,t){let n=Dv(_m(e,t));return Dn(r(e,{[t]:n}),t)}function Cv(e,t,n){return Dv(ma(e,t,n))}function wv(e){return Dv(ga(e))}function Tv(e){return I(e.map(e=>Dv(e)))}function Ev(e){return j(S(e).reduce((t,n)=>({...t,[n]:Ji(e[n])}),{}))}function Dv(e){return On(e)?Sv(e.$defs,e.$ref):Fn(e)?Cv(e.if,e.then,e.else):N(e)?wv(e.allOf):L(e)?Tv(e.anyOf):M(e)?Ev(e.properties):j({})}function Ov(e,t={}){return A(`Required`,[e],t)}function kv(e,t={}){return Av(e,t)}function Av(e,t){return q([e])?O(Dv(e),{},t):Ov(e,t)}function jv(e,t,n,r){return Av(J(e,t,n),r)}function Mv(e,t={}){return A(`ReturnType`,[e],t)}function Nv(e,t={}){return Fv(e,t)}function Pv(e){return sn(e)?e.returnType:hn()}function Fv(e,t){return q([e])?O(Pv(e),{},t):Mv(e,t)}function Iv(e,t,n,r={}){return Fv(J(e,t,n),r)}function Lv(e,t){return A(`With`,[e,t],{})}function Rv(e,t){return zv(e,t)}function zv(e,t){return q([e])?O(e,{},t):Lv(e,t)}function Bv(e,t,n,r){return zv(J(e,t,n),r)}function Vv(e){return Xa(e)?R(e.items)?Hv(e.items.items):Nn(e.items)||un(e.items)?[e]:[hn()]:[e]}function Hv(e){return e.reduce((e,t)=>[...e,...Vv(t)],[])}function Uv(e,t){return{callstack:e,visited:t}}function q(e){return y(e,(e,t)=>un(e)?!1:q(t),()=>!0)}function Wv(e,t,n){return S(n).reduce((r,i)=>({...r,[i]:J(e,t,n[i])}),{})}function Gv(e,t,n){return Hv(Kv(e,t,n))}function Kv(e,t,n){return n.map(n=>J(e,t,n))}function qv(e,t){let n=bn(e)?Zt(t,{}):t,r=Rr(e)?Jt(n,{}):n;return Pr(e)?Qv(r,{}):r}function Jv(e,t,n,r,i){return v(n,`AddImmutable`)?$v(e,t,r[0],i):v(n,`RemoveImmutable`)?ih(e,t,r[0],i):v(n,`AddReadonly`)?Yt(e,t,r[0],i):v(n,`RemoveReadonly`)?Vi(e,t,r[0],i):v(n,`AddOptional`)?Qt(e,t,r[0],i):v(n,`RemoveOptional`)?Ki(e,t,r[0],i):v(n,`Capitalize`)?Eh(e,t,r[0],i):v(n,`Conditional`)?Ph(e,t,r[0],r[1],r[2],r[3],i):v(n,`ConstructorParameters`)?zh(e,t,r[0],i):v(n,`Evaluate`)?Dm(e,t,r[0],i):v(n,`Exclude`)?Uh(e,t,r[0],r[1],i):v(n,`Extract`)?Xh(e,t,r[0],r[1],i):v(n,`Index`)?qg(e,t,r[0],r[1],i):v(n,`InstanceType`)?Qg(e,t,r[0],i):v(n,`Interface`)?Gp(e,t,r[0],r[1],i):v(n,`KeyOf`)?u_(e,t,r[0],i):v(n,`Lowercase`)?Dh(e,t,r[0],i):v(n,`Mapped`)?T_(e,t,r[0],r[1],r[2],r[3],i):v(n,`Module`)?k_(e,t,r[0],i):v(n,`NonNullable`)?P_(e,t,r[0],i):v(n,`Pick`)?cv(e,t,r[0],r[1],i):v(n,`Parameters`)?K_(e,t,r[0],i):v(n,`Partial`)?nv(e,t,r[0],i):v(n,`Omit`)?V_(e,t,r[0],r[1],i):v(n,`ReadonlyObject`)?bv(e,t,r[0],i):v(n,`Record`)?La(e,t,r[0],r[1],i):v(n,`Required`)?jv(e,t,r[0],i):v(n,`ReturnType`)?Iv(e,t,r[0],i):v(n,`TemplateLiteral`)?df(e,t,r[0],i):v(n,`Uncapitalize`)?Oh(e,t,r[0],i):v(n,`Uppercase`)?kh(e,t,r[0],i):v(n,`With`)?Bv(e,t,r[0],r[1]):A(n,r,i)}function Yv(e,t,n){return qv(n,un(n)?xv(e,t,n,n.$ref):en(n)?$t(J(e,t,n.items),tn(n)):th(n)?Qm(e,t,n.target,n.arguments):rn(n)?nn(Kv(e,t,n.parameters),J(e,t,n.instanceType),an(n)):sn(n)?on(Kv(e,t,n.parameters),J(e,t,n.returnType),cn(n)):Fn(n)?Pn(J(e,t,n.if),J(e,t,n.then),J(e,t,n.else),In(n)):N(n)?Vn(Kv(e,t,n.allOf),Hn(n)):M(n)?j(Wv(e,t,n.properties),wn(n)):Ja(n)?Ua(Ga(n),J(e,t,qa(n))):Xa(n)?Ya(J(e,t,n.items)):R(n)?Li(Gv(e,t,n.items),Ri(n)):L(n)?I(Kv(e,t,n.anyOf),gi(n)):n)}function J(e,t,n){return Kt(n)?Jv(e,t,n.action,n.parameters,n.options):Yv(e,t,n)}function Xv(e,t){return J(e,Uv([],[]),t)}function Zv(e){return O(e,{"~immutable":!0},{})}function Qv(e,t){return O(Zv(e),{},t)}function $v(e,t,n,r){return Qv(J(e,t,n),r)}function ey(e,t={}){return A(`AddImmutable`,[e],t)}function ty(e,t={}){return Qv(e,t)}function ny(e,t={}){return A(`Evaluate`,[e],t)}function ry(e,t={}){return Em(e,t)}function iy(e,t={}){return A(`Module`,[e],t)}function ay(e,t={}){return k_({},Uv([],[]),e,t)}function oy(e,t){let n=bm(e,t);return v(n,`right-inside`)?1:+!!v(n,`disjoint`)}function sy(e,t,n=[]){return y(t,(r,i)=>v(oy(e,r),1)?sy(e,i,[...n,r]):[...n,e,...t],()=>[...n,e])}function cy(e,t=[]){return y(e,(e,n)=>cy(n,sy(e,t)),()=>t)}function ly(e){return cy(e)}function uy(...e){let[t,n,r]=jn(e,{2:(e,t)=>g(e)?[{},e,t]:[e,t,{}],3:(e,t,n)=>[e,t,n],1:e=>[{},e,{}]}),i=Gd(n);return O(d(i)&&v(i.length,2)?J(t,Uv([],[]),i[0]):hn(),{},r)}var Y=t({Any:()=>pn,Array:()=>$t,BigInt:()=>Ur,Boolean:()=>Gr,Call:()=>eh,Capitalize:()=>dh,Codec:()=>kr,Conditional:()=>jh,Constructor:()=>nn,ConstructorParameters:()=>Ih,Cyclic:()=>Dn,Decode:()=>Ar,DecodeBuilder:()=>Or,Dependent:()=>Pn,Encode:()=>jr,EncodeBuilder:()=>Dr,Enum:()=>zn,Evaluate:()=>ry,Exclude:()=>Vh,Extends:()=>ym,ExtendsResult:()=>vf,Extract:()=>Gh,Function:()=>on,Generic:()=>dn,Identifier:()=>qr,Immutable:()=>Nr,Index:()=>eg,Infer:()=>Mn,InstanceType:()=>Yg,Instantiate:()=>Xv,Integer:()=>Xr,Interface:()=>Jp,Intersect:()=>Vn,IsAny:()=>mn,IsArray:()=>en,IsBigInt:()=>Wr,IsBoolean:()=>Kr,IsCall:()=>th,IsCodec:()=>Mr,IsConstructor:()=>rn,IsCyclic:()=>On,IsDependent:()=>Fn,IsEnum:()=>Bn,IsFunction:()=>sn,IsGeneric:()=>fn,IsIdentifier:()=>Jr,IsImmutable:()=>Pr,IsInfer:()=>Nn,IsInteger:()=>Zr,IsIntersect:()=>N,IsKind:()=>k,IsLiteral:()=>F,IsNever:()=>gn,IsNull:()=>oi,IsNumber:()=>li,IsObject:()=>M,IsOptional:()=>bn,IsParameter:()=>pi,IsReadonly:()=>Rr,IsRecord:()=>Ja,IsRef:()=>un,IsRefine:()=>Hr,IsRest:()=>Xa,IsSchema:()=>Gt,IsString:()=>hi,IsSymbol:()=>di,IsTemplateLiteral:()=>_f,IsThis:()=>Qa,IsTuple:()=>R,IsUndefined:()=>eo,IsUnion:()=>L,IsUnknown:()=>En,IsUnsafe:()=>An,IsVoid:()=>no,KeyOf:()=>e_,Literal:()=>P,Lowercase:()=>ph,Mapped:()=>f_,Module:()=>ay,Never:()=>hn,NonNullable:()=>j_,Null:()=>ai,Number:()=>ci,Object:()=>j,Omit:()=>I_,Optional:()=>yn,Parameter:()=>fi,Parameters:()=>U_,Partial:()=>J_,Pick:()=>iv,Readonly:()=>Lr,ReadonlyObject:()=>uv,Record:()=>Ha,RecordKey:()=>Ka,RecordPattern:()=>Ga,RecordValue:()=>qa,Ref:()=>ln,Refine:()=>Br,Required:()=>kv,Rest:()=>Ya,ReturnType:()=>Nv,Script:()=>uy,String:()=>mi,Symbol:()=>ui,TemplateLiteral:()=>gf,This:()=>Za,Tuple:()=>Li,Uncapitalize:()=>hh,Undefined:()=>$a,Union:()=>I,Unknown:()=>Tn,Unsafe:()=>kn,Uppercase:()=>_h,Void:()=>to,With:()=>Rv});function dy(e){return b(e,`~refine`)&&d(e[`~refine`])&&Ce(e[`~refine`],0,e=>h(e)&&b(e,`check`)&&b(e,`error`)&&ce(e.check)&&ce(e.error))}function fy(e){return h(e)&&!d(e)}function py(e){return p(e)}function X(e){return fy(e)||py(e)}function my(e){return b(e,`additionalItems`)&&X(e.additionalItems)}function hy(e){return b(e,`additionalProperties`)&&X(e.additionalProperties)}function gy(e){return b(e,`allOf`)&&d(e.allOf)&&e.allOf.every(e=>X(e))}function _y(e){return b(e,`$anchor`)&&g(e.$anchor)}function vy(e){return b(e,`anyOf`)&&d(e.anyOf)&&e.anyOf.every(e=>X(e))}function yy(e){return b(e,`const`)}function by(e){return b(e,`contains`)&&X(e.contains)}function xy(e){return b(e,`default`)}function Sy(e){return b(e,`dependencies`)&&h(e.dependencies)&&Object.values(e.dependencies).every(e=>X(e)||d(e)&&e.every(e=>g(e)))}function Cy(e){return b(e,`dependentRequired`)&&h(e.dependentRequired)&&Object.values(e.dependentRequired).every(e=>d(e)&&e.every(e=>g(e)))}function wy(e){return b(e,`dependentSchemas`)&&h(e.dependentSchemas)&&Object.values(e.dependentSchemas).every(e=>X(e))}function Ty(e){return b(e,`$dynamicAnchor`)&&g(e.$dynamicAnchor)}function Ey(e){return b(e,`$dynamicRef`)&&g(e.$dynamicRef)}function Dy(e){return b(e,`else`)&&X(e.else)}function Oy(e){return b(e,`enum`)&&d(e.enum)}function ky(e){return b(e,`exclusiveMaximum`)&&(m(e.exclusiveMaximum)||f(e.exclusiveMaximum))}function Ay(e){return b(e,`exclusiveMinimum`)&&(m(e.exclusiveMinimum)||f(e.exclusiveMinimum))}function jy(e){return b(e,`format`)&&g(e.format)}function My(e){return b(e,`$id`)&&g(e.$id)}function Ny(e){return b(e,`if`)&&X(e.if)}function Py(e){return b(e,`items`)&&(X(e.items)||d(e.items)&&e.items.every(e=>X(e)))}function Fy(e){return Py(e)&&d(e.items)}function Iy(e){return b(e,`maximum`)&&(m(e.maximum)||f(e.maximum))}function Ly(e){return b(e,`maxContains`)&&m(e.maxContains)}function Ry(e){return b(e,`maxItems`)&&m(e.maxItems)}function zy(e){return b(e,`maxLength`)&&m(e.maxLength)}function By(e){return b(e,`maxProperties`)&&m(e.maxProperties)}function Vy(e){return b(e,`minimum`)&&(m(e.minimum)||f(e.minimum))}function Hy(e){return b(e,`minContains`)&&m(e.minContains)}function Uy(e){return b(e,`minItems`)&&m(e.minItems)}function Wy(e){return b(e,`minLength`)&&m(e.minLength)}function Gy(e){return b(e,`minProperties`)&&m(e.minProperties)}function Ky(e){return b(e,`multipleOf`)&&(m(e.multipleOf)||f(e.multipleOf))}function qy(e){return b(e,`not`)&&X(e.not)}function Jy(e){return b(e,`oneOf`)&&d(e.oneOf)&&e.oneOf.every(e=>X(e))}function Yy(e){return b(e,`pattern`)&&(g(e.pattern)||e.pattern instanceof RegExp)}function Xy(e){return b(e,`patternProperties`)&&h(e.patternProperties)&&Object.values(e.patternProperties).every(e=>X(e))}function Zy(e){return b(e,`prefixItems`)&&d(e.prefixItems)&&e.prefixItems.every(e=>X(e))}function Qy(e){return b(e,`properties`)&&h(e.properties)&&Object.values(e.properties).every(e=>X(e))}function $y(e){return b(e,`propertyNames`)&&(h(e.propertyNames)||X(e.propertyNames))}function eb(e){return b(e,`$recursiveAnchor`)&&p(e.$recursiveAnchor)}function tb(e){return eb(e)&&v(e.$recursiveAnchor,!0)}function nb(e){return b(e,`$recursiveRef`)&&g(e.$recursiveRef)}function rb(e){return b(e,`$ref`)&&g(e.$ref)}function ib(e){return b(e,`required`)&&d(e.required)&&e.required.every(e=>g(e))}function ab(e){return b(e,`then`)&&X(e.then)}function ob(e){return b(e,`type`)&&(g(e.type)||d(e.type)&&e.type.every(e=>g(e)))}function sb(e){return b(e,`uniqueItems`)&&p(e.uniqueItems)}function cb(e){return b(e,`unevaluatedItems`)&&X(e.unevaluatedItems)}function lb(e){return b(e,`unevaluatedProperties`)&&X(e.unevaluatedProperties)}function ub(e){return cb(e)||lb(e)||S(e).some(t=>fb(e[t]))}function db(e){return e.some(e=>fb(e))}function fb(e){return d(e)?db(e):h(e)?ub(e):!1}function pb(e,t){return fb(t)||S(e).some(t=>fb(e[t]))}var mb=class{constructor(e){this.hasUnevaluated=e}UseUnevaluated(){return this.hasUnevaluated}Push(){return w(T(`context`,`Push`),[])}Pop(){return w(T(`context`,`Pop`),[])}AddIndex(e){return w(T(`context`,`AddIndex`),[e])}AddKey(e){return w(T(`context`,`AddKey`),[e])}Merge(e){return w(T(`context`,`Merge`),[e])}},hb=class{constructor(){let e=new Set,t=new Set;this.stack=[{indices:e,keys:t}]}Push(){let e=new Set,t=new Set;return this.stack.push({indices:e,keys:t}),!0}Pop(){return this.stack.pop(),!0}AddIndex(e){return this.GetIndices().add(e),!0}AddKey(e){return this.GetKeys().add(e),!0}GetIndices(){return this.stack[this.stack.length-1].indices}GetKeys(){return this.stack[this.stack.length-1].keys}Merge(e){for(let t of e)t.GetIndices().forEach(e=>this.GetIndices().add(e)),t.GetKeys().forEach(e=>this.GetKeys().add(e));return!0}},gb=class extends hb{constructor(e){super(),this.callback=e}AddError(e){return this.callback(e),!1}},_b=class extends gb{constructor(){super(e=>this.errors.push(e)),this.errors=[]}AddError(e){return this.errors.push(e),!1}GetErrors(){return this.errors}};const vb={identifier:`External`,variables:[]};function yb(e){let t=`External[${vb.variables.length}]`;return vb.variables.push(e),t}function bb(){vb.variables=[]}function xb(){return{...vb}}function Sb(e,t,n,r){return nt(yb(n[`~refine`].map(e=>e)),E(0),[`refinement`,`_`],w(T(`refinement`,`check`),[r]))}function Cb(e,t,n,r){return Ce(n[`~refine`],0,(e,t)=>e.check(r))}function wb(e,t,n,r,i,a){return we(i[`~refine`],0,(e,i)=>e.check(a)||t.AddError({keyword:`~refine`,schemaPath:n,instancePath:r,params:{index:i,message:e.error(a)}}))}let Tb=0;function Eb(){return`var_${Tb++}`}function Db(e){return Py(e)&&d(e.items)}function Ob(e,t,n,r){if(!Db(n))return E(!0);let[i,a]=[Eb(),Eb()],o=tT(e,t,n.additionalItems,i),s=Ze(a,E(n.items.length)),c=t.AddIndex(a),l=t.UseUnevaluated()?C(s,Pe(o,c)):C(s,o);return w(T(r,`every`),[ct([i,a],l)])}function kb(e,t,n,r){return Db(n)?r.every((r,i)=>me(i,n.items.length)||rT(e,t,n.additionalItems,r)&&t.AddIndex(i)):!0}function Ab(e,t,n,r,i,a){return Db(i)?a.every((a,o)=>{let s=`${n}/additionalItems`,c=`${r}/${o}`;return me(o,i.items.length)||iT(e,t,s,c,i.additionalItems,a)&&t.AddIndex(o)}):!0}function jb(e){return`^${e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}$`}function Mb(e){let t=[];return Xy(e)&&t.push(...S(e.patternProperties)),Qy(e)&&t.push(...S(e.properties).map(jb)),v(t.length,0)?`(?!)`:`(${t.join(`|`)})`}function Nb(e,t,n){return ib(t)&&Qy(t)&&!Xy(t)&&v(t.additionalProperties,!1)&&v(S(t.properties).length,t.required.length)}function Pb(e,t,n){return Ye(T(w(T(`Object`,`getOwnPropertyNames`),[n]),`length`),E(t.required.length))}function Fb(e,t,n,r){let[i,a]=[Eb(),Eb()],o=yb(new RegExp(Mb(n))),s=tT(e,t,n.additionalProperties,`${r}[${i}]`),c=w(T(o,`test`),[i]),l=t.AddKey(i),u=t.UseUnevaluated()?C(c,Pe(s,l)):C(c,s);return nt(it(r),E(0),[i,a],u)}function Ib(e,t,n,r){return Nb(t,n,r)?Pb(t,n,r):Fb(e,t,n,r)}function Lb(e,t,n,r){let i=new RegExp(Mb(n));return Ce(S(r),0,(a,o)=>i.test(a)||rT(e,t,n.additionalProperties,r[a])&&t.AddKey(a))}function Rb(e,t,n,r,i,a){let o=new RegExp(Mb(i)),s=[];return we(S(a),0,(c,l)=>{let u=`${n}/additionalProperties`,ee=`${r}/${c}`,te=new _b,ne=o.test(c)||iT(e,te,u,ee,i.additionalProperties,a[c])&&t.AddKey(c);return ne||s.push(c),ne})||t.AddError({keyword:`additionalProperties`,schemaPath:n,instancePath:r,params:{additionalProperties:s}})}function zb(e,t,n,r,i){let a=ft(`results`,`[]`),o=n.map((e,t)=>ft(`context_${t}`,lt(`CheckContext`,[]))),s=n.map((n,i)=>ft(`condition_${i}`,w(ct([`context`],nT(e,t,n,r)),[`context_${i}`]))),c=n.map((e,t)=>pt(`condition_${t}`,w(T(`results`,`push`),[`context_${t}`]))),l=mt(Pe(i,t.Merge(`results`)));return w(ct([],dt([a,...o,...s,...c,l])),[])}function Bb(e,t,n,r){return zb(e,t,n.allOf,r,Ye(T(`results`,`length`),E(n.allOf.length)))}function Vb(e,t,n,r){return ht(n.allOf.map(n=>nT(e,t,n,r)))}function Hb(e,t,n,r){return t.UseUnevaluated()?Bb(e,t,n,r):Vb(e,t,n,r)}function Ub(e,t,n,r){let i=n.allOf.reduce((t,n)=>{let i=new hb;return Q(e,i,n,r)?[...t,i]:t},[]);return v(i.length,n.allOf.length)&&t.Merge(i)}function Wb(e,t,n,r,i,a){let o=[],s=i.allOf.reduce((t,i,s)=>{let c=`${n}/allOf/${s}`,l=new _b,u=aT(e,l,c,r,i,a);return u||o.push(l),u?[...t,l]:t},[]),c=v(s.length,i.allOf.length)&&t.Merge(s);return c||o.forEach(e=>e.GetErrors().forEach(e=>t.AddError(e))),c}function Gb(e,t,n,r){return zb(e,t,n.anyOf,r,Xe(T(`results`,`length`),E(0)))}function Kb(e,t,n,r){return gt(n.anyOf.map(n=>nT(e,t,n,r)))}function qb(e,t,n,r){return t.UseUnevaluated()?Gb(e,t,n,r):Kb(e,t,n,r)}function Jb(e,t,n,r){let i=n.anyOf.reduce((t,n)=>{let i=new hb;return Q(e,i,n,r)?[...t,i]:t},[]);return pe(i.length,0)&&t.Merge(i)}function Yb(e,t,n,r,i,a){let o=[],s=i.anyOf.reduce((t,i,s)=>{let c=new _b,l=aT(e,c,`${n}/anyOf/${s}`,r,i,a);return l||o.push(c),l?[...t,c]:t},[]),c=pe(s.length,0)&&t.Merge(s);return c||o.forEach(e=>e.GetErrors().forEach(e=>t.AddError(e))),c||t.AddError({keyword:`anyOf`,schemaPath:n,instancePath:r,params:{}})}function Xb(e,t,n,r){return E(!!n)}function Zb(e,t,n,r){return n}function Qb(e,t,n,r,i,a){return Zb(e,t,i,a)||t.AddError({keyword:`boolean`,schemaPath:n,instancePath:r,params:{}})}function $b(e,t,n,r){return ye(n.const)?Ye(r,E(n.const)):ot(r,yb(n.const))}function ex(e,t,n,r){return ye(n.const)?v(r,n.const):je(r,n.const)}function tx(e,t,n,r,i,a){return ex(e,t,i,a)||t.AddError({keyword:`const`,schemaPath:n,instancePath:r,params:{allowedValue:i.const}})}function nx(e){return!(Hy(e)&&v(e.minContains,0))}function rx(e,t,n,r){if(!nx(n))return E(!0);let i=Eb();return Pe(Fe(Ye(T(r,`length`),E(0))),w(T(r,`some`),[ct([i],nT(e,t,n.contains,i))]))}function ix(e,t,n,r){return nx(n)?!v(r.length,0)&&r.some(r=>Q(e,t,n.contains,r)):!0}function ax(e,t,n,r,i,a){return ix(e,t,i,a)||t.AddError({keyword:`contains`,schemaPath:n,instancePath:r,params:{minContains:1}})}function ox(e,t,n,r){return C(Ye(T(it(r),`length`),E(0)),ht(x(n.dependencies).map(([n,i])=>{let a=Fe(at(r,E(n))),o=nT(e,t,i,r);return C(a,d(i)?(e=>ht(e.map(e=>at(r,E(e)))))(i):o)})))}function sx(e,t,n,r){let i=v(S(r).length,0),a=Ce(x(n.dependencies),0,([n,i])=>!b(r,n)||(d(i)?i.every(e=>b(r,e)):Q(e,t,i,r)));return i||a}function cx(e,t,n,r,i,a){let o=v(S(a).length,0),s=we(x(i.dependencies),0,([i,o])=>{let s=`${n}/dependencies/${i}`;return!b(a,i)||(d(o)?o.every(e=>b(a,e)||t.AddError({keyword:`dependencies`,schemaPath:n,instancePath:r,params:{property:i,dependencies:o}})):aT(e,t,s,r,o,a))});return o||s}function lx(e,t,n,r){return C(Ye(T(it(r),`length`),E(0)),ht(x(n.dependentRequired).map(([e,t])=>C(Fe(at(r,E(e))),ht(t.map(e=>at(r,E(e))))))))}function ux(e,t,n,r){let i=v(S(r).length,0),a=Ce(x(n.dependentRequired),0,([e,t])=>!b(r,e)||t.every(e=>b(r,e)));return i||a}function dx(e,t,n,r,i,a){let o=v(S(a).length,0),s=we(x(i.dependentRequired),0,([e,i])=>!b(a,e)||we(i,0,o=>b(a,o)||t.AddError({keyword:`dependentRequired`,schemaPath:n,instancePath:r,params:{property:e,dependencies:i}})));return o||s}function fx(e,t,n,r){return C(Ye(T(it(r),`length`),E(0)),ht(x(n.dependentSchemas).map(([n,i])=>C(Fe(at(r,E(n))),nT(e,t,i,r)))))}function px(e,t,n,r){let i=v(S(r).length,0),a=Ce(x(n.dependentSchemas),0,([n,i])=>!b(r,n)||Q(e,t,i,r));return i||a}function mx(e,t,n,r,i,a){let o=v(S(a).length,0),s=we(x(i.dependentSchemas),0,([i,o])=>{let s=`${n}/dependentSchemas/${i}`;return!b(a,i)||aT(e,t,s,r,o,a)});return o||s}function hx(e,t,n,r){return dT(e,t,e.DynamicRef(n)??!1,r)}function gx(e,t,n,r){let i=e.DynamicRef(n)??!1;return X(i)&&Q(e,t,i,r)}function _x(e,t,n,r,i,a){let o=e.DynamicRef(i)??!1;return X(o)&&aT(e,t,`#`,r,o,a)}function vx(e,t,n,r){return gt(n.enum.map(e=>ye(e)?Ye(r,E(e)):ot(r,yb(e))))}function yx(e,t,n,r){return n.enum.some(e=>ye(e)?v(r,e):je(r,e))}function bx(e,t,n,r,i,a){return yx(e,t,i,a)||t.AddError({keyword:`enum`,schemaPath:n,instancePath:r,params:{allowedValues:i.enum}})}function xx(e,t,n,r){return Ze(r,E(n.exclusiveMaximum))}function Sx(e,t,n,r){return me(r,n.exclusiveMaximum)}function Cx(e,t,n,r,i,a){return Sx(e,t,i,a)||t.AddError({keyword:`exclusiveMaximum`,schemaPath:n,instancePath:r,params:{comparison:`<`,limit:i.exclusiveMaximum}})}function wx(e,t,n,r){return Xe(r,E(n.exclusiveMinimum))}function Tx(e,t,n,r){return pe(r,n.exclusiveMinimum)}function Ex(e,t,n,r,i,a){return Tx(e,t,i,a)||t.AddError({keyword:`exclusiveMinimum`,schemaPath:n,instancePath:r,params:{comparison:`>`,limit:i.exclusiveMinimum}})}const Dx=[0,31,28,31,30,31,30,31,31,30,31,30,31],Ox=/^(\d\d\d\d)-(\d\d)-(\d\d)$/;function kx(e){return e%4==0&&(e%100!=0||e%400==0)}function Ax(e){let t=Ox.exec(e);if(!t)return!1;let n=+t[1],r=+t[2],i=+t[3];return r>=1&&r<=12&&i>=1&&i<=(r===2&&kx(n)?29:Dx[r])}const jx=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(?:Z|([+-])(\d\d):(\d\d))?$/i;function Mx(e,t=!0){let n=jx.exec(e);if(!n)return!1;let r=+n[1],i=+n[2],a=+n[3],o=n[4]===`-`?-1:1,s=+(n[5]||0),c=+(n[6]||0);if(s>23||c>59||t&&!n[4]&&e.toLowerCase().indexOf(`z`)===-1)return!1;if(r<=23&&i<=59&&a<60)return!0;let l=i-c*o,u=r-s*o-+(l<0);return(u===23||u===-1)&&(l===59||l===-1)&&a<61}function Nx(e,t=!0){let n=e.split(/T/i);return n.length===2&&Ax(n[0])&&Mx(n[1],t)}const Px=/^P((\d+Y(\d+M(\d+D)?)?|\d+M(\d+D)?|\d+D)(T(\d+H(\d+M(\d+S)?)?|\d+M(\d+S)?|\d+S))?|T(\d+H(\d+M(\d+S)?)?|\d+M(\d+S)?|\d+S)|\d+W)$/;function Fx(e){return Px.test(e)}const Ix=/^(?!.*\.\.)[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i;function Lx(e){return Ix.test(e)}function Rx(e,t,n){e=n?Math.floor(e/700):e>>1,e+=Math.floor(e/t);let r=0;for(;e>455;)e=Math.floor(e/35),r+=36;return r+Math.floor(36*e/(e+38))}function zx(e){let t=[],n=128,r=0,i=72,a=e.lastIndexOf(`-`);if(a>0)for(let n=0;n=128)throw Error(`Invalid punycode: non-basic before delimiter`);t.push(r)}let o=a<0?0:a+1;for(;o=e.length)throw Error(`Invalid punycode: unexpected end of input`);let t=e.charCodeAt(o++),n;if(t>=97&&t<=122)n=t-97;else if(t>=48&&t<=57)n=t-48+26;else if(t>=65&&t<=90)n=t-65;else throw Error(`Invalid punycode: bad digit character`);r+=n*s;let a=c<=i?1:c>=i+26?26:c-i;if(n=1632&&e<=1641}function Qx(e){return e>=1776&&e<=1785}function $x(e){return Gx.has(e)}function eS(e){if(e.length===0)return!1;let t=[...e].map(e=>e.codePointAt(0)),n=t.length;if(t[0]===45||t[n-1]===45||n>=4&&t[2]===45&&t[3]===45||Ux(t[0]))return!1;let r=!1,i=!1,a=!1;for(let e=0;e=4&&e.charCodeAt(2)===45&&e.charCodeAt(3)===45)return!1;for(let t=0;t=97&&n<=122||n>=65&&n<=90||n>=48&&n<=57||n===45))return!1}return!0}function nS(e){return e.toLowerCase().startsWith(`xn--`)}function rS(e){try{let t=e.slice(4).toLowerCase();if(t.lastIndexOf(`-`)===0)return!1;let n=zx(t);return n?eS(n):!1}catch{return!1}}function iS(e){return e.length===0||e.length>63?!1:nS(e)?rS(e):eS(e)}function aS(e){return e.length===0||e.length>63?!1:nS(e)?rS(e):tS(e)}function oS(e){if(e.length===0||e.length>253||e.charCodeAt(e.length-1)===46)return!1;for(let t of e.split(`.`))if(!aS(t))return!1;return!0}const sS=/^(?!.*\.\.)[\p{L}\p{N}!#$%&'*+/=?^_`{|}~-]+(?:\.[\p{L}\p{N}!#$%&'*+/=?^_`{|}~-]+)*@[\p{L}\p{N}](?:[\p{L}\p{N}-]{0,61}[\p{L}\p{N}])?(?:\.[\p{L}\p{N}](?:[\p{L}\p{N}-]{0,61}[\p{L}\p{N}])?)*$/iu;function cS(e){return sS.test(e)}function lS(e){if(e.length===0||e.includes(` `))return!1;let t=e.normalize(`NFC`).replace(/[\u002E\u3002\uFF0E\uFF61]/g,`.`);if(t.length>253)return!1;for(let e of t.split(`.`))if(!iS(e))return!1;return!0}function uS(e,t,n){let r=0,i=0,a=0,o=0;for(let s=t;s255||o===48&&a>1)return!1;r++,i=0,a=0,o=0}else if(t>=48&&t<=57)a===0&&(o=t),i=i*10+(t-48),a++;else return!1}return r===3&&a>0&&i<=255&&!(o===48&&a>1)}function dS(e){return uS(e,0,e.length)}function fS(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function pS(e){let t=e.length;if(t===0)return!1;let n=0,r=!1,i=0;if(e.charCodeAt(0)===58&&e.charCodeAt(1)===58){if(t===2)return!0;r=!0,i=2}for(;i4)return!1;if(n++,i===t)break;if(s!==58)return!1;if(i++,e.charCodeAt(i)===58){if(r||e.charCodeAt(i+1)===58)return!1;if(r=!0,i++,i===t)break}}return r?n<=7:n===8}function mS(e){try{return new URL(e,`http://example.com`),!0}catch{return!1}}function hS(e){if(e.includes(` `)||e.includes(`\\`)||/[\x00-\x1F\x7F]/.test(e)||/%(?![0-9a-fA-F]{2})/.test(e))return!1;if(e===``)return!0;let t=e.indexOf(`:`);return t>0&&/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(e.substring(0,t))?mS(e):e.match(/^([a-zA-Z][a-zA-Z0-9+\-.]*)(\/\/)/)&&t===-1?!1:mS(e)}function gS(e){try{return new URL(e),!0}catch{return!1}}const _S=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i;function vS(e){return _S.test(e)}const yS=/^(?:\/(?:[^~/]|~0|~1)*)*$/;function bS(e){return yS.test(e)}function xS(e){if(e.length===0)return!1;try{return new RegExp(e),!0}catch{return!1}}const SS=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;function CS(e){return SS.test(e)}const wS=/^(?!.*[^\x00-\x7F])(?!.*\\)(?:(?:[a-z][a-z0-9+\-.]*:)?(?:\/\/[^\s[\]{}<>^`|]*)?|[^\s[\]{}<>^`|]*)(?:\?[^\s[\]{}<>^`|]*)?(?:#[^\s[\]{}<>^`|]*)?$/i;function TS(e){return wS.test(e)}const ES=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i;function DS(e){return ES.test(e)}function OS(e){return e>=97&&e<=122||e>=65&&e<=90}function kS(e){return OS(e)||e>=48&&e<=57}function AS(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function jS(e){return kS(e)||e===43||e===45||e===46}function MS(e){return kS(e)||e===45||e===46||e===95||e===126}function NS(e){return e===33||e===36||e===38||e===39||e===40||e===41||e===42||e===43||e===44||e===59||e===61}function PS(e){return MS(e)||NS(e)||e===58||e===64}function FS(e){let t=e.length;if(t===0||!OS(e.charCodeAt(0)))return!1;let n=1;for(;n=i||!AS(e.charCodeAt(t+1))||!AS(e.charCodeAt(t+2)))return!1;t+=2}else if(!MS(n)&&!NS(n)&&n!==58)return!1}n=i+1}if(e.charCodeAt(n)===91){for(n++;n57)return!1;n++}}for(;n=t||!AS(e.charCodeAt(n+1))||!AS(e.charCodeAt(n+2)))return!1;n+=2}else if(r>127)return!1;else if(!(PS(r)||r===47||r===63||r===35))return!1;n++}return!0}const IS=/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu;function LS(e){return IS.test(e)}const RS=/^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;function zS(e){return RS.test(e)}const Z=new Map;function BS(){Z.clear()}function VS(){return[...Z.entries()]}function HS(e,t){Z.set(e,t)}function US(e){return Z.has(e)}function WS(e){return Z.get(e)}function GS(e,t){return Z.get(e)?.(t)??!0}function KS(){BS(),Z.set(`date-time`,Nx),Z.set(`date`,Ax),Z.set(`duration`,Fx),Z.set(`email`,Lx),Z.set(`hostname`,oS),Z.set(`idn-email`,cS),Z.set(`idn-hostname`,lS),Z.set(`ipv4`,dS),Z.set(`ipv6`,pS),Z.set(`iri-reference`,hS),Z.set(`iri`,gS),Z.set(`json-pointer-uri-fragment`,vS),Z.set(`json-pointer`,bS),Z.set(`regex`,xS),Z.set(`relative-json-pointer`,CS),Z.set(`time`,Mx),Z.set(`uri-reference`,TS),Z.set(`uri-template`,DS),Z.set(`uri`,FS),Z.set(`url`,LS),Z.set(`uuid`,zS)}KS();var qS=t({Clear:()=>BS,Entries:()=>VS,Get:()=>WS,Has:()=>US,IsDate:()=>Ax,IsDateTime:()=>Nx,IsDuration:()=>Fx,IsEmail:()=>Lx,IsHostname:()=>oS,IsIPv4:()=>dS,IsIPv6:()=>pS,IsIdnEmail:()=>cS,IsIdnHostname:()=>lS,IsIri:()=>gS,IsIriReference:()=>hS,IsJsonPointer:()=>bS,IsJsonPointerUriFragment:()=>vS,IsRegex:()=>xS,IsRelativeJsonPointer:()=>CS,IsTime:()=>Mx,IsUri:()=>FS,IsUriReference:()=>TS,IsUriTemplate:()=>DS,IsUrl:()=>LS,IsUuid:()=>zS,Reset:()=>KS,Set:()=>HS,Test:()=>GS});function JS(e,t,n,r){return w(T(`Format`,`Test`),[E(n.format),r])}function YS(e,t,n,r){return GS(n.format,r)}function XS(e,t,n,r,i,a){return YS(e,t,i,a)||t.AddError({keyword:`format`,schemaPath:n,instancePath:r,params:{format:i.format}})}function ZS(e,t,n,r){let i=ab(n)?n.then:!0,a=Dy(n)?n.else:!0;return ut(nT(e,t,n.if,r),nT(e,t,i,r),nT(e,t,a,r))}function QS(e,t,n,r){let i=ab(n)?n.then:!0,a=Dy(n)?n.else:!0;return Q(e,t,n.if,r)?Q(e,t,i,r):Q(e,t,a,r)}function $S(e,t,n,r,i,a){let o=ab(i)?i.then:!0,s=Dy(i)?i.else:!0,c=new _b,l=aT(e,c,`${n}/if`,r,i.if,a)?aT(e,c,`${n}/then`,r,o,a)||t.AddError({keyword:`if`,schemaPath:n,instancePath:r,params:{failingKeyword:`then`}}):aT(e,t,`${n}/else`,r,s,a)||t.AddError({keyword:`if`,schemaPath:n,instancePath:r,params:{failingKeyword:`else`}});return l&&t.Merge([c]),l}function eC(e,t,n,r){return ht(n.items.map((n,i)=>{let a=Qe(T(r,`length`),E(i)),o=tT(e,t,n,`${r}[${i}]`),s=t.AddIndex(E(i));return C(a,t.UseUnevaluated()?Pe(o,s):o)}))}function tC(e,t,n,r){return Ce(n.items,0,(n,i)=>he(r.length,i)||rT(e,t,n,r[i])&&t.AddIndex(i))}function nC(e,t,n,r,i,a){return we(i.items,0,(i,o)=>{let s=`${n}/items/${o}`,c=`${r}/${o}`;return he(a.length,o)||iT(e,t,s,c,i,a[o])&&t.AddIndex(o)})}function rC(e,t,n,r){let i=Zy(n)?n.prefixItems.length:0,a=tT(e,t,n.items,`element`),o=t.AddIndex(`index`),s=t.UseUnevaluated()?Pe(a,o):a;return nt(r,E(i),[`element`,`index`],s)}function iC(e,t,n,r){return Ce(r,Zy(n)?n.prefixItems.length:0,(r,i)=>rT(e,t,n.items,r)&&t.AddIndex(i))}function aC(e,t,n,r,i,a){return we(a,Zy(i)?i.prefixItems.length:0,(a,o)=>iT(e,t,`${n}/items`,`${r}/${o}`,i.items,a)&&t.AddIndex(o))}function oC(e,t,n,r){return Fy(n)?eC(e,t,n,r):rC(e,t,n,r)}function sC(e,t,n,r){return Fy(n)?tC(e,t,n,r):iC(e,t,n,r)}function cC(e,t,n,r,i,a){return Fy(i)?nC(e,t,n,r,i,a):aC(e,t,n,r,i,a)}function lC(e){return by(e)}function uC(e,t,n,r){if(!lC(n))return E(!0);let[i,a]=[Eb(),Eb()];return Qe(w(T(r,`reduce`),[ct([i,a],ut(nT(e,t,n.contains,a),_t(i),i)),E(0)]),E(n.maxContains))}function dC(e,t,n,r){return lC(n)?he(r.reduce((r,i)=>Q(e,t,n.contains,i)?++r:r,0),n.maxContains):!0}function fC(e,t,n,r,i,a){let o=Hy(i)?i.minContains:1;return dC(e,t,i,a)||t.AddError({keyword:`contains`,schemaPath:n,instancePath:r,params:{minContains:o,maxContains:i.maxContains}})}function pC(e,t,n,r){return Qe(r,E(n.maximum))}function mC(e,t,n,r){return he(r,n.maximum)}function hC(e,t,n,r,i,a){return mC(e,t,i,a)||t.AddError({keyword:`maximum`,schemaPath:n,instancePath:r,params:{comparison:`<=`,limit:i.maximum}})}function gC(e,t,n,r){return Qe(T(r,`length`),E(n.maxItems))}function _C(e,t,n,r){return he(r.length,n.maxItems)}function vC(e,t,n,r,i,a){return _C(e,t,i,a)||t.AddError({keyword:`maxItems`,schemaPath:n,instancePath:r,params:{limit:i.maxItems}})}function yC(e,t,n,r){return tt(r,E(n.maxLength))}function bC(e,t,n,r){return xe(r,n.maxLength)}function xC(e,t,n,r,i,a){return bC(e,t,i,a)||t.AddError({keyword:`maxLength`,schemaPath:n,instancePath:r,params:{limit:i.maxLength}})}function SC(e,t,n,r){return Qe(T(it(r),`length`),E(n.maxProperties))}function CC(e,t,n,r){return he(S(r).length,n.maxProperties)}function wC(e,t,n,r,i,a){return CC(e,t,i,a)||t.AddError({keyword:`maxProperties`,schemaPath:n,instancePath:r,params:{limit:i.maxProperties}})}function TC(e){return by(e)}function EC(e,t,n,r){if(!TC(n))return E(!0);let[i,a]=[Eb(),Eb()];return $e(w(T(r,`reduce`),[ct([i,a],ut(nT(e,t,n.contains,a),_t(i),i)),E(0)]),E(n.minContains))}function DC(e,t,n,r){return TC(n)?ge(r.reduce((r,i)=>Q(e,t,n.contains,i)?++r:r,0),n.minContains):!0}function OC(e,t,n,r,i,a){return DC(e,t,i,a)||t.AddError({keyword:`contains`,schemaPath:n,instancePath:r,params:{minContains:i.minContains}})}function kC(e,t,n,r){return $e(r,E(n.minimum))}function AC(e,t,n,r){return ge(r,n.minimum)}function jC(e,t,n,r,i,a){return AC(e,t,i,a)||t.AddError({keyword:`minimum`,schemaPath:n,instancePath:r,params:{comparison:`>=`,limit:i.minimum}})}function MC(e,t,n,r){return $e(T(r,`length`),E(n.minItems))}function NC(e,t,n,r){return ge(r.length,n.minItems)}function PC(e,t,n,r,i,a){return NC(e,t,i,a)||t.AddError({keyword:`minItems`,schemaPath:n,instancePath:r,params:{limit:i.minItems}})}function FC(e,t,n,r){return et(r,E(n.minLength))}function IC(e,t,n,r){return Se(r,n.minLength)}function LC(e,t,n,r,i,a){return IC(e,t,i,a)||t.AddError({keyword:`minLength`,schemaPath:n,instancePath:r,params:{limit:i.minLength}})}function RC(e,t,n,r){return $e(T(it(r),`length`),E(n.minProperties))}function zC(e,t,n,r){return ge(S(r).length,n.minProperties)}function BC(e,t,n,r,i,a){return zC(e,t,i,a)||t.AddError({keyword:`minProperties`,schemaPath:n,instancePath:r,params:{limit:i.minProperties}})}function VC(e,t,n,r){return vt(r,E(n.multipleOf))}function HC(e,t,n,r){return _e(r,n.multipleOf)}function UC(e,t,n,r,i,a){return HC(e,t,i,a)||t.AddError({keyword:`multipleOf`,schemaPath:n,instancePath:r,params:{multipleOf:i.multipleOf}})}function WC(e,t,n,r){return zb(e,t,[n.not],r,Fe(Ye(T(`results`,`length`),E(1))))}function GC(e,t,n,r){return Fe(nT(e,t,n.not,r))}function KC(e,t,n,r){return t.UseUnevaluated()?WC(e,t,n,r):GC(e,t,n,r)}function qC(e,t,n,r){let i=new hb;return!Q(e,i,n.not,r)&&t.Merge([i])}function JC(e,t,n,r,i,a){return qC(e,t,i,a)||t.AddError({keyword:`not`,schemaPath:n,instancePath:r,params:{}})}function YC(e,t,n,r){return zb(e,t,n.oneOf,r,Ye(T(`results`,`length`),E(1)))}function XC(e,t,n,r){return Ye(w(T(st(n.oneOf.map(n=>nT(e,t,n,r))),`reduce`),[ct([`count`,`result`],ut(Ye(`result`,E(!0)),_t(`count`),`count`)),E(0)]),E(1))}function ZC(e,t,n,r){return t.UseUnevaluated()?YC(e,t,n,r):XC(e,t,n,r)}function QC(e,t,n,r){let i=n.oneOf.reduce((t,n)=>{let i=new hb;return Q(e,i,n,r)?[...t,i]:t},[]);return v(i.length,1)&&t.Merge(i)}function $C(e,t,n,r,i,a){let o=[],s=[],c=i.oneOf.reduce((t,i,c)=>{let l=new _b,u=aT(e,l,`${n}/oneOf/${c}`,r,i,a);return u&&s.push(c),u||o.push(l),u?[...t,l]:t},[]),l=v(c.length,1)&&t.Merge(c);return!l&&v(s.length,0)&&o.forEach(e=>e.GetErrors().forEach(e=>t.AddError(e))),l||t.AddError({keyword:`oneOf`,schemaPath:n,instancePath:r,params:{passingSchemas:s}})}function ew(e,t,n,r){return w(T(yb(g(n.pattern)?new RegExp(n.pattern,`u`):n.pattern),`test`),[r])}function tw(e,t,n,r){return(g(n.pattern)?new RegExp(n.pattern,`u`):n.pattern).test(r)}function nw(e,t,n,r,i,a){return tw(e,t,i,a)||t.AddError({keyword:`pattern`,schemaPath:n,instancePath:r,params:{pattern:i.pattern}})}function rw(e,t,n,r){return ht(x(n.patternProperties).map(([n,i])=>{let[a,o]=[Eb(),Eb()],s=Fe(w(T(yb(new RegExp(n,`u`)),`test`),[a])),c=tT(e,t,i,o),l=t.AddKey(a),u=t.UseUnevaluated()?C(s,Pe(c,l)):C(s,c);return nt(rt(r),E(0),[`[${a}, ${o}]`,`_`],u)}))}function iw(e,t,n,r){return Ce(x(n.patternProperties),0,([n,i])=>{let a=new RegExp(n,`u`);return Ce(x(r),0,([n,r])=>!a.test(n)||rT(e,t,i,r)&&t.AddKey(n))})}function aw(e,t,n,r,i,a){return we(x(i.patternProperties),0,([i,o])=>{let s=`${n}/patternProperties/${i}`,c=new RegExp(i,`u`);return we(x(a),0,([n,i])=>{let a=`${r}/${n}`;return!c.test(n)||iT(e,t,s,a,o,i)&&t.AddKey(n)})})}function ow(e,t,n,r){return ht(n.prefixItems.map((n,i)=>{let a=Qe(T(r,`length`),E(i)),o=tT(e,t,n,`${r}[${i}]`),s=t.AddIndex(E(i));return C(a,t.UseUnevaluated()?Pe(o,s):o)}))}function sw(e,t,n,r){return v(r.length,0)||Ce(n.prefixItems,0,(n,i)=>he(r.length,i)||rT(e,t,n,r[i])&&t.AddIndex(i))}function cw(e,t,n,r,i,a){return v(a.length,0)||we(i.prefixItems,0,(i,o)=>{let s=`${n}/prefixItems/${o}`,c=`${r}/${o}`;return he(a.length,o)||iT(e,t,s,c,i,a[o])&&t.AddIndex(o)})}function lw(e,t){return e.includes(t)||Vt().exactOptionalPropertyTypes}function uw(e,t){return Ke(T(e,t))}function dw(e,t){return _(e[t])}function fw(e,t,n,r){let i=ib(n)?n.required:[];return ht(x(n.properties).map(([n,a])=>{let o=Fe(at(r,E(n))),s=tT(e,t,a,T(r,n)),c=t.AddKey(E(n)),l=t.UseUnevaluated()?Pe(s,c):s,u=i.includes(n)?l:C(o,l);return lw(i,n)?u:C(uw(r,n),u)}))}function pw(e,t,n,r){let i=ib(n)?n.required:[];return Ce(x(n.properties),0,([n,a])=>{let o=!b(r,n)||rT(e,t,a,r[n])&&t.AddKey(n);return lw(i,n)?o:dw(r,n)||o})}function mw(e,t,n,r,i,a){let o=ib(i)?i.required:[];return we(x(i.properties),0,([i,s])=>{let c=`${n}/properties/${i}`,l=`${r}/${i}`,u=()=>!b(a,i)||iT(e,t,c,l,s,a[i])&&t.AddKey(i);return lw(o,i)?u():dw(a,i)||u()})}function hw(e,t,n,r){let[i,a]=[Eb(),Eb()];return nt(it(r),E(0),[i,a],nT(e,t,n.propertyNames,i))}function gw(e,t,n,r){return Ce(S(r),0,(r,i)=>Q(e,t,n.propertyNames,r))}function _w(e,t,n,r,i,a){let o=[];return we(S(a),0,(t,a)=>{let s=`${r}/${t}`,c=`${n}/propertyNames`,l=aT(e,new _b,c,s,i.propertyNames,t);return l||o.push(t),l})||t.AddError({keyword:`propertyNames`,schemaPath:n,instancePath:r,params:{propertyNames:o}})}function vw(e,t,n,r){return dT(e,t,e.RecursiveRef(n)??!1,r)}function yw(e,t,n,r){let i=e.RecursiveRef(n)??!1;return X(i)&&Q(e,t,i,r)}function bw(e,t,n,r,i,a){let o=e.RecursiveRef(i)??!1;return X(o)&&aT(e,t,`#`,r,o,a)}function xw(e,t,n,r){let i=ct([`context`,`value`],dT(e,t,n,`value`));return w(ct([`context`,`value`],dt([ft(`nextContext`,lt(`CheckContext`,[])),ft(`result`,w(i,[`nextContext`,`value`])),pt(`result`,t.Merge(`[nextContext]`)),mt(`result`)])),[`context`,r])}function Sw(e,t,n,r){return dT(e,t,n,r)}function Cw(e,t,n,r){let i=e.Ref(n)??!1;return t.UseUnevaluated()?xw(e,t,i,r):Sw(e,t,i,r)}function ww(e,t,n,r){let i=e.Ref(n)??!1,a=new hb,o=X(i)&&Q(e,a,i,r);return o&&t.Merge([a]),o}function Tw(e,t,n,r,i,a){let o=e.Ref(i)??!1,s=new _b,c=X(o)&&aT(e,s,`#`,r,o,a);return c&&t.Merge([s]),c||s.GetErrors().forEach(e=>t.AddError(e)),c}function Ew(e,t,n,r){return ht(n.required.map(e=>at(r,E(e))))}function Dw(e,t,n,r){return Ce(n.required,0,e=>b(r,e))}function Ow(e,t,n,r,i,a){let o=[];return we(i.required,0,e=>{let t=b(a,e);return t||o.push(e),t})||t.AddError({keyword:`required`,schemaPath:n,instancePath:r,params:{requiredProperties:o}})}function kw(e,t,n,r){return v(n,`object`)?He(r):v(n,`array`)?Ie(r):v(n,`boolean`)?Re(r):v(n,`integer`)?ze(r):v(n,`number`)?Ve(r):v(n,`null`)?Be(r):v(n,`string`)?We(r):v(n,`bigint`)?Le(r):v(n,`constructor`)?Je(r):v(n,`function`)?qe(r):v(n,`symbol`)?Ge(r):v(n,`undefined`)||v(n,`void`)?Ke(r):E(!0)}function Aw(e,t,n,r,i){return v(n,`object`)?de(i):v(n,`array`)?d(i):v(n,`boolean`)?p(i):v(n,`integer`)?le(i):v(n,`number`)?m(i):v(n,`null`)?ue(i):v(n,`string`)?g(i):v(n,`bigint`)?f(i):v(n,`constructor`)?se(i):v(n,`function`)?ce(i):v(n,`symbol`)?fe(i):v(n,`undefined`)||v(n,`void`)?_(i):!0}function jw(e,t,n,r){return gt(n.map(n=>kw(e,t,n,r)))}function Mw(e,t,n,r,i){return n.some(n=>Aw(e,t,n,r,i))}function Nw(e,t,n,r){return d(n.type)?jw(e,t,n.type,r):kw(e,t,n.type,r)}function Pw(e,t,n,r){return d(n.type)?Mw(e,t,n.type,n,r):Aw(e,t,n.type,n,r)}function Fw(e,t,n,r,i,a){return(d(i.type)?Mw(e,t,i.type,i,a):Aw(e,t,i.type,i,a))||t.AddError({keyword:`type`,schemaPath:n,instancePath:r,params:{type:i.type}})}function Iw(e,t,n,r){let[i,a]=[Eb(),Eb()],o=w(T(`context`,`GetIndices`),[]),s=w(T(`indices`,`has`),[i]),c=nT(e,t,n.unevaluatedItems,a),l=w(T(`context`,`AddIndex`),[i]),u=nt(r,E(0),[a,i],Pe(C(s,c),l));return w(ct([`context`],dt([ft(`indices`,o),mt(u)])),[`context`])}function Lw(e,t,n,r){let i=t.GetIndices();return Ce(r,0,(r,a)=>(i.has(a)||Q(e,t,n.unevaluatedItems,r))&&t.AddIndex(a))}function Rw(e,t,n,r,i,a){let o=t.GetIndices(),s=[];return we(a,0,(a,c)=>{let l=new _b,u=(o.has(c)||aT(e,l,n,r,i.unevaluatedItems,a))&&t.AddIndex(c);return u||s.push(c),u})||t.AddError({keyword:`unevaluatedItems`,schemaPath:n,instancePath:r,params:{unevaluatedItems:s}})}function zw(e,t,n,r){let[i,a]=[Eb(),Eb()],o=w(T(`context`,`GetKeys`),[]),s=w(T(`keys`,`has`),[i]),c=w(T(`context`,`AddKey`),[i]),l=nT(e,t,n.unevaluatedProperties,a),u=nt(rt(r),E(0),[`[${i}, ${a}]`,`_`],C(s,Pe(l,c)));return w(ct([`context`],dt([ft(`keys`,o),mt(u)])),[`context`])}function Bw(e,t,n,r){let i=t.GetKeys();return Ce(x(r),0,([r,a])=>i.has(r)||Q(e,t,n.unevaluatedProperties,a)&&t.AddKey(r))}function Vw(e,t,n,r,i,a){let o=t.GetKeys(),s=[];return we(x(a),0,([a,c])=>{let l=new _b,u=o.has(a)||aT(e,l,n,r,i.unevaluatedProperties,c)&&t.AddKey(a);return u||s.push(a),u})||t.AddError({keyword:`unevaluatedProperties`,schemaPath:n,instancePath:r,params:{unevaluatedProperties:s}})}function Hw(e){return!v(e.uniqueItems,!1)}function Uw(e,t,n,r){return Hw(n)?Ye(T(lt(`Set`,[w(T(r,`map`),[T(`Hashing`,`Hash`)])]),`size`),T(r,`length`)):E(!0)}function Ww(e,t,n,r){if(!Hw(n))return!0;let i=new Set(r.map(Cr)).size,a=r.length;return v(i,a)}function Gw(e,t,n,r,i,a){if(!Hw(i))return!0;let o=new Set,s=a.reduce((e,t,n)=>{let r=Cr(t);return o.has(r)?[...e,n]:(o.add(r),e)},[]);return v(s.length,0)||t.AddError({keyword:`uniqueItems`,schemaPath:n,instancePath:r,params:{duplicateItems:s}})}function Kw(e,t){return ob(e)&&(d(e.type)&&e.type.includes(t)||v(e.type,t))}function qw(e){return Kw(e,`object`)}function Jw(e){return fy(e)&&(hy(e)||Sy(e)||Cy(e)||wy(e)||Qy(e)||Xy(e)||$y(e)||Gy(e)||By(e)||ib(e)||lb(e))}function Yw(e){return Kw(e,`array`)}function Xw(e){return fy(e)&&(my(e)||Py(e)||by(e)||Ly(e)||Ry(e)||Hy(e)||Uy(e)||Zy(e)||cb(e)||sb(e))}function Zw(e){return Kw(e,`string`)}function Qw(e){return fy(e)&&(Wy(e)||zy(e)||jy(e)||Yy(e))}function $w(e){return Kw(e,`number`)||Kw(e,`bigint`)}function eT(e){return fy(e)&&(Vy(e)||Iy(e)||ky(e)||Ay(e)||Ky(e))}function tT(e,t,n,r){return t.UseUnevaluated()?Pe(Pe(t.Push(),nT(e,t,n,r)),t.Pop()):nT(e,t,n,r)}function nT(e,t,n,r){e.Push(n);let i=[];if(py(n))return Xb(e,t,n,r);if(ob(n)&&i.push(Nw(e,t,n,r)),Jw(n)){let a=[];ib(n)&&a.push(Ew(e,t,n,r)),hy(n)&&a.push(Ib(e,t,n,r)),Sy(n)&&a.push(ox(e,t,n,r)),Cy(n)&&a.push(lx(e,t,n,r)),wy(n)&&a.push(fx(e,t,n,r)),Xy(n)&&a.push(rw(e,t,n,r)),Qy(n)&&a.push(fw(e,t,n,r)),$y(n)&&a.push(hw(e,t,n,r)),Gy(n)&&a.push(RC(e,t,n,r)),By(n)&&a.push(SC(e,t,n,r));let o=ht(a),s=C(Fe(He(r)),o);i.push(qw(n)?o:s)}if(Xw(n)){let a=[];my(n)&&a.push(Ob(e,t,n,r)),by(n)&&a.push(rx(e,t,n,r)),Py(n)&&a.push(oC(e,t,n,r)),Ly(n)&&a.push(uC(e,t,n,r)),Ry(n)&&a.push(gC(e,t,n,r)),Hy(n)&&a.push(EC(e,t,n,r)),Uy(n)&&a.push(MC(e,t,n,r)),Zy(n)&&a.push(ow(e,t,n,r)),sb(n)&&a.push(Uw(e,t,n,r));let o=ht(a),s=C(Fe(Ie(r)),o);i.push(Yw(n)?o:s)}if(Qw(n)){let a=[];zy(n)&&a.push(yC(e,t,n,r)),Wy(n)&&a.push(FC(e,t,n,r)),jy(n)&&a.push(JS(e,t,n,r)),Yy(n)&&a.push(ew(e,t,n,r));let o=ht(a),s=C(Fe(We(r)),o);i.push(Zw(n)?o:s)}if(eT(n)){let a=[];ky(n)&&a.push(xx(e,t,n,r)),Ay(n)&&a.push(wx(e,t,n,r)),Iy(n)&&a.push(pC(e,t,n,r)),Vy(n)&&a.push(kC(e,t,n,r)),Ky(n)&&a.push(VC(e,t,n,r));let o=ht(a),s=C(Fe(C(Ve(r),Le(r))),o);i.push($w(n)?o:s)}rb(n)&&i.push(Cw(e,t,n,r)),nb(n)&&i.push(vw(e,t,n,r)),Ey(n)&&i.push(hx(e,t,n,r)),yy(n)&&i.push($b(e,t,n,r)),Oy(n)&&i.push(vx(e,t,n,r)),Ny(n)&&i.push(ZS(e,t,n,r)),qy(n)&&i.push(KC(e,t,n,r)),gy(n)&&i.push(Hb(e,t,n,r)),vy(n)&&i.push(qb(e,t,n,r)),Jy(n)&&i.push(ZC(e,t,n,r)),cb(n)&&i.push(C(Fe(Ie(r)),Iw(e,t,n,r))),lb(n)&&i.push(C(Fe(Ue(r)),zw(e,t,n,r))),dy(n)&&i.push(Sb(e,t,n,r));let a=ht(i);return e.Pop(n),a}function rT(e,t,n,r){return t.Push()&&Q(e,t,n,r)&&t.Pop()}function Q(e,t,n,r){e.Push(n);let i=py(n)?Zb(e,t,n,r):(!ob(n)||Pw(e,t,n,r))&&(!(h(r)&&!d(r))||(!ib(n)||Dw(e,t,n,r))&&(!hy(n)||Lb(e,t,n,r))&&(!Sy(n)||sx(e,t,n,r))&&(!Cy(n)||ux(e,t,n,r))&&(!wy(n)||px(e,t,n,r))&&(!Xy(n)||iw(e,t,n,r))&&(!Qy(n)||pw(e,t,n,r))&&(!$y(n)||gw(e,t,n,r))&&(!Gy(n)||zC(e,t,n,r))&&(!By(n)||CC(e,t,n,r)))&&(!d(r)||(!my(n)||kb(e,t,n,r))&&(!by(n)||ix(e,t,n,r))&&(!Py(n)||sC(e,t,n,r))&&(!Ly(n)||dC(e,t,n,r))&&(!Ry(n)||_C(e,t,n,r))&&(!Hy(n)||DC(e,t,n,r))&&(!Uy(n)||NC(e,t,n,r))&&(!Zy(n)||sw(e,t,n,r))&&(!sb(n)||Ww(e,t,n,r)))&&(!g(r)||(!zy(n)||bC(e,t,n,r))&&(!Wy(n)||IC(e,t,n,r))&&(!jy(n)||YS(e,t,n,r))&&(!Yy(n)||tw(e,t,n,r)))&&(!(m(r)||f(r))||(!ky(n)||Sx(e,t,n,r))&&(!Ay(n)||Tx(e,t,n,r))&&(!Iy(n)||mC(e,t,n,r))&&(!Vy(n)||AC(e,t,n,r))&&(!Ky(n)||HC(e,t,n,r)))&&(!rb(n)||ww(e,t,n,r))&&(!nb(n)||yw(e,t,n,r))&&(!Ey(n)||gx(e,t,n,r))&&(!yy(n)||ex(e,t,n,r))&&(!Oy(n)||yx(e,t,n,r))&&(!Ny(n)||QS(e,t,n,r))&&(!qy(n)||qC(e,t,n,r))&&(!gy(n)||Ub(e,t,n,r))&&(!vy(n)||Jb(e,t,n,r))&&(!Jy(n)||QC(e,t,n,r))&&(!cb(n)||!d(r)||Lw(e,t,n,r))&&(!lb(n)||!h(r)||Bw(e,t,n,r))&&(!dy(n)||Cb(e,t,n,r));return e.Pop(n),i}function iT(e,t,n,r,i,a){return t.Push()&&aT(e,t,n,r,i,a)&&t.Pop()}function aT(e,t,n,r,i,a){e.Push(i);let o=py(i)?Qb(e,t,n,r,i,a):!!((!ob(i)||Fw(e,t,n,r,i,a))&+(!(h(a)&&!d(a))||!!((!ib(i)||Ow(e,t,n,r,i,a))&+(!hy(i)||Rb(e,t,n,r,i,a))&(!Sy(i)||cx(e,t,n,r,i,a))&(!Cy(i)||dx(e,t,n,r,i,a))&(!wy(i)||mx(e,t,n,r,i,a))&(!Xy(i)||aw(e,t,n,r,i,a))&(!Qy(i)||mw(e,t,n,r,i,a))&(!$y(i)||_w(e,t,n,r,i,a))&(!Gy(i)||BC(e,t,n,r,i,a))&(!By(i)||wC(e,t,n,r,i,a))))&(!d(a)||!!((!my(i)||Ab(e,t,n,r,i,a))&+(!by(i)||ax(e,t,n,r,i,a))&(!Py(i)||cC(e,t,n,r,i,a))&(!Ly(i)||fC(e,t,n,r,i,a))&(!Ry(i)||vC(e,t,n,r,i,a))&(!Hy(i)||OC(e,t,n,r,i,a))&(!Uy(i)||PC(e,t,n,r,i,a))&(!Zy(i)||cw(e,t,n,r,i,a))&(!sb(i)||Gw(e,t,n,r,i,a))))&(!g(a)||!!((!zy(i)||xC(e,t,n,r,i,a))&+(!Wy(i)||LC(e,t,n,r,i,a))&(!jy(i)||XS(e,t,n,r,i,a))&(!Yy(i)||nw(e,t,n,r,i,a))))&(!(m(a)||f(a))||!!((!ky(i)||Cx(e,t,n,r,i,a))&+(!Ay(i)||Ex(e,t,n,r,i,a))&(!Iy(i)||hC(e,t,n,r,i,a))&(!Vy(i)||jC(e,t,n,r,i,a))&(!Ky(i)||UC(e,t,n,r,i,a))))&(!rb(i)||Tw(e,t,n,r,i,a))&(!nb(i)||bw(e,t,n,r,i,a))&(!Ey(i)||_x(e,t,n,r,i,a))&(!yy(i)||tx(e,t,n,r,i,a))&(!Oy(i)||bx(e,t,n,r,i,a))&(!Ny(i)||$S(e,t,n,r,i,a))&(!qy(i)||JC(e,t,n,r,i,a))&(!gy(i)||Wb(e,t,n,r,i,a))&(!vy(i)||Yb(e,t,n,r,i,a))&(!Jy(i)||$C(e,t,n,r,i,a))&(!cb(i)||!d(a)||Rw(e,t,n,r,i,a))&(!lb(i)||!h(a)||Vw(e,t,n,r,i,a)))&&(!dy(i)||wb(e,t,n,r,i,a));return e.Pop(i),o}const oT=new Map;function sT(e,t,n,r){return e.UseUnevaluated()?w(`check_${n}`,[`context`,r]):w(`check_${n}`,[r])}function cT(e,t,n,r){let i=nT(e,t,n,`value`);return t.UseUnevaluated()?ft(`check_${r}`,ct([`context`,`value`],i)):ft(`check_${r}`,ct([`value`],i))}function lT(){oT.clear()}function uT(){return[...oT.values()]}function dT(e,t,n,r){let i=fy(n)?Cr({__baseURL:e.BaseURL().href,...n}):Cr(n),a=sT(t,n,i,r);return oT.has(i)?a:(oT.set(i,``),oT.set(i,cT(e,t,n,i)),a)}function fT(e,t){return h(t)&&!Te(e)?t[e]:void 0}function pT(e,t){return e.reduce((e,t)=>fT(t,e),t)}function mT(e){if(v(e.length,0))return[];let t=e.split(`/`).map(e=>e.replace(/~1/g,`/`).replace(/~0/g,`~`));return t.length>0&&t[0]===``?t.slice(1):t}function hT(e,t){return pT(mT(t),e)}function gT(e,t,n){if(e.$id===n.hash)return e;let r=new URL(e.$id,t.href),i=new URL(n.href,t.href);if(v(r.pathname,i.pathname))return n.hash.startsWith(`#`)?yT(e,t,n):e}function _T(e,t,n){let r=new URL(`#${e.$anchor}`,t.href),i=new URL(n.href,t.href);return v(r.href,i.href)?e:void 0}function vT(e,t,n){let r=new URL(`#${e.$dynamicAnchor}`,t.href),i=new URL(n.href,t.href);return v(r.href,i.href)?e:void 0}function yT(e,t,n){if(n.href.endsWith(`#`))return e;if(!n.hash.startsWith(`#`))return;let r=decodeURIComponent(n.hash.slice(1));if(r.startsWith(`/`))return hT(e,r)}function bT(e,t,n){if(My(e)){let r=gT(e,t,n);if(!_(r))return r}if(_y(e)){let r=_T(e,t,n);if(!_(r))return r}if(Ty(e)){let r=vT(e,t,n);if(!_(r))return r}return yT(e,t,n)}function xT(e,t,n){return e.reduce((e,r)=>{let i=CT(r,t,n);return _(i)?e:i},void 0)}function ST(e,t,n){return S(e).reduce((r,i)=>{let a=CT(e[i],t,n);return _(a)?r:a},void 0)}function CT(e,t,n){let r=fy(e)&&My(e)?new URL(e.$id,t.href):t;if(fy(e)){let t=bT(e,r,n);if(!_(t))return t}if(d(e))return xT(e,r,n);if(h(e))return ST(e,r,n)}function wT(e,t){let n=new URL(`http://unknown/`),r=My(e)?new URL(e.$id,n.href):n;return CT(e,r,new URL(t,r.href))}function TT(e,t,n,r){let i=n.$dynamicRef.startsWith(`#`)?wT(t,n.$dynamicRef):wT(e,n.$dynamicRef);if(!_(i))return!fy(i)||!Ty(i)||new URL(n.$dynamicRef,`http://unknown/`).hash.startsWith(`#/`)?i:r.find(e=>e.$dynamicAnchor===i.$dynamicAnchor)??i}var ET=function(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)},DT,OT,kT,AT,jT,MT=class{constructor(e,t){DT.add(this),this.context=e,this.schema=t,this.ids=[],this.anchors=[],this.recursiveAnchors=[],this.dynamicAnchors=[]}BaseURL(){return this.ids.reduce((e,t)=>new URL(t.$id,e),new URL(`http://unknown`))}Base(){return this.ids[this.ids.length-1]??this.schema}Push(e){fy(e)&&(My(e)&&(this.ids.push(e),ET(this,DT,`m`,OT).call(this,e)),_y(e)&&this.anchors.push(e),tb(e)&&this.recursiveAnchors.push(e),Ty(e)&&this.dynamicAnchors.push(e))}Pop(e){fy(e)&&(My(e)&&(this.ids.pop(),ET(this,DT,`m`,kT).call(this,e)),_y(e)&&this.anchors.pop(),tb(e)&&this.recursiveAnchors.pop(),Ty(e)&&this.dynamicAnchors.pop())}Ref(e){return ET(this,DT,`m`,AT).call(this,e)??ET(this,DT,`m`,jT).call(this,e)}RecursiveRef(e){return tb(this.Base())?wT(this.recursiveAnchors[0],e.$recursiveRef):wT(this.Base(),e.$recursiveRef)}DynamicRef(e){let t=this.schema;return TT(t,this.Base(),e,this.dynamicAnchors)}};DT=new WeakSet,OT=function e(t,n=!0){if(!fy(t))return;let r=t;if(!(!n&&My(r))){!n&&Ty(r)&&this.dynamicAnchors.push(r);for(let t of S(r))ET(this,DT,`m`,e).call(this,r[t],!1)}},kT=function e(t,n=!0){if(!fy(t))return;let r=t;if(!(!n&&My(r))){!n&&Ty(r)&&this.dynamicAnchors.pop();for(let t of S(r))ET(this,DT,`m`,e).call(this,r[t],!1)}},AT=function(e){return b(this.context,e.$ref)?this.context[e.$ref]:void 0},jT=function(e){let t=this.schema;return e.$ref.startsWith(`#`)?wT(this.Base(),e.$ref):wT(t,e.$ref)};function NT(e){return`${e.Functions().join(`; +`)}; return (value) => { ${(e.UseUnevaluated()?[`const context = new CheckContext({}, {})`,`return ${e.Entry()}`]:[`return ${e.Entry()}`]).join(`; `)} }`}function PT(e,t){return Kn(`CheckContext`,`Guard`,`Format`,`Hashing`,e.External().identifier,t)(hb,oe,qS,Jn,e.External().variables)}function FT(e){let t=new MT(e.Context(),e.Schema()),n=new hb;return r=>Q(t,n,e.Schema(),r)}function IT(e,t){return Gn()?PT(e,t):FT(e)}var LT=class{constructor(e,t,n){this.isAccelerated=e,this.code=t,this.check=n}IsAccelerated(){return this.isAccelerated}Code(){return this.code}Check(e){return this.check(e)}},RT=class{constructor(e,t,n,r,i,a){this.context=e,this.schema=t,this.external=n,this.functions=r,this.entry=i,this.useUnevaluated=a}Context(){return this.context}Schema(){return this.schema}UseUnevaluated(){return this.useUnevaluated}External(){return this.external}Functions(){return this.functions}Entry(){return this.entry}Evaluate(){let e=NT(this),t=IT(this,e);return new LT(Gn(),e,t)}};function zT(...e){let[t,n]=jn(e,{2:(e,t)=>[e,t],1:e=>[{},e]});bb(),lT();let r=new MT(t,n),i=new mb(pb(t,n)),a=dT(r,i,n,`value`),o=uT();return new RT(t,n,xb(),o,a,i.UseUnevaluated())}function BT(...e){let[t,n,r]=jn(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]}),i=Vt(),a=Er(),o=[];return[aT(new MT(t,n),new gb(e=>{if(!ge(o.length,i.maxErrors))return o.push({...e,message:a(e)})}),`#`,``,n,r),o]}function VT(...e){let[t,n,r]=jn(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]});return Q(new MT(t,n),new hb,n,r)}function HT(...e){let[t,n,r]=jn(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]});return VT(t,n,r)}function UT(...e){let[t,n,r]=jn(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]}),[i,a]=BT(t,n,r);return a}var WT=class extends Error{constructor(e,t,n){super(e),Object.defineProperty(this,"cause",{value:{source:e,errors:n,value:t},writable:!1,configurable:!1,enumerable:!1})}};function GT(e,t,n){return d(n)?n.map(n=>nE(e,t.items,n)):n}function KT(e,t,n){return nE({...e,...t.$defs},ln(t.$ref),n)}function qT(e,t){let n=b(t,`unevaluatedProperties`)?{additionalProperties:t.unevaluatedProperties}:{},r=ry(Xv(e,t));return M(r)?Rv(r,n):r}function JT(e,t,n){return nE(e,qT(e,t),n)}function YT(e){return b(e,`additionalProperties`)?e.additionalProperties:void 0}function XT(e,t,n){if(!h(n)||d(n))return n;let r=YT(t);for(let i of S(n)){if(b(t.properties,i)){n[i]=nE(e,t.properties[i],n[i]);continue}if(p(r)&&v(r,!0)||Gt(r)&&HT(e,r,n[i])){n[i]=nE(e,r,n[i]);continue}delete n[i]}return n}function ZT(e,t,n){if(!h(n))return n;let r=YT(t),[i,a]=[new RegExp(Ga(t)),qa(t)];for(let t of S(n)){if(i.test(t)){n[t]=nE(e,a,n[t]);continue}if(p(r)&&v(r,!0)||Gt(r)&&HT(e,r,n[t])){n[t]=nE(e,r,n[t]);continue}delete n[t]}return n}function QT(e,t,n){return b(e,t.$ref)?nE(e,e[t.$ref],n):n}function $T(e,t,n){if(!d(n))return n;let r=Math.min(n.length,t.items.length);for(let i=0;isE(e))}function sE(e){return rE(e,en(e)?$t(sE(e.items),tn(e)):N(e)?Vn(oE(e.allOf)):L(e)?I(aE(e.anyOf)):M(e)?j(iE(e.properties)):Ja(e)?Ha(Ka(e),sE(qa(e))):R(e)?Li(oE(e.items)):e)}function cE(e){return sE(e)}function lE(...e){let[t,n,r]=jn(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]});return nE(t,Vt().unionPrioritySort?cE(n):n,r)}function uE(e){return h(e)&&b(e,`value`)}function $(e){return{value:e}}function dE(e){return d(e)?$(e):$([e])}function fE(e){return v(e,!0)?$(BigInt(1)):$(BigInt(0))}const pE=/^-?(0|[1-9]\d*)n$/,mE=/^-?(0|[1-9]\d*)\.\d+$/,hE=/^-?(0|[1-9]\d*)$/;function gE(e){return pE.test(e)}function _E(e){return mE.test(e)}function vE(e){return hE.test(e)}function yE(e){let t=e.toLowerCase();return gE(e)?$(BigInt(e.slice(0,e.length-1))):_E(e)?$(BigInt(e.split(`.`)[0])):vE(e)?$(BigInt(e)):v(t,`false`)?$(BigInt(0)):v(t,`true`)?$(BigInt(1)):void 0}function bE(e){return f(e)?$(e):p(e)?fE(e):m(e)?$(BigInt(Math.trunc(e))):ue(e)?$(BigInt(0)):g(e)?yE(e):_(e)?$(BigInt(0)):void 0}function xE(e){return v(e,BigInt(0))?$(!1):v(e,BigInt(1))?$(!0):void 0}function SE(e){return v(e,0)?$(!1):v(e,1)?$(!0):void 0}function CE(e){return v(e.toLowerCase(),`false`)?$(!1):v(e.toLowerCase(),`true`)?$(!0):v(e,`0`)?$(!1):v(e,`1`)?$(!0):void 0}function wE(e){return f(e)?xE(e):p(e)?$(e):m(e)?SE(e):ue(e)?$(!1):g(e)?CE(e):_(e)?$(!1):void 0}function TE(e){return v(e,BigInt(0))?$(null):void 0}function EE(e){return v(e,!1)?$(null):void 0}function DE(e){return v(e,0)?$(null):void 0}function OE(e){let t=e.toLowerCase();return v(t,`undefined`)||v(t,`null`)||v(e,``)||v(e,`0`)?$(null):void 0}function kE(e){return f(e)?TE(e):p(e)?EE(e):m(e)?DE(e):ue(e)?$(null):g(e)?OE(e):_(e)?$(null):void 0}const AE=BigInt(2**53-1),jE=BigInt(-(2**53-1));function ME(e){return e<=AE&&e>=jE?$(Number(e)):void 0}function NE(e){return $(+!!e)}function PE(e){let t=+e;if(m(t))return $(t);let n=e.toLowerCase();if(v(n,`false`))return $(0);if(v(n,`true`))return $(1);let r=bE(e);if(uE(r))return r.value<=AE&&r.value>=jE?$(Number(r.value)):void 0}function FE(e){return f(e)?ME(e):p(e)?NE(e):m(e)?$(e):ue(e)?$(0):g(e)?PE(e):_(e)?$(0):void 0}function IE(e){return f(e)||p(e)||m(e)?$(e.toString()):ue(e)?$(`null`):g(e)?$(e):_(e)?$(``):void 0}function LE(e){return v(e,BigInt(0))?$(void 0):void 0}function RE(e){return v(e,!1)?$(void 0):void 0}function zE(e){return v(e,0)?$(void 0):void 0}function BE(e){let t=e.toLowerCase();return v(t,`undefined`)||v(t,`null`)||v(e,``)||v(e,`0`)?$(void 0):void 0}function VE(e){return f(e)?LE(e):p(e)?RE(e):m(e)?zE(e):ue(e)?$(void 0):g(e)?BE(e):_(e)?$(e):void 0}function HE(e,t,n){return dE(n).value.map(n=>hD(e,t.items,n))}function UE(e,t,n){let r=bE(n);return uE(r)?r.value:n}function WE(e,t,n){let r=wE(n);return uE(r)?r.value:n}function GE(e,t,n){return hD({...e,...t.$defs},ln(t.$ref),n)}function KE(e,t,n){return hD(e,ry(t),n)}function qE(e,t,n){let r=FE(n);return uE(r)?Math.trunc(r.value):n}function JE(e,t,n){return hD(e,ry(Xv(e,t)),n)}function YE(e,t,n){let r=bE(n);return uE(r)&&v(t.const,r.value)?r.value:n}function XE(e,t,n){let r=wE(n);return uE(r)&&v(t.const,r.value)?r.value:n}function ZE(e,t,n){let r=FE(n);return uE(r)&&v(t.const,r.value)?r.value:n}function QE(e,t,n){let r=IE(n);return uE(r)&&v(t.const,r.value)?r.value:n}function $E(e,t,n){return v(t.const,n)?n:ti(t)?YE(e,t,n):ni(t)?XE(e,t,n):ri(t)?ZE(e,t,n):ii(t)?QE(e,t,n):qn()}function eD(e,t,n){let r=kE(n);return uE(r)?r.value:n}function tD(e,t,n){let r=FE(n);return uE(r)?r.value:n}function nD(e,t,n,r){let i=S(r);for(let[a,o]of t)for(let t of i)a.test(t)||(r[t]=hD(e,n,r[t]));return r}function rD(e,t,n){return bn(e)&&_(n[t])}function iD(e,t,n){let r=Ee(t.properties),i=S(n);for(let[t,a]of r)for(let r of i)!t.test(r)||rD(a,r,n)||(n[r]=hD(e,a,n[r]));return b(t,`additionalProperties`)&&h(t.additionalProperties)?nD(e,r,t.additionalProperties,n):n}function aD(e,t,n){return de(n)?iD(e,t,n):n}function oD(e,t,n){let r=Ee(t.patternProperties),i=S(n);for(let[t,a]of r)for(let r of i)t.test(r)&&(n[r]=hD(e,a,n[r]));return b(t,`additionalProperties`)&&h(t.additionalProperties)?nD(e,r,t.additionalProperties,n):n}function sD(e,t,n){return de(n)?oD(e,t,n):n}function cD(e,t,n){return b(e,t.$ref)?hD(e,e[t.$ref],n):n}function lD(e,t,n){let r=IE(n);return uE(r)?r.value:n}function uD(e,t,n){return hD(e,ry(t),n)}function dD(e,t,n){if(!d(n))return n;for(let r=0;rHT(e,t,n)))return n;let r=t.anyOf.map(t=>hD(e,t,eE(n))).find(n=>HT(e,t,n));return _(r)?n:r}function mD(e,t,n){return uE(VE(n))?void 0:n}function hD(e,t,n){return en(t)?HE(e,t,n):Wr(t)?UE(e,t,n):Kr(t)?WE(e,t,n):On(t)?GE(e,t,n):Bn(t)?KE(e,t,n):Zr(t)?qE(e,t,n):N(t)?JE(e,t,n):F(t)?$E(e,t,n):oi(t)?eD(e,t,n):li(t)?tD(e,t,n):M(t)?aD(e,t,n):Ja(t)?sD(e,t,n):un(t)?cD(e,t,n):hi(t)?lD(e,t,n):_f(t)?uD(e,t,n):R(t)?dD(e,t,n):eo(t)?fD(e,t,n):L(t)?pD(e,t,n):no(t)?mD(e,t,n):n}function gD(...e){let[t,n,r]=jn(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]});return hD(t,n,r)}function _D(e,t,n){if(!d(n))return n;for(let r=0;r[e,t,n],2:(e,t)=>[{},e,t]});return ED(t,n,r)}function OD(e){return(...t)=>{let[n,r,i]=jn(t,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]});return e.reduce((e,t)=>t(n,r,e),i)}}function kD(e,t,n){return t[`~codec`].decode(n)}function AD(e,t,n){return t[`~codec`].encode(n)}function jD(e,t,n,r){return Mr(n)?v(e,`Decode`)?kD(t,n,r):AD(t,n,r):r}function MD(e,t,n,r){if(!d(r))return r;for(let i=0;i({...e,...t}),{})}function LD(e,t){for(let n of t)if(!je(e,n))return n;return e}function RD(e,t,n,r){if(v(n.allOf.length,0))return jD(e,t,n,r);let i=n.allOf.map(n=>tO(e,t,n,lE(n,eE(r))));return jD(e,t,n,i.every(e=>h(e))?ID(i):LD(r,i))}function zD(e,t,n,r){if(v(n.allOf.length,0))return jD(e,t,n,r);let i=jD(e,t,n,r),a=n.allOf.map(n=>tO(e,t,n,lE(n,eE(i))));return a.every(e=>h(e))?ID(a):LD(i,a)}function BD(e,t,n,r){return v(e,`Decode`)?RD(e,t,n,r):zD(e,t,n,r)}function VD(e,t,n,r){if(!de(r))return r;for(let i of S(n.properties))!b(r,i)||rD(n.properties[i],i,r)||(r[i]=tO(e,t,n.properties[i],r[i]));return jD(e,t,n,r)}function HD(e,t,n,r){let i=jD(e,t,n,r);if(!de(i))return i;for(let r of S(n.properties))!b(i,r)||rD(n.properties[r],r,i)||(i[r]=tO(e,t,n.properties[r],i[r]));return i}function UD(e,t,n,r){return v(e,`Decode`)?VD(e,t,n,r):HD(e,t,n,r)}function WD(e,t,n,r){if(!de(r))return r;let i=new RegExp(Ga(n));for(let a of S(r))i.test(a)&&(r[a]=tO(e,t,qa(n),r[a]));return jD(e,t,n,r)}function GD(e,t,n,r){let i=jD(e,t,n,r);if(!de(i))return i;let a=new RegExp(Ga(n));for(let r of S(i))a.test(r)&&(i[r]=tO(e,t,qa(n),i[r]));return i}function KD(e,t,n,r){return v(e,`Decode`)?WD(e,t,n,r):GD(e,t,n,r)}function qD(e,t,n,r){return b(t,n.$ref)?tO(e,t,t[n.$ref],r):r}function JD(e,t,n,r){return v(e,`Decode`)?jD(e,t,n,qD(e,t,n,r)):qD(e,t,n,jD(e,t,n,r))}function YD(e,t,n,r){if(!d(r))return r;for(let i=0;ieE(n),(e,t,n)=>DD(e,t,n),(e,t,n)=>gD(e,t,n),(e,t,n)=>lE(e,t,n),(e,t,n)=>rO(e,t,n),(e,t,n)=>iO(e,t,n)]);function oO(...e){let[t,n,r]=jn(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]});return aO(t,n,r)}var sO=class extends WT{constructor(e,t){super(`Encode`,e,t)}};function cO(e,t,n){if(!HT(e,t,n))throw new sO(n,UT(e,t,n));return n}function lO(e,t,n){return tO(`Encode`,e,Vt().unionPrioritySort?cE(t):t,n)}const uO=OD([(e,t,n)=>eE(n),(e,t,n)=>lO(e,t,n),(e,t,n)=>DD(e,t,n),(e,t,n)=>gD(e,t,n),(e,t,n)=>lE(e,t,n),(e,t,n)=>cO(e,t,n)]);function dO(...e){let[t,n,r]=jn(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]});return uO(t,n,r)}function fO(e,t){return Mr(t)||bO(e,t.items)}function pO(e,t){return Mr(t)||_O({...e,...t.$defs},ln(t.$ref))}function mO(e,t){return Mr(t)||t.allOf.some(t=>bO(e,t))}function hO(e,t){return Mr(t)||S(t.properties).some(n=>bO(e,t.properties[n]))}function gO(e,t){return Mr(t)||bO(e,qa(t))}function _O(e,t){return xO.has(t.$ref)?!1:(xO.add(t.$ref),Mr(t)||b(e,t.$ref)&&bO(e,e[t.$ref]))}function vO(e,t){return Mr(t)||t.items.some(t=>bO(e,t))}function yO(e,t){return Mr(t)||t.anyOf.some(t=>bO(e,t))}function bO(e,t){return en(t)?fO(e,t):On(t)?pO(e,t):N(t)?mO(e,t):M(t)?hO(e,t):Ja(t)?gO(e,t):un(t)?_O(e,t):R(t)?vO(e,t):L(t)?yO(e,t):Mr(t)}const xO=new Set;function SO(...e){let[t,n]=jn(e,{2:(e,t)=>[e,t],1:e=>[{},e]});return xO.clear(),bO(t,n)}var CO=class extends Error{constructor(e,t){super(t),this.type=e}};function wO(e,t){return ce(t.default)?t.default(t):h(t.default)?eE(t.default):t.default}function TO(e,t){if(sb(t)&&!xy(t))throw new CO(t,`Arrays with uniqueItems constraints must specify a default annotation`);let n=Uy(t)?t.minItems:0;return Array.from({length:n},()=>KO(e,t.items))}function EO(e,t){return Ay(t)?BigInt(t.exclusiveMinimum)+BigInt(1):Vy(t)?BigInt(t.minimum):BigInt(0)}function DO(e,t){return!1}function OO(e,t){let n=KO(e,t.instanceType);return class{constructor(){Object.assign(this,n)}}}function kO(e,t){return KO({...e,...t.$defs},ln(t.$ref))}function AO(e,t){return KO(e,ry(t))}function jO(e,t){let n=KO(e,t.returnType);return()=>n}function MO(e,t){return Ay(t)&&m(t.exclusiveMinimum)?t.exclusiveMinimum+1:Vy(t)?t.minimum:0}function NO(e,t){return KO(e,ry(Xv(e,t)))}function PO(e,t){return t.const}function FO(e,t){throw new CO(t,`Cannot create TNever types`)}function IO(e,t){return null}function LO(e,t){return Ay(t)&&m(t.exclusiveMinimum)?t.exclusiveMinimum+1:Vy(t)?t.minimum:0}function RO(e,t){return(_(t.required)?[]:t.required).reduce((n,r)=>({...n,[r]:KO(e,t.properties[r])}),{})}function zO(e,t){if(Gy(t)&&!xy(t))throw new CO(t,`Record with the minProperties constraint must have a default annotation`);return{}}function BO(e,t){return b(e,t.$ref)?KO(e,e[t.$ref]):(()=>{throw new CO(t,`Unable to deref Ref`)})()}function VO(e,t){if((Yy(t)||jy(t))&&!xy(t))throw Error(`Strings with format or pattern constraints must specify default`);let n=Wy(t)?t.minLength:0;return``.padEnd(n)}function HO(e,t){return Symbol()}function UO(e,t){let n=Ni(t.pattern);if(hi(n))throw new CO(t,`Unable to create TemplateLiteral due to infinite type expansion`);return KO(e,n)}function WO(e,t){return Array.from({length:t.minItems},(n,r)=>KO(e,t.items[r]))}function GO(e,t){if(v(t.anyOf.length,0))throw Error(`Unable to create Union with no variants`);return KO(e,t.anyOf[0])}function KO(e,t){return xy(t)?wO(e,t):en(t)?TO(e,t):Wr(t)?EO(e,t):Kr(t)?DO(e,t):rn(t)?OO(e,t):On(t)?kO(e,t):Bn(t)?AO(e,t):sn(t)?jO(e,t):Zr(t)?MO(e,t):N(t)?NO(e,t):F(t)?PO(e,t):gn(t)?FO(e,t):oi(t)?IO(e,t):li(t)?LO(e,t):M(t)?RO(e,t):Ja(t)?zO(e,t):un(t)?BO(e,t):hi(t)?VO(e,t):di(t)?HO(e,t):_f(t)?UO(e,t):R(t)?WO(e,t):eo(t)?void 0:L(t)?GO(e,t):(no(t),void 0)}function qO(...e){let[t,n]=jn(e,{2:(e,t)=>[e,t],1:e=>[{},e]});return KO(t,n)}var JO=class extends WT{constructor(e,t){super(`Parse`,e,t)}};function YO(e,t,n){if(!HT(e,t,n))throw new JO(n,UT(e,t,n));return n}const XO=OD([(e,t,n)=>eE(n),(e,t,n)=>DD(e,t,n),(e,t,n)=>gD(e,t,n),(e,t,n)=>lE(e,t,n),(e,t,n)=>YO(e,t,n)]);I([j({type:P(`insert`),path:mi(),value:Tn()}),Object({type:P(`update`),path:mi(),value:Tn()}),j({type:P(`delete`),path:mi()})]);var ZO=class{constructor(e,t){this.hasCodec=SO(e,t),this.buildResult=zT(e,t),this.evaluateResult=this.buildResult.Evaluate()}IsAccelerated(){return this.evaluateResult.IsAccelerated()}Context(){return this.buildResult.Context()}Type(){return this.buildResult.Schema()}Code(){return this.evaluateResult.Code()}Check(e){return this.evaluateResult.Check(e)}Parse(e){if(this.Check(e))return e;if(Vt().correctiveParse)return XO(this.Context(),this.Type(),e);throw new JO(e,this.Errors(e))}Errors(e){return this.IsAccelerated()&&this.Check(e)?[]:UT(this.Context(),this.Type(),e)}Clean(e){return lE(this.Context(),this.Type(),e)}Convert(e){return gD(this.Context(),this.Type(),e)}Create(){return qO(this.Context(),this.Type())}Default(e){return DD(this.Context(),this.Type(),e)}Decode(e){return this.hasCodec?oO(this.Context(),this.Type(),e):this.Parse(e)}Encode(e){return this.hasCodec?dO(this.Context(),this.Type(),e):this.Parse(e)}};function QO(...e){let[t,n]=jn(e,{2:(e,t)=>[e,t],1:e=>[{},e]});return new ZO(t,n)}var $O=QO;const ek=Y.Refine(Y.Unsafe({}),e=>e instanceof Date),tk=Y.Object({id:Y.Number(),created:ek,title:Y.String({minLength:1,maxLength:100}),type:Y.Enum([`jpg`,`png`]),size:Y.Number(),url:Y.String({format:`url`})}),nk=Y.Object({id:Y.Number(),stars:Y.Number({minimum:1,maximum:5}),title:Y.String({minLength:1,maxLength:100}),text:Y.String({minLength:1,maxLength:1e3}),images:Y.Array(tk)});$O(Y.Object({id:Y.Number(),created:ek,title:Y.String({minLength:1,maxLength:100}),brand:Y.String({minLength:1,maxLength:30}),description:Y.String({minLength:1,maxLength:500}),price:Y.Number({minimum:1,maximum:1e4}),discount:Y.Union([Y.Number({minimum:1,maximum:100}),Y.Null()]),quantity:Y.Number({minimum:1,maximum:10}),tags:Y.Array(Y.String({minLength:1,maxLength:30})),images:Y.Array(tk),ratings:Y.Array(nk)})).Parse({}); \ No newline at end of file diff --git a/schemas/libraries/typebox/download_compiled/compile/unminified.js b/schemas/libraries/typebox/download_compiled/compile/unminified.js index 92abd5d7..c901c07d 100644 --- a/schemas/libraries/typebox/download_compiled/compile/unminified.js +++ b/schemas/libraries/typebox/download_compiled/compile/unminified.js @@ -10,7 +10,7 @@ var __exportAll = (all, no_symbols) => { return target; }; //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/memory/metrics.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/memory/metrics.mjs /** TypeBox instantiation metrics */ const Metrics = { assign: 0, @@ -20,7 +20,7 @@ const Metrics = { update: 0 }; //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/memory/assign.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/memory/assign.mjs /** * Performs an Object assign using the Left and Right object types. We track this operation as it * creates a new GC handle per assignment. @@ -33,7 +33,7 @@ function Assign(left, right) { }; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/guard/string.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/guard/string.mjs function IsBetween(value, min, max) { return value >= min && value <= max; } @@ -127,7 +127,7 @@ function IsMaxLengthFast(value, maxLength) { return true; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/guard/guard.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/guard/guard.mjs var guard_exports = /* @__PURE__ */ __exportAll({ Entries: () => Entries$2, EntriesRegExp: () => EntriesRegExp, @@ -136,7 +136,6 @@ var guard_exports = /* @__PURE__ */ __exportAll({ GraphemeCount: () => GraphemeCount, HasPropertyKey: () => HasPropertyKey$1, IsArray: () => IsArray$2, - IsAsyncIterator: () => IsAsyncIterator$2, IsBigInt: () => IsBigInt$2, IsBoolean: () => IsBoolean$3, IsClassInstance: () => IsClassInstance, @@ -147,7 +146,6 @@ var guard_exports = /* @__PURE__ */ __exportAll({ IsGreaterEqualThan: () => IsGreaterEqualThan$1, IsGreaterThan: () => IsGreaterThan$1, IsInteger: () => IsInteger$2, - IsIterator: () => IsIterator$2, IsLessEqualThan: () => IsLessEqualThan$1, IsLessThan: () => IsLessThan$1, IsMaxLength: () => IsMaxLength$2, @@ -171,10 +169,6 @@ var guard_exports = /* @__PURE__ */ __exportAll({ function IsArray$2(value) { return Array.isArray(value); } -/** Returns true if this value is an async iterator */ -function IsAsyncIterator$2(value) { - return IsObject$2(value) && Symbol.asyncIterator in value; -} /** Returns true if this value is bigint */ function IsBigInt$2(value) { return IsEqual$1(typeof value, "bigint"); @@ -199,10 +193,6 @@ function IsFunction$2(value) { function IsInteger$2(value) { return Number.isInteger(value); } -/** Returns true if this value is an iterator */ -function IsIterator$2(value) { - return IsObject$2(value) && Symbol.iterator in value; -} /** Returns true if this value is null */ function IsNull$2(value) { return IsEqual$1(value, null); @@ -332,7 +322,7 @@ function IsDeepEqual$1(left, right) { return IsArray$2(left) ? DeepEqualArray(left, right) : IsObject$2(left) ? DeepEqualObject(left, right) : IsEqual$1(left, right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/guard/emit.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/guard/emit.mjs const identifierRegExp = /^[\p{ID_Start}_$][\p{ID_Continue}_$\u200C\u200D]*$/u; /** Returns true if this value is a valid JavaScript identifier */ function IsIdentifier$1(value) { @@ -351,10 +341,6 @@ function Not(expr) { function IsArray$1(value) { return `Array.isArray(${value})`; } -/** Returns true if this value is an async iterator */ -function IsAsyncIterator$1(value) { - return `Guard.IsAsyncIterator(${value})`; -} /** Returns true if this value is bigint */ function IsBigInt$1(value) { return `typeof ${value} === "bigint"`; @@ -367,10 +353,6 @@ function IsBoolean$2(value) { function IsInteger$1(value) { return `Number.isInteger(${value})`; } -/** Returns true if this value is an iterator */ -function IsIterator$1(value) { - return `Guard.IsIterator(${value})`; -} /** Returns true if this value is null */ function IsNull$1(value) { return `${value} === null`; @@ -487,7 +469,7 @@ function MultipleOf(dividend, divisor) { return `Guard.IsMultipleOf(${dividend}, ${divisor})`; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/guard/globals.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/guard/globals.mjs function IsBoolean$1(value) { return value instanceof Boolean; } @@ -517,51 +499,69 @@ function IsMap(value) { return value instanceof globalThis.Map; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/guard/index.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/guard/index.mjs var guard_default = guard_exports; //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/memory/clone.mjs -function IsGuard$1(value) { - return IsObject$2(value) && HasPropertyKey$1(value, "~guard"); -} -function FromGuard(value) { +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/memory/clone.mjs +function FromClassInstance(value) { return value; } -function FromArray$12(value) { - return value.map((value) => FromValue$3(value)); +function IsKindedObject(value) { + return HasPropertyKey$1(value, "~kind"); } -function FromObject$16(value) { +function FromKindedObject(value) { const result = {}; const descriptors = Object.getOwnPropertyDescriptors(value); for (const key of Object.keys(descriptors)) { + if (IsUnsafePropertyKey(key)) continue; const descriptor = descriptors[key]; if (HasPropertyKey$1(descriptor, "value")) Object.defineProperty(result, key, { ...descriptor, - value: FromValue$3(descriptor.value) + value: FromValue$2(descriptor.value) }); } return result; } +function FromPlainObject(value) { + const result = {}; + for (const key of Keys$1(value)) { + if (IsUnsafePropertyKey(key)) continue; + result[key] = FromValue$2(value[key]); + } + for (const key of Symbols(value)) result[key] = FromValue$2(value[key]); + return result; +} +function FromObject$15(value) { + return IsClassInstance(value) ? FromClassInstance(value) : IsKindedObject(value) ? FromKindedObject(value) : FromPlainObject(value); +} +function FromArray$11(value) { + return value.map((element) => FromValue$2(element)); +} +function FromTypedArray(value) { + return value.slice(); +} function FromRegExp$1(value) { return new RegExp(value.source, value.flags); } -function FromUnknown(value) { - return value; +function FromMap(value) { + return new Map(FromValue$2([...value.entries()])); } -function FromValue$3(value) { - return value instanceof RegExp ? FromRegExp$1(value) : IsGuard$1(value) ? FromGuard(value) : IsArray$2(value) ? FromArray$12(value) : IsObject$2(value) ? FromObject$16(value) : FromUnknown(value); +function FromSet(value) { + return new Set(FromValue$2([...value.values()])); +} +function FromValue$2(value) { + return IsTypeArray(value) ? FromTypedArray(value) : IsRegExp(value) ? FromRegExp$1(value) : IsMap(value) ? FromMap(value) : IsSet(value) ? FromSet(value) : IsArray$2(value) ? FromArray$11(value) : IsObject$2(value) ? FromObject$15(value) : value; } /** -* Clones a value using the TypeBox type cloning strategy. This function preserves non-enumerable -* properties from the source value. This is to ensure cloned types retain discriminable -* hidden properties. +* Returns a Clone of the given value. This function is similar to structuredClone() +* but also supports deep cloning instances of Map, Set and TypeArray. */ function Clone$1(value) { Metrics.clone += 1; - return FromValue$3(value); + return FromValue$2(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/settings/settings.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/settings/settings.mjs const settings = { immutableTypes: false, maxErrors: 8, @@ -576,7 +576,7 @@ function Get$3() { return settings; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/memory/create.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/memory/create.mjs function MergeHidden(left, right) { for (const key of Object.keys(right)) Object.defineProperty(left, key, { configurable: true, @@ -605,7 +605,7 @@ function Create$1(hidden, enumerable, options = {}) { return settings.immutableTypes ? Object.freeze(withHidden) : withHidden; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/memory/discard.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/memory/discard.mjs /** Discards multiple property keys from the given object value */ function Discard(value, propertyKeys) { Metrics.discard += 1; @@ -619,7 +619,7 @@ function Discard(value, propertyKeys) { return result; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/memory/update.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/memory/update.mjs /** * Updates a value with new properties while preserving property enumerability. Use this function to modify * existing types without altering their configuration. @@ -643,7 +643,7 @@ function Update$1(current, hidden, enumerable) { return result; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/schema.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/schema.mjs function IsKind(value, kind) { return IsObject$2(value) && HasPropertyKey$1(value, "~kind") && IsEqual$1(value["~kind"], kind); } @@ -651,7 +651,7 @@ function IsSchema$1(value) { return IsObject$2(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/deferred.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/deferred.mjs /** Creates a Deferred action. */ function Deferred(action, parameters, options) { return Create$1({ "~kind": "Deferred" }, { @@ -666,84 +666,29 @@ function IsDeferred(value) { return IsKind(value, "Deferred"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/base.mjs -function BaseProperty(value) { - return { - enumerable: Get$3().enumerableKind, - writable: false, - configurable: false, - value - }; +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/readonly/instantiate_add.mjs +function AddReadonlyOperation(type) { + return Update$1(type, { "~readonly": true }, {}); } -/** -* @deprecated Use Type.Refine() + Type.Unsafe() instead. -* -* -* **Reason:** It is noted that JavaScript class instances do not behave like -* plain objects during structural clone or when the TB compositor needs to -* assign dynamic modifier properties (such as '~optional'). -* -* Because the TypeBox compositor needs to transform schematics via object clone / -* property spread, these operations can result in class instance types losing -* methods on the prototype (via clone), which can lead to unexpected structures being -* returned. This has led to special-case (non-clone) handling for Base which needs -* to be removed as it has proven orthogonal to the TypeBox 1.x design. -* -* The Base type was introduced in 1.x to try integrate / embed Standard Schema into JSON -* Schema; however, support for integrated Standard Schema embedding will not be continued -* in TypeBox. This type will be removed in the next minor revision of TypeBox. -* -* ```typescript -* // (Deprecated) -* class DateType extends Type.Base { Check(value) { return value instanceof Date } } -* -* // (Future) -* const DateType = Type.Refine(Type.Unsafe({}), value => value instanceof Date) -* ``` -*/ -var Base$1 = class { - constructor() { - globalThis.Object.defineProperty(this, "~kind", BaseProperty("Base")); - globalThis.Object.defineProperty(this, "~guard", BaseProperty({ - check: (value) => this.Check(value), - errors: (value) => this.Errors(value) - })); - } - /** Checks a value or returns false if invalid */ - Check(_value) { - return true; - } - /** Returns errors for a value. Return an empty array if valid. */ - Errors(_value) { - return []; - } - /** Converts a value into this type */ - Convert(value) { - return value; - } - /** Cleans a value according to this type */ - Clean(value) { - return value; - } - /** Returns a default value for this type */ - Default(value) { - return value; - } - /** Creates a new instance of this type */ - Create() { - throw new Error("Create not implemented"); - } - /** Clones this type */ - Clone() { - throw Error("Clone not implemented"); - } -}; -/** Returns true if the given value is a Base type. */ -function IsBase(value) { - return IsKind(value, "Base"); +function AddReadonlyAction(type, options) { + return Update$1(AddReadonlyOperation(type), {}, options); +} +function AddReadonlyInstantiate(context, state, type, options) { + return AddReadonlyAction(InstantiateType(context, state, type), options); +} +//#endregion +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/optional/instantiate_add.mjs +function AddOptionalOperation(type) { + return Update$1(type, { "~optional": true }, {}); +} +function AddOptionalAction(type, options) { + return Update$1(AddOptionalOperation(type), {}, options); +} +function AddOptionalInstantiate(context, state, type, options) { + return AddOptionalAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/array.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/array.mjs /** Creates an Array type. */ function _Array_(items, options) { return Create$1({ "~kind": "Array" }, { @@ -764,32 +709,7 @@ function ArrayOptions(type) { ]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/async_iterator.mjs -/** -* Creates a AsyncIterator type. -* -* @deprecated This type is being removed in the next version of TypeBox. A fallback will be provided under examples. -*/ -function AsyncIterator(iteratorItems, options) { - return Create$1({ "~kind": "AsyncIterator" }, { - type: "asyncIterator", - iteratorItems - }, options); -} -/** Returns true if the given value is a TAsyncIterator */ -function IsAsyncIterator(value) { - return IsKind(value, "AsyncIterator"); -} -/** Extracts options from a TAsyncIterator. */ -function AsyncIteratorOptions(type) { - return Discard(type, [ - "~kind", - "type", - "iteratorItems" - ]); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/constructor.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/constructor.mjs /** Creates a Constructor type. */ function Constructor(parameters, instanceType, options = {}) { return Create$1({ "~kind": "Constructor" }, { @@ -812,7 +732,7 @@ function ConstructorOptions(type) { ]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/function.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/function.mjs /** Creates a Function type. */ function _Function_$1(parameters, returnType, options = {}) { return Create$1({ ["~kind"]: "Function" }, { @@ -835,7 +755,7 @@ function FunctionOptions(type) { ]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/ref.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/ref.mjs /** Creates a Ref type. */ function Ref$1(ref, options) { return Create$1({ ["~kind"]: "Ref" }, { $ref: ref }, options); @@ -845,7 +765,7 @@ function IsRef$1(value) { return IsKind(value, "Ref"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/generic.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/generic.mjs /** Creates a Generic type. */ function Generic(parameters, expression) { return Create$1({ "~kind": "Generic" }, { @@ -859,7 +779,7 @@ function IsGeneric(value) { return IsKind(value, "Generic"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/any.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/any.mjs /** Creates a Any type. */ function Any(options) { return Create$1({ ["~kind"]: "Any" }, {}, options); @@ -869,7 +789,7 @@ function IsAny(value) { return IsKind(value, "Any"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/never.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/never.mjs const NeverPattern = "(?!)"; /** Creates a Never type. */ function Never(options) { @@ -880,18 +800,7 @@ function IsNever(value) { return IsKind(value, "Never"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/optional/instantiate_add.mjs -function AddOptionalOperation(type) { - return Update$1(type, { "~optional": true }, {}); -} -function AddOptionalAction(type, options) { - return Update$1(AddOptionalOperation(type), {}, options); -} -function AddOptionalInstantiate(context, state, type, options) { - return AddOptionalAction(InstantiateType(context, state, type), options); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/_add_optional.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/_add_optional.mjs /** Creates a deferred AddOptional action. */ function AddOptionalDeferred(type, options = {}) { return Deferred("AddOptional", [type], options); @@ -901,7 +810,7 @@ function AddOptional(type, options = {}) { return AddOptionalAction(type, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/_optional.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/_optional.mjs /** Applies an Optional modifier to the given type. */ function Optional$2(type) { return AddOptional(type); @@ -911,7 +820,7 @@ function IsOptional(value) { return IsSchema$1(value) && HasPropertyKey$1(value, "~optional"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/properties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/properties.mjs /** Creates a RequiredArray derived from the given TProperties value. */ function RequiredArray(properties) { return Keys$1(properties).filter((key) => !IsOptional(properties[key])); @@ -925,7 +834,7 @@ function PropertyValues(properties) { return Values(properties); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/object.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/object.mjs /** Creates an Object type. */ function _Object_$1(properties, options = {}) { const requiredKeys = RequiredArray(properties); @@ -949,7 +858,7 @@ function ObjectOptions(type) { ]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/unknown.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/unknown.mjs /** Creates an Unknown type. */ function Unknown(options) { return Create$1({ ["~kind"]: "Unknown" }, {}, options); @@ -959,7 +868,7 @@ function IsUnknown(value) { return IsKind(value, "Unknown"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/cyclic.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/cyclic.mjs /** Creates a Cyclic type. */ function Cyclic($defs, $ref, options) { const defs = Keys$1($defs).reduce((result, key) => { @@ -978,7 +887,7 @@ function IsCyclic(value) { return IsKind(value, "Cyclic"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/unsafe.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/unsafe.mjs /** Creates a Unsafe type. */ function Unsafe(schema) { return Update$1(schema, { ["~unsafe"]: null }, {}); @@ -988,7 +897,7 @@ function IsUnsafe(value) { return IsObjectNotArray$1(value) && HasPropertyKey$1(value, "~unsafe") && IsNull$2(value["~unsafe"]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/arguments/arguments.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/arguments/arguments.mjs /** * Match arguments for overloaded functions that use the `...args: unknown[]` pattern. Arguments * are parsed using argument length only. @@ -999,7 +908,7 @@ function Match$3(args, match) { })(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/infer.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/infer.mjs /** Creates an Infer instruction. */ function Infer(...args) { const [name, extends_] = Match$3(args, { @@ -1025,7 +934,7 @@ function IsInfer(value) { return IsKind(value, "Infer"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/dependent.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/dependent.mjs /** Creates a Dependent type */ function Dependent$1(if_, then_, else_, options = {}) { return Create$1({ "~kind": "Dependent" }, { @@ -1048,7 +957,7 @@ function DependentOptions(type) { ]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/enum/typescript_enum_to_enum_values.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/enum/typescript_enum_to_enum_values.mjs function IsTypeScriptEnumLike(value) { return IsObjectNotArray$1(value); } @@ -1056,7 +965,7 @@ function TypeScriptEnumToEnumValues(type) { return Keys$1(type).filter((key) => isNaN(key)).reduce((result, key) => [...result, type[key]], []); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/enum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/enum.mjs /** Creates an Enum type. */ function Enum(value, options) { return Create$1({ "~kind": "Enum" }, { enum: IsTypeScriptEnumLike(value) ? TypeScriptEnumToEnumValues(value) : value }, options); @@ -1066,7 +975,7 @@ function IsEnum$1(value) { return IsKind(value, "Enum"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/intersect.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/intersect.mjs /** Creates a Intersect type. */ function Intersect(types, options = {}) { return Create$1({ "~kind": "Intersect" }, { allOf: types }, options); @@ -1080,7 +989,7 @@ function IntersectOptions(type) { return Discard(type, ["~kind", "allOf"]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/environment/evaluate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/environment/evaluate.mjs let supported = void 0; function TryEvaluate() { try { @@ -1105,13 +1014,13 @@ function Evaluate$1(...args) { return new globalThis.Function(...args); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/unreachable/unreachable.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/unreachable/unreachable.mjs /** Used for unreachable logic */ function Unreachable$1() { throw new Error("Unreachable"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/hashing/hash.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/hashing/hash.mjs var hash_exports = /* @__PURE__ */ __exportAll({ Hash: () => Hash, HashCode: () => HashCode @@ -1155,9 +1064,9 @@ function FNV1A64_OP(byte) { Accumulator = Accumulator ^ Bytes[byte]; Accumulator = Accumulator * Prime % Size; } -function FromArray$11(value) { +function FromArray$10(value) { FNV1A64_OP(ByteMarker.Array); - for (const item of value) FromValue$2(item); + for (const item of value) FromValue$1(item); } function FromBigInt$6(value) { FNV1A64_OP(ByteMarker.BigInt); @@ -1170,15 +1079,15 @@ function FromBoolean$6(value) { } function FromConstructor$1(value) { FNV1A64_OP(ByteMarker.Constructor); - FromValue$2(value.toString()); + FromValue$1(value.toString()); } function FromDate(value) { FNV1A64_OP(ByteMarker.Date); - FromValue$2(value.getTime()); + FromValue$1(value.getTime()); } function FromFunction$1(value) { FNV1A64_OP(ByteMarker.Function); - FromValue$2(value.toString()); + FromValue$1(value.toString()); } function FromNull$2(_value) { FNV1A64_OP(ByteMarker.Null); @@ -1188,11 +1097,11 @@ function FromNumber$5(value) { F64In.setFloat64(0, value, true); for (const byte of F64Out) FNV1A64_OP(byte); } -function FromObject$15(value) { +function FromObject$14(value) { FNV1A64_OP(ByteMarker.Object); for (const key of InstanceKeys(value).sort()) { - FromValue$2(key); - FromValue$2(value[key]); + FromValue$1(key); + FromValue$1(value[key]); } } function FromRegExp(value) { @@ -1206,7 +1115,7 @@ function FromString$7(value) { } function FromSymbol$1(value) { FNV1A64_OP(ByteMarker.Symbol); - FromValue$2(value.toString()); + FromValue$1(value.toString()); } function FromTypeArray(value) { FNV1A64_OP(ByteMarker.TypeArray); @@ -1216,13 +1125,13 @@ function FromTypeArray(value) { function FromUndefined$2(_value) { return FNV1A64_OP(ByteMarker.Undefined); } -function FromValue$2(value) { - return IsTypeArray(value) ? FromTypeArray(value) : IsDate$1(value) ? FromDate(value) : IsRegExp(value) ? FromRegExp(value) : IsBoolean$1(value) ? FromBoolean$6(value.valueOf()) : IsString$1(value) ? FromString$7(value.valueOf()) : IsNumber$1(value) ? FromNumber$5(value.valueOf()) : IsIEEE754(value) ? FromNumber$5(value) : IsArray$2(value) ? FromArray$11(value) : IsBoolean$3(value) ? FromBoolean$6(value) : IsBigInt$2(value) ? FromBigInt$6(value) : IsConstructor$2(value) ? FromConstructor$1(value) : IsNull$2(value) ? FromNull$2(value) : IsObject$2(value) ? FromObject$15(value) : IsString$3(value) ? FromString$7(value) : IsSymbol$2(value) ? FromSymbol$1(value) : IsUndefined$2(value) ? FromUndefined$2(value) : IsFunction$2(value) ? FromFunction$1(value) : Unreachable$1(); +function FromValue$1(value) { + return IsTypeArray(value) ? FromTypeArray(value) : IsDate$1(value) ? FromDate(value) : IsRegExp(value) ? FromRegExp(value) : IsBoolean$1(value) ? FromBoolean$6(value.valueOf()) : IsString$1(value) ? FromString$7(value.valueOf()) : IsNumber$1(value) ? FromNumber$5(value.valueOf()) : IsIEEE754(value) ? FromNumber$5(value) : IsArray$2(value) ? FromArray$10(value) : IsBoolean$3(value) ? FromBoolean$6(value) : IsBigInt$2(value) ? FromBigInt$6(value) : IsConstructor$2(value) ? FromConstructor$1(value) : IsNull$2(value) ? FromNull$2(value) : IsObject$2(value) ? FromObject$14(value) : IsString$3(value) ? FromString$7(value) : IsSymbol$2(value) ? FromSymbol$1(value) : IsUndefined$2(value) ? FromUndefined$2(value) : IsFunction$2(value) ? FromFunction$1(value) : Unreachable$1(); } /** Generates a FNV1A-64 non cryptographic hash of the given value */ function HashCode(value) { Accumulator = BigInt("14695981039346656037"); - FromValue$2(value); + FromValue$1(value); return Accumulator; } /** Generates a FNV1A-64 non cryptographic hash of the given value */ @@ -1230,7 +1139,7 @@ function Hash(value) { return HashCode(value).toString(16).padStart(16, "0"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/locale/en_US.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/locale/en_US.mjs /** en_US: English (United States) - ISO 639-1 language code 'en' with ISO 3166-1 alpha-2 country code 'US' for United States. */ function en_US(error) { switch (error.keyword) { @@ -1264,20 +1173,19 @@ function en_US(error) { case "unevaluatedItems": return "must not have unevaluated items"; case "unevaluatedProperties": return "must not have unevaluated properties"; case "uniqueItems": return `must not have duplicate items`; - case "~guard": return `must match check function`; case "~refine": return error.params.message; default: return "an unknown validation error occurred"; } } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/locale/_config.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/locale/_config.mjs let locale = en_US; /** Gets the locale */ function Get$2() { return locale; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/_codec.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/_codec.mjs var EncodeBuilder = class { constructor(type, decode) { this.type = type; @@ -1320,7 +1228,7 @@ function IsCodec(value) { return IsSchema$1(value) && HasPropertyKey$1(value, "~codec") && IsObject$2(value["~codec"]) && HasPropertyKey$1(value["~codec"], "encode") && HasPropertyKey$1(value["~codec"], "decode"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/_immutable.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/_immutable.mjs /** Applies an Immutable modifier to the given type. */ function Immutable(type) { return AddImmutable(type); @@ -1330,18 +1238,7 @@ function IsImmutable(value) { return IsSchema$1(value) && HasPropertyKey$1(value, "~immutable"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/readonly/instantiate_add.mjs -function AddReadonlyOperation(type) { - return Update$1(type, { "~readonly": true }, {}); -} -function AddReadonlyAction(type, options) { - return Update$1(AddReadonlyOperation(type), {}, options); -} -function AddReadonlyInstantiate(context, state, type, options) { - return AddReadonlyAction(InstantiateType(context, state, type), options); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/_add_readonly.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/_add_readonly.mjs /** Creates a deferred AddReadonly action. */ function AddReadonlyDeferred(type, options = {}) { return Deferred("AddReadonly", [type], options); @@ -1351,7 +1248,7 @@ function AddReadonly(type, options = {}) { return AddReadonlyAction(type, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/_readonly.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/_readonly.mjs /** Applies an Readonly property modifier to the given type. */ function Readonly$1(type) { return AddReadonly(type); @@ -1361,14 +1258,14 @@ function IsReadonly(value) { return IsSchema$1(value) && HasPropertyKey$1(value, "~readonly"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/_refine.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/_refine.mjs /** Applies a Refine check to the given type. */ function RefineAdd(type, refinement) { return Update$1(type, { "~refine": IsRefine$1(type) ? [...type["~refine"], refinement] : [refinement] }, {}); } /** Refines a type with an explicit check */ function Refine(...args) { - const [type, check, error_or_message] = Match$3(args, { + const [type, check, error] = Match$3(args, { 3: (type, check, error) => [ type, check, @@ -1382,7 +1279,7 @@ function Refine(...args) { }); return RefineAdd(type, { check, - error: IsString$3(error_or_message) ? () => error_or_message : error_or_message + error }); } /** Returns true if the given value is a TRefinement. */ @@ -1394,7 +1291,7 @@ function IsRefine$1(value) { return IsSchema$1(value) && HasPropertyKey$1(value, "~refine") && IsArray$2(value["~refine"]) && Every$1(value["~refine"], 0, (value) => IsRefinement(value)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/bigint.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/bigint.mjs const BigIntPattern = "-?(?:0|[1-9][0-9]*)n"; /** Creates a BigInt type. */ function BigInt$2(options) { @@ -1405,7 +1302,7 @@ function IsBigInt(value) { return IsKind(value, "BigInt"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/boolean.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/boolean.mjs /** Creates a Boolean type. */ function Boolean$1(options) { return Create$1({ "~kind": "Boolean" }, { type: "boolean" }, options); @@ -1415,7 +1312,7 @@ function IsBoolean(value) { return IsKind(value, "Boolean"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/identifier.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/identifier.mjs /** Creates an Identifier. */ function Identifier(name) { return Create$1({ "~kind": "Identifier" }, { name }); @@ -1425,7 +1322,7 @@ function IsIdentifier(value) { return IsKind(value, "Identifier"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/integer.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/integer.mjs const IntegerPattern = "-?(?:0|[1-9][0-9]*)"; /** Creates a Integer type. */ function Integer$1(options) { @@ -1436,32 +1333,7 @@ function IsInteger(value) { return IsKind(value, "Integer"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/iterator.mjs -/** -* Creates a Iterator type. -* -* @deprecated This type is being removed in the next version of TypeBox. A fallback will be provided under examples. -*/ -function Iterator(iteratorItems, options) { - return Create$1({ "~kind": "Iterator" }, { - type: "iterator", - iteratorItems - }, options); -} -/** Returns true if the given value is TIterator. */ -function IsIterator(value) { - return IsKind(value, "Iterator"); -} -/** Extracts options from a TIterator. */ -function IteratorOptions(type) { - return Discard(type, [ - "~kind", - "type", - "iteratorItems" - ]); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/literal.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/literal.mjs var InvalidLiteralValue = class extends Error { constructor(value) { super(`Invalid Literal value`); @@ -1510,7 +1382,7 @@ function IsLiteral(value) { return IsKind(value, "Literal"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/null.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/null.mjs /** Creates a Null type. */ function Null(options) { return Create$1({ "~kind": "Null" }, { type: "null" }, options); @@ -1520,7 +1392,7 @@ function IsNull(value) { return IsKind(value, "Null"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/number.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/number.mjs const NumberPattern = "-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?"; /** Creates a Number type. */ function Number$2(options) { @@ -1531,7 +1403,7 @@ function IsNumber(value) { return IsKind(value, "Number"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/symbol.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/symbol.mjs /** Creates a Symbol type. */ function Symbol$1(options) { return Create$1({ "~kind": "Symbol" }, { type: "symbol" }, options); @@ -1541,7 +1413,7 @@ function IsSymbol(value) { return IsKind(value, "Symbol"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/parameter.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/parameter.mjs /** Creates a Parameter type. */ function Parameter$1(...args) { const [name, extends_, equals] = Match$3(args, { @@ -1572,32 +1444,7 @@ function IsParameter(value) { return IsKind(value, "Parameter"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/promise.mjs -/** -* Creates a Promise type. -* -* @deprecated This type is being removed in the next version of TypeBox. A fallback will be provided under examples. -*/ -function _Promise_(item, options) { - return Create$1({ ["~kind"]: "Promise" }, { - type: "promise", - item - }, options); -} -/** Returns true if the given type is TPromise. */ -function IsPromise(value) { - return IsKind(value, "Promise"); -} -/** Extracts options from a TPromise. */ -function PromiseOptions(type) { - return Discard(type, [ - "~kind", - "type", - "item" - ]); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/string.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/string.mjs /** Creates a String type. */ function String$2(options) { return Create$1({ "~kind": "String" }, { type: "string" }, options); @@ -1607,7 +1454,7 @@ function IsString(value) { return IsKind(value, "String"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/union.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/union.mjs /** Creates a Union type. */ function Union(anyOf, options = {}) { return Create$1({ "~kind": "Union" }, { anyOf }, options); @@ -1621,14 +1468,14 @@ function UnionOptions(type) { return Discard(type, ["~kind", "anyOf"]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/patterns/pattern.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/patterns/pattern.mjs /** Parses a Pattern into a sequence of TemplateLiteral types. A result of [] indicates failure to parse. */ function ParsePatternIntoTypes(pattern) { const parsed = Pattern(pattern); return IsEqual$1(parsed.length, 2) ? parsed[0] : []; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/template_literal/is_finite.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/template_literal/is_finite.mjs function FromLiteral$6(_value) { return true; } @@ -1646,7 +1493,7 @@ function IsTemplateLiteralFinite(types) { return FromTypes$5(types); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/template_literal/create.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/template_literal/create.mjs function TemplateLiteralCreate(pattern) { return Create$1({ ["~kind"]: "TemplateLiteral" }, { type: "string", @@ -1654,7 +1501,7 @@ function TemplateLiteralCreate(pattern) { }, {}); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/template_literal/decode.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/template_literal/decode.mjs function FromLiteralPush(variants, value, result = []) { return ShiftLeft(variants, (left, right) => FromLiteralPush(right, value, [...result, `${left}${value}`]), () => result); } @@ -1695,7 +1542,7 @@ function TemplateLiteralDecode(pattern) { return IsTemplateLiteral(decoded) ? String$2() : decoded; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/record/record_create.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/record/record_create.mjs function CreateRecord(key, value) { const type = "object"; const patternProperties = { [key]: value }; @@ -1705,12 +1552,12 @@ function CreateRecord(key, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/record/from_key_any.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/record/from_key_any.mjs function FromAnyKey(value) { return CreateRecord(StringKey, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/record/from_key_boolean.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/record/from_key_boolean.mjs function FromBooleanKey(value) { return _Object_$1({ true: value, @@ -1718,7 +1565,7 @@ function FromBooleanKey(value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/tuple.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/tuple.mjs /** Creates a Tuple type. */ function Tuple(types, options = {}) { const [items, minItems, additionalItems] = [ @@ -1748,7 +1595,7 @@ function TupleOptions(type) { ]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/readonly/instantiate_remove.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/readonly/instantiate_remove.mjs function RemoveReadonlyOperation(type) { return Discard(type, ["~readonly"]); } @@ -1759,7 +1606,7 @@ function RemoveReadonlyInstantiate(context, state, type, options) { return RemoveReadonlyAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/_remove_readonly.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/_remove_readonly.mjs /** Creates a deferred RemoveReadonly action. */ function RemoveReadonlyDeferred(type, options = {}) { return Deferred("RemoveReadonly", [type], options); @@ -1769,7 +1616,7 @@ function RemoveReadonly(type, options = {}) { return RemoveReadonlyAction(type, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/optional/instantiate_remove.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/optional/instantiate_remove.mjs function RemoveOptionalOperation(type) { return Discard(type, ["~optional"]); } @@ -1780,7 +1627,7 @@ function RemoveOptionalInstantiate(context, state, type, options) { return RemoveOptionalAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/_remove_optional.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/_remove_optional.mjs /** Creates a deferred RemoveOptional action. */ function RemoveOptionalDeferred(type, options = {}) { return Deferred("RemoveOptional", [type], options); @@ -1790,7 +1637,7 @@ function RemoveOptional(type, options = {}) { return RemoveOptionalAction(type, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/tuple/to_object.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/tuple/to_object.mjs function TupleElementsToProperties(types) { return types.reduceRight((result, right, index) => { return { @@ -1803,7 +1650,7 @@ function TupleToObject(type) { return _Object_$1(TupleElementsToProperties(type.items)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/evaluate/composite.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/evaluate/composite.mjs function IsReadonlyProperty(left, right) { return IsReadonly(left) ? IsReadonly(right) ? true : false : false; } @@ -1834,13 +1681,13 @@ function Composite(left, right) { return _Object_$1(CompositeProperties(GetProperties(left), GetProperties(right))); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/evaluate/narrow.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/evaluate/narrow.mjs function Narrow(left, right) { const result = Compare(left, right); return IsEqual$1(result, "left-inside") ? left : IsEqual$1(result, "right-inside") ? right : IsEqual$1(result, "equal") ? right : Never(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/evaluate/distribute.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/evaluate/distribute.mjs function IsObjectLike(type) { return IsObject(type) || IsTuple(type); } @@ -1867,7 +1714,7 @@ function Distribute$1(types, result = []) { return ShiftLeft(types, (left, right) => IsUnion(left) ? Distribute$1(right, DistributeUnion(left.anyOf, result)) : Distribute$1(right, DistributeType(left, result)), () => result); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/exclude/operation.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/exclude/operation.mjs function ExcludeType(left, right) { return IsExtendsTrueLike(Extends({}, left, right)) ? [] : [left]; } @@ -1881,7 +1728,7 @@ function ExcludeOperation(left, right) { return EvaluateUnion(ExcludeUnion(IsUnion(evaluated) ? evaluated.anyOf : [evaluated], right)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/evaluate/evaluate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/evaluate/evaluate.mjs function EvaluateDependent(if_, then_, else_) { return EvaluateUnion([Intersect([if_, then_]), ExcludeOperation(else_, if_)]); } @@ -1904,42 +1751,42 @@ function EvaluateUnionFast(types) { return IsEqual$1(types.length, 1) ? types[0] : IsEqual$1(types.length, 0) ? Never() : Union(types); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/record/from_key_enum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/record/from_key_enum.mjs function FromEnumKey(values, value) { return FromKey(EvaluateEnum(values), value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/record/from_key_integer.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/record/from_key_integer.mjs function FromIntegerKey(_key, value) { return CreateRecord(IntegerKey, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/record/from_key_intersect.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/record/from_key_intersect.mjs function FromIntersectKey(types, value) { return FromKey(EvaluateIntersect(types), value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/record/from_key_literal.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/record/from_key_literal.mjs function FromLiteralKey(key, value) { return IsString$3(key) || IsNumber$3(key) ? _Object_$1({ [key]: value }) : IsEqual$1(key, false) ? _Object_$1({ false: value }) : IsEqual$1(key, true) ? _Object_$1({ true: value }) : _Object_$1({}); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/record/from_key_number.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/record/from_key_number.mjs function FromNumberKey(_key, value) { return CreateRecord(NumberKey, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/record/from_key_string.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/record/from_key_string.mjs function FromStringKey(key, value) { return HasPropertyKey$1(key, "pattern") && (IsString$3(key.pattern) || key.pattern instanceof RegExp) ? CreateRecord(key.pattern.toString(), value) : CreateRecord(StringKey, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/record/from_key_template_literal.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/record/from_key_template_literal.mjs function FromTemplateKey(pattern, value) { return IsTemplateLiteralFinite(ParsePatternIntoTypes(pattern)) ? FromKey(EvaluateTemplateLiteral(pattern), value) : CreateRecord(pattern, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/evaluate/flatten.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/evaluate/flatten.mjs function FlattenType(type) { return IsUnion(type) ? Flatten(type.anyOf) : [type]; } @@ -1949,7 +1796,7 @@ function Flatten(types) { }, []); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/record/from_key_union.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/record/from_key_union.mjs function StringOrNumberCheck(types) { return types.some((type) => IsString(type) || IsNumber(type) || IsInteger(type)); } @@ -1973,12 +1820,12 @@ function FromUnionKey(types, value) { return IsSchema$1(record) ? record : CreateObject(flattened, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/record/from_key.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/record/from_key.mjs function FromKey(key, value) { return IsAny(key) ? FromAnyKey(value) : IsBoolean(key) ? FromBooleanKey(value) : IsEnum$1(key) ? FromEnumKey(key.enum, value) : IsInteger(key) ? FromIntegerKey(key, value) : IsIntersect(key) ? FromIntersectKey(key.allOf, value) : IsLiteral(key) ? FromLiteralKey(key.const, value) : IsNumber(key) ? FromNumberKey(key, value) : IsUnion(key) ? FromUnionKey(key.anyOf, value) : IsString(key) ? FromStringKey(key, value) : IsTemplateLiteral(key) ? FromTemplateKey(key.pattern, value) : _Object_$1({}); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/record/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/record/instantiate.mjs function RecordAction(key, value, options) { return CanInstantiate([key]) ? Update$1(FromKey(key, value), {}, options) : RecordDeferred(key, value, options); } @@ -1986,7 +1833,7 @@ function RecordInstantiate(context, state, key, value, options) { return RecordAction(InstantiateType(context, state, key), InstantiateType(context, state, value), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/record.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/record.mjs const IntegerKey = `^${IntegerPattern}$`; const NumberKey = `^${NumberPattern}$`; const StringKey = `^.*$`; @@ -2022,7 +1869,7 @@ function IsRecord(value) { return IsKind(value, "Record"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/rest.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/rest.mjs /** Creates a Rest instruction type. */ function Rest(type) { return Create$1({ "~kind": "Rest" }, { @@ -2035,7 +1882,7 @@ function IsRest(value) { return IsKind(value, "Rest"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/this.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/this.mjs /** Creates a This type. */ function This(options) { return Create$1({ ["~kind"]: "This" }, { $ref: "#" }, options); @@ -2045,7 +1892,7 @@ function IsThis(value) { return IsKind(value, "This"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/undefined.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/undefined.mjs /** Creates a Undefined type. */ function Undefined(options) { return Create$1({ "~kind": "Undefined" }, { type: "undefined" }, options); @@ -2055,7 +1902,7 @@ function IsUndefined(value) { return IsKind(value, "Undefined"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/void.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/void.mjs /** Creates a Void type. */ function Void(options) { return Create$1({ "~kind": "Void" }, { type: "void" }, options); @@ -2065,9 +1912,9 @@ function IsVoid(value) { return IsKind(value, "Void"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/mapping.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/mapping.mjs function IntrinsicOrCall(ref, parameters) { - return IsEqual$1(ref, "Array") ? _Array_(parameters[0]) : IsEqual$1(ref, "AsyncIterator") ? AsyncIterator(parameters[0]) : IsEqual$1(ref, "Iterator") ? Iterator(parameters[0]) : IsEqual$1(ref, "Promise") ? _Promise_(parameters[0]) : IsEqual$1(ref, "Awaited") ? AwaitedDeferred(parameters[0]) : IsEqual$1(ref, "Capitalize") ? CapitalizeDeferred(parameters[0]) : IsEqual$1(ref, "ConstructorParameters") ? ConstructorParametersDeferred(parameters[0]) : IsEqual$1(ref, "Evaluate") ? EvaluateDeferred(parameters[0]) : IsEqual$1(ref, "Exclude") ? ExcludeDeferred(parameters[0], parameters[1]) : IsEqual$1(ref, "Extract") ? ExtractDeferred(parameters[0], parameters[1]) : IsEqual$1(ref, "Index") ? IndexDeferred(parameters[0], parameters[1]) : IsEqual$1(ref, "InstanceType") ? InstanceTypeDeferred(parameters[0]) : IsEqual$1(ref, "Lowercase") ? LowercaseDeferred(parameters[0]) : IsEqual$1(ref, "NonNullable") ? NonNullableDeferred(parameters[0]) : IsEqual$1(ref, "Omit") ? OmitDeferred(parameters[0], parameters[1]) : IsEqual$1(ref, "Parameters") ? ParametersDeferred(parameters[0]) : IsEqual$1(ref, "Partial") ? PartialDeferred(parameters[0]) : IsEqual$1(ref, "Pick") ? PickDeferred(parameters[0], parameters[1]) : IsEqual$1(ref, "Readonly") ? ReadonlyObjectDeferred(parameters[0]) : IsEqual$1(ref, "KeyOf") ? KeyOfDeferred(parameters[0]) : IsEqual$1(ref, "Record") ? RecordDeferred(parameters[0], parameters[1]) : IsEqual$1(ref, "Required") ? RequiredDeferred(parameters[0]) : IsEqual$1(ref, "ReturnType") ? ReturnTypeDeferred(parameters[0]) : IsEqual$1(ref, "Uncapitalize") ? UncapitalizeDeferred(parameters[0]) : IsEqual$1(ref, "Uppercase") ? UppercaseDeferred(parameters[0]) : CallConstruct(Ref$1(ref), parameters); + return IsEqual$1(ref, "Array") ? _Array_(parameters[0]) : IsEqual$1(ref, "Capitalize") ? CapitalizeDeferred(parameters[0]) : IsEqual$1(ref, "ConstructorParameters") ? ConstructorParametersDeferred(parameters[0]) : IsEqual$1(ref, "Evaluate") ? EvaluateDeferred(parameters[0]) : IsEqual$1(ref, "Exclude") ? ExcludeDeferred(parameters[0], parameters[1]) : IsEqual$1(ref, "Extract") ? ExtractDeferred(parameters[0], parameters[1]) : IsEqual$1(ref, "Index") ? IndexDeferred(parameters[0], parameters[1]) : IsEqual$1(ref, "InstanceType") ? InstanceTypeDeferred(parameters[0]) : IsEqual$1(ref, "Lowercase") ? LowercaseDeferred(parameters[0]) : IsEqual$1(ref, "NonNullable") ? NonNullableDeferred(parameters[0]) : IsEqual$1(ref, "Omit") ? OmitDeferred(parameters[0], parameters[1]) : IsEqual$1(ref, "Parameters") ? ParametersDeferred(parameters[0]) : IsEqual$1(ref, "Partial") ? PartialDeferred(parameters[0]) : IsEqual$1(ref, "Pick") ? PickDeferred(parameters[0], parameters[1]) : IsEqual$1(ref, "Readonly") ? ReadonlyObjectDeferred(parameters[0]) : IsEqual$1(ref, "KeyOf") ? KeyOfDeferred(parameters[0]) : IsEqual$1(ref, "Record") ? RecordDeferred(parameters[0], parameters[1]) : IsEqual$1(ref, "Required") ? RequiredDeferred(parameters[0]) : IsEqual$1(ref, "ReturnType") ? ReturnTypeDeferred(parameters[0]) : IsEqual$1(ref, "Uncapitalize") ? UncapitalizeDeferred(parameters[0]) : IsEqual$1(ref, "Uppercase") ? UppercaseDeferred(parameters[0]) : CallConstruct(Ref$1(ref), parameters); } function Unreachable() { throw Error("Unreachable"); @@ -2500,7 +2347,7 @@ function ScriptMapping(input) { return input; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/token/internal/match.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/token/internal/match.mjs /** Checks the value is a Tuple-2 [string, string] result */ function IsMatch(value) { return IsEqual$1(value.length, 2); @@ -2510,7 +2357,7 @@ function Match$2(input, ok, fail) { return IsMatch(input) ? ok(input[0], input[1]) : fail(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/token/internal/take.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/token/internal/take.mjs function TakeVariant(variant, input) { return IsEqual$1(input.indexOf(variant), 0) ? [variant, input.slice(variant.length)] : []; } @@ -2523,7 +2370,7 @@ function Take(variants, input) { return []; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/token/internal/char.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/token/internal/char.mjs function Range(start, end) { return Array.from({ length: end - start + 1 }, (_, i) => String.fromCharCode(start + i)); } @@ -2531,7 +2378,7 @@ const Alpha = [...Range(97, 122), ...Range(65, 90)]; const NonZero = Range(49, 57); const Digit = ["0", ...NonZero]; //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/token/internal/trim.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/token/internal/trim.mjs const LineComment = "//"; const OpenComment = "/*"; const CloseComment = "*/"; @@ -2555,13 +2402,13 @@ function Trim(input) { return trimmed.startsWith(OpenComment) ? Trim(DiscardMultilineComment(trimmed.slice(2))) : trimmed.startsWith(LineComment) ? Trim(DiscardLineComment(trimmed.slice(2))) : trimmed; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/token/internal/optional.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/token/internal/optional.mjs /** Matches the given Value or empty string if no match. This function never fails */ function Optional$1(value, input) { return Match$2(Take([value], input), (Optional, Rest) => [Optional, Rest], () => ["", input]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/token/internal/many.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/token/internal/many.mjs function IsDiscard(discard, input) { return discard.includes(input); } @@ -2570,7 +2417,7 @@ function Many(allowed, discard, input, result = "") { return Match$2(Take(allowed, input), (Char, Rest) => IsDiscard(discard, Char) ? Many(allowed, discard, Rest, result) : Many(allowed, discard, Rest, `${result}${Char}`), () => [result, input]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/token/unsigned_integer.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/token/unsigned_integer.mjs function TakeNonZero(input) { return Take(NonZero, input); } @@ -2586,7 +2433,7 @@ function UnsignedInteger(input) { return TakeUnsignedInteger(Trim(input)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/token/integer.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/token/integer.mjs function TakeSign$1(input) { return Optional$1("-", input); } @@ -2598,7 +2445,7 @@ function Integer(input) { return TakeSignedInteger(Trim(input)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/token/bigint.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/token/bigint.mjs function TakeBigInt(input) { return Match$2(Integer(input), (Integer, IntegerRest) => Match$2(Take(["n"], IntegerRest), (_N, NRest) => [`${Integer}`, NRest], () => []), () => []); } @@ -2607,7 +2454,7 @@ function BigInt$1(input) { return TakeBigInt(input); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/token/const.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/token/const.mjs function TakeConst(const_, input) { return Take([const_], input); } @@ -2616,7 +2463,7 @@ function Const(const_, input) { return IsEqual$1(const_, "") ? ["", input] : const_.startsWith("\n") ? TakeConst(const_, TrimWhitespace(input)) : const_.startsWith(" ") ? TakeConst(const_, input) : TakeConst(const_, Trim(input)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/token/ident.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/token/ident.mjs const Initial = [ ...Alpha, "_", @@ -2637,7 +2484,7 @@ function Ident(input) { return TakeIdent(Trim(input)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/token/unsigned_number.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/token/unsigned_number.mjs const AllowedDigits = [...Digit, "_"]; function IsLeadingDot(input) { return IsMatch(Take(["."], input)); @@ -2659,7 +2506,7 @@ function UnsignedNumber(input) { return TakeUnsignedNumber(Trim(input)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/token/number.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/token/number.mjs function TakeSign(input) { return Optional$1("-", input); } @@ -2671,7 +2518,7 @@ function Number$1(input) { return TakeSignedNumber(Trim(input)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/token/until.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/token/until.mjs function TakeOne(input) { return IsEqual$1(input, "") ? [] : [input.slice(0, 1), input.slice(1)]; } @@ -2683,7 +2530,7 @@ function Until(end, input, result = "") { return Match$2(TakeOne(input), (One, Rest) => IsInputMatchSentinal(end, input) ? [result, input] : Until(end, Rest, `${result}${One}`), () => []); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/token/span.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/token/span.mjs function MultiLine(start, end, input) { return Match$2(Take([start], input), (_, Rest) => Match$2(Until([end], Rest), (Until, UntilRest) => Match$2(Take([end], UntilRest), (_, Rest) => [`${Until}`, Rest], () => []), () => []), () => []); } @@ -2695,7 +2542,7 @@ function Span(start, end, multiLine, input) { return multiLine ? MultiLine(start, end, Trim(input)) : SingleLine(start, end, Trim(input)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/token/string.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/token/string.mjs function TakeInitial(quotes, input) { return Take(quotes, input); } @@ -2710,13 +2557,13 @@ function String$1(quotes, input) { return TakeString(quotes, Trim(input)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/token/until_1.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/token/until_1.mjs /** Match Input until but not including End. No match if End not found or match is zero-length. */ function Until_1(end, input) { return Match$2(Until(end, input), (Until, UntilRest) => IsEqual$1(Until, "") ? [] : [Until, UntilRest], () => []); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/parser.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/parser.mjs const If = (result, left, right = () => []) => result.length === 2 ? left(result) : right(); const GenericParameterExtendsEquals = (input) => If(If(Ident(input), ([_0, input]) => If(Const("extends", input), ([_1, input]) => If(Type(input), ([_2, input]) => If(Const("=", input), ([_3, input]) => If(Type(input), ([_4, input]) => [[ _0, @@ -3084,14 +2931,14 @@ const ModuleDeclaration = (input) => If(If(ExportKeyword(input), ([_0, input]) = const Module$1 = (input) => If(If(ModuleDeclaration(input), ([_0, input]) => If(ModuleDeclarationList(input), ([_1, input]) => [[_0, _1], input])), ([_0, input]) => [ModuleMapping(_0), input]); const Script$1 = (input) => If(If(Module$1(input), ([_0, input]) => [_0, input], () => If(GenericType(input), ([_0, input]) => [_0, input], () => If(Type(input), ([_0, input]) => [_0, input], () => []))), ([_0, input]) => [ScriptMapping(_0), input]); //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/patterns/template.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/patterns/template.mjs /** Parses a Template into a TemplateLiteral types */ function ParseTemplateIntoTypes(template) { const parsed = TemplateLiteralTypes(`\`${template}\``); return IsEqual$1(parsed.length, 2) ? parsed[0] : Unreachable$1(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/template_literal/encode.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/template_literal/encode.mjs function JoinString(input) { return input.join("|"); } @@ -3142,7 +2989,7 @@ function TemplateLiteralEncode(types) { return TemplateLiteralCreate(EncodePattern(types)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/template_literal/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/template_literal/instantiate.mjs function TemplateLiteralAction(types, options) { return CanInstantiate(types) ? Update$1(TemplateLiteralEncode(types), {}, options) : TemplateLiteralDeferred(types, options); } @@ -3150,7 +2997,7 @@ function TemplateLiteralInstantiate(context, state, types, options) { return TemplateLiteralAction(InstantiateTypes(context, state, types), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/template_literal.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/template_literal.mjs /** Creates a deferred TemplateLiteral action. */ function TemplateLiteralDeferred(types, options = {}) { return Deferred("TemplateLiteral", [types], options); @@ -3174,7 +3021,7 @@ function IsTemplateLiteral(value) { return IsKind(value, "TemplateLiteral"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/result.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/result.mjs var result_exports = /* @__PURE__ */ __exportAll({ ExtendsFalse: () => ExtendsFalse, ExtendsTrue: () => ExtendsTrue, @@ -3210,7 +3057,7 @@ function Match$1(result, true_, false_) { return IsExtendsTrueLike(result) ? true_(result.inferred) : false_(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/extends_right.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/extends_right.mjs function ExtendsRightInfer(inferred, name, left, right) { return Match$1(ExtendsLeft(inferred, left, right), (checkInferred) => ExtendsTrue(Assign(Assign(inferred, checkInferred), { [name]: left })), () => ExtendsFalse()); } @@ -3236,12 +3083,12 @@ function ExtendsRight(inferred, left, right) { return IsAny(right) ? ExtendsRightAny(inferred, left) : IsDependent(right) ? ExtendsRightDependent(inferred, left, right.if, right.then, right.else) : IsEnum$1(right) ? ExtendsRightEnum(inferred, left, right.enum) : IsInfer(right) ? ExtendsRightInfer(inferred, right.name, left, right.extends) : IsIntersect(right) ? ExtendsRightIntersect(inferred, left, right.allOf) : IsTemplateLiteral(right) ? ExtendsRightTemplateLiteral(inferred, left, right.pattern) : IsUnion(right) ? ExtendsRightUnion(inferred, left, right.anyOf) : IsUnknown(right) ? ExtendsTrue(inferred) : ExtendsFalse(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/any.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/any.mjs function ExtendsAny(inferred, left, right) { return IsInfer(right) ? ExtendsRight(inferred, left, right) : IsAny(right) ? ExtendsTrue(inferred) : IsUnknown(right) ? ExtendsTrue(inferred) : ExtendsUnion$1(inferred); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/array.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/array.mjs function ExtendsImmutable(left, right) { const isImmutableLeft = IsImmutable(left); const isImmutableRight = IsImmutable(right); @@ -3251,22 +3098,17 @@ function ExtendsArray(inferred, arrayLeft, left, right) { return IsArray(right) ? ExtendsImmutable(arrayLeft, right) ? ExtendsLeft(inferred, left, right.items) : ExtendsFalse() : ExtendsRight(inferred, arrayLeft, right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/async_iterator.mjs -function ExtendsAsyncIterator(inferred, left, right) { - return IsAsyncIterator(right) ? ExtendsLeft(inferred, left, right.iteratorItems) : ExtendsRight(inferred, AsyncIterator(left), right); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/bigint.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/bigint.mjs function ExtendsBigInt(inferred, left, right) { return IsBigInt(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/boolean.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/boolean.mjs function ExtendsBoolean(inferred, left, right) { return IsBoolean(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/parameters.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/parameters.mjs function ParameterCompare(inferred, left, leftRest, right, rightRest) { const checkLeft = IsInfer(right) ? left : right; const checkRight = IsInfer(right) ? right : left; @@ -3284,47 +3126,42 @@ function ExtendsParameters(inferred, left, right) { return ParametersLeft(inferred, left, right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/return_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/return_type.mjs function ExtendsReturnType(inferred, left, right) { return IsVoid(right) ? ExtendsTrue(inferred) : ExtendsLeft(inferred, left, right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/constructor.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/constructor.mjs function ExtendsConstructor(inferred, parameters, returnType, right) { return IsAny(right) ? ExtendsTrue(inferred) : IsUnknown(right) ? ExtendsTrue(inferred) : IsConstructor(right) ? Match$1(ExtendsParameters(inferred, parameters, right["parameters"]), (inferred) => ExtendsReturnType(inferred, returnType, right["instanceType"]), () => ExtendsFalse()) : ExtendsFalse(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/dependent.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/dependent.mjs function ExtendsDependent(inferred, if_, then_, else_, right) { return Match$1(ExtendsLeft(inferred, if_, right), () => ExtendsLeft(inferred, then_, right), () => ExtendsLeft(inferred, else_, right)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/enum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/enum.mjs function ExtendsEnum(inferred, left, right) { return ExtendsLeft(inferred, EvaluateEnum(left), right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/function.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/function.mjs function ExtendsFunction(inferred, parameters, returnType, right) { return IsAny(right) ? ExtendsTrue(inferred) : IsUnknown(right) ? ExtendsTrue(inferred) : IsFunction(right) ? Match$1(ExtendsParameters(inferred, parameters, right["parameters"]), (inferred) => ExtendsReturnType(inferred, returnType, right["returnType"]), () => ExtendsFalse()) : ExtendsFalse(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/integer.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/integer.mjs function ExtendsInteger(inferred, left, right) { return IsInteger(right) ? ExtendsTrue(inferred) : IsNumber(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/intersect.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/intersect.mjs function ExtendsIntersect(inferred, left, right) { return ExtendsLeft(inferred, EvaluateIntersect(left), right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/iterator.mjs -function ExtendsIterator(inferred, left, right) { - return IsIterator(right) ? ExtendsLeft(inferred, left, right.iteratorItems) : ExtendsRight(inferred, Iterator(left), right); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/literal.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/literal.mjs function ExtendsLiteralValue(inferred, left, right) { return left === right ? ExtendsTrue(inferred) : ExtendsFalse(); } @@ -3344,22 +3181,22 @@ function ExtendsLiteral(inferred, left, right) { return IsBigInt$2(left.const) ? ExtendsLiteralBigInt(inferred, left.const, right) : IsBoolean$3(left.const) ? ExtendsLiteralBoolean(inferred, left.const, right) : IsNumber$3(left.const) ? ExtendsLiteralNumber(inferred, left.const, right) : IsString$3(left.const) ? ExtendsLiteralString(inferred, left.const, right) : Unreachable$1(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/never.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/never.mjs function ExtendsNever(inferred, left, right) { return IsInfer(right) ? ExtendsRight(inferred, left, right) : ExtendsTrue(inferred); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/null.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/null.mjs function ExtendsNull(inferred, left, right) { return IsNull(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/number.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/number.mjs function ExtendsNumber(inferred, left, right) { return IsNumber(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/object.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/object.mjs function ExtendsPropertyOptional(inferred, left, right) { return IsOptional(left) ? IsOptional(right) ? ExtendsTrue(inferred) : ExtendsFalse() : ExtendsTrue(inferred); } @@ -3406,38 +3243,33 @@ function ExtendsObject(inferred, left, right) { return IsRecord(right) ? ExtendsObjectToRecord(inferred, left, RecordPattern(right), RecordValue(right)) : IsObject(right) ? ExtendsObjectToObject(inferred, left, right.properties) : ExtendsRight(inferred, _Object_$1(left), right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/promise.mjs -function ExtendsPromise(inferred, left, right) { - return IsPromise(right) ? ExtendsLeft(inferred, left, right.item) : ExtendsRight(inferred, _Promise_(left), right); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/record.mjs -function FromObject$14(inferred, properties) { +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/record.mjs +function FromObject$13(inferred, properties) { return IsEqual$1(Keys$1(properties).length, 0) ? ExtendsTrue(inferred) : ExtendsFalse(); } function FromRecord$7(inferred, _leftKey, leftValue, _rightKey, rightValue) { return ExtendsLeft(inferred, leftValue, rightValue); } function ExtendsRecord(inferred, leftPattern, leftValue, right) { - return IsRecord(right) ? FromRecord$7(inferred, RecordPatternToType(leftPattern), leftValue, RecordPatternToType(RecordPattern(right)), RecordValue(right)) : IsObject(right) ? FromObject$14(inferred, right.properties) : IsAny(right) ? ExtendsTrue(inferred) : IsUnknown(right) ? ExtendsTrue(inferred) : ExtendsFalse(); + return IsRecord(right) ? FromRecord$7(inferred, RecordPatternToType(leftPattern), leftValue, RecordPatternToType(RecordPattern(right)), RecordValue(right)) : IsObject(right) ? FromObject$13(inferred, right.properties) : IsAny(right) ? ExtendsTrue(inferred) : IsUnknown(right) ? ExtendsTrue(inferred) : ExtendsFalse(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/string.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/string.mjs function ExtendsString(inferred, left, right) { return IsString(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/symbol.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/symbol.mjs function ExtendsSymbol(inferred, left, right) { return IsSymbol(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/template_literal.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/template_literal.mjs function ExtendsTemplateLiteral(inferred, left, right) { return ExtendsLeft(inferred, EvaluateTemplateLiteral(left), right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/inference.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/inference.mjs function Inferrable(name, type) { return Create$1({ "~kind": "Inferrable" }, { name, @@ -3465,7 +3297,7 @@ function InferUnionResult(inferred, name, left, right) { return IsArray$2(results) ? ExtendsTrue(Assign(inferred, { [name]: Union(results) })) : ExtendsFalse(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/tuple.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/tuple.mjs function Reverse(types) { return [...types].reverse(); } @@ -3503,12 +3335,12 @@ function ExtendsTuple(inferred, left, right) { return IsTuple(right) ? ExtendsTupleToTuple(inferred, instantiatedLeft, right.items) : IsArray(right) ? ExtendsTupleToArray(inferred, instantiatedLeft, right.items) : ExtendsRight(inferred, Tuple(instantiatedLeft), right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/undefined.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/undefined.mjs function ExtendsUndefined(inferred, left, right) { return IsVoid(right) ? ExtendsTrue(inferred) : IsUndefined(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/union.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/union.mjs function ExtendsUnionSome(inferred, type, unionTypes) { return ShiftLeft(unionTypes, (head, tail) => Match$1(ExtendsLeft(inferred, type, head), (inferred) => ExtendsTrue(inferred), () => ExtendsUnionSome(inferred, type, tail)), () => ExtendsFalse()); } @@ -3520,22 +3352,22 @@ function ExtendsUnion(inferred, left, right) { return IsInferable(inferrable) ? InferUnionResult(inferred, inferrable.name, left, inferrable.type) : IsUnion(right) ? ExtendsUnionLeft(inferred, left, right.anyOf) : ExtendsUnionLeft(inferred, left, [right]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/unknown.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/unknown.mjs function ExtendsUnknown(inferred, left, right) { return IsInfer(right) ? ExtendsRight(inferred, left, right) : IsAny(right) ? ExtendsTrue(inferred) : IsUnknown(right) ? ExtendsTrue(inferred) : ExtendsFalse(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/void.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/void.mjs function ExtendsVoid(inferred, left, right) { return IsVoid(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/extends_left.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/extends_left.mjs function ExtendsLeft(inferred, left, right) { - return IsAny(left) ? ExtendsAny(inferred, left, right) : IsArray(left) ? ExtendsArray(inferred, left, left.items, right) : IsAsyncIterator(left) ? ExtendsAsyncIterator(inferred, left.iteratorItems, right) : IsBigInt(left) ? ExtendsBigInt(inferred, left, right) : IsBoolean(left) ? ExtendsBoolean(inferred, left, right) : IsConstructor(left) ? ExtendsConstructor(inferred, left.parameters, left.instanceType, right) : IsDependent(left) ? ExtendsDependent(inferred, left.if, left.then, left.else, right) : IsEnum$1(left) ? ExtendsEnum(inferred, left.enum, right) : IsFunction(left) ? ExtendsFunction(inferred, left.parameters, left.returnType, right) : IsInteger(left) ? ExtendsInteger(inferred, left, right) : IsIntersect(left) ? ExtendsIntersect(inferred, left.allOf, right) : IsIterator(left) ? ExtendsIterator(inferred, left.iteratorItems, right) : IsLiteral(left) ? ExtendsLiteral(inferred, left, right) : IsNever(left) ? ExtendsNever(inferred, left, right) : IsNull(left) ? ExtendsNull(inferred, left, right) : IsNumber(left) ? ExtendsNumber(inferred, left, right) : IsObject(left) ? ExtendsObject(inferred, left.properties, right) : IsPromise(left) ? ExtendsPromise(inferred, left.item, right) : IsRecord(left) ? ExtendsRecord(inferred, RecordPattern(left), RecordValue(left), right) : IsString(left) ? ExtendsString(inferred, left, right) : IsSymbol(left) ? ExtendsSymbol(inferred, left, right) : IsTemplateLiteral(left) ? ExtendsTemplateLiteral(inferred, left.pattern, right) : IsTuple(left) ? ExtendsTuple(inferred, left.items, right) : IsUndefined(left) ? ExtendsUndefined(inferred, left, right) : IsUnion(left) ? ExtendsUnion(inferred, left.anyOf, right) : IsUnknown(left) ? ExtendsUnknown(inferred, left, right) : IsVoid(left) ? ExtendsVoid(inferred, left, right) : ExtendsFalse(); + return IsAny(left) ? ExtendsAny(inferred, left, right) : IsArray(left) ? ExtendsArray(inferred, left, left.items, right) : IsBigInt(left) ? ExtendsBigInt(inferred, left, right) : IsBoolean(left) ? ExtendsBoolean(inferred, left, right) : IsConstructor(left) ? ExtendsConstructor(inferred, left.parameters, left.instanceType, right) : IsDependent(left) ? ExtendsDependent(inferred, left.if, left.then, left.else, right) : IsEnum$1(left) ? ExtendsEnum(inferred, left.enum, right) : IsFunction(left) ? ExtendsFunction(inferred, left.parameters, left.returnType, right) : IsInteger(left) ? ExtendsInteger(inferred, left, right) : IsIntersect(left) ? ExtendsIntersect(inferred, left.allOf, right) : IsLiteral(left) ? ExtendsLiteral(inferred, left, right) : IsNever(left) ? ExtendsNever(inferred, left, right) : IsNull(left) ? ExtendsNull(inferred, left, right) : IsNumber(left) ? ExtendsNumber(inferred, left, right) : IsObject(left) ? ExtendsObject(inferred, left.properties, right) : IsRecord(left) ? ExtendsRecord(inferred, RecordPattern(left), RecordValue(left), right) : IsString(left) ? ExtendsString(inferred, left, right) : IsSymbol(left) ? ExtendsSymbol(inferred, left, right) : IsTemplateLiteral(left) ? ExtendsTemplateLiteral(inferred, left.pattern, right) : IsTuple(left) ? ExtendsTuple(inferred, left.items, right) : IsUndefined(left) ? ExtendsUndefined(inferred, left, right) : IsUnion(left) ? ExtendsUnion(inferred, left.anyOf, right) : IsUnknown(left) ? ExtendsUnknown(inferred, left, right) : IsVoid(left) ? ExtendsVoid(inferred, left, right) : ExtendsFalse(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/interface/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/interface/instantiate.mjs function InterfaceOperation(heritage, properties) { return EvaluateIntersect([...heritage, _Object_$1(properties)]); } @@ -3546,7 +3378,7 @@ function InterfaceInstantiate(context, state, heritage, properties, options) { return InterfaceAction(InstantiateTypes(context, state, heritage), InstantiateProperties(context, state, properties), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/interface.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/interface.mjs /** Creates a deferred Interface action. */ function InterfaceDeferred(heritage, properties, options = {}) { return Deferred("Interface", [heritage, properties], options); @@ -3560,7 +3392,7 @@ function Interface(heritage, properties, options = {}) { return InterfaceAction(heritage, properties, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/cyclic/check.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/cyclic/check.mjs function FromRef$9(stack, context, ref) { return stack.includes(ref) ? true : FromType$22([...stack, ref], context, context[ref]); } @@ -3571,14 +3403,14 @@ function FromTypes$4(stack, context, types) { return ShiftLeft(types, (left, right) => FromType$22(stack, context, left) ? true : FromTypes$4(stack, context, right), () => false); } function FromType$22(stack, context, type) { - return IsRef$1(type) ? FromRef$9(stack, context, type.$ref) : IsArray(type) ? FromType$22(stack, context, type.items) : IsAsyncIterator(type) ? FromType$22(stack, context, type.iteratorItems) : IsConstructor(type) ? FromTypes$4(stack, context, [...type.parameters, type.instanceType]) : IsFunction(type) ? FromTypes$4(stack, context, [...type.parameters, type.returnType]) : IsInterfaceDeferred(type) ? FromProperties$4(stack, context, type.parameters[1]) : IsIntersect(type) ? FromTypes$4(stack, context, type.allOf) : IsIterator(type) ? FromType$22(stack, context, type.iteratorItems) : IsObject(type) ? FromProperties$4(stack, context, type.properties) : IsPromise(type) ? FromType$22(stack, context, type.item) : IsUnion(type) ? FromTypes$4(stack, context, type.anyOf) : IsTuple(type) ? FromTypes$4(stack, context, type.items) : IsRecord(type) ? FromType$22(stack, context, RecordValue(type)) : false; + return IsRef$1(type) ? FromRef$9(stack, context, type.$ref) : IsArray(type) ? FromType$22(stack, context, type.items) : IsConstructor(type) ? FromTypes$4(stack, context, [...type.parameters, type.instanceType]) : IsFunction(type) ? FromTypes$4(stack, context, [...type.parameters, type.returnType]) : IsInterfaceDeferred(type) ? FromProperties$4(stack, context, type.parameters[1]) : IsIntersect(type) ? FromTypes$4(stack, context, type.allOf) : IsObject(type) ? FromProperties$4(stack, context, type.properties) : IsUnion(type) ? FromTypes$4(stack, context, type.anyOf) : IsTuple(type) ? FromTypes$4(stack, context, type.items) : IsRecord(type) ? FromType$22(stack, context, RecordValue(type)) : false; } /** Performs a cyclic check on the given type. Initial key stack can be empty, but faster if specified */ function CyclicCheck(stack, context, type) { return FromType$22(stack, context, type); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/cyclic/candidates.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/cyclic/candidates.mjs function ResolveCandidateKeys(context, keys) { return keys.reduce((result, left) => { return CyclicCheck([left], context, context[left]) ? [...result, left] : result; @@ -3589,7 +3421,7 @@ function CyclicCandidates(context) { return ResolveCandidateKeys(context, PropertyKeys(context)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/cyclic/dependencies.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/cyclic/dependencies.mjs function FromRef$8(context, ref, result) { return result.includes(ref) ? result : ref in context ? FromType$21(context, context[ref], [...result, ref]) : Unreachable$1(); } @@ -3602,14 +3434,14 @@ function FromTypes$3(context, types, result) { }, result); } function FromType$21(context, type, result) { - return IsRef$1(type) ? FromRef$8(context, type.$ref, result) : IsArray(type) ? FromType$21(context, type.items, result) : IsAsyncIterator(type) ? FromType$21(context, type.iteratorItems, result) : IsConstructor(type) ? FromTypes$3(context, [...type.parameters, type.instanceType], result) : IsFunction(type) ? FromTypes$3(context, [...type.parameters, type.returnType], result) : IsInterfaceDeferred(type) ? FromProperties$3(context, type.parameters[1], result) : IsIntersect(type) ? FromTypes$3(context, type.allOf, result) : IsIterator(type) ? FromType$21(context, type.iteratorItems, result) : IsObject(type) ? FromProperties$3(context, type.properties, result) : IsPromise(type) ? FromType$21(context, type.item, result) : IsUnion(type) ? FromTypes$3(context, type.anyOf, result) : IsTuple(type) ? FromTypes$3(context, type.items, result) : IsRecord(type) ? FromType$21(context, RecordValue(type), result) : result; + return IsRef$1(type) ? FromRef$8(context, type.$ref, result) : IsArray(type) ? FromType$21(context, type.items, result) : IsConstructor(type) ? FromTypes$3(context, [...type.parameters, type.instanceType], result) : IsFunction(type) ? FromTypes$3(context, [...type.parameters, type.returnType], result) : IsInterfaceDeferred(type) ? FromProperties$3(context, type.parameters[1], result) : IsIntersect(type) ? FromTypes$3(context, type.allOf, result) : IsObject(type) ? FromProperties$3(context, type.properties, result) : IsUnion(type) ? FromTypes$3(context, type.anyOf, result) : IsTuple(type) ? FromTypes$3(context, type.items, result) : IsRecord(type) ? FromType$21(context, RecordValue(type), result) : result; } /** Returns dependent cyclic keys for the given type. This function is used to dead-type-eliminate (DTE) for initializing TCyclic types. */ function CyclicDependencies(context, key, type) { return FromType$21(context, type, [key]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/cyclic/extends.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/cyclic/extends.mjs function FromRef$7(_ref) { return Any(); } @@ -3627,7 +3459,7 @@ function FromTypes$2(types) { }, []); } function FromType$20(type) { - return IsRef$1(type) ? FromRef$7(type.$ref) : IsArray(type) ? _Array_(FromType$20(type.items), ArrayOptions(type)) : IsAsyncIterator(type) ? AsyncIterator(FromType$20(type.iteratorItems)) : IsConstructor(type) ? Constructor(FromTypes$2(type.parameters), FromType$20(type.instanceType)) : IsFunction(type) ? _Function_$1(FromTypes$2(type.parameters), FromType$20(type.returnType)) : IsIntersect(type) ? Intersect(FromTypes$2(type.allOf)) : IsIterator(type) ? Iterator(FromType$20(type.iteratorItems)) : IsObject(type) ? _Object_$1(FromProperties$2(type.properties)) : IsPromise(type) ? _Promise_(FromType$20(type.item)) : IsRecord(type) ? Record(RecordKey(type), FromType$20(RecordValue(type))) : IsUnion(type) ? Union(FromTypes$2(type.anyOf)) : IsTuple(type) ? Tuple(FromTypes$2(type.items)) : type; + return IsRef$1(type) ? FromRef$7(type.$ref) : IsArray(type) ? _Array_(FromType$20(type.items), ArrayOptions(type)) : IsConstructor(type) ? Constructor(FromTypes$2(type.parameters), FromType$20(type.instanceType)) : IsFunction(type) ? _Function_$1(FromTypes$2(type.parameters), FromType$20(type.returnType)) : IsIntersect(type) ? Intersect(FromTypes$2(type.allOf)) : IsObject(type) ? _Object_$1(FromProperties$2(type.properties)) : IsRecord(type) ? Record(RecordKey(type), FromType$20(RecordValue(type))) : IsUnion(type) ? Union(FromTypes$2(type.anyOf)) : IsTuple(type) ? Tuple(FromTypes$2(type.items)) : type; } function CyclicAnyFromParameters(defs, ref) { return ref in defs ? FromType$20(defs[ref]) : Unknown(); @@ -3637,7 +3469,7 @@ function CyclicExtends(type) { return CyclicAnyFromParameters(type.$defs, type.$ref); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/cyclic/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/cyclic/instantiate.mjs function CyclicInterface(context, heritage, properties) { const instantiatedHeritage = InstantiateTypes(context, State([], []), heritage); const instantiatedProperties = InstantiateProperties({}, State([], []), properties); @@ -3657,7 +3489,7 @@ function InstantiateCyclic(context, ref, type) { return Cyclic(CyclicDefinitions(context, CyclicDependencies(context, ref, type)), ref); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/cyclic/target.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/cyclic/target.mjs function Resolve(defs, ref) { return ref in defs ? IsRef$1(defs[ref]) ? Resolve(defs, defs[ref].$ref) : defs[ref] : Never(); } @@ -3666,7 +3498,7 @@ function CyclicTarget(defs, ref) { return Resolve(defs, ref); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/extends.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/extends.mjs function Canonical(type) { return IsCyclic(type) ? CyclicExtends(type) : IsUnsafe(type) ? Unknown() : type; } @@ -3675,7 +3507,7 @@ function Extends(inferred, left, right) { return ExtendsLeft(inferred, Canonical(left), Canonical(right)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/evaluate/compare.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/evaluate/compare.mjs const ResultEqual = "equal"; const ResultDisjoint = "disjoint"; const ResultLeftInside = "left-inside"; @@ -3686,7 +3518,7 @@ function Compare(left, right) { return IsExtendsTrueLike(extendsCheck[0]) && IsExtendsTrueLike(extendsCheck[1]) ? ResultEqual : IsExtendsTrueLike(extendsCheck[0]) && IsExtendsFalse(extendsCheck[1]) ? ResultLeftInside : IsExtendsFalse(extendsCheck[0]) && IsExtendsTrueLike(extendsCheck[1]) ? ResultRightInside : ResultDisjoint; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/evaluate/broaden.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/evaluate/broaden.mjs function BroadFilter(type, types) { return types.filter((left) => { return Compare(type, left) === "right-inside" ? false : true; @@ -3712,7 +3544,7 @@ function Broaden(types) { return Flatten(BroadenTypes(types)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/evaluate/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/evaluate/instantiate.mjs function EvaluateAction(type, options) { return Update$1(EvaluateType(type), {}, options); } @@ -3720,7 +3552,7 @@ function EvaluateInstantiate(context, state, type, options) { return EvaluateAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/call/distribute_arguments.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/call/distribute_arguments.mjs function CollectDistributionNames(expression, result = []) { return IsDeferred(expression) && IsEqual$1(expression.action, "Conditional") ? IsRef$1(expression.parameters[0]) ? CollectDistributionNames(expression.parameters[2], CollectDistributionNames(expression.parameters[3], [...result, expression.parameters[0]["$ref"]])) : CollectDistributionNames(expression.parameters[2], CollectDistributionNames(expression.parameters[3], result)) : IsDeferred(expression) && IsEqual$1(expression.action, "Mapped") ? IsDeferred(expression.parameters[1]) && IsEqual$1(expression.parameters[1].action, "KeyOf") && IsRef$1(expression.parameters[1].parameters[0]) ? [...result, expression.parameters[1].parameters[0]["$ref"]] : result : result; } @@ -3751,7 +3583,7 @@ function DistributeArguments(parameters, arguments_, expression) { return IsDeferred(expression) && IsEqual$1(expression.action, "Conditional") ? Distribute(zippedArguments) : IsDeferred(expression) && IsEqual$1(expression.action, "Mapped") ? Distribute(zippedArguments) : [arguments_]; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/call/resolve_target.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/call/resolve_target.mjs function FromNotResolvable() { return ["(not-resolvable)", Never()]; } @@ -3772,7 +3604,7 @@ function ResolveTarget(context, target, arguments_) { return FromType$19(context, "(anonymous)", target, arguments_); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/call/resolve_arguments.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/call/resolve_arguments.mjs function AssertArgumentExtends(name, type, extends_) { if (IsInfer(type) || IsCall(type) || IsExtendsTrueLike(Extends({}, type, extends_))) return; const cause = { @@ -3799,7 +3631,7 @@ function ResolveArgumentsContext(context, state, parameters, arguments_) { return BindParameters(context, state, parameters, arguments_); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/call/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/call/instantiate.mjs function Peek(state) { return IsGreaterThan$1(state.callstack.length, 0) ? state.callstack[state.callstack.length - 1] : ""; } @@ -3826,7 +3658,7 @@ function CallInstantiate(context, state, target, arguments_) { return IsGeneric(type) ? IsTailCall(state, name) ? CallConstruct(Ref$1(name), instantiatedArguments) : CallImmediate(context, state, Ref$1(name), type.parameters, type.expression, instantiatedArguments) : CallConstruct(target, instantiatedArguments); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/call.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/call.mjs function CallConstruct(target, arguments_) { return Create$1({ ["~kind"]: "Call" }, { type: "call", @@ -3843,7 +3675,7 @@ function IsCall(value) { return IsKind(value, "Call"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/immutable/instantiate_remove.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/immutable/instantiate_remove.mjs function RemoveImmutableOperation(type) { return Discard(type, ["~immutable"]); } @@ -3854,57 +3686,32 @@ function RemoveImmutableInstantiate(context, state, type, options) { return RemoveImmutableAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/awaited.mjs -/** Creates a deferred Awaited action. */ -function AwaitedDeferred(type, options = {}) { - return Deferred("Awaited", [type], options); -} -/** -* Applies an Awaited action to a type. -* -* @deprecated This action is being removed in the next version of TypeBox. -*/ -function Awaited(type, options = {}) { - return AwaitedAction(type, options); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/awaited/instantiate.mjs -function AwaitedOperation(type) { - return IsPromise(type) ? AwaitedOperation(type.item) : type; -} -function AwaitedAction(type, options) { - return CanInstantiate([type]) ? Update$1(AwaitedOperation(type), {}, options) : AwaitedDeferred(type, options); -} -function AwaitedInstantiate(context, state, type, options) { - return AwaitedAction(InstantiateType(context, state, type), options); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/intrinsics/mapping.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/intrinsics/mapping.mjs function ApplyMapping(mapping, value) { return mapping(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/intrinsics/from_literal.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/intrinsics/from_literal.mjs function FromLiteral$4(mapping, value) { return IsString$3(value) ? Literal(ApplyMapping(mapping, value)) : Literal(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/intrinsics/from_template_literal.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/intrinsics/from_template_literal.mjs function FromTemplateLiteral$4(mapping, pattern) { return FromType$18(mapping, EvaluateTemplateLiteral(pattern)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/intrinsics/from_union.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/intrinsics/from_union.mjs function FromUnion$12(mapping, types) { return Union(types.map((type) => FromType$18(mapping, type))); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/intrinsics/from_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/intrinsics/from_type.mjs function FromType$18(mapping, type) { return IsLiteral(type) ? FromLiteral$4(mapping, type.const) : IsTemplateLiteral(type) ? FromTemplateLiteral$4(mapping, type.pattern) : IsUnion(type) ? FromUnion$12(mapping, type.anyOf) : type; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/capitalize.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/capitalize.mjs /** Creates a deferred Capitalize action. */ function CapitalizeDeferred(type, options = {}) { return Deferred("Capitalize", [type], options); @@ -3914,7 +3721,7 @@ function Capitalize(type, options = {}) { return CapitalizeAction(type, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/lowercase.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/lowercase.mjs /** Creates a deferred Lowercase action. */ function LowercaseDeferred(type, options = {}) { return Deferred("Lowercase", [type], options); @@ -3924,7 +3731,7 @@ function Lowercase(type, options = {}) { return LowercaseAction(type, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/uncapitalize.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/uncapitalize.mjs /** Creates a deferred Uncapitalize action. */ function UncapitalizeDeferred(type, options = {}) { return Deferred("Uncapitalize", [type], options); @@ -3934,7 +3741,7 @@ function Uncapitalize(type, options = {}) { return UncapitalizeAction(type, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/uppercase.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/uppercase.mjs /** Creates a deferred Uppercase action. */ function UppercaseDeferred(type, options = {}) { return Deferred("Uppercase", [type], options); @@ -3944,7 +3751,7 @@ function Uppercase(type, options = {}) { return UppercaseAction(type, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/intrinsics/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/intrinsics/instantiate.mjs const CapitalizeMapping = (input) => input[0].toUpperCase() + input.slice(1); const LowercaseMapping = (input) => input.toLowerCase(); const UncapitalizeMapping = (input) => input[0].toLowerCase() + input.slice(1); @@ -3974,7 +3781,7 @@ function UppercaseInstantiate(context, state, type, options) { return UppercaseAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/conditional.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/conditional.mjs /** Creates a deferred Conditional action. */ function ConditionalDeferred(left, right, true_, false_, options = {}) { return Deferred("Conditional", [ @@ -3989,7 +3796,7 @@ function Conditional(left, right, true_, false_, options = {}) { return ConditionalAction({}, State([], []), left, right, true_, false_, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/conditional/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/conditional/instantiate.mjs function ConditionalOperation(context, state, left, right, true_, false_) { const extendsResult = Extends(context, left, right); return IsExtendsUnion(extendsResult) ? Union([InstantiateType(extendsResult.inferred, state, true_), InstantiateType(context, state, false_)]) : IsExtendsTrue(extendsResult) ? InstantiateType(extendsResult.inferred, state, true_) : InstantiateType(context, state, false_); @@ -4001,7 +3808,7 @@ function ConditionalInstantiate(context, state, left, right, true_, false_, opti return ConditionalAction(context, state, InstantiateType(context, state, left), InstantiateType(context, state, right), true_, false_, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/constructor_parameters.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/constructor_parameters.mjs /** Creates a deferred ConstructorParameters action. */ function ConstructorParametersDeferred(type, options = {}) { return Deferred("ConstructorParameters", [type], options); @@ -4011,7 +3818,7 @@ function ConstructorParameters(type, options = {}) { return ConstructorParametersAction(type, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/constructor_parameters/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/constructor_parameters/instantiate.mjs function ConstructorParametersOperation(type) { const parameters = IsConstructor(type) ? type["parameters"] : []; return Tuple(InstantiateElements({}, State([], []), parameters)); @@ -4023,7 +3830,7 @@ function ConstructorParametersInstantiate(context, state, type, options) { return ConstructorParametersAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/exclude.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/exclude.mjs /** Creates a deferred Exclude action. */ function ExcludeDeferred(left, right, options = {}) { return Deferred("Exclude", [left, right], options); @@ -4033,7 +3840,7 @@ function Exclude(left, right, options = {}) { return ExcludeAction(left, right, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/exclude/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/exclude/instantiate.mjs function ExcludeAction(left, right, options) { return CanInstantiate([left, right]) ? Update$1(ExcludeOperation(left, right), {}, options) : ExcludeDeferred(left, right, options); } @@ -4041,7 +3848,7 @@ function ExcludeInstantiate(context, state, left, right, options) { return ExcludeAction(InstantiateType(context, state, left), InstantiateType(context, state, right), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/extract.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/extract.mjs /** Creates a deferred Extract action. */ function ExtractDeferred(left, right, options = {}) { return Deferred("Extract", [left, right], options); @@ -4051,7 +3858,7 @@ function Extract(left, right, options = {}) { return ExtractAction(left, right, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/extract/operation.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/extract/operation.mjs function ExtractType(left, right) { return IsExtendsTrueLike(Extends({}, left, right)) ? [left] : []; } @@ -4065,7 +3872,7 @@ function ExtractOperation(left, right) { return EvaluateUnion(ExtractUnion(IsUnion(evaluated) ? evaluated.anyOf : [evaluated], right)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/extract/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/extract/instantiate.mjs function ExtractAction(left, right, options) { return CanInstantiate([left, right]) ? Update$1(ExtractOperation(left, right), {}, options) : ExtractDeferred(left, right, options); } @@ -4073,7 +3880,7 @@ function ExtractInstantiate(context, state, left, right, options) { return ExtractAction(InstantiateType(context, state, left), InstantiateType(context, state, right), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/helpers/keys_to_indexer.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/helpers/keys_to_indexer.mjs function KeysToLiterals(keys) { return keys.reduce((result, left) => { return IsLiteralValue(left) ? [...result, Literal(left)] : result; @@ -4083,7 +3890,7 @@ function KeysToIndexer(keys) { return Union(KeysToLiterals(keys)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/indexed.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/indexed.mjs /** Creates a deferred Index action. */ function IndexDeferred(type, indexer, options = {}) { return Deferred("Index", [type, indexer], options); @@ -4093,17 +3900,17 @@ function Index(type, indexer_or_keys, options = {}) { return IndexAction(type, IsArray$2(indexer_or_keys) ? KeysToIndexer(indexer_or_keys) : indexer_or_keys, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/object/from_cyclic.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/object/from_cyclic.mjs function FromCyclic$10(defs, ref) { return FromType$17(CyclicTarget(defs, ref)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/object/from_dependent.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/object/from_dependent.mjs function FromDependent$4(if_, then_, else_) { return FromType$17(EvaluateDependent(if_, then_, else_)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/object/from_intersect.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/object/from_intersect.mjs function CollapseIntersectProperties(left, right) { const leftKeys = Keys$1(left).filter((key) => !HasPropertyKey$1(right, key)); const rightKeys = Keys$1(right).filter((key) => !HasPropertyKey$1(left, key)); @@ -4128,17 +3935,17 @@ function FromIntersect$10(types) { }, {}); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/object/from_object.mjs -function FromObject$13(properties) { +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/object/from_object.mjs +function FromObject$12(properties) { return properties; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/object/from_tuple.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/object/from_tuple.mjs function FromTuple$9(types) { return FromType$17(TupleToObject(Tuple(types))); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/object/from_union.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/object/from_union.mjs function CollapseUnionProperties(left, right) { return Keys$1(left).filter((key) => key in right).reduce((result, key) => { return { @@ -4154,12 +3961,12 @@ function FromUnion$11(types) { return ShiftLeft(types, (left, right) => ReduceVariants(right, FromType$17(left)), () => Unreachable$1()); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/object/from_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/object/from_type.mjs function FromType$17(type) { - return IsCyclic(type) ? FromCyclic$10(type.$defs, type.$ref) : IsDependent(type) ? FromDependent$4(type.if, type.then, type.else) : IsIntersect(type) ? FromIntersect$10(type.allOf) : IsUnion(type) ? FromUnion$11(type.anyOf) : IsTuple(type) ? FromTuple$9(type.items) : IsObject(type) ? FromObject$13(type.properties) : {}; + return IsCyclic(type) ? FromCyclic$10(type.$defs, type.$ref) : IsDependent(type) ? FromDependent$4(type.if, type.then, type.else) : IsIntersect(type) ? FromIntersect$10(type.allOf) : IsUnion(type) ? FromUnion$11(type.anyOf) : IsTuple(type) ? FromTuple$9(type.items) : IsObject(type) ? FromObject$12(type.properties) : {}; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/object/collapse.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/object/collapse.mjs /** * Collapses a type into a TObject schema. This is a lossy fast path used to * normalize arbitrary TSchema types into a TObject structure. This function is @@ -4170,14 +3977,14 @@ function CollapseToObject(type) { return _Object_$1(FromType$17(type)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/helpers/keys.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/helpers/keys.mjs const integerKeyPattern = /* @__PURE__ */ new RegExp("^(?:0|[1-9][0-9]*)$"); function ConvertToIntegerKey(value) { const normal = `${value}`; return integerKeyPattern.test(normal) ? parseInt(normal) : value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexed/from_array.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexed/from_array.mjs function NormalizeLiteral(value) { return Literal(ConvertToIntegerKey(value)); } @@ -4187,53 +3994,53 @@ function NormalizeIndexerTypes(types) { function NormalizeIndexer(type) { return IsIntersect(type) ? Intersect(NormalizeIndexerTypes(type.allOf)) : IsUnion(type) ? Union(NormalizeIndexerTypes(type.anyOf)) : IsLiteral(type) ? NormalizeLiteral(type.const) : type; } -function FromArray$10(type, indexer) { +function FromArray$9(type, indexer) { return IsExtendsTrueLike(Extends({}, NormalizeIndexer(indexer), Number$2())) ? type : IsLiteral(indexer) && IsEqual$1(indexer.const, "length") ? Number$2() : Never(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexable/from_cyclic.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexable/from_cyclic.mjs function FromCyclic$9(defs, ref) { return FromType$16(CyclicTarget(defs, ref)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexable/from_dependent.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexable/from_dependent.mjs function FromDependent$3(if_, then_, else_) { return FromType$16(EvaluateDependent(if_, then_, else_)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexable/from_enum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexable/from_enum.mjs function FromEnum$3(values) { return FromType$16(EvaluateEnum(values)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexable/from_intersect.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexable/from_intersect.mjs function FromIntersect$9(types) { return FromType$16(EvaluateIntersect(types)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexable/from_literal.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexable/from_literal.mjs function FromLiteral$3(value) { return [`${value}`]; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexable/from_template_literal.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexable/from_template_literal.mjs function FromTemplateLiteral$3(pattern) { return FromType$16(EvaluateTemplateLiteral(pattern)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexable/from_union.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexable/from_union.mjs function FromUnion$10(types) { return types.reduce((result, left) => { return [...result, ...FromType$16(left)]; }, []); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexable/from_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexable/from_type.mjs function FromType$16(type) { return IsCyclic(type) ? FromCyclic$9(type.$defs, type.$ref) : IsDependent(type) ? FromDependent$3(type.if, type.then, type.else) : IsEnum$1(type) ? FromEnum$3(type.enum) : IsIntersect(type) ? FromIntersect$9(type.allOf) : IsLiteral(type) ? FromLiteral$3(type.const) : IsTemplateLiteral(type) ? FromTemplateLiteral$3(type.pattern) : IsUnion(type) ? FromUnion$10(type.anyOf) : []; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexable/to_indexable_keys.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexable/to_indexable_keys.mjs /** * Transforms a type meant as an Indexer into string[] array which is used by Indexable types * like Index, Pick and Omit to select from property keys. This function should only be used @@ -4244,18 +4051,18 @@ function ToIndexableKeys(type) { return FromType$16(type); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/this/expand_this.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/this/expand_this.mjs function FromTypes$1(properties, types) { return types.map((type) => FromType$15(properties, type)); } function FromType$15(properties, type) { - return IsArray(type) ? _Array_(FromType$15(properties, type.items)) : IsAsyncIterator(type) ? AsyncIterator(FromType$15(properties, type.iteratorItems)) : IsConstructor(type) ? Constructor(FromTypes$1(properties, type.parameters), FromType$15(properties, type.instanceType)) : IsFunction(type) ? _Function_$1(FromTypes$1(properties, type.parameters), FromType$15(properties, type.returnType)) : IsIterator(type) ? Iterator(FromType$15(properties, type.iteratorItems)) : IsPromise(type) ? _Promise_(FromType$15(properties, type.item)) : IsTuple(type) ? Tuple(FromTypes$1(properties, type.items)) : IsUnion(type) ? Union(FromTypes$1(properties, type.anyOf)) : IsIntersect(type) ? Intersect(FromTypes$1(properties, type.allOf)) : IsThis(type) ? _Object_$1(properties) : type; + return IsArray(type) ? _Array_(FromType$15(properties, type.items)) : IsConstructor(type) ? Constructor(FromTypes$1(properties, type.parameters), FromType$15(properties, type.instanceType)) : IsFunction(type) ? _Function_$1(FromTypes$1(properties, type.parameters), FromType$15(properties, type.returnType)) : IsTuple(type) ? Tuple(FromTypes$1(properties, type.items)) : IsUnion(type) ? Union(FromTypes$1(properties, type.anyOf)) : IsIntersect(type) ? Intersect(FromTypes$1(properties, type.allOf)) : IsThis(type) ? _Object_$1(properties) : type; } function ExpandThis(properties, type) { return FromType$15(properties, type); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexed/from_object.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexed/from_object.mjs function IndexProperty(properties, key) { return ExpandThis(properties, key in properties ? properties[key] : Never()); } @@ -4274,11 +4081,11 @@ function NumericKeys(keys) { function FromIndexerNumber(properties) { return EvaluateUnion(IndexProperties(properties, NumericKeys(PropertyKeys(properties)))); } -function FromObject$12(properties, indexer) { +function FromObject$11(properties, indexer) { return IsNumber(indexer) ? FromIndexerNumber(properties) : FromIndexer(properties, indexer); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexed/array_indexer.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexed/array_indexer.mjs function ConvertLiteral(value) { return Literal(ConvertToIntegerKey(value)); } @@ -4290,7 +4097,7 @@ function FormatArrayIndexer(type) { return IsIntersect(type) ? Intersect(ArrayIndexerTypes(type.allOf)) : IsUnion(type) ? Union(ArrayIndexerTypes(type.anyOf)) : IsLiteral(type) ? ConvertLiteral(type.const) : type; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexed/from_tuple.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexed/from_tuple.mjs function IndexElementsWithIndexer(types, indexer) { return types.reduceRight((result, right, index) => { return IsExtendsTrueLike(Extends({}, Literal(index), indexer)) ? [right, ...result] : result; @@ -4306,12 +4113,12 @@ function FromTuple$8(types, indexer) { return IsLiteral(indexer) && IsEqual$1(indexer.const, "length") ? Literal(types.length) : IsNumber(indexer) || IsInteger(indexer) ? FromTupleWithoutIndexer(types) : FromTupleWithIndexer(types, indexer); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexed/from_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexed/from_type.mjs function FromType$14(type, indexer) { - return IsArray(type) ? FromArray$10(type.items, indexer) : IsObject(type) ? FromObject$12(type.properties, indexer) : IsTuple(type) ? FromTuple$8(type.items, indexer) : Never(); + return IsArray(type) ? FromArray$9(type.items, indexer) : IsObject(type) ? FromObject$11(type.properties, indexer) : IsTuple(type) ? FromTuple$8(type.items, indexer) : Never(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexed/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexed/instantiate.mjs function NormalizeType$1(type) { return IsCyclic(type) || IsDependent(type) || IsIntersect(type) || IsUnion(type) ? CollapseToObject(type) : type; } @@ -4322,7 +4129,7 @@ function IndexInstantiate(context, state, type, indexer, options) { return IndexAction(InstantiateType(context, state, type), InstantiateType(context, state, indexer), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/instance_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/instance_type.mjs /** Creates a deferred InstanceType action. */ function InstanceTypeDeferred(type, options = {}) { return Deferred("InstanceType", [type], options); @@ -4332,7 +4139,7 @@ function InstanceType(type, options = {}) { return InstanceTypeAction(type, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/instance_type/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/instance_type/instantiate.mjs function InstanceTypeOperation(type) { return IsConstructor(type) ? type["instanceType"] : Never(); } @@ -4343,7 +4150,7 @@ function InstanceTypeInstantiate(context, state, type, options = {}) { return InstanceTypeAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/keyof.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/keyof.mjs /** Creates a deferred KeyOf action. */ function KeyOfDeferred(type, options = {}) { return Deferred("KeyOf", [type], options); @@ -4353,7 +4160,7 @@ function KeyOf(type, options = {}) { return KeyOfAction(type, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/keyof/from_any.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/keyof/from_any.mjs function FromAny() { return Union([ Number$2(), @@ -4362,37 +4169,37 @@ function FromAny() { ]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/keyof/from_array.mjs -function FromArray$9(_type) { +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/keyof/from_array.mjs +function FromArray$8(_type) { return Number$2(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/keyof/from_object.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/keyof/from_object.mjs function FromPropertyKeys(keys) { return keys.reduce((result, left) => { return IsLiteralValue(left) ? [...result, Literal(ConvertToIntegerKey(left))] : Unreachable$1(); }, []); } -function FromObject$11(properties) { +function FromObject$10(properties) { return EvaluateUnionFast(FromPropertyKeys(Keys$1(properties))); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/keyof/from_record.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/keyof/from_record.mjs function FromRecord$6(type) { return RecordKey(type); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/keyof/from_tuple.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/keyof/from_tuple.mjs function FromTuple$7(types) { return EvaluateUnionFast(types.map((_, index) => Literal(index))); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/keyof/from_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/keyof/from_type.mjs function FromType$13(type) { - return IsAny(type) ? FromAny() : IsArray(type) ? FromArray$9(type.items) : IsObject(type) ? FromObject$11(type.properties) : IsRecord(type) ? FromRecord$6(type) : IsTuple(type) ? FromTuple$7(type.items) : Never(); + return IsAny(type) ? FromAny() : IsArray(type) ? FromArray$8(type.items) : IsObject(type) ? FromObject$10(type.properties) : IsRecord(type) ? FromRecord$6(type) : IsTuple(type) ? FromTuple$7(type.items) : Never(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/keyof/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/keyof/instantiate.mjs function NormalizeType(type) { return IsCyclic(type) || IsDependent(type) || IsIntersect(type) || IsUnion(type) ? CollapseToObject(type) : type; } @@ -4403,7 +4210,7 @@ function KeyOfInstantiate(context, state, type, options) { return KeyOfAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/mapped.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/mapped.mjs /** Creates a deferred Mapped action. */ function MappedDeferred(identifier, type, as, property, options = {}) { return Deferred("Mapped", [ @@ -4418,7 +4225,7 @@ function Mapped(identifier, type, as, property, options = {}) { return MappedAction({}, State([], []), identifier, type, as, property, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/mapped/mapped_variants.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/mapped/mapped_variants.mjs function FromTemplateLiteral$2(pattern) { return FromType$12(EvaluateTemplateLiteral(pattern)); } @@ -4440,7 +4247,7 @@ function MappedVariants(type) { return FromType$12(type); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/mapped/mapped_operation.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/mapped/mapped_operation.mjs function CanonicalAs(instantiatedAs) { return IsTemplateLiteral(instantiatedAs) ? EvaluateTemplateLiteral(instantiatedAs.pattern) : instantiatedAs; } @@ -4464,7 +4271,7 @@ function MappedOperation(context, state, identifier, type, as, property) { return EvaluateIntersect(MappedObjects(MappedProperties(context, state, identifier, MappedVariants(type), as, property))); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/mapped/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/mapped/instantiate.mjs function MappedAction(context, state, identifier, type, as, property, options) { return CanInstantiate([type]) ? Update$1(MappedOperation(context, state, identifier, type, as, property), {}, options) : MappedDeferred(identifier, type, as, property, options); } @@ -4472,7 +4279,7 @@ function MappedInstantiate(context, state, identifier, type, as, property, optio return MappedAction(context, state, identifier, InstantiateType(context, state, type), as, property, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/module/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/module/instantiate.mjs function InstantiateCyclics(context, declarations, cyclicKeys) { const declarationContext = Assign(context, declarations); return Keys$1(declarations).filter((key) => cyclicKeys.includes(key)).reduce((result, key) => { @@ -4504,7 +4311,7 @@ function ModuleInstantiate(context, _state, declarations, options) { return InstantiateModule(context, declarations, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/non_nullable.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/non_nullable.mjs /** Creates a deferred NonNullable action. */ function NonNullableDeferred(type, options = {}) { return Deferred("NonNullable", [type], options); @@ -4514,7 +4321,7 @@ function NonNullable(type, options = {}) { return NonNullableAction(type, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/non_nullable/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/non_nullable/instantiate.mjs function NonNullableOperation(type) { return ExcludeAction(type, Union([Null(), Undefined()]), {}); } @@ -4525,7 +4332,7 @@ function NonNullableInstantiate(context, state, type, options) { return NonNullableAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/omit.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/omit.mjs /** Creates a deferred Omit action. */ function OmitDeferred(type, indexer, options = {}) { return Deferred("Omit", [type, indexer], options); @@ -4535,14 +4342,14 @@ function Omit(type, indexer_or_keys, options = {}) { return OmitAction(type, IsArray$2(indexer_or_keys) ? KeysToIndexer(indexer_or_keys) : indexer_or_keys, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexable/to_indexable.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexable/to_indexable.mjs /** Transforms a type into a TProperties used for indexing operations */ function ToIndexable(type) { const collapsed = CollapseToObject(type); return IsObject(collapsed) ? collapsed.properties : Unreachable$1(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/omit/from_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/omit/from_type.mjs function FromKeys$1(properties, keys) { return Keys$1(properties).reduce((result, key) => { return keys.includes(key) ? result : { @@ -4555,7 +4362,7 @@ function FromType$11(type, indexer) { return _Object_$1(FromKeys$1(ToIndexable(type), ToIndexableKeys(indexer))); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/omit/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/omit/instantiate.mjs function OmitAction(type, indexer, options) { return CanInstantiate([type, indexer]) ? Update$1(FromType$11(type, indexer), {}, options) : OmitDeferred(type, indexer, options); } @@ -4563,7 +4370,7 @@ function OmitInstantiate(context, state, type, indexer, options) { return OmitAction(InstantiateType(context, state, type), InstantiateType(context, state, indexer), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/parameters.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/parameters.mjs /** Creates a deferred Parameters action. */ function ParametersDeferred(type, options = {}) { return Deferred("Parameters", [type], options); @@ -4573,7 +4380,7 @@ function Parameters(type, options = {}) { return ParametersAction(type, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/parameters/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/parameters/instantiate.mjs function ParametersOperation(type) { const parameters = IsFunction(type) ? type["parameters"] : []; return Tuple(InstantiateElements({}, State([], []), parameters)); @@ -4585,7 +4392,7 @@ function ParametersInstantiate(context, state, type, options) { return ParametersAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/partial.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/partial.mjs /** Creates a deferred Partial action. */ function PartialDeferred(type, options = {}) { return Deferred("Partial", [type], options); @@ -4595,29 +4402,29 @@ function Partial(type, options = {}) { return PartialAction(type, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/partial/from_cyclic.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/partial/from_cyclic.mjs function FromCyclic$8(defs, ref) { const partial = FromType$10(CyclicTarget(defs, ref)); return Cyclic(Assign(defs, { [ref]: partial }), ref); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/partial/from_dependent.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/partial/from_dependent.mjs function FromDependent$2(if_, then_, else_) { return FromType$10(EvaluateDependent(if_, then_, else_)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/partial/from_intersect.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/partial/from_intersect.mjs function FromIntersect$8(types) { return FromType$10(EvaluateIntersect(types)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/partial/from_union.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/partial/from_union.mjs function FromUnion$8(types) { return Union(types.map((type) => FromType$10(type))); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/partial/from_object.mjs -function FromObject$10(properties) { +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/partial/from_object.mjs +function FromObject$9(properties) { return _Object_$1(Keys$1(properties).reduce((result, left) => { return { ...result, @@ -4626,12 +4433,12 @@ function FromObject$10(properties) { }, {})); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/partial/from_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/partial/from_type.mjs function FromType$10(type) { - return IsCyclic(type) ? FromCyclic$8(type.$defs, type.$ref) : IsDependent(type) ? FromDependent$2(type.if, type.then, type.else) : IsIntersect(type) ? FromIntersect$8(type.allOf) : IsUnion(type) ? FromUnion$8(type.anyOf) : IsObject(type) ? FromObject$10(type.properties) : _Object_$1({}); + return IsCyclic(type) ? FromCyclic$8(type.$defs, type.$ref) : IsDependent(type) ? FromDependent$2(type.if, type.then, type.else) : IsIntersect(type) ? FromIntersect$8(type.allOf) : IsUnion(type) ? FromUnion$8(type.anyOf) : IsObject(type) ? FromObject$9(type.properties) : _Object_$1({}); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/partial/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/partial/instantiate.mjs function PartialAction(type, options) { return CanInstantiate([type]) ? Update$1(FromType$10(type), {}, options) : PartialDeferred(type, options); } @@ -4639,7 +4446,7 @@ function PartialInstantiate(context, state, type, options) { return PartialAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/pick.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/pick.mjs /** Creates a deferred Pick action. */ function PickDeferred(type, indexer, options = {}) { return Deferred("Pick", [type, indexer], options); @@ -4649,7 +4456,7 @@ function Pick(type, indexer_or_keys, options = {}) { return PickAction(type, IsArray$2(indexer_or_keys) ? KeysToIndexer(indexer_or_keys) : indexer_or_keys, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/pick/from_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/pick/from_type.mjs function FromKeys(properties, keys) { return Keys$1(properties).reduce((result, key) => { return keys.includes(key) ? Assign(result, { [key]: properties[key] }) : result; @@ -4659,7 +4466,7 @@ function FromType$9(type, indexer) { return _Object_$1(FromKeys(ToIndexable(type), ToIndexableKeys(indexer))); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/pick/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/pick/instantiate.mjs function PickAction(type, indexer, options) { return CanInstantiate([type, indexer]) ? Update$1(FromType$9(type, indexer), {}, options) : PickDeferred(type, indexer, options); } @@ -4667,7 +4474,7 @@ function PickInstantiate(context, state, type, indexer, options) { return PickAction(InstantiateType(context, state, type), InstantiateType(context, state, indexer), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/readonly_object.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/readonly_object.mjs /** Creates a deferred ReadonlyType action. */ function ReadonlyObjectDeferred(type, options = {}) { return Deferred("ReadonlyObject", [type], options); @@ -4676,35 +4483,30 @@ function ReadonlyObjectDeferred(type, options = {}) { function ReadonlyObject(type, options = {}) { return ReadonlyObjectAction(type, options); } -/** -* This type has been renamed to ReadonlyObject. -* @deprecated -*/ -const ReadonlyType = ReadonlyObject; //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/readonly_object/from_array.mjs -function FromArray$8(type) { +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/readonly_object/from_array.mjs +function FromArray$7(type) { return AddImmutable(_Array_(type)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/readonly_object/from_cyclic.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/readonly_object/from_cyclic.mjs function FromCyclic$7(defs, ref) { const partial = FromType$8(CyclicTarget(defs, ref)); return Cyclic(Assign(defs, { [ref]: partial }), ref); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/readonly_object/from_dependent.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/readonly_object/from_dependent.mjs function FromDependent$1(if_, then_, else_) { return FromType$8(EvaluateDependent(if_, then_, else_)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/readonly_object/from_intersect.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/readonly_object/from_intersect.mjs function FromIntersect$7(types) { return FromType$8(EvaluateIntersect(types)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/readonly_object/from_object.mjs -function FromObject$9(properties) { +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/readonly_object/from_object.mjs +function FromObject$8(properties) { return _Object_$1(Keys$1(properties).reduce((result, left) => { return { ...result, @@ -4713,22 +4515,22 @@ function FromObject$9(properties) { }, {})); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/readonly_object/from_tuple.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/readonly_object/from_tuple.mjs function FromTuple$6(types) { return AddImmutable(Tuple(types)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/readonly_object/from_union.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/readonly_object/from_union.mjs function FromUnion$7(types) { return Union(types.map((type) => FromType$8(type))); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/readonly_object/from_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/readonly_object/from_type.mjs function FromType$8(type) { - return IsArray(type) ? FromArray$8(type.items) : IsCyclic(type) ? FromCyclic$7(type.$defs, type.$ref) : IsDependent(type) ? FromDependent$1(type.if, type.then, type.else) : IsIntersect(type) ? FromIntersect$7(type.allOf) : IsObject(type) ? FromObject$9(type.properties) : IsTuple(type) ? FromTuple$6(type.items) : IsUnion(type) ? FromUnion$7(type.anyOf) : type; + return IsArray(type) ? FromArray$7(type.items) : IsCyclic(type) ? FromCyclic$7(type.$defs, type.$ref) : IsDependent(type) ? FromDependent$1(type.if, type.then, type.else) : IsIntersect(type) ? FromIntersect$7(type.allOf) : IsObject(type) ? FromObject$8(type.properties) : IsTuple(type) ? FromTuple$6(type.items) : IsUnion(type) ? FromUnion$7(type.anyOf) : type; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/readonly_object/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/readonly_object/instantiate.mjs function ReadonlyObjectAction(type, options) { return CanInstantiate([type]) ? Update$1(FromType$8(type), {}, options) : ReadonlyObjectDeferred(type); } @@ -4736,34 +4538,34 @@ function ReadonlyObjectInstantiate(context, state, type, options) { return ReadonlyObjectAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/ref/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/ref/instantiate.mjs function RefInstantiate(context, state, type, ref) { return state.visited.includes(ref) ? type : ref in context ? InstantiateType(context, State(state["callstack"], [...state["visited"], ref]), context[ref]) : type; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/required/from_cyclic.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/required/from_cyclic.mjs function FromCyclic$6(defs, ref) { const partial = FromType$7(CyclicTarget(defs, ref)); return Cyclic(Assign(defs, { [ref]: partial }), ref); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/required/from_dependent.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/required/from_dependent.mjs function FromDependent(if_, then_, else_) { return FromType$7(EvaluateDependent(if_, then_, else_)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/required/from_intersect.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/required/from_intersect.mjs function FromIntersect$6(types) { return FromType$7(EvaluateIntersect(types)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/required/from_union.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/required/from_union.mjs function FromUnion$6(types) { return Union(types.map((type) => FromType$7(type))); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/required/from_object.mjs -function FromObject$8(properties) { +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/required/from_object.mjs +function FromObject$7(properties) { return _Object_$1(Keys$1(properties).reduce((result, left) => { return { ...result, @@ -4772,12 +4574,12 @@ function FromObject$8(properties) { }, {})); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/required/from_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/required/from_type.mjs function FromType$7(type) { - return IsCyclic(type) ? FromCyclic$6(type.$defs, type.$ref) : IsDependent(type) ? FromDependent(type.if, type.then, type.else) : IsIntersect(type) ? FromIntersect$6(type.allOf) : IsUnion(type) ? FromUnion$6(type.anyOf) : IsObject(type) ? FromObject$8(type.properties) : _Object_$1({}); + return IsCyclic(type) ? FromCyclic$6(type.$defs, type.$ref) : IsDependent(type) ? FromDependent(type.if, type.then, type.else) : IsIntersect(type) ? FromIntersect$6(type.allOf) : IsUnion(type) ? FromUnion$6(type.anyOf) : IsObject(type) ? FromObject$7(type.properties) : _Object_$1({}); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/required.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/required.mjs /** Creates a deferred Required action. */ function RequiredDeferred(type, options = {}) { return Deferred("Required", [type], options); @@ -4787,7 +4589,7 @@ function Required(type, options = {}) { return RequiredAction(type, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/required/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/required/instantiate.mjs function RequiredAction(type, options) { return CanInstantiate([type]) ? Update$1(FromType$7(type), {}, options) : RequiredDeferred(type, options); } @@ -4795,7 +4597,7 @@ function RequiredInstantiate(context, state, type, options) { return RequiredAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/return_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/return_type.mjs /** Creates a deferred ReturnType action. */ function ReturnTypeDeferred(type, options = {}) { return Deferred("ReturnType", [type], options); @@ -4805,7 +4607,7 @@ function ReturnType(type, options = {}) { return ReturnTypeAction(type, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/return_type/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/return_type/instantiate.mjs function ReturnTypeOperation(type) { return IsFunction(type) ? type["returnType"] : Never(); } @@ -4816,7 +4618,7 @@ function ReturnTypeInstantiate(context, state, type, options = {}) { return ReturnTypeAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/with.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/with.mjs /** Creates a deferred With action. */ function WithDeferred(type, options) { return Deferred("With", [type, options], {}); @@ -4825,15 +4627,8 @@ function WithDeferred(type, options) { function With(type, options) { return WithAction(type, options); } -/** -* @deprecated Type.Options\ has been renamed to Type.With\. This type will be removed in the -* next version of TypeBox. -*/ -function Options(type, options) { - return With(type, options); -} //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/with/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/with/instantiate.mjs function WithAction(type, options) { return CanInstantiate([type]) ? Update$1(type, {}, options) : WithDeferred(type, options); } @@ -4841,7 +4636,7 @@ function WithInstantiate(context, state, type, options) { return WithAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/rest/spread.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/rest/spread.mjs function SpreadElement(type) { return IsRest(type) ? IsTuple(type.items) ? RestSpread(type.items.items) : IsInfer(type.items) ? [type] : IsRef$1(type.items) ? [type] : [Never()] : [type]; } @@ -4851,7 +4646,7 @@ function RestSpread(types) { }, []); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/instantiate.mjs function State(callstack, visited) { return { callstack, @@ -4875,28 +4670,26 @@ function InstantiateElements(context, state, types) { function InstantiateTypes(context, state, types) { return types.map((type) => InstantiateType(context, state, type)); } +function WithModifiers(type, instantiatedType) { + const withOptional = IsOptional(type) ? AddOptionalAction(instantiatedType, {}) : instantiatedType; + const withReadonly = IsReadonly(type) ? AddReadonlyAction(withOptional, {}) : withOptional; + return IsImmutable(type) ? AddImmutableAction(withReadonly, {}) : withReadonly; +} function InstantiateDeferred(context, state, action, parameters, options) { - return IsEqual$1(action, "AddImmutable") ? AddImmutableInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "RemoveImmutable") ? RemoveImmutableInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "AddReadonly") ? AddReadonlyInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "RemoveReadonly") ? RemoveReadonlyInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "AddOptional") ? AddOptionalInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "RemoveOptional") ? RemoveOptionalInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "Awaited") ? AwaitedInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "Capitalize") ? CapitalizeInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "Conditional") ? ConditionalInstantiate(context, state, parameters[0], parameters[1], parameters[2], parameters[3], options) : IsEqual$1(action, "ConstructorParameters") ? ConstructorParametersInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "Evaluate") ? EvaluateInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "Exclude") ? ExcludeInstantiate(context, state, parameters[0], parameters[1], options) : IsEqual$1(action, "Extract") ? ExtractInstantiate(context, state, parameters[0], parameters[1], options) : IsEqual$1(action, "Index") ? IndexInstantiate(context, state, parameters[0], parameters[1], options) : IsEqual$1(action, "InstanceType") ? InstanceTypeInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "Interface") ? InterfaceInstantiate(context, state, parameters[0], parameters[1], options) : IsEqual$1(action, "KeyOf") ? KeyOfInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "Lowercase") ? LowercaseInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "Mapped") ? MappedInstantiate(context, state, parameters[0], parameters[1], parameters[2], parameters[3], options) : IsEqual$1(action, "Module") ? ModuleInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "NonNullable") ? NonNullableInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "Pick") ? PickInstantiate(context, state, parameters[0], parameters[1], options) : IsEqual$1(action, "Parameters") ? ParametersInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "Partial") ? PartialInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "Omit") ? OmitInstantiate(context, state, parameters[0], parameters[1], options) : IsEqual$1(action, "ReadonlyObject") ? ReadonlyObjectInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "Record") ? RecordInstantiate(context, state, parameters[0], parameters[1], options) : IsEqual$1(action, "Required") ? RequiredInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "ReturnType") ? ReturnTypeInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "TemplateLiteral") ? TemplateLiteralInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "Uncapitalize") ? UncapitalizeInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "Uppercase") ? UppercaseInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "With") ? WithInstantiate(context, state, parameters[0], parameters[1]) : Deferred(action, parameters, options); + return IsEqual$1(action, "AddImmutable") ? AddImmutableInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "RemoveImmutable") ? RemoveImmutableInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "AddReadonly") ? AddReadonlyInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "RemoveReadonly") ? RemoveReadonlyInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "AddOptional") ? AddOptionalInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "RemoveOptional") ? RemoveOptionalInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "Capitalize") ? CapitalizeInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "Conditional") ? ConditionalInstantiate(context, state, parameters[0], parameters[1], parameters[2], parameters[3], options) : IsEqual$1(action, "ConstructorParameters") ? ConstructorParametersInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "Evaluate") ? EvaluateInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "Exclude") ? ExcludeInstantiate(context, state, parameters[0], parameters[1], options) : IsEqual$1(action, "Extract") ? ExtractInstantiate(context, state, parameters[0], parameters[1], options) : IsEqual$1(action, "Index") ? IndexInstantiate(context, state, parameters[0], parameters[1], options) : IsEqual$1(action, "InstanceType") ? InstanceTypeInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "Interface") ? InterfaceInstantiate(context, state, parameters[0], parameters[1], options) : IsEqual$1(action, "KeyOf") ? KeyOfInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "Lowercase") ? LowercaseInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "Mapped") ? MappedInstantiate(context, state, parameters[0], parameters[1], parameters[2], parameters[3], options) : IsEqual$1(action, "Module") ? ModuleInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "NonNullable") ? NonNullableInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "Pick") ? PickInstantiate(context, state, parameters[0], parameters[1], options) : IsEqual$1(action, "Parameters") ? ParametersInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "Partial") ? PartialInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "Omit") ? OmitInstantiate(context, state, parameters[0], parameters[1], options) : IsEqual$1(action, "ReadonlyObject") ? ReadonlyObjectInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "Record") ? RecordInstantiate(context, state, parameters[0], parameters[1], options) : IsEqual$1(action, "Required") ? RequiredInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "ReturnType") ? ReturnTypeInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "TemplateLiteral") ? TemplateLiteralInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "Uncapitalize") ? UncapitalizeInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "Uppercase") ? UppercaseInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "With") ? WithInstantiate(context, state, parameters[0], parameters[1]) : Deferred(action, parameters, options); } function InstantiateImmediate(context, state, type) { - type = IsBase(type) ? type.Clone() : type; - return IsRef$1(type) ? RefInstantiate(context, state, type, type.$ref) : IsArray(type) ? _Array_(InstantiateType(context, state, type.items), ArrayOptions(type)) : IsAsyncIterator(type) ? AsyncIterator(InstantiateType(context, state, type.iteratorItems), AsyncIteratorOptions(type)) : IsCall(type) ? CallInstantiate(context, state, type.target, type.arguments) : IsConstructor(type) ? Constructor(InstantiateTypes(context, state, type.parameters), InstantiateType(context, state, type.instanceType), ConstructorOptions(type)) : IsDeferred(type) ? InstantiateDeferred(context, state, type.action, type.parameters, type.options) : IsFunction(type) ? _Function_$1(InstantiateTypes(context, state, type.parameters), InstantiateType(context, state, type.returnType), FunctionOptions(type)) : IsDependent(type) ? Dependent$1(InstantiateType(context, state, type.if), InstantiateType(context, state, type.then), InstantiateType(context, state, type.else), DependentOptions(type)) : IsIntersect(type) ? Intersect(InstantiateTypes(context, state, type.allOf), IntersectOptions(type)) : IsIterator(type) ? Iterator(InstantiateType(context, state, type.iteratorItems), IteratorOptions(type)) : IsObject(type) ? _Object_$1(InstantiateProperties(context, state, type.properties), ObjectOptions(type)) : IsPromise(type) ? _Promise_(InstantiateType(context, state, type.item), PromiseOptions(type)) : IsRecord(type) ? RecordFromPattern(RecordPattern(type), InstantiateType(context, state, RecordValue(type))) : IsRest(type) ? Rest(InstantiateType(context, state, type.items)) : IsTuple(type) ? Tuple(InstantiateElements(context, state, type.items), TupleOptions(type)) : IsUnion(type) ? Union(InstantiateTypes(context, state, type.anyOf), UnionOptions(type)) : type; -} -function WithModifiers(type, instantiatedType) { - const withImmutable = IsImmutable(type) ? Immutable(instantiatedType) : instantiatedType; - const withReadonly = IsReadonly(type) ? Readonly$1(withImmutable) : withImmutable; - return IsOptional(type) ? Optional$2(withReadonly) : withReadonly; + return WithModifiers(type, IsRef$1(type) ? RefInstantiate(context, state, type, type.$ref) : IsArray(type) ? _Array_(InstantiateType(context, state, type.items), ArrayOptions(type)) : IsCall(type) ? CallInstantiate(context, state, type.target, type.arguments) : IsConstructor(type) ? Constructor(InstantiateTypes(context, state, type.parameters), InstantiateType(context, state, type.instanceType), ConstructorOptions(type)) : IsFunction(type) ? _Function_$1(InstantiateTypes(context, state, type.parameters), InstantiateType(context, state, type.returnType), FunctionOptions(type)) : IsDependent(type) ? Dependent$1(InstantiateType(context, state, type.if), InstantiateType(context, state, type.then), InstantiateType(context, state, type.else), DependentOptions(type)) : IsIntersect(type) ? Intersect(InstantiateTypes(context, state, type.allOf), IntersectOptions(type)) : IsObject(type) ? _Object_$1(InstantiateProperties(context, state, type.properties), ObjectOptions(type)) : IsRecord(type) ? RecordFromPattern(RecordPattern(type), InstantiateType(context, state, RecordValue(type))) : IsRest(type) ? Rest(InstantiateType(context, state, type.items)) : IsTuple(type) ? Tuple(InstantiateElements(context, state, type.items), TupleOptions(type)) : IsUnion(type) ? Union(InstantiateTypes(context, state, type.anyOf), UnionOptions(type)) : type); } function InstantiateType(context, state, type) { - const instantiatedType = InstantiateImmediate(context, state, type); - return IsDeferred(type) ? instantiatedType : WithModifiers(type, instantiatedType); + return IsDeferred(type) ? InstantiateDeferred(context, state, type.action, type.parameters, type.options) : InstantiateImmediate(context, state, type); } /** Instantiates computed schematics using the given context and type. */ function Instantiate(context, type) { return InstantiateType(context, State([], []), type); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/immutable/instantiate_add.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/immutable/instantiate_add.mjs function AddImmutableOperation(type) { return Update$1(type, { "~immutable": true }, {}); } @@ -4907,7 +4700,7 @@ function AddImmutableInstantiate(context, state, type, options) { return AddImmutableAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/_add_immutable.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/_add_immutable.mjs /** Creates a deferred AddImmutable action. */ function AddImmutableDeferred(type, options = {}) { return Deferred("AddImmutable", [type], options); @@ -4917,7 +4710,7 @@ function AddImmutable(type, options = {}) { return AddImmutableAction(type, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/evaluate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/evaluate.mjs /** Creates a deferred Evaluate action. */ function EvaluateDeferred(type, options = {}) { return Deferred("Evaluate", [type], options); @@ -4927,7 +4720,7 @@ function Evaluate(type, options = {}) { return EvaluateAction(type, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/module.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/module.mjs /** Creates a deferred Module action. */ function ModuleDeferred(declarations, options = {}) { return Deferred("Module", [declarations], options); @@ -4937,7 +4730,7 @@ function Module(declarations, options = {}) { return ModuleInstantiate({}, State([], []), declarations, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/priority/priority.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/priority/priority.mjs function Comparer(left, right) { const compareResult = Compare(left, right); return IsEqual$1(compareResult, "right-inside") ? 1 : IsEqual$1(compareResult, "disjoint") ? 1 : 0; @@ -4962,7 +4755,7 @@ function Priority(types) { return Sort(types); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/script.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/script.mjs /** Parses a type from a TypeScript type expression */ function Script(...args) { const [context, input, options] = Match$3(args, { @@ -4990,13 +4783,10 @@ function Script(...args) { return Update$1(IsArray$2(result) && IsEqual$1(result.length, 2) ? InstantiateType(context, State([], []), result[0]) : Never(), {}, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/index.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/index.mjs var build_default = /* @__PURE__ */ __exportAll({ Any: () => Any, Array: () => _Array_, - AsyncIterator: () => AsyncIterator, - Awaited: () => Awaited, - Base: () => Base$1, BigInt: () => BigInt$2, Boolean: () => Boolean$1, Call: () => Call, @@ -5030,8 +4820,6 @@ var build_default = /* @__PURE__ */ __exportAll({ Intersect: () => Intersect, IsAny: () => IsAny, IsArray: () => IsArray, - IsAsyncIterator: () => IsAsyncIterator, - IsBase: () => IsBase, IsBigInt: () => IsBigInt, IsBoolean: () => IsBoolean, IsCall: () => IsCall, @@ -5047,7 +4835,6 @@ var build_default = /* @__PURE__ */ __exportAll({ IsInfer: () => IsInfer, IsInteger: () => IsInteger, IsIntersect: () => IsIntersect, - IsIterator: () => IsIterator, IsKind: () => IsKind, IsLiteral: () => IsLiteral, IsNever: () => IsNever, @@ -5056,7 +4843,6 @@ var build_default = /* @__PURE__ */ __exportAll({ IsObject: () => IsObject, IsOptional: () => IsOptional, IsParameter: () => IsParameter, - IsPromise: () => IsPromise, IsReadonly: () => IsReadonly, IsRecord: () => IsRecord, IsRef: () => IsRef$1, @@ -5073,7 +4859,6 @@ var build_default = /* @__PURE__ */ __exportAll({ IsUnknown: () => IsUnknown, IsUnsafe: () => IsUnsafe, IsVoid: () => IsVoid, - Iterator: () => Iterator, KeyOf: () => KeyOf, Literal: () => Literal, Lowercase: () => Lowercase, @@ -5086,15 +4871,12 @@ var build_default = /* @__PURE__ */ __exportAll({ Object: () => _Object_$1, Omit: () => Omit, Optional: () => Optional$2, - Options: () => Options, Parameter: () => Parameter$1, Parameters: () => Parameters, Partial: () => Partial, Pick: () => Pick, - Promise: () => _Promise_, Readonly: () => Readonly$1, ReadonlyObject: () => ReadonlyObject, - ReadonlyType: () => ReadonlyType, Record: () => Record, RecordKey: () => RecordKey, RecordPattern: () => RecordPattern, @@ -5120,15 +4902,7 @@ var build_default = /* @__PURE__ */ __exportAll({ With: () => With }); //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/_guard.mjs -function IsGuardInterface(value) { - return IsObject$2(value) && HasPropertyKey$1(value, "check") && HasPropertyKey$1(value, "errors") && IsFunction$2(value.check) && IsFunction$2(value.errors); -} -function IsGuard(value) { - return HasPropertyKey$1(value, "~guard") && IsGuardInterface(value["~guard"]); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/_refine.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/_refine.mjs /** * Returns true if the schema contains an '~refine` keyword * @specification None @@ -5137,7 +4911,7 @@ function IsRefine(value) { return HasPropertyKey$1(value, "~refine") && IsArray$2(value["~refine"]) && Every$1(value["~refine"], 0, (value) => IsObject$2(value) && HasPropertyKey$1(value, "check") && HasPropertyKey$1(value, "error") && IsFunction$2(value.check) && IsFunction$2(value.error)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/schema.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/schema.mjs /** Returns true if this value is object like */ function IsSchemaObject(value) { return IsObject$2(value) && !IsArray$2(value); @@ -5151,7 +4925,7 @@ function IsSchema(value) { return IsSchemaObject(value) || IsBooleanSchema(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/additionalItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/additionalItems.mjs /** * Returns true if the schema contains a valid additionalItems property * @specification Json Schema 7 @@ -5160,7 +4934,7 @@ function IsAdditionalItems(schema) { return HasPropertyKey$1(schema, "additionalItems") && IsSchema(schema.additionalItems); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/additionalProperties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/additionalProperties.mjs /** * Returns true if the schema contains a valid additionalProperties property * @specification Json Schema 7 @@ -5169,7 +4943,7 @@ function IsAdditionalProperties(schema) { return HasPropertyKey$1(schema, "additionalProperties") && IsSchema(schema.additionalProperties); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/allOf.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/allOf.mjs /** * Returns true if the schema contains a valid allOf property * @specification Json Schema 7 @@ -5178,7 +4952,7 @@ function IsAllOf(schema) { return HasPropertyKey$1(schema, "allOf") && IsArray$2(schema.allOf) && schema.allOf.every((value) => IsSchema(value)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/anchor.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/anchor.mjs /** * Returns true if the schema contains a valid $anchor property */ @@ -5186,7 +4960,7 @@ function IsAnchor(schema) { return HasPropertyKey$1(schema, "$anchor") && IsString$3(schema.$anchor); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/anyOf.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/anyOf.mjs /** * Returns true if the schema contains a valid anyOf property * @specification Json Schema 7 @@ -5195,7 +4969,7 @@ function IsAnyOf(schema) { return HasPropertyKey$1(schema, "anyOf") && IsArray$2(schema.anyOf) && schema.anyOf.every((value) => IsSchema(value)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/const.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/const.mjs /** * Returns true if the schema contains a valid const property * @specification Json Schema 7 @@ -5204,7 +4978,7 @@ function IsConst(value) { return HasPropertyKey$1(value, "const"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/contains.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/contains.mjs /** * Returns true if the schema contains a valid contains property * @specification Json Schema 7 @@ -5213,7 +4987,7 @@ function IsContains(schema) { return HasPropertyKey$1(schema, "contains") && IsSchema(schema.contains); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/default.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/default.mjs /** * Returns true if the schema contains a valid contentMediaType property * @specification Json Schema 7 @@ -5222,7 +4996,7 @@ function IsDefault(schema) { return HasPropertyKey$1(schema, "default"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/dependencies.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/dependencies.mjs /** * Returns true if the schema contains a valid dependencies property * @specification Json Schema 7 @@ -5231,7 +5005,7 @@ function IsDependencies(schema) { return HasPropertyKey$1(schema, "dependencies") && IsObject$2(schema.dependencies) && Object.values(schema.dependencies).every((value) => IsSchema(value) || IsArray$2(value) && value.every((value) => IsString$3(value))); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/dependentRequired.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/dependentRequired.mjs /** * Returns true if the schema contains a valid dependentRequired property * @specification Json Schema 2019-09 @@ -5240,7 +5014,7 @@ function IsDependentRequired(schema) { return HasPropertyKey$1(schema, "dependentRequired") && IsObject$2(schema.dependentRequired) && Object.values(schema.dependentRequired).every((value) => IsArray$2(value) && value.every((value) => IsString$3(value))); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/dependentSchemas.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/dependentSchemas.mjs /** * Returns true if the schema contains a valid dependentRequired property * @specification Json Schema 2019-09 @@ -5249,7 +5023,7 @@ function IsDependentSchemas(schema) { return HasPropertyKey$1(schema, "dependentSchemas") && IsObject$2(schema.dependentSchemas) && Object.values(schema.dependentSchemas).every((value) => IsSchema(value)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/dynamicAnchor.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/dynamicAnchor.mjs /** * Returns true if the schema contains a valid $dynamicAnchor property */ @@ -5257,7 +5031,7 @@ function IsDynamicAnchor(schema) { return HasPropertyKey$1(schema, "$dynamicAnchor") && IsString$3(schema.$dynamicAnchor); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/dynamicRef.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/dynamicRef.mjs /** * Returns true if the schema contains a valid $dynamicRef property */ @@ -5265,7 +5039,7 @@ function IsDynamicRef(schema) { return HasPropertyKey$1(schema, "$dynamicRef") && IsString$3(schema.$dynamicRef); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/else.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/else.mjs /** * Returns true if the schema contains a valid else property * @specification Json Schema 7 @@ -5274,7 +5048,7 @@ function IsElse(schema) { return HasPropertyKey$1(schema, "else") && IsSchema(schema.else); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/enum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/enum.mjs /** * Returns true if the schema contains a valid enum property * @specification Json Schema 7 @@ -5283,7 +5057,7 @@ function IsEnum(schema) { return HasPropertyKey$1(schema, "enum") && IsArray$2(schema.enum); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/exclusiveMaximum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/exclusiveMaximum.mjs /** * Returns true if the schema contains a valid exclusiveMaximum property * @specification Json Schema 7 @@ -5292,7 +5066,7 @@ function IsExclusiveMaximum(schema) { return HasPropertyKey$1(schema, "exclusiveMaximum") && (IsNumber$3(schema.exclusiveMaximum) || IsBigInt$2(schema.exclusiveMaximum)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/exclusiveMinimum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/exclusiveMinimum.mjs /** * Returns true if the schema contains a valid exclusiveMinimum property * @specification Json Schema 7 @@ -5301,7 +5075,7 @@ function IsExclusiveMinimum(schema) { return HasPropertyKey$1(schema, "exclusiveMinimum") && (IsNumber$3(schema.exclusiveMinimum) || IsBigInt$2(schema.exclusiveMinimum)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/format.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/format.mjs /** * Returns true if the schema contains a valid format property * @specification Json Schema 7 @@ -5310,7 +5084,7 @@ function IsFormat(schema) { return HasPropertyKey$1(schema, "format") && IsString$3(schema.format); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/id.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/id.mjs /** * Returns true if the schema contains a valid $id property * @specification Json Schema 7 @@ -5319,7 +5093,7 @@ function IsId(schema) { return HasPropertyKey$1(schema, "$id") && IsString$3(schema.$id); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/if.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/if.mjs /** * Returns true if the schema contains a valid $id property * @specification Json Schema 7 @@ -5328,7 +5102,7 @@ function IsIf(schema) { return HasPropertyKey$1(schema, "if") && IsSchema(schema.if); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/items.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/items.mjs /** * Returns true if the schema contains a valid items property * @specification Json Schema 7 @@ -5343,7 +5117,7 @@ function IsItemsSized(schema) { return IsItems(schema) && IsArray$2(schema.items); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/maximum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/maximum.mjs /** * Returns true if the schema contains a valid maximum property * @specification Json Schema 7 @@ -5352,7 +5126,7 @@ function IsMaximum(schema) { return HasPropertyKey$1(schema, "maximum") && (IsNumber$3(schema.maximum) || IsBigInt$2(schema.maximum)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/maxContains.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/maxContains.mjs /** * Returns true if the schema contains a valid maxContains property * @specification Json Schema 2019-09 @@ -5361,7 +5135,7 @@ function IsMaxContains(schema) { return HasPropertyKey$1(schema, "maxContains") && IsNumber$3(schema.maxContains); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/maxItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/maxItems.mjs /** * Returns true if the schema contains a valid maxItems property * @specification Json Schema 7 @@ -5370,7 +5144,7 @@ function IsMaxItems(schema) { return HasPropertyKey$1(schema, "maxItems") && IsNumber$3(schema.maxItems); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/maxLength.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/maxLength.mjs /** * Returns true if the schema contains a valid maxLength property * @specification Json Schema 7 @@ -5379,7 +5153,7 @@ function IsMaxLength(schema) { return HasPropertyKey$1(schema, "maxLength") && IsNumber$3(schema.maxLength); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/maxProperties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/maxProperties.mjs /** * Returns true if the schema contains a valid maxProperties property * @specification Json Schema 7 @@ -5388,7 +5162,7 @@ function IsMaxProperties(schema) { return HasPropertyKey$1(schema, "maxProperties") && IsNumber$3(schema.maxProperties); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/minimum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/minimum.mjs /** * Returns true if the schema contains a valid minimum property * @specification Json Schema 7 @@ -5397,7 +5171,7 @@ function IsMinimum(schema) { return HasPropertyKey$1(schema, "minimum") && (IsNumber$3(schema.minimum) || IsBigInt$2(schema.minimum)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/minContains.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/minContains.mjs /** * Returns true if the schema contains a valid maxContains property * @specification Json Schema 2019-09 @@ -5406,7 +5180,7 @@ function IsMinContains(schema) { return HasPropertyKey$1(schema, "minContains") && IsNumber$3(schema.minContains); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/minItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/minItems.mjs /** * Returns true if the schema contains a valid minItems property * @specification Json Schema 7 @@ -5415,7 +5189,7 @@ function IsMinItems(schema) { return HasPropertyKey$1(schema, "minItems") && IsNumber$3(schema.minItems); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/minLength.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/minLength.mjs /** * Returns true if the schema contains a valid minLength property * @specification Json Schema 7 @@ -5424,7 +5198,7 @@ function IsMinLength(schema) { return HasPropertyKey$1(schema, "minLength") && IsNumber$3(schema.minLength); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/minProperties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/minProperties.mjs /** * Returns true if the schema contains a valid minProperties property * @specification Json Schema 7 @@ -5433,7 +5207,7 @@ function IsMinProperties(schema) { return HasPropertyKey$1(schema, "minProperties") && IsNumber$3(schema.minProperties); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/multipleOf.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/multipleOf.mjs /** * Returns true if the schema contains a valid multipleOf property * @specification Json Schema 7 @@ -5442,7 +5216,7 @@ function IsMultipleOf(schema) { return HasPropertyKey$1(schema, "multipleOf") && (IsNumber$3(schema.multipleOf) || IsBigInt$2(schema.multipleOf)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/not.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/not.mjs /** * Returns true if the schema contains a valid not property * @specification Json Schema 7 @@ -5451,7 +5225,7 @@ function IsNot(schema) { return HasPropertyKey$1(schema, "not") && IsSchema(schema.not); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/oneOf.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/oneOf.mjs /** * Returns true if the schema contains a valid oneOf property * @specification Json Schema 7 @@ -5460,7 +5234,7 @@ function IsOneOf(schema) { return HasPropertyKey$1(schema, "oneOf") && IsArray$2(schema.oneOf) && schema.oneOf.every((value) => IsSchema(value)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/pattern.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/pattern.mjs /** * Returns true if the schema contains a valid pattern property * @specification Json Schema 7 @@ -5469,7 +5243,7 @@ function IsPattern(schema) { return HasPropertyKey$1(schema, "pattern") && (IsString$3(schema.pattern) || schema.pattern instanceof RegExp); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/patternProperties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/patternProperties.mjs /** * Returns true if the schema contains a valid patternProperties property * @specification Json Schema 7 @@ -5478,7 +5252,7 @@ function IsPatternProperties(schema) { return HasPropertyKey$1(schema, "patternProperties") && IsObject$2(schema.patternProperties) && Object.values(schema.patternProperties).every((value) => IsSchema(value)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/prefixItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/prefixItems.mjs /** * Returns true if the schema contains a valid prefixItems property */ @@ -5486,7 +5260,7 @@ function IsPrefixItems(schema) { return HasPropertyKey$1(schema, "prefixItems") && IsArray$2(schema.prefixItems) && schema.prefixItems.every((schema) => IsSchema(schema)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/properties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/properties.mjs /** * Returns true if the schema contains a valid properties property * @specification Json Schema 7 @@ -5495,7 +5269,7 @@ function IsProperties(schema) { return HasPropertyKey$1(schema, "properties") && IsObject$2(schema.properties) && Object.values(schema.properties).every((value) => IsSchema(value)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/propertyNames.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/propertyNames.mjs /** * Returns true if the schema contains a valid propertyNames property * @specification Json Schema 7 @@ -5504,7 +5278,7 @@ function IsPropertyNames(schema) { return HasPropertyKey$1(schema, "propertyNames") && (IsObject$2(schema.propertyNames) || IsSchema(schema.propertyNames)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/recursiveAnchor.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/recursiveAnchor.mjs /** * Returns true if the schema contains a valid $recursiveAnchor property */ @@ -5518,7 +5292,7 @@ function IsRecursiveAnchorTrue(schema) { return IsRecursiveAnchor(schema) && IsEqual$1(schema.$recursiveAnchor, true); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/recursiveRef.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/recursiveRef.mjs /** * Returns true if the schema contains a valid $recursiveRef property */ @@ -5526,7 +5300,7 @@ function IsRecursiveRef(schema) { return HasPropertyKey$1(schema, "$recursiveRef") && IsString$3(schema.$recursiveRef); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/ref.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/ref.mjs /** * Returns true if the schema contains a valid $ref property * @specification Json Schema 7 @@ -5535,7 +5309,7 @@ function IsRef(schema) { return HasPropertyKey$1(schema, "$ref") && IsString$3(schema.$ref); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/required.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/required.mjs /** * Returns true if the schema contains a valid required property * @specification Json Schema 7 @@ -5544,7 +5318,7 @@ function IsRequired(schema) { return HasPropertyKey$1(schema, "required") && IsArray$2(schema.required) && schema.required.every((value) => IsString$3(value)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/then.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/then.mjs /** * Returns true if the schema contains a valid then property * @specification Json Schema 7 @@ -5553,7 +5327,7 @@ function IsThen(schema) { return HasPropertyKey$1(schema, "then") && IsSchema(schema.then); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/type.mjs /** * Returns true if the schema contains a valid type property * @specification Json Schema 7 @@ -5562,7 +5336,7 @@ function IsType(schema) { return HasPropertyKey$1(schema, "type") && (IsString$3(schema.type) || IsArray$2(schema.type) && schema.type.every((value) => IsString$3(value))); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/uniqueItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/uniqueItems.mjs /** * Returns true if the schema contains a valid uniqueItems property * @specification Json Schema 7 @@ -5571,7 +5345,7 @@ function IsUniqueItems(schema) { return HasPropertyKey$1(schema, "uniqueItems") && IsBoolean$3(schema.uniqueItems); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/unevaluatedItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/unevaluatedItems.mjs /** * Returns true if the schema contains a valid unevaluatedItems property * @specification Json Schema 2019-09 @@ -5580,7 +5354,7 @@ function IsUnevaluatedItems(schema) { return HasPropertyKey$1(schema, "unevaluatedItems") && IsSchema(schema.unevaluatedItems); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/unevaluatedProperties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/unevaluatedProperties.mjs /** * Returns true if the schema contains a valid unevaluatedProperties property * @specification Json Schema 2019-09 @@ -5589,7 +5363,7 @@ function IsUnevaluatedProperties(schema) { return HasPropertyKey$1(schema, "unevaluatedProperties") && IsSchema(schema.unevaluatedProperties); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/_context.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/_context.mjs function HasUnevaluatedFromObject(value) { return IsUnevaluatedItems(value) || IsUnevaluatedProperties(value) || Keys$1(value).some((key) => HasUnevaluatedFromUnknown(value[key])); } @@ -5693,7 +5467,7 @@ var AccumulatedErrorContext = class extends ErrorContext { } }; //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/_externals.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/_externals.mjs const state = { identifier: "External", variables: [] @@ -5710,23 +5484,7 @@ function GetExternal() { return { ...state }; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/_guard.mjs -function BuildGuard(_stack, _context, schema, value) { - return Call$1(Member(Member(CreateVariable(schema), "~guard"), "check"), [value]); -} -function CheckGuard(_stack, _context, schema, value) { - return schema["~guard"].check(value); -} -function ErrorGuard(_stack, context, schemaPath, instancePath, schema, value) { - return schema["~guard"].check(value) || context.AddError({ - keyword: "~guard", - schemaPath, - instancePath, - params: { errors: schema["~guard"].errors(value) } - }); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/_refine.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/_refine.mjs function BuildRefine(_stack, _context, schema, value) { return Every(CreateVariable(schema["~refine"].map((refinement) => refinement)), Constant(0), ["refinement", "_"], Call$1(Member("refinement", "check"), [value])); } @@ -5747,14 +5505,14 @@ function ErrorRefine(_stack, context, schemaPath, instancePath, schema, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/_unique.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/_unique.mjs let index = 0; /** Returns a Unique Variable Name */ function Unique() { return `var_${index++}`; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/additionalItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/additionalItems.mjs function IsValid$4(schema) { return IsItems(schema) && IsArray$2(schema.items); } @@ -5782,7 +5540,7 @@ function ErrorAdditionalItems(stack, context, schemaPath, instancePath, schema, }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/additionalProperties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/additionalProperties.mjs function GetPropertyKeyAsPattern(key) { return `^${key.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}$`; } @@ -5834,7 +5592,7 @@ function ErrorAdditionalProperties(stack, context, schemaPath, instancePath, sch }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/_reducer.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/_reducer.mjs function Reducer(stack, context, schemas, value, check) { const results = ConstDeclaration("results", "[]"); const context_n = schemas.map((_schema, index) => ConstDeclaration(`context_${index}`, New("CheckContext", []))); @@ -5850,7 +5608,7 @@ function Reducer(stack, context, schemas, value, check) { ])), []); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/allOf.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/allOf.mjs function BuildAllOfStandard(stack, context, schema, value) { return Reducer(stack, context, schema.allOf, value, IsEqual(Member("results", "length"), Constant(schema.allOf.length))); } @@ -5881,7 +5639,7 @@ function ErrorAllOf(stack, context, schemaPath, instancePath, schema, value) { return isAllOf; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/anyOf.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/anyOf.mjs function BuildAnyOfStandard(stack, context, schema, value) { return Reducer(stack, context, schema.anyOf, value, IsGreaterThan(Member("results", "length"), Constant(0))); } @@ -5916,7 +5674,7 @@ function ErrorAnyOf(stack, context, schemaPath, instancePath, schema, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/boolean.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/boolean.mjs function BuildBooleanSchema(_stack, _context, schema, _value) { return schema ? Constant(true) : Constant(false); } @@ -5932,7 +5690,7 @@ function ErrorBooleanSchema(stack, context, schemaPath, instancePath, schema, va }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/const.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/const.mjs function BuildConst(_stack, _context, schema, value) { return IsValueLike(schema.const) ? IsEqual(value, Constant(schema.const)) : IsDeepEqual(value, CreateVariable(schema.const)); } @@ -5948,7 +5706,7 @@ function ErrorConst(stack, context, schemaPath, instancePath, schema, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/contains.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/contains.mjs function IsValid$3(schema) { return !(IsMinContains(schema) && IsEqual$1(schema.minContains, 0)); } @@ -5970,7 +5728,7 @@ function ErrorContains(stack, context, schemaPath, instancePath, schema, value) }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/dependencies.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/dependencies.mjs function BuildDependencies(stack, context, schema, value) { return Or(IsEqual(Member(Keys(value), "length"), Constant(0)), ReduceAnd(Entries$2(schema.dependencies).map(([key, schema]) => { const notKey = Not(HasPropertyKey(value, Constant(key))); @@ -6003,7 +5761,7 @@ function ErrorDependencies(stack, context, schemaPath, instancePath, schema, val return isLength || isEvery; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/dependentRequired.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/dependentRequired.mjs function BuildDependentRequired(_stack, _context, schema, value) { return Or(IsEqual(Member(Keys(value), "length"), Constant(0)), ReduceAnd(Entries$2(schema.dependentRequired).map(([key, keys]) => { return Or(Not(HasPropertyKey(value, Constant(key))), ReduceAnd(keys.map((key) => HasPropertyKey(value, Constant(key))))); @@ -6032,7 +5790,7 @@ function ErrorDependentRequired(_stack, context, schemaPath, instancePath, schem return isLength || isEveryEntry; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/dependentSchemas.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/dependentSchemas.mjs function BuildDependentSchemas(stack, context, schema, value) { return Or(IsEqual(Member(Keys(value), "length"), Constant(0)), ReduceAnd(Entries$2(schema.dependentSchemas).map(([key, schema]) => { return Or(Not(HasPropertyKey(value, Constant(key))), BuildSchema(stack, context, schema, value)); @@ -6054,7 +5812,7 @@ function ErrorDependentSchemas(stack, context, schemaPath, instancePath, schema, return isLength || isEvery; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/dynamicRef.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/dynamicRef.mjs function BuildDynamicRef(stack, context, schema, value) { return CreateFunction(stack, context, stack.DynamicRef(schema) ?? false, value); } @@ -6067,7 +5825,7 @@ function ErrorDynamicRef(stack, context, _schemaPath, instancePath, schema, valu return IsSchema(target) && ErrorSchema(stack, context, "#", instancePath, target, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/enum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/enum.mjs function BuildEnum(_stack, _context, schema, value) { return ReduceOr(schema.enum.map((option) => { if (IsValueLike(option)) return IsEqual(value, Constant(option)); @@ -6086,7 +5844,7 @@ function ErrorEnum(stack, context, schemaPath, instancePath, schema, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/exclusiveMaximum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/exclusiveMaximum.mjs function BuildExclusiveMaximum(_stack, _context, schema, value) { return IsLessThan(value, Constant(schema.exclusiveMaximum)); } @@ -6105,7 +5863,7 @@ function ErrorExclusiveMaximum(stack, context, schemaPath, instancePath, schema, }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/exclusiveMinimum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/exclusiveMinimum.mjs function BuildExclusiveMinimum(_stack, _context, schema, value) { return IsGreaterThan(value, Constant(schema.exclusiveMinimum)); } @@ -6124,7 +5882,7 @@ function ErrorExclusiveMinimum(stack, context, schemaPath, instancePath, schema, }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/date.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/date.mjs const DAYS = [ 0, 31, @@ -6158,7 +5916,7 @@ function IsDate(value) { return month >= 1 && month <= 12 && day >= 1 && day <= (month === 2 && IsLeapYear(year) ? 29 : DAYS[month]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/time.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/time.mjs const TIME = /^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(?:Z|([+-])(\d\d):(\d\d))?$/i; /** * Returns true if the value is a ISO time string @@ -6181,7 +5939,7 @@ function IsTime(value, strictTimeZone = true) { return (utcHr === 23 || utcHr === -1) && (utcMin === 59 || utcMin === -1) && sec < 61; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/date_time.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/date_time.mjs /** * Returns true if the value is a ISO8601 DateTime string * @source ajv-formats @@ -6192,7 +5950,7 @@ function IsDateTime(value, strictTimeZone = true) { return dateTime.length === 2 && IsDate(dateTime[0]) && IsTime(dateTime[1], strictTimeZone); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/duration.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/duration.mjs const Duration = /^P((\d+Y(\d+M(\d+D)?)?|\d+M(\d+D)?|\d+D)(T(\d+H(\d+M(\d+S)?)?|\d+M(\d+S)?|\d+S))?|T(\d+H(\d+M(\d+S)?)?|\d+M(\d+S)?|\d+S)|\d+W)$/; /** * Returns true if the value is a valid ISO-8601 duration. @@ -6202,7 +5960,7 @@ function IsDuration(value) { return Duration.test(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/email.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/email.mjs const Email = /^(?!.*\.\.)[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i; /** * Returns true if the value is an Email @@ -6212,7 +5970,7 @@ function IsEmail(value) { return Email.test(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/_puny.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/_puny.mjs const PUNYCODE_BASE = 36; const PUNYCODE_TMIN = 1; const PUNYCODE_TMAX = 26; @@ -6270,7 +6028,7 @@ function Decode$8(value) { return globalThis.String.fromCodePoint(...output); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/_idna.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/_idna.mjs function IsNonspacingMark(cp) { return /\p{Mn}/u.test(String.fromCodePoint(cp)); } @@ -6405,7 +6163,11 @@ function IsPuny(value) { } function IsPunyLabel(value) { try { - return IsUnicodeLabel(Decode$8(value.slice(4))); + const payload = value.slice(4).toLowerCase(); + if (payload.lastIndexOf("-") === 0) return false; + const decoded = Decode$8(payload); + if (!decoded) return false; + return IsUnicodeLabel(decoded); } catch { return false; } @@ -6419,7 +6181,7 @@ function IsLabel(value) { return IsPuny(value) ? IsPunyLabel(value) : IsAsciiLabel(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/hostname.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/hostname.mjs /** * Returns true if the value is a valid hostname. * @specification https://tools.ietf.org/html/rfc1123 @@ -6433,7 +6195,7 @@ function IsHostname(value) { return true; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/idn_email.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/idn_email.mjs const IdnEmail = /^(?!.*\.\.)[\p{L}\p{N}!#$%&'*+/=?^_`{|}~-]+(?:\.[\p{L}\p{N}!#$%&'*+/=?^_`{|}~-]+)*@[\p{L}\p{N}](?:[\p{L}\p{N}-]{0,61}[\p{L}\p{N}])?(?:\.[\p{L}\p{N}](?:[\p{L}\p{N}-]{0,61}[\p{L}\p{N}])?)*$/iu; /** * Returns true if the value is an IdnEmail @@ -6443,7 +6205,7 @@ function IsIdnEmail(value) { return IdnEmail.test(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/idn_hostname.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/idn_hostname.mjs /** * Returns true if the value is a valid internationalized (IDN) hostname. * @specification https://tools.ietf.org/html/rfc3490 @@ -6458,7 +6220,7 @@ function IsIdnHostname(value) { return true; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/ipv4.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/ipv4.mjs function IsIPv4Internal(value, start, end) { let dots = 0; let num = 0; @@ -6488,7 +6250,7 @@ function IsIPv4(value) { return IsIPv4Internal(value, 0, value.length); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/ipv6.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/ipv6.mjs function InRange(ch) { return ch >= 48 && ch <= 57 || ch >= 65 && ch <= 70 || ch >= 97 && ch <= 102; } @@ -6538,7 +6300,7 @@ function IsIPv6(value) { return compressed ? groups <= 7 : groups === 8; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/iri_reference.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/iri_reference.mjs function TryUrl(value) { try { new URL(value, "http://example.com"); @@ -6565,7 +6327,7 @@ function IsIriReference(value) { } } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/iri.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/iri.mjs /** * Returns true if the value is a Iri * @specification @@ -6579,7 +6341,7 @@ function IsIri(value) { } } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/json_pointer_uri_fragment.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/json_pointer_uri_fragment.mjs const JsonPointerUriFragment = /^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i; /** * Returns true if the value is a json pointer uri fragment @@ -6590,7 +6352,7 @@ function IsJsonPointerUriFragment(value) { return JsonPointerUriFragment.test(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/json_pointer.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/json_pointer.mjs const JsonPointer = /^(?:\/(?:[^~/]|~0|~1)*)*$/; /** * Returns true if the value is a json pointer @@ -6601,7 +6363,7 @@ function IsJsonPointer(value) { return JsonPointer.test(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/regex.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/regex.mjs /** * Returns true if the value is a regular expression string pattern * @specification @@ -6617,7 +6379,7 @@ function IsRegex(value) { } } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/relative_json_pointer.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/relative_json_pointer.mjs const RelativeJsonPointer = /^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/; /** * Returns true if the value is a relative json pointer @@ -6628,7 +6390,7 @@ function IsRelativeJsonPointer(value) { return RelativeJsonPointer.test(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/uri_reference.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/uri_reference.mjs const UriReference = /^(?!.*[^\x00-\x7F])(?!.*\\)(?:(?:[a-z][a-z0-9+\-.]*:)?(?:\/\/[^\s[\]{}<>^`|]*)?|[^\s[\]{}<>^`|]*)(?:\?[^\s[\]{}<>^`|]*)?(?:#[^\s[\]{}<>^`|]*)?$/i; /** * Returns true if the value is a valid URI Reference. @@ -6638,7 +6400,7 @@ function IsUriReference(value) { return UriReference.test(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/uri_template.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/uri_template.mjs const UriTemplate = /^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i; /** * Returns true if the value is a uri template @@ -6649,7 +6411,7 @@ function IsUriTemplate(value) { return UriTemplate.test(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/uri.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/uri.mjs function IsAlpha(ch) { return ch >= 97 && ch <= 122 || ch >= 65 && ch <= 90; } @@ -6744,7 +6506,7 @@ function IsUri(value) { return true; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/url.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/url.mjs const Url = /^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu; /** * Returns true if the value is a Url @@ -6755,7 +6517,7 @@ function IsUrl(value) { return Url.test(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/uuid.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/uuid.mjs const Uuid = /^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i; /** * Returns true if the value is a uuid @@ -6766,7 +6528,7 @@ function IsUuid(value) { return Uuid.test(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/_registry.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/_registry.mjs const formats = /* @__PURE__ */ new Map(); /** Clears all entries */ function Clear() { @@ -6819,7 +6581,7 @@ function Reset() { } Reset(); //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/format.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/format.mjs var format_exports = /* @__PURE__ */ __exportAll({ Clear: () => Clear, Entries: () => Entries, @@ -6851,7 +6613,7 @@ var format_exports = /* @__PURE__ */ __exportAll({ Test: () => Test }); //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/format.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/format.mjs function BuildFormat(_stack, _context, schema, value) { return Call$1(Member("Format", "Test"), [Constant(schema.format), value]); } @@ -6867,7 +6629,7 @@ function ErrorFormat(stack, context, schemaPath, instancePath, schema, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/if.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/if.mjs function BuildIf(stack, context, schema, value) { const thenSchema = IsThen(schema) ? schema.then : true; const elseSchema = IsElse(schema) ? schema.else : true; @@ -6897,7 +6659,7 @@ function ErrorIf(stack, context, schemaPath, instancePath, schema, value) { return isIf; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/items.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/items.mjs function BuildItemsSized(stack, context, schema, value) { return ReduceAnd(schema.items.map((schema, index) => { const isLength = IsLessEqualThan(Member(value, "length"), Constant(index)); @@ -6945,7 +6707,7 @@ function ErrorItems(stack, context, schemaPath, instancePath, schema, value) { return IsItemsSized(schema) ? ErrorItemsSized(stack, context, schemaPath, instancePath, schema, value) : ErrorItemsUnsized(stack, context, schemaPath, instancePath, schema, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/maxContains.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/maxContains.mjs function IsValid$2(schema) { return IsContains(schema); } @@ -6971,7 +6733,7 @@ function ErrorMaxContains(stack, context, schemaPath, instancePath, schema, valu }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/maximum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/maximum.mjs function BuildMaximum(_stack, _context, schema, value) { return IsLessEqualThan(value, Constant(schema.maximum)); } @@ -6990,7 +6752,7 @@ function ErrorMaximum(stack, context, schemaPath, instancePath, schema, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/maxItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/maxItems.mjs function BuildMaxItems(_stack, _context, schema, value) { return IsLessEqualThan(Member(value, "length"), Constant(schema.maxItems)); } @@ -7006,7 +6768,7 @@ function ErrorMaxItems(stack, context, schemaPath, instancePath, schema, value) }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/maxLength.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/maxLength.mjs function BuildMaxLength(_stack, _context, schema, value) { return IsMaxLength$1(value, Constant(schema.maxLength)); } @@ -7022,7 +6784,7 @@ function ErrorMaxLength(stack, context, schemaPath, instancePath, schema, value) }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/maxProperties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/maxProperties.mjs function BuildMaxProperties(_stack, _context, schema, value) { return IsLessEqualThan(Member(Keys(value), "length"), Constant(schema.maxProperties)); } @@ -7038,7 +6800,7 @@ function ErrorMaxProperties(stack, context, schemaPath, instancePath, schema, va }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/minContains.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/minContains.mjs function IsValid$1(schema) { return IsContains(schema); } @@ -7060,7 +6822,7 @@ function ErrorMinContains(stack, context, schemaPath, instancePath, schema, valu }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/minimum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/minimum.mjs function BuildMinimum(_stack, _context, schema, value) { return IsGreaterEqualThan(value, Constant(schema.minimum)); } @@ -7079,7 +6841,7 @@ function ErrorMinimum(stack, context, schemaPath, instancePath, schema, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/minItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/minItems.mjs function BuildMinItems(_stack, _context, schema, value) { return IsGreaterEqualThan(Member(value, "length"), Constant(schema.minItems)); } @@ -7095,7 +6857,7 @@ function ErrorMinItems(stack, context, schemaPath, instancePath, schema, value) }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/minLength.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/minLength.mjs function BuildMinLength(_stack, _context, schema, value) { return IsMinLength$1(value, Constant(schema.minLength)); } @@ -7111,7 +6873,7 @@ function ErrorMinLength(stack, context, schemaPath, instancePath, schema, value) }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/minProperties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/minProperties.mjs function BuildMinProperties(_stack, _context, schema, value) { return IsGreaterEqualThan(Member(Keys(value), "length"), Constant(schema.minProperties)); } @@ -7127,7 +6889,7 @@ function ErrorMinProperties(stack, context, schemaPath, instancePath, schema, va }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/multipleOf.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/multipleOf.mjs function BuildMultipleOf(_stack, _context, schema, value) { return MultipleOf(value, Constant(schema.multipleOf)); } @@ -7143,7 +6905,7 @@ function ErrorMultipleOf(stack, context, schemaPath, instancePath, schema, value }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/not.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/not.mjs function BuildNotUnevaluated(stack, context, schema, value) { return Reducer(stack, context, [schema.not], value, Not(IsEqual(Member("results", "length"), Constant(1)))); } @@ -7166,7 +6928,7 @@ function ErrorNot(stack, context, schemaPath, instancePath, schema, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/oneOf.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/oneOf.mjs function BuildOneOfUnevaluated(stack, context, schema, value) { return Reducer(stack, context, schema.oneOf, value, IsEqual(Member("results", "length"), Constant(1))); } @@ -7203,7 +6965,7 @@ function ErrorOneOf(stack, context, schemaPath, instancePath, schema, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/pattern.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/pattern.mjs function BuildPattern(_stack, _context, schema, value) { return Call$1(Member(CreateVariable(IsString$3(schema.pattern) ? new RegExp(schema.pattern, "u") : schema.pattern), "test"), [value]); } @@ -7219,7 +6981,7 @@ function ErrorPattern(stack, context, schemaPath, instancePath, schema, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/patternProperties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/patternProperties.mjs function BuildPatternProperties(stack, context, schema, value) { return ReduceAnd(Entries$2(schema.patternProperties).map(([pattern, schema]) => { const [key, prop] = [Unique(), Unique()]; @@ -7249,7 +7011,7 @@ function ErrorPatternProperties(stack, context, schemaPath, instancePath, schema }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/prefixItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/prefixItems.mjs function BuildPrefixItems(stack, context, schema, value) { return ReduceAnd(schema.prefixItems.map((schema, index) => { const isLength = IsLessEqualThan(Member(value, "length"), Constant(index)); @@ -7271,7 +7033,7 @@ function ErrorPrefixItems(stack, context, schemaPath, instancePath, schema, valu }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/_exact_optional.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/_exact_optional.mjs function IsExactOptional(required, key) { return required.includes(key) || Get$3().exactOptionalPropertyTypes; } @@ -7282,7 +7044,7 @@ function InexactOptionalCheck(value, key) { return IsUndefined$2(value[key]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/properties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/properties.mjs function BuildProperties(stack, context, schema, value) { const required = IsRequired(schema) ? schema.required : []; return ReduceAnd(Entries$2(schema.properties).map(([key, schema]) => { @@ -7311,7 +7073,7 @@ function ErrorProperties(stack, context, schemaPath, instancePath, schema, value }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/propertyNames.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/propertyNames.mjs function BuildPropertyNames(stack, context, schema, value) { const [key, _index] = [Unique(), Unique()]; return Every(Keys(value), Constant(0), [key, _index], BuildSchema(stack, context, schema.propertyNames, key)); @@ -7335,7 +7097,7 @@ function ErrorPropertyNames(stack, context, schemaPath, instancePath, schema, va }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/recursiveRef.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/recursiveRef.mjs function BuildRecursiveRef(stack, context, schema, value) { return CreateFunction(stack, context, stack.RecursiveRef(schema) ?? false, value); } @@ -7348,7 +7110,7 @@ function ErrorRecursiveRef(stack, context, _schemaPath, instancePath, schema, va return IsSchema(target) && ErrorSchema(stack, context, "#", instancePath, target, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/ref.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/ref.mjs function BuildRefStandard(stack, context, target, value) { const interior = ArrowFunction(["context", "value"], CreateFunction(stack, context, target, "value")); return Call$1(ArrowFunction(["context", "value"], Statements([ @@ -7381,7 +7143,7 @@ function ErrorRef(stack, context, _schemaPath, instancePath, schema, value) { return result; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/required.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/required.mjs function BuildRequired(_stack, _context, schema, value) { return ReduceAnd(schema.required.map((key) => HasPropertyKey(value, Constant(key)))); } @@ -7402,12 +7164,12 @@ function ErrorRequired(_stack, context, schemaPath, instancePath, schema, value) }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/type.mjs function BuildTypeName(_stack, _context, type, value) { - return IsEqual$1(type, "object") ? IsObjectNotArray(value) : IsEqual$1(type, "array") ? IsArray$1(value) : IsEqual$1(type, "boolean") ? IsBoolean$2(value) : IsEqual$1(type, "integer") ? IsInteger$1(value) : IsEqual$1(type, "number") ? IsNumber$2(value) : IsEqual$1(type, "null") ? IsNull$1(value) : IsEqual$1(type, "string") ? IsString$2(value) : IsEqual$1(type, "asyncIterator") ? IsAsyncIterator$1(value) : IsEqual$1(type, "bigint") ? IsBigInt$1(value) : IsEqual$1(type, "constructor") ? IsConstructor$1(value) : IsEqual$1(type, "function") ? IsFunction$1(value) : IsEqual$1(type, "iterator") ? IsIterator$1(value) : IsEqual$1(type, "symbol") ? IsSymbol$1(value) : IsEqual$1(type, "undefined") ? IsUndefined$1(value) : IsEqual$1(type, "void") ? IsUndefined$1(value) : Constant(true); + return IsEqual$1(type, "object") ? IsObjectNotArray(value) : IsEqual$1(type, "array") ? IsArray$1(value) : IsEqual$1(type, "boolean") ? IsBoolean$2(value) : IsEqual$1(type, "integer") ? IsInteger$1(value) : IsEqual$1(type, "number") ? IsNumber$2(value) : IsEqual$1(type, "null") ? IsNull$1(value) : IsEqual$1(type, "string") ? IsString$2(value) : IsEqual$1(type, "bigint") ? IsBigInt$1(value) : IsEqual$1(type, "constructor") ? IsConstructor$1(value) : IsEqual$1(type, "function") ? IsFunction$1(value) : IsEqual$1(type, "symbol") ? IsSymbol$1(value) : IsEqual$1(type, "undefined") ? IsUndefined$1(value) : IsEqual$1(type, "void") ? IsUndefined$1(value) : Constant(true); } function CheckTypeName(_stack, _context, type, _schema, value) { - return IsEqual$1(type, "object") ? IsObjectNotArray$1(value) : IsEqual$1(type, "array") ? IsArray$2(value) : IsEqual$1(type, "boolean") ? IsBoolean$3(value) : IsEqual$1(type, "integer") ? IsInteger$2(value) : IsEqual$1(type, "number") ? IsNumber$3(value) : IsEqual$1(type, "null") ? IsNull$2(value) : IsEqual$1(type, "string") ? IsString$3(value) : IsEqual$1(type, "asyncIterator") ? IsAsyncIterator$2(value) : IsEqual$1(type, "bigint") ? IsBigInt$2(value) : IsEqual$1(type, "constructor") ? IsConstructor$2(value) : IsEqual$1(type, "function") ? IsFunction$2(value) : IsEqual$1(type, "iterator") ? IsIterator$2(value) : IsEqual$1(type, "symbol") ? IsSymbol$2(value) : IsEqual$1(type, "undefined") ? IsUndefined$2(value) : IsEqual$1(type, "void") ? IsUndefined$2(value) : true; + return IsEqual$1(type, "object") ? IsObjectNotArray$1(value) : IsEqual$1(type, "array") ? IsArray$2(value) : IsEqual$1(type, "boolean") ? IsBoolean$3(value) : IsEqual$1(type, "integer") ? IsInteger$2(value) : IsEqual$1(type, "number") ? IsNumber$3(value) : IsEqual$1(type, "null") ? IsNull$2(value) : IsEqual$1(type, "string") ? IsString$3(value) : IsEqual$1(type, "bigint") ? IsBigInt$2(value) : IsEqual$1(type, "constructor") ? IsConstructor$2(value) : IsEqual$1(type, "function") ? IsFunction$2(value) : IsEqual$1(type, "symbol") ? IsSymbol$2(value) : IsEqual$1(type, "undefined") ? IsUndefined$2(value) : IsEqual$1(type, "void") ? IsUndefined$2(value) : true; } function BuildTypeNames(stack, context, typenames, value) { return ReduceOr(typenames.map((type) => BuildTypeName(stack, context, type, value))); @@ -7430,7 +7192,7 @@ function ErrorType(stack, context, schemaPath, instancePath, schema, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/unevaluatedItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/unevaluatedItems.mjs function BuildUnevaluatedItems(stack, context, schema, value) { const [index, item] = [Unique(), Unique()]; const indices = Call$1(Member("context", "GetIndices"), []); @@ -7462,7 +7224,7 @@ function ErrorUnevaluatedItems(stack, context, schemaPath, instancePath, schema, }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/unevaluatedProperties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/unevaluatedProperties.mjs function BuildUnevaluatedProperties(stack, context, schema, value) { const [key, prop] = [Unique(), Unique()]; const keys = Call$1(Member("context", "GetKeys"), []); @@ -7494,7 +7256,7 @@ function ErrorUnevaluatedProperties(stack, context, schemaPath, instancePath, sc }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/uniqueItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/uniqueItems.mjs function IsValid(schema) { return !IsEqual$1(schema.uniqueItems, false); } @@ -7525,7 +7287,7 @@ function ErrorUniqueItems(_stack, context, schemaPath, instancePath, schema, val }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/schema.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/schema.mjs function HasTypeName(schema, typename) { return IsType(schema) && (IsArray$2(schema.type) && schema.type.includes(typename) || IsEqual$1(schema.type, typename)); } @@ -7616,7 +7378,6 @@ function BuildSchema(stack, context, schema, value) { if (IsRef(schema)) conditions.push(BuildRef(stack, context, schema, value)); if (IsRecursiveRef(schema)) conditions.push(BuildRecursiveRef(stack, context, schema, value)); if (IsDynamicRef(schema)) conditions.push(BuildDynamicRef(stack, context, schema, value)); - if (IsGuard(schema)) conditions.push(BuildGuard(stack, context, schema, value)); if (IsConst(schema)) conditions.push(BuildConst(stack, context, schema, value)); if (IsEnum(schema)) conditions.push(BuildEnum(stack, context, schema, value)); if (IsIf(schema)) conditions.push(BuildIf(stack, context, schema, value)); @@ -7636,7 +7397,7 @@ function CheckSchemaPushStack(stack, context, schema, value) { } function CheckSchema(stack, context, schema, value) { stack.Push(schema); - const result = IsBooleanSchema(schema) ? CheckBooleanSchema(stack, context, schema, value) : (!IsType(schema) || CheckType(stack, context, schema, value)) && (!(IsObject$2(value) && !IsArray$2(value)) || (!IsRequired(schema) || CheckRequired(stack, context, schema, value)) && (!IsAdditionalProperties(schema) || CheckAdditionalProperties(stack, context, schema, value)) && (!IsDependencies(schema) || CheckDependencies(stack, context, schema, value)) && (!IsDependentRequired(schema) || CheckDependentRequired(stack, context, schema, value)) && (!IsDependentSchemas(schema) || CheckDependentSchemas(stack, context, schema, value)) && (!IsPatternProperties(schema) || CheckPatternProperties(stack, context, schema, value)) && (!IsProperties(schema) || CheckProperties(stack, context, schema, value)) && (!IsPropertyNames(schema) || CheckPropertyNames(stack, context, schema, value)) && (!IsMinProperties(schema) || CheckMinProperties(stack, context, schema, value)) && (!IsMaxProperties(schema) || CheckMaxProperties(stack, context, schema, value))) && (!IsArray$2(value) || (!IsAdditionalItems(schema) || CheckAdditionalItems(stack, context, schema, value)) && (!IsContains(schema) || CheckContains(stack, context, schema, value)) && (!IsItems(schema) || CheckItems(stack, context, schema, value)) && (!IsMaxContains(schema) || CheckMaxContains(stack, context, schema, value)) && (!IsMaxItems(schema) || CheckMaxItems(stack, context, schema, value)) && (!IsMinContains(schema) || CheckMinContains(stack, context, schema, value)) && (!IsMinItems(schema) || CheckMinItems(stack, context, schema, value)) && (!IsPrefixItems(schema) || CheckPrefixItems(stack, context, schema, value)) && (!IsUniqueItems(schema) || CheckUniqueItems(stack, context, schema, value))) && (!IsString$3(value) || (!IsMaxLength(schema) || CheckMaxLength(stack, context, schema, value)) && (!IsMinLength(schema) || CheckMinLength(stack, context, schema, value)) && (!IsFormat(schema) || CheckFormat(stack, context, schema, value)) && (!IsPattern(schema) || CheckPattern(stack, context, schema, value))) && (!(IsNumber$3(value) || IsBigInt$2(value)) || (!IsExclusiveMaximum(schema) || CheckExclusiveMaximum(stack, context, schema, value)) && (!IsExclusiveMinimum(schema) || CheckExclusiveMinimum(stack, context, schema, value)) && (!IsMaximum(schema) || CheckMaximum(stack, context, schema, value)) && (!IsMinimum(schema) || CheckMinimum(stack, context, schema, value)) && (!IsMultipleOf(schema) || CheckMultipleOf(stack, context, schema, value))) && (!IsRef(schema) || CheckRef(stack, context, schema, value)) && (!IsRecursiveRef(schema) || CheckRecursiveRef(stack, context, schema, value)) && (!IsDynamicRef(schema) || CheckDynamicRef(stack, context, schema, value)) && (!IsGuard(schema) || CheckGuard(stack, context, schema, value)) && (!IsConst(schema) || CheckConst(stack, context, schema, value)) && (!IsEnum(schema) || CheckEnum(stack, context, schema, value)) && (!IsIf(schema) || CheckIf(stack, context, schema, value)) && (!IsNot(schema) || CheckNot(stack, context, schema, value)) && (!IsAllOf(schema) || CheckAllOf(stack, context, schema, value)) && (!IsAnyOf(schema) || CheckAnyOf(stack, context, schema, value)) && (!IsOneOf(schema) || CheckOneOf(stack, context, schema, value)) && (!IsUnevaluatedItems(schema) || !IsArray$2(value) || CheckUnevaluatedItems(stack, context, schema, value)) && (!IsUnevaluatedProperties(schema) || !IsObject$2(value) || CheckUnevaluatedProperties(stack, context, schema, value)) && (!IsRefine(schema) || CheckRefine(stack, context, schema, value)); + const result = IsBooleanSchema(schema) ? CheckBooleanSchema(stack, context, schema, value) : (!IsType(schema) || CheckType(stack, context, schema, value)) && (!(IsObject$2(value) && !IsArray$2(value)) || (!IsRequired(schema) || CheckRequired(stack, context, schema, value)) && (!IsAdditionalProperties(schema) || CheckAdditionalProperties(stack, context, schema, value)) && (!IsDependencies(schema) || CheckDependencies(stack, context, schema, value)) && (!IsDependentRequired(schema) || CheckDependentRequired(stack, context, schema, value)) && (!IsDependentSchemas(schema) || CheckDependentSchemas(stack, context, schema, value)) && (!IsPatternProperties(schema) || CheckPatternProperties(stack, context, schema, value)) && (!IsProperties(schema) || CheckProperties(stack, context, schema, value)) && (!IsPropertyNames(schema) || CheckPropertyNames(stack, context, schema, value)) && (!IsMinProperties(schema) || CheckMinProperties(stack, context, schema, value)) && (!IsMaxProperties(schema) || CheckMaxProperties(stack, context, schema, value))) && (!IsArray$2(value) || (!IsAdditionalItems(schema) || CheckAdditionalItems(stack, context, schema, value)) && (!IsContains(schema) || CheckContains(stack, context, schema, value)) && (!IsItems(schema) || CheckItems(stack, context, schema, value)) && (!IsMaxContains(schema) || CheckMaxContains(stack, context, schema, value)) && (!IsMaxItems(schema) || CheckMaxItems(stack, context, schema, value)) && (!IsMinContains(schema) || CheckMinContains(stack, context, schema, value)) && (!IsMinItems(schema) || CheckMinItems(stack, context, schema, value)) && (!IsPrefixItems(schema) || CheckPrefixItems(stack, context, schema, value)) && (!IsUniqueItems(schema) || CheckUniqueItems(stack, context, schema, value))) && (!IsString$3(value) || (!IsMaxLength(schema) || CheckMaxLength(stack, context, schema, value)) && (!IsMinLength(schema) || CheckMinLength(stack, context, schema, value)) && (!IsFormat(schema) || CheckFormat(stack, context, schema, value)) && (!IsPattern(schema) || CheckPattern(stack, context, schema, value))) && (!(IsNumber$3(value) || IsBigInt$2(value)) || (!IsExclusiveMaximum(schema) || CheckExclusiveMaximum(stack, context, schema, value)) && (!IsExclusiveMinimum(schema) || CheckExclusiveMinimum(stack, context, schema, value)) && (!IsMaximum(schema) || CheckMaximum(stack, context, schema, value)) && (!IsMinimum(schema) || CheckMinimum(stack, context, schema, value)) && (!IsMultipleOf(schema) || CheckMultipleOf(stack, context, schema, value))) && (!IsRef(schema) || CheckRef(stack, context, schema, value)) && (!IsRecursiveRef(schema) || CheckRecursiveRef(stack, context, schema, value)) && (!IsDynamicRef(schema) || CheckDynamicRef(stack, context, schema, value)) && (!IsConst(schema) || CheckConst(stack, context, schema, value)) && (!IsEnum(schema) || CheckEnum(stack, context, schema, value)) && (!IsIf(schema) || CheckIf(stack, context, schema, value)) && (!IsNot(schema) || CheckNot(stack, context, schema, value)) && (!IsAllOf(schema) || CheckAllOf(stack, context, schema, value)) && (!IsAnyOf(schema) || CheckAnyOf(stack, context, schema, value)) && (!IsOneOf(schema) || CheckOneOf(stack, context, schema, value)) && (!IsUnevaluatedItems(schema) || !IsArray$2(value) || CheckUnevaluatedItems(stack, context, schema, value)) && (!IsUnevaluatedProperties(schema) || !IsObject$2(value) || CheckUnevaluatedProperties(stack, context, schema, value)) && (!IsRefine(schema) || CheckRefine(stack, context, schema, value)); stack.Pop(schema); return result; } @@ -7645,12 +7406,12 @@ function ErrorSchemaPushStack(stack, context, schemaPath, instancePath, schema, } function ErrorSchema(stack, context, schemaPath, instancePath, schema, value) { stack.Push(schema); - const result = IsBooleanSchema(schema) ? ErrorBooleanSchema(stack, context, schemaPath, instancePath, schema, value) : !!(+(!IsType(schema) || ErrorType(stack, context, schemaPath, instancePath, schema, value)) & +(!(IsObject$2(value) && !IsArray$2(value)) || !!(+(!IsRequired(schema) || ErrorRequired(stack, context, schemaPath, instancePath, schema, value)) & +(!IsAdditionalProperties(schema) || ErrorAdditionalProperties(stack, context, schemaPath, instancePath, schema, value)) & +(!IsDependencies(schema) || ErrorDependencies(stack, context, schemaPath, instancePath, schema, value)) & +(!IsDependentRequired(schema) || ErrorDependentRequired(stack, context, schemaPath, instancePath, schema, value)) & +(!IsDependentSchemas(schema) || ErrorDependentSchemas(stack, context, schemaPath, instancePath, schema, value)) & +(!IsPatternProperties(schema) || ErrorPatternProperties(stack, context, schemaPath, instancePath, schema, value)) & +(!IsProperties(schema) || ErrorProperties(stack, context, schemaPath, instancePath, schema, value)) & +(!IsPropertyNames(schema) || ErrorPropertyNames(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMinProperties(schema) || ErrorMinProperties(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMaxProperties(schema) || ErrorMaxProperties(stack, context, schemaPath, instancePath, schema, value)))) & +(!IsArray$2(value) || !!(+(!IsAdditionalItems(schema) || ErrorAdditionalItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsContains(schema) || ErrorContains(stack, context, schemaPath, instancePath, schema, value)) & +(!IsItems(schema) || ErrorItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMaxContains(schema) || ErrorMaxContains(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMaxItems(schema) || ErrorMaxItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMinContains(schema) || ErrorMinContains(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMinItems(schema) || ErrorMinItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsPrefixItems(schema) || ErrorPrefixItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsUniqueItems(schema) || ErrorUniqueItems(stack, context, schemaPath, instancePath, schema, value)))) & +(!IsString$3(value) || !!(+(!IsMaxLength(schema) || ErrorMaxLength(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMinLength(schema) || ErrorMinLength(stack, context, schemaPath, instancePath, schema, value)) & +(!IsFormat(schema) || ErrorFormat(stack, context, schemaPath, instancePath, schema, value)) & +(!IsPattern(schema) || ErrorPattern(stack, context, schemaPath, instancePath, schema, value)))) & +(!(IsNumber$3(value) || IsBigInt$2(value)) || !!(+(!IsExclusiveMaximum(schema) || ErrorExclusiveMaximum(stack, context, schemaPath, instancePath, schema, value)) & +(!IsExclusiveMinimum(schema) || ErrorExclusiveMinimum(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMaximum(schema) || ErrorMaximum(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMinimum(schema) || ErrorMinimum(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMultipleOf(schema) || ErrorMultipleOf(stack, context, schemaPath, instancePath, schema, value)))) & +(!IsRef(schema) || ErrorRef(stack, context, schemaPath, instancePath, schema, value)) & +(!IsRecursiveRef(schema) || ErrorRecursiveRef(stack, context, schemaPath, instancePath, schema, value)) & +(!IsDynamicRef(schema) || ErrorDynamicRef(stack, context, schemaPath, instancePath, schema, value)) & +(!IsGuard(schema) || ErrorGuard(stack, context, schemaPath, instancePath, schema, value)) & +(!IsConst(schema) || ErrorConst(stack, context, schemaPath, instancePath, schema, value)) & +(!IsEnum(schema) || ErrorEnum(stack, context, schemaPath, instancePath, schema, value)) & +(!IsIf(schema) || ErrorIf(stack, context, schemaPath, instancePath, schema, value)) & +(!IsNot(schema) || ErrorNot(stack, context, schemaPath, instancePath, schema, value)) & +(!IsAllOf(schema) || ErrorAllOf(stack, context, schemaPath, instancePath, schema, value)) & +(!IsAnyOf(schema) || ErrorAnyOf(stack, context, schemaPath, instancePath, schema, value)) & +(!IsOneOf(schema) || ErrorOneOf(stack, context, schemaPath, instancePath, schema, value)) & +(!IsUnevaluatedItems(schema) || !IsArray$2(value) || ErrorUnevaluatedItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsUnevaluatedProperties(schema) || !IsObject$2(value) || ErrorUnevaluatedProperties(stack, context, schemaPath, instancePath, schema, value))) && (!IsRefine(schema) || ErrorRefine(stack, context, schemaPath, instancePath, schema, value)); + const result = IsBooleanSchema(schema) ? ErrorBooleanSchema(stack, context, schemaPath, instancePath, schema, value) : !!(+(!IsType(schema) || ErrorType(stack, context, schemaPath, instancePath, schema, value)) & +(!(IsObject$2(value) && !IsArray$2(value)) || !!(+(!IsRequired(schema) || ErrorRequired(stack, context, schemaPath, instancePath, schema, value)) & +(!IsAdditionalProperties(schema) || ErrorAdditionalProperties(stack, context, schemaPath, instancePath, schema, value)) & +(!IsDependencies(schema) || ErrorDependencies(stack, context, schemaPath, instancePath, schema, value)) & +(!IsDependentRequired(schema) || ErrorDependentRequired(stack, context, schemaPath, instancePath, schema, value)) & +(!IsDependentSchemas(schema) || ErrorDependentSchemas(stack, context, schemaPath, instancePath, schema, value)) & +(!IsPatternProperties(schema) || ErrorPatternProperties(stack, context, schemaPath, instancePath, schema, value)) & +(!IsProperties(schema) || ErrorProperties(stack, context, schemaPath, instancePath, schema, value)) & +(!IsPropertyNames(schema) || ErrorPropertyNames(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMinProperties(schema) || ErrorMinProperties(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMaxProperties(schema) || ErrorMaxProperties(stack, context, schemaPath, instancePath, schema, value)))) & +(!IsArray$2(value) || !!(+(!IsAdditionalItems(schema) || ErrorAdditionalItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsContains(schema) || ErrorContains(stack, context, schemaPath, instancePath, schema, value)) & +(!IsItems(schema) || ErrorItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMaxContains(schema) || ErrorMaxContains(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMaxItems(schema) || ErrorMaxItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMinContains(schema) || ErrorMinContains(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMinItems(schema) || ErrorMinItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsPrefixItems(schema) || ErrorPrefixItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsUniqueItems(schema) || ErrorUniqueItems(stack, context, schemaPath, instancePath, schema, value)))) & +(!IsString$3(value) || !!(+(!IsMaxLength(schema) || ErrorMaxLength(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMinLength(schema) || ErrorMinLength(stack, context, schemaPath, instancePath, schema, value)) & +(!IsFormat(schema) || ErrorFormat(stack, context, schemaPath, instancePath, schema, value)) & +(!IsPattern(schema) || ErrorPattern(stack, context, schemaPath, instancePath, schema, value)))) & +(!(IsNumber$3(value) || IsBigInt$2(value)) || !!(+(!IsExclusiveMaximum(schema) || ErrorExclusiveMaximum(stack, context, schemaPath, instancePath, schema, value)) & +(!IsExclusiveMinimum(schema) || ErrorExclusiveMinimum(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMaximum(schema) || ErrorMaximum(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMinimum(schema) || ErrorMinimum(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMultipleOf(schema) || ErrorMultipleOf(stack, context, schemaPath, instancePath, schema, value)))) & +(!IsRef(schema) || ErrorRef(stack, context, schemaPath, instancePath, schema, value)) & +(!IsRecursiveRef(schema) || ErrorRecursiveRef(stack, context, schemaPath, instancePath, schema, value)) & +(!IsDynamicRef(schema) || ErrorDynamicRef(stack, context, schemaPath, instancePath, schema, value)) & +(!IsConst(schema) || ErrorConst(stack, context, schemaPath, instancePath, schema, value)) & +(!IsEnum(schema) || ErrorEnum(stack, context, schemaPath, instancePath, schema, value)) & +(!IsIf(schema) || ErrorIf(stack, context, schemaPath, instancePath, schema, value)) & +(!IsNot(schema) || ErrorNot(stack, context, schemaPath, instancePath, schema, value)) & +(!IsAllOf(schema) || ErrorAllOf(stack, context, schemaPath, instancePath, schema, value)) & +(!IsAnyOf(schema) || ErrorAnyOf(stack, context, schemaPath, instancePath, schema, value)) & +(!IsOneOf(schema) || ErrorOneOf(stack, context, schemaPath, instancePath, schema, value)) & +(!IsUnevaluatedItems(schema) || !IsArray$2(value) || ErrorUnevaluatedItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsUnevaluatedProperties(schema) || !IsObject$2(value) || ErrorUnevaluatedProperties(stack, context, schemaPath, instancePath, schema, value))) && (!IsRefine(schema) || ErrorRefine(stack, context, schemaPath, instancePath, schema, value)); stack.Pop(schema); return result; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/_functions.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/_functions.mjs const functions = /* @__PURE__ */ new Map(); function CreateCallExpression(context, _schema, hash, value) { return context.UseUnevaluated() ? Call$1(`check_${hash}`, ["context", value]) : Call$1(`check_${hash}`, [value]); @@ -7677,7 +7438,7 @@ function CreateFunction(stack, context, schema, value) { return call; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/pointer/pointer.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/pointer/pointer.mjs function GetIndex(index, value) { return IsObject$2(value) && !IsUnsafePropertyKey(index) ? value[index] : void 0; } @@ -7695,7 +7456,7 @@ function Get(value, pointer) { return GetIndices(Indices(pointer), value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/resolve/ref.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/resolve/ref.mjs function MatchId(schema, base, ref) { if (schema.$id === ref.hash) return schema; const absoluteId = new URL(schema.$id, base.href); @@ -7734,31 +7495,31 @@ function Match(schema, base, ref) { } return MatchHash(schema, base, ref); } -function FromArray$7(schema, base, ref) { +function FromArray$6(schema, base, ref) { return schema.reduce((result, item) => { - const match = FromValue$1(item, base, ref); + const match = FromValue(item, base, ref); return !IsUndefined$2(match) ? match : result; }, void 0); } -function FromObject$7(schema, base, ref) { +function FromObject$6(schema, base, ref) { return Keys$1(schema).reduce((result, key) => { - const match = FromValue$1(schema[key], base, ref); + const match = FromValue(schema[key], base, ref); return !IsUndefined$2(match) ? match : result; }, void 0); } -function FromValue$1(schema, base, ref) { +function FromValue(schema, base, ref) { const nextBase = IsSchemaObject(schema) && IsId(schema) ? new URL(schema.$id, base.href) : base; if (IsSchemaObject(schema)) { const result = Match(schema, nextBase, ref); if (!IsUndefined$2(result)) return result; } - if (IsArray$2(schema)) return FromArray$7(schema, nextBase, ref); - if (IsObject$2(schema)) return FromObject$7(schema, nextBase, ref); + if (IsArray$2(schema)) return FromArray$6(schema, nextBase, ref); + if (IsObject$2(schema)) return FromObject$6(schema, nextBase, ref); } function Ref(schema, ref) { const defaultBase = new URL("http://unknown/"); const initialBase = IsId(schema) ? new URL(schema.$id, defaultBase.href) : defaultBase; - return FromValue$1(schema, initialBase, new URL(ref, initialBase.href)); + return FromValue(schema, initialBase, new URL(ref, initialBase.href)); } function DynamicRef(root, base, dynamicRef, dynamicAnchors) { const fragmentTarget = dynamicRef.$dynamicRef.startsWith("#") ? Ref(base, dynamicRef.$dynamicRef) : Ref(root, dynamicRef.$dynamicRef); @@ -7768,7 +7529,7 @@ function DynamicRef(root, base, dynamicRef, dynamicAnchors) { return dynamicAnchors.find((anchor) => anchor.$dynamicAnchor === fragmentTarget.$dynamicAnchor) ?? fragmentTarget; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/_stack.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/_stack.mjs var __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"); @@ -7841,7 +7602,7 @@ _Stack_instances = /* @__PURE__ */ new WeakSet(), _Stack_PushResourceAnchors = f return !ref.$ref.startsWith("#") ? Ref(root, ref.$ref) : Ref(this.Base(), ref.$ref); }; //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/build.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/build.mjs function CreateCode(build) { return `${build.Functions().join(";\n")}; return (value) => { ${(build.UseUnevaluated() ? ["const context = new CheckContext({}, {})", `return ${build.Entry()}`] : [`return ${build.Entry()}`]).join("; ")} }`; } @@ -7927,7 +7688,7 @@ function Build(...args) { return new BuildResult(context, schema, GetExternal(), functions, call, build.UseUnevaluated()); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/errors.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/errors.mjs /** Checks a value and returns validation errors */ function Errors$1(...args) { const [context, schema, value] = Match$3(args, { @@ -7954,7 +7715,7 @@ function Errors$1(...args) { }), "#", "", schema, value), errors]; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/check.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/check.mjs /** Checks a value against the provided schema */ function Check$1(...args) { const [context, schema, value] = Match$3(args, { @@ -7972,7 +7733,7 @@ function Check$1(...args) { return CheckSchema(new Stack(context, schema), new CheckContext(), schema, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/check/check.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/check/check.mjs /** Checks a value matches the provided type. */ function Check(...args) { const [context, type, value] = Match$3(args, { @@ -7990,7 +7751,7 @@ function Check(...args) { return Check$1(context, type, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/errors/errors.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/errors/errors.mjs /** * Performs an exhaustive Check on the specified value and reports any errors found. * If no errors are found, an empty array is returned. Unlike Check, this function @@ -8014,7 +7775,7 @@ function Errors(...args) { return errors; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/assert/assert.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/assert/assert.mjs var AssertError = class extends Error { constructor(source, value, errors) { super(source); @@ -8031,18 +7792,13 @@ var AssertError = class extends Error { } }; //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/clean/from_array.mjs -function FromArray$6(context, type, value) { +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/clean/from_array.mjs +function FromArray$5(context, type, value) { if (!IsArray$2(value)) return value; return value.map((value) => FromType$6(context, type.items, value)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/clean/from_base.mjs -function FromBase$3(_context, type, value) { - return type.Clean(value); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/clean/from_cyclic.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/clean/from_cyclic.mjs function FromCyclic$5(context, type, value) { return FromType$6({ ...context, @@ -8050,7 +7806,7 @@ function FromCyclic$5(context, type, value) { }, Ref$1(type.$ref), value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/clean/from_intersect.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/clean/from_intersect.mjs function EvaluateIntersection(context, type) { const additionalProperties = HasPropertyKey$1(type, "unevaluatedProperties") ? { additionalProperties: type.unevaluatedProperties } : {}; const evaluated = Evaluate(Instantiate(context, type)); @@ -8060,13 +7816,13 @@ function FromIntersect$5(context, type, value) { return FromType$6(context, EvaluateIntersection(context, type), value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/clean/additional.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/clean/additional.mjs function GetAdditionalProperties(type) { return HasPropertyKey$1(type, "additionalProperties") ? type.additionalProperties : void 0; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/clean/from_object.mjs -function FromObject$6(context, type, value) { +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/clean/from_object.mjs +function FromObject$5(context, type, value) { if (!IsObject$2(value) || IsArray$2(value)) return value; const additionalProperties = GetAdditionalProperties(type); for (const key of Keys$1(value)) { @@ -8083,7 +7839,7 @@ function FromObject$6(context, type, value) { return value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/clean/from_record.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/clean/from_record.mjs function FromRecord$5(context, type, value) { if (!IsObject$2(value)) return value; const additionalProperties = GetAdditionalProperties(type); @@ -8102,12 +7858,12 @@ function FromRecord$5(context, type, value) { return value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/clean/from_ref.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/clean/from_ref.mjs function FromRef$5(context, type, value) { return HasPropertyKey$1(context, type.$ref) ? FromType$6(context, context[type.$ref], value) : value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/clean/from_tuple.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/clean/from_tuple.mjs function FromTuple$5(context, schema, value) { if (!IsArray$2(value)) return value; const length = Math.min(value.length, schema.items.length); @@ -8115,52 +7871,16 @@ function FromTuple$5(context, schema, value) { return IsGreaterThan$1(value.length, length) ? value.slice(0, length) : value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/clone/clone.mjs -function FromClassInstance(value) { - return value; -} -function IsTypeInstance(value) { - return HasPropertyKey$1(value, "~kind"); -} -function FromTypeInstance(value) { - return Clone$1(value); -} -function FromObjectInstance(value) { - const result = {}; - for (const key of Keys$1(value)) { - if (IsUnsafePropertyKey(key)) continue; - result[key] = Clone(value[key]); - } - for (const key of Symbols(value)) result[key] = Clone(value[key]); - return result; -} -function FromObject$5(value) { - return IsClassInstance(value) ? FromClassInstance(value) : IsTypeInstance(value) ? FromTypeInstance(value) : FromObjectInstance(value); -} -function FromArray$5(value) { - return value.map((element) => Clone(element)); -} -function FromTypedArray(value) { - return value.slice(); -} -function FromMap(value) { - return new Map(Clone([...value.entries()])); -} -function FromSet(value) { - return new Set(Clone([...value.values()])); -} -function FromValue(value) { - return value; -} +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/clone/clone.mjs /** * Returns a Clone of the given value. This function is similar to structuredClone() * but also supports deep cloning instances of Map, Set and TypeArray. */ function Clone(value) { - return IsTypeArray(value) ? FromTypedArray(value) : IsMap(value) ? FromMap(value) : IsSet(value) ? FromSet(value) : IsArray$2(value) ? FromArray$5(value) : IsObject$2(value) ? FromObject$5(value) : FromValue(value); + return Clone$1(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/clean/from_union.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/clean/from_union.mjs function FromUnion$5(context, type, value) { for (const schema of type.anyOf) { const clean = FromType$6(context, schema, Clone(value)); @@ -8169,12 +7889,12 @@ function FromUnion$5(context, type, value) { return value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/clean/from_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/clean/from_type.mjs function FromType$6(context, type, value) { - return IsArray(type) ? FromArray$6(context, type, value) : IsBase(type) ? FromBase$3(context, type, value) : IsCyclic(type) ? FromCyclic$5(context, type, value) : IsIntersect(type) ? FromIntersect$5(context, type, value) : IsObject(type) ? FromObject$6(context, type, value) : IsRecord(type) ? FromRecord$5(context, type, value) : IsRef$1(type) ? FromRef$5(context, type, value) : IsTuple(type) ? FromTuple$5(context, type, value) : IsUnion(type) ? FromUnion$5(context, type, value) : value; + return IsArray(type) ? FromArray$5(context, type, value) : IsCyclic(type) ? FromCyclic$5(context, type, value) : IsIntersect(type) ? FromIntersect$5(context, type, value) : IsObject(type) ? FromObject$5(context, type, value) : IsRecord(type) ? FromRecord$5(context, type, value) : IsRef$1(type) ? FromRef$5(context, type, value) : IsTuple(type) ? FromTuple$5(context, type, value) : IsUnion(type) ? FromUnion$5(context, type, value) : value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/shared/union_priority_sort.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/shared/union_priority_sort.mjs function Modifiers(type, next) { for (const key of guard_default.Keys(type)) { if (guard_default.HasPropertyKey(next, key)) continue; @@ -8205,7 +7925,7 @@ function UnionPrioritySort(type) { return FromType$5(type); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/clean/clean.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/clean/clean.mjs /** * Cleans a value by removing non-evaluated properties and elements as derived from the provided type. * This function returns unknown so callers should Check the return value before use. This function @@ -8228,7 +7948,7 @@ function Clean(...args) { return FromType$6(context, Get$3().unionPrioritySort ? UnionPrioritySort(type) : type, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/try/try_result.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/try/try_result.mjs function IsOk(value) { return IsObject$2(value) && HasPropertyKey$1(value, "value"); } @@ -8236,12 +7956,12 @@ function Ok(value) { return { value }; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/try/try_array.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/try/try_array.mjs function TryArray(value) { return IsArray$2(value) ? Ok(value) : Ok([value]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/try/try_bigint.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/try/try_bigint.mjs function FromBoolean$5(value) { return IsEqual$1(value, true) ? Ok(BigInt(1)) : Ok(BigInt(0)); } @@ -8265,7 +7985,7 @@ function TryBigInt(value) { return IsBigInt$2(value) ? Ok(value) : IsBoolean$3(value) ? FromBoolean$5(value) : IsNumber$3(value) ? Ok(BigInt(Math.trunc(value))) : IsNull$2(value) ? Ok(BigInt(0)) : IsString$3(value) ? FromString$6(value) : IsUndefined$2(value) ? Ok(BigInt(0)) : void 0; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/try/try_boolean.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/try/try_boolean.mjs function FromBigInt$5(value) { return IsEqual$1(value, BigInt(0)) ? Ok(false) : IsEqual$1(value, BigInt(1)) ? Ok(true) : void 0; } @@ -8279,7 +7999,7 @@ function TryBoolean(value) { return IsBigInt$2(value) ? FromBigInt$5(value) : IsBoolean$3(value) ? Ok(value) : IsNumber$3(value) ? FromNumber$4(value) : IsNull$2(value) ? Ok(false) : IsString$3(value) ? FromString$5(value) : IsUndefined$2(value) ? Ok(false) : void 0; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/try/try_null.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/try/try_null.mjs function FromBigInt$4(value) { return IsEqual$1(value, BigInt(0)) ? Ok(null) : void 0; } @@ -8297,7 +8017,7 @@ function TryNull(value) { return IsBigInt$2(value) ? FromBigInt$4(value) : IsBoolean$3(value) ? FromBoolean$4(value) : IsNumber$3(value) ? FromNumber$3(value) : IsNull$2(value) ? Ok(null) : IsString$3(value) ? FromString$4(value) : IsUndefined$2(value) ? Ok(null) : void 0; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/try/try_number.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/try/try_number.mjs const maxBigInt = BigInt(Number.MAX_SAFE_INTEGER); const minBigInt = BigInt(Number.MIN_SAFE_INTEGER); function FromBigInt$3(value) { @@ -8319,12 +8039,12 @@ function TryNumber(value) { return IsBigInt$2(value) ? FromBigInt$3(value) : IsBoolean$3(value) ? FromBoolean$3(value) : IsNumber$3(value) ? Ok(value) : IsNull$2(value) ? Ok(0) : IsString$3(value) ? FromString$3(value) : IsUndefined$2(value) ? Ok(0) : void 0; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/try/try_string.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/try/try_string.mjs function TryString(value) { return IsBigInt$2(value) ? Ok(value.toString()) : IsBoolean$3(value) ? Ok(value.toString()) : IsNumber$3(value) ? Ok(value.toString()) : IsNull$2(value) ? Ok("null") : IsString$3(value) ? Ok(value) : IsUndefined$2(value) ? Ok("") : void 0; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/try/try_undefined.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/try/try_undefined.mjs function FromBigInt$2(value) { return IsEqual$1(value, BigInt(0)) ? Ok(void 0) : void 0; } @@ -8342,29 +8062,24 @@ function TryUndefined(value) { return IsBigInt$2(value) ? FromBigInt$2(value) : IsBoolean$3(value) ? FromBoolean$2(value) : IsNumber$3(value) ? FromNumber$2(value) : IsNull$2(value) ? Ok(void 0) : IsString$3(value) ? FromString$2(value) : IsUndefined$2(value) ? Ok(value) : void 0; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_array.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_array.mjs function FromArray$4(context, type, value) { return TryArray(value).value.map((value) => FromType$4(context, type.items, value)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_base.mjs -function FromBase$2(_context, type, value) { - return type.Convert(value); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_bigint.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_bigint.mjs function FromBigInt$1(_context, _type, value) { const result = TryBigInt(value); return IsOk(result) ? result.value : value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_boolean.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_boolean.mjs function FromBoolean$1(_context, _type, value) { const result = TryBoolean(value); return IsOk(result) ? result.value : value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_cyclic.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_cyclic.mjs function FromCyclic$4(context, type, value) { return FromType$4({ ...context, @@ -8372,23 +8087,23 @@ function FromCyclic$4(context, type, value) { }, Ref$1(type.$ref), value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_enum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_enum.mjs function FromEnum$1(context, type, value) { return FromType$4(context, Evaluate(type), value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_integer.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_integer.mjs function FromInteger$1(_context, _type, value) { const result = TryNumber(value); return IsOk(result) ? Math.trunc(result.value) : value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_intersect.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_intersect.mjs function FromIntersect$4(context, type, value) { return FromType$4(context, Evaluate(Instantiate(context, type)), value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_literal.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_literal.mjs function FromLiteralBigInt(_context, type, value) { const result = TryBigInt(value); return IsOk(result) && IsEqual$1(type.const, result.value) ? result.value : value; @@ -8410,19 +8125,19 @@ function FromLiteral$1(context, type, value) { return IsLiteralBigInt(type) ? FromLiteralBigInt(context, type, value) : IsLiteralBoolean(type) ? FromLiteralBoolean(context, type, value) : IsLiteralNumber(type) ? FromLiteralNumber(context, type, value) : IsLiteralString(type) ? FromLiteralString(context, type, value) : Unreachable$1(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_null.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_null.mjs function FromNull$1(_context, _type, value) { const result = TryNull(value); return IsOk(result) ? result.value : value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_number.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_number.mjs function FromNumber$1(_context, _type, value) { const result = TryNumber(value); return IsOk(result) ? result.value : value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_additional.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_additional.mjs /** * Used by Object and Record Types. The entries are derived from the known * properties obtained from 'properties' and 'patternProperties' respectively. @@ -8433,12 +8148,12 @@ function FromAdditionalProperties(context, entries, additionalProperties, value) return value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/shared/optional_undefined.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/shared/optional_undefined.mjs function IsOptionalUndefined(property, key, value) { return IsOptional(property) && IsUndefined$2(value[key]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_object.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_object.mjs function FromProperties(context, type, value) { const entries = EntriesRegExp(type.properties); const keys = Keys$1(value); @@ -8452,7 +8167,7 @@ function FromObject$4(context, type, value) { return IsObjectNotArray$1(value) ? FromProperties(context, type, value) : value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_record.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_record.mjs function FromPatternProperties(context, type, value) { const entries = EntriesRegExp(type.patternProperties); const keys = Keys$1(value); @@ -8463,53 +8178,53 @@ function FromRecord$4(context, type, value) { return IsObjectNotArray$1(value) ? FromPatternProperties(context, type, value) : value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_ref.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_ref.mjs function FromRef$4(context, type, value) { return HasPropertyKey$1(context, type.$ref) ? FromType$4(context, context[type.$ref], value) : value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_string.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_string.mjs function FromString$1(_context, _type, value) { const result = TryString(value); return IsOk(result) ? result.value : value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_template_literal.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_template_literal.mjs function FromTemplateLiteral$1(context, type, value) { return FromType$4(context, Evaluate(type), value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_tuple.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_tuple.mjs function FromTuple$4(context, type, value) { if (!IsArray$2(value)) return value; for (let index = 0; index < Math.min(type.items.length, value.length); index++) value[index] = FromType$4(context, type.items[index], value[index]); return value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_undefined.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_undefined.mjs function FromUndefined$1(_context, _type, value) { const result = TryUndefined(value); return IsOk(result) ? result.value : value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_union.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_union.mjs function FromUnion$4(context, type, value) { if (type.anyOf.some((type) => Check(context, type, value))) return value; const selected = type.anyOf.map((type) => FromType$4(context, type, Clone(value))).find((value) => Check(context, type, value)); return IsUndefined$2(selected) ? value : selected; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_void.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_void.mjs function FromVoid$1(_context, _type, value) { return IsOk(TryUndefined(value)) ? void 0 : value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_type.mjs function FromType$4(context, type, value) { - return IsArray(type) ? FromArray$4(context, type, value) : IsBase(type) ? FromBase$2(context, type, value) : IsBigInt(type) ? FromBigInt$1(context, type, value) : IsBoolean(type) ? FromBoolean$1(context, type, value) : IsCyclic(type) ? FromCyclic$4(context, type, value) : IsEnum$1(type) ? FromEnum$1(context, type, value) : IsInteger(type) ? FromInteger$1(context, type, value) : IsIntersect(type) ? FromIntersect$4(context, type, value) : IsLiteral(type) ? FromLiteral$1(context, type, value) : IsNull(type) ? FromNull$1(context, type, value) : IsNumber(type) ? FromNumber$1(context, type, value) : IsObject(type) ? FromObject$4(context, type, value) : IsRecord(type) ? FromRecord$4(context, type, value) : IsRef$1(type) ? FromRef$4(context, type, value) : IsString(type) ? FromString$1(context, type, value) : IsTemplateLiteral(type) ? FromTemplateLiteral$1(context, type, value) : IsTuple(type) ? FromTuple$4(context, type, value) : IsUndefined(type) ? FromUndefined$1(context, type, value) : IsUnion(type) ? FromUnion$4(context, type, value) : IsVoid(type) ? FromVoid$1(context, type, value) : value; + return IsArray(type) ? FromArray$4(context, type, value) : IsBigInt(type) ? FromBigInt$1(context, type, value) : IsBoolean(type) ? FromBoolean$1(context, type, value) : IsCyclic(type) ? FromCyclic$4(context, type, value) : IsEnum$1(type) ? FromEnum$1(context, type, value) : IsInteger(type) ? FromInteger$1(context, type, value) : IsIntersect(type) ? FromIntersect$4(context, type, value) : IsLiteral(type) ? FromLiteral$1(context, type, value) : IsNull(type) ? FromNull$1(context, type, value) : IsNumber(type) ? FromNumber$1(context, type, value) : IsObject(type) ? FromObject$4(context, type, value) : IsRecord(type) ? FromRecord$4(context, type, value) : IsRef$1(type) ? FromRef$4(context, type, value) : IsString(type) ? FromString$1(context, type, value) : IsTemplateLiteral(type) ? FromTemplateLiteral$1(context, type, value) : IsTuple(type) ? FromTuple$4(context, type, value) : IsUndefined(type) ? FromUndefined$1(context, type, value) : IsUnion(type) ? FromUnion$4(context, type, value) : IsVoid(type) ? FromVoid$1(context, type, value) : value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/convert.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/convert.mjs /** * Converts a value to the given type, coercing interior values if a reasonable conversion is possible. This * function returns unknown so callers should Check the return value before use. This function mutates the @@ -8531,19 +8246,14 @@ function Convert(...args) { return FromType$4(context, type, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/default/from_array.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/default/from_array.mjs function FromArray$3(context, type, value) { if (!IsArray$2(value)) return value; for (let i = 0; i < value.length; i++) value[i] = FromType$3(context, type.items, value[i]); return value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/default/from_base.mjs -function FromBase$1(context, type, value) { - return type.Default(value); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/default/from_cyclic.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/default/from_cyclic.mjs function FromCyclic$3(context, type, value) { return FromType$3({ ...context, @@ -8551,18 +8261,18 @@ function FromCyclic$3(context, type, value) { }, Ref$1(type.$ref), value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/default/from_default.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/default/from_default.mjs function FromDefault$1(type, value) { if (!IsUndefined$2(value)) return value; return IsFunction$2(type.default) ? type.default() : Clone(type.default); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/default/from_intersect.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/default/from_intersect.mjs function FromIntersect$3(context, type, value) { return FromType$3(context, Evaluate(Instantiate(context, type)), value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/default/from_object.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/default/from_object.mjs function FromObject$3(context, type, value) { if (!IsObject$2(value)) return value; const knownPropertyKeys = Keys$1(type.properties); @@ -8579,7 +8289,7 @@ function FromObject$3(context, type, value) { return value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/default/from_record.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/default/from_record.mjs function FromRecord$3(context, type, value) { if (!IsObject$2(value)) return value; const [recordKey, recordValue] = [new RegExp(RecordPattern(type)), RecordValue(type)]; @@ -8595,12 +8305,12 @@ function FromRecord$3(context, type, value) { return value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/default/from_ref.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/default/from_ref.mjs function FromRef$3(context, type, value) { return HasPropertyKey$1(context, type.$ref) ? FromType$3(context, context[type.$ref], value) : value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/default/from_tuple.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/default/from_tuple.mjs function FromTuple$3(context, schema, value) { if (!IsArray$2(value)) return value; const [items, max] = [schema.items, Math.max(schema.items.length, value.length)]; @@ -8608,7 +8318,7 @@ function FromTuple$3(context, schema, value) { return value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/default/from_union.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/default/from_union.mjs function FromUnion$3(context, schema, value) { for (const inner of schema.anyOf) { const result = FromType$3(context, inner, Clone(value)); @@ -8617,13 +8327,13 @@ function FromUnion$3(context, schema, value) { return value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/default/from_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/default/from_type.mjs function FromType$3(context, type, value) { const defaulted = IsDefault(type) ? FromDefault$1(type, value) : value; - return IsArray(type) ? FromArray$3(context, type, defaulted) : IsBase(type) ? FromBase$1(context, type, defaulted) : IsCyclic(type) ? FromCyclic$3(context, type, defaulted) : IsIntersect(type) ? FromIntersect$3(context, type, defaulted) : IsObject(type) ? FromObject$3(context, type, defaulted) : IsRecord(type) ? FromRecord$3(context, type, defaulted) : IsRef$1(type) ? FromRef$3(context, type, defaulted) : IsTuple(type) ? FromTuple$3(context, type, defaulted) : IsUnion(type) ? FromUnion$3(context, type, defaulted) : defaulted; + return IsArray(type) ? FromArray$3(context, type, defaulted) : IsCyclic(type) ? FromCyclic$3(context, type, defaulted) : IsIntersect(type) ? FromIntersect$3(context, type, defaulted) : IsObject(type) ? FromObject$3(context, type, defaulted) : IsRecord(type) ? FromRecord$3(context, type, defaulted) : IsRef$1(type) ? FromRef$3(context, type, defaulted) : IsTuple(type) ? FromTuple$3(context, type, defaulted) : IsUnion(type) ? FromUnion$3(context, type, defaulted) : defaulted; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/default/default.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/default/default.mjs /** * Patches missing properties on the value using default annotations specified on the provided type. This * function returns unknown so callers should Check the return value before use. This function mutates the @@ -8645,7 +8355,7 @@ function Default(...args) { return FromType$3(context, type, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/pipeline/pipeline.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/pipeline/pipeline.mjs /** Creates a value processing pipeline. */ function Pipeline(pipeline) { return (...args) => { @@ -8665,7 +8375,7 @@ function Pipeline(pipeline) { }; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/codec/callback.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/codec/callback.mjs function Decode$7(_context, type, value) { return type["~codec"].decode(value); } @@ -8677,7 +8387,7 @@ function Callback(direction, context, type, value) { return IsEqual$1(direction, "Decode") ? Decode$7(context, type, value) : Encode$7(context, type, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/codec/from_array.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/codec/from_array.mjs function Decode$6(direction, context, type, value) { if (!IsArray$2(value)) return value; for (let i = 0; i < value.length; i++) value[i] = FromType$2(direction, context, type.items, value[i]); @@ -8693,7 +8403,7 @@ function FromArray$2(direction, context, type, value) { return IsEqual$1(direction, "Decode") ? Decode$6(direction, context, type, value) : Encode$6(direction, context, type, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/codec/from_cyclic.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/codec/from_cyclic.mjs function FromCyclic$2(direction, context, type, value) { value = FromType$2(direction, { ...context, @@ -8702,7 +8412,7 @@ function FromCyclic$2(direction, context, type, value) { return Callback(direction, context, type, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/codec/from_intersect.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/codec/from_intersect.mjs function MergeInteriors(interiors) { return interiors.reduce((results, interior) => ({ ...results, @@ -8729,7 +8439,7 @@ function FromIntersect$2(direction, context, type, value) { return IsEqual$1(direction, "Decode") ? Decode$5(direction, context, type, value) : Encode$5(direction, context, type, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/codec/from_object.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/codec/from_object.mjs function Decode$4(direction, context, type, value) { if (!IsObjectNotArray$1(value)) return value; for (const key of Keys$1(type.properties)) { @@ -8751,7 +8461,7 @@ function FromObject$2(direction, context, type, value) { return IsEqual$1(direction, "Decode") ? Decode$4(direction, context, type, value) : Encode$4(direction, context, type, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/codec/from_record.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/codec/from_record.mjs function Decode$3(direction, context, type, value) { if (!IsObjectNotArray$1(value)) return value; const regexp = new RegExp(RecordPattern(type)); @@ -8775,7 +8485,7 @@ function FromRecord$2(direction, context, type, value) { return IsEqual$1(direction, "Decode") ? Decode$3(direction, context, type, value) : Encode$3(direction, context, type, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/codec/from_ref.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/codec/from_ref.mjs function ResolveRef(direction, context, type, value) { return HasPropertyKey$1(context, type.$ref) ? FromType$2(direction, context, context[type.$ref], value) : value; } @@ -8783,7 +8493,7 @@ function FromRef$2(direction, context, type, value) { return IsEqual$1(direction, "Decode") ? Callback(direction, context, type, ResolveRef(direction, context, type, value)) : ResolveRef(direction, context, type, Callback(direction, context, type, value)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/codec/from_tuple.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/codec/from_tuple.mjs function Decode$2(direction, context, type, value) { if (!IsArray$2(value)) return value; for (let i = 0; i < Math.min(type.items.length, value.length); i++) value[i] = FromType$2(direction, context, type.items[i], value[i]); @@ -8799,7 +8509,7 @@ function FromTuple$2(direction, context, type, value) { return IsEqual$1(direction, "Decode") ? Decode$2(direction, context, type, value) : Encode$2(direction, context, type, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/codec/from_union.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/codec/from_union.mjs function Decode$1(direction, context, type, value) { for (const schema of type.anyOf) { if (!Check(context, schema, value)) continue; @@ -8820,12 +8530,12 @@ function FromUnion$2(direction, context, type, value) { return IsEqual$1(direction, "Decode") ? Decode$1(direction, context, type, value) : Encode$1(direction, context, type, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/codec/from_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/codec/from_type.mjs function FromType$2(direction, context, type, value) { return IsArray(type) ? FromArray$2(direction, context, type, value) : IsCyclic(type) ? FromCyclic$2(direction, context, type, value) : IsIntersect(type) ? FromIntersect$2(direction, context, type, value) : IsObject(type) ? FromObject$2(direction, context, type, value) : IsRecord(type) ? FromRecord$2(direction, context, type, value) : IsRef$1(type) ? FromRef$2(direction, context, type, value) : IsTuple(type) ? FromTuple$2(direction, context, type, value) : IsUnion(type) ? FromUnion$2(direction, context, type, value) : Callback(direction, context, type, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/codec/decode.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/codec/decode.mjs var DecodeError = class extends AssertError { constructor(value, errors) { super("Decode", value, errors); @@ -8864,7 +8574,7 @@ function Decode(...args) { return Decoder(context, type, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/codec/encode.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/codec/encode.mjs var EncodeError = class extends AssertError { constructor(value, errors) { super("Encode", value, errors); @@ -8903,7 +8613,7 @@ function Encode(...args) { return Encoder(context, type, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/codec/has.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/codec/has.mjs function FromArray$1(context, type) { return IsCodec(type) || FromType$1(context, type.items); } @@ -8949,7 +8659,7 @@ function HasCodec(...args) { return FromType$1(context, type); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/create/error.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/error.mjs var CreateError = class extends Error { constructor(type, message) { super(message); @@ -8957,40 +8667,29 @@ var CreateError = class extends Error { } }; //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/create/from_default.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/from_default.mjs function FromDefault(_context, schema) { return IsFunction$2(schema.default) ? schema.default(schema) : IsObject$2(schema.default) ? Clone(schema.default) : schema.default; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/create/from_array.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/from_array.mjs function FromArray(context, type) { if (IsUniqueItems(type) && !IsDefault(type)) throw new CreateError(type, "Arrays with uniqueItems constraints must specify a default annotation"); const length = IsMinItems(type) ? type.minItems : 0; return Array.from({ length }, () => FromType(context, type.items)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/create/from_async_iterator.mjs -async function* CreateAsyncIterator() {} -function FromAsyncIterator(_context, _type) { - return CreateAsyncIterator(); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/create/from_base.mjs -function FromBase(_context, type) { - return type.Create(); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/create/from_bigint.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/from_bigint.mjs function FromBigInt(_context, type) { return IsExclusiveMinimum(type) ? BigInt(type.exclusiveMinimum) + BigInt(1) : IsMinimum(type) ? BigInt(type.minimum) : BigInt(0); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/create/from_boolean.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/from_boolean.mjs function FromBoolean(_context, _type) { return false; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/create/from_constructor.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/from_constructor.mjs function FromConstructor(context, type) { const instanceType = FromType(context, type.instanceType); return class { @@ -9000,7 +8699,7 @@ function FromConstructor(context, type) { }; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/create/from_cyclic.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/from_cyclic.mjs function FromCyclic(context, type) { return FromType({ ...context, @@ -9008,54 +8707,48 @@ function FromCyclic(context, type) { }, Ref$1(type.$ref)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/create/from_enum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/from_enum.mjs function FromEnum(context, type) { return FromType(context, Evaluate(type)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/create/from_function.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/from_function.mjs function FromFunction(context, type) { const returnType = FromType(context, type.returnType); return () => returnType; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/create/from_integer.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/from_integer.mjs function FromInteger(_context, type) { return IsExclusiveMinimum(type) && IsNumber$3(type.exclusiveMinimum) ? type.exclusiveMinimum + 1 : IsMinimum(type) ? type.minimum : 0; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/create/from_intersect.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/from_intersect.mjs function FromIntersect(context, type) { return FromType(context, Evaluate(Instantiate(context, type))); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/create/from_iterator.mjs -function* CreateIterator() {} -function FromIterator(_context, _type) { - return CreateIterator(); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/create/from_literal.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/from_literal.mjs function FromLiteral(_context, type) { return type.const; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/create/from_never.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/from_never.mjs function FromNever(_context, type) { throw new CreateError(type, "Cannot create TNever types"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/create/from_null.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/from_null.mjs function FromNull(_context, _type) { return null; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/create/from_number.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/from_number.mjs function FromNumber(_context, type) { return IsExclusiveMinimum(type) && IsNumber$3(type.exclusiveMinimum) ? type.exclusiveMinimum + 1 : IsMinimum(type) ? type.minimum : 0; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/create/from_object.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/from_object.mjs function FromObject(context, type) { return (IsUndefined$2(type.required) ? [] : type.required).reduce((result, key) => { return { @@ -9065,60 +8758,55 @@ function FromObject(context, type) { }, {}); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/create/from_promise.mjs -function FromPromise(context, type) { - return Promise.resolve(FromType(context, type.item)); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/create/from_record.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/from_record.mjs function FromRecord(_context, type) { if (IsMinProperties(type) && !IsDefault(type)) throw new CreateError(type, "Record with the minProperties constraint must have a default annotation"); return {}; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/create/from_ref.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/from_ref.mjs function FromRef(context, type) { return HasPropertyKey$1(context, type.$ref) ? FromType(context, context[type.$ref]) : (() => { throw new CreateError(type, "Unable to deref Ref"); })(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/create/from_string.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/from_string.mjs function FromString(_context, type) { if ((IsPattern(type) || IsFormat(type)) && !IsDefault(type)) throw Error("Strings with format or pattern constraints must specify default"); const minLength = IsMinLength(type) ? type.minLength : 0; return "".padEnd(minLength); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/create/from_symbol.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/from_symbol.mjs function FromSymbol(_context, _type) { return Symbol(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/create/from_template_literal.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/from_template_literal.mjs function FromTemplateLiteral(context, type) { const decoded = TemplateLiteralDecode(type.pattern); if (IsString(decoded)) throw new CreateError(type, "Unable to create TemplateLiteral due to infinite type expansion"); return FromType(context, decoded); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/create/from_tuple.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/from_tuple.mjs function FromTuple(context, type) { return Array.from({ length: type.minItems }, (_, i) => FromType(context, type.items[i])); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/create/from_union.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/from_union.mjs function FromUnion(context, type) { if (IsEqual$1(type.anyOf.length, 0)) throw Error("Unable to create Union with no variants"); return FromType(context, type.anyOf[0]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/create/from_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/from_type.mjs function FromType(context, type) { - return IsDefault(type) ? FromDefault(context, type) : IsArray(type) ? FromArray(context, type) : IsAsyncIterator(type) ? FromAsyncIterator(context, type) : IsBase(type) ? FromBase(context, type) : IsBigInt(type) ? FromBigInt(context, type) : IsBoolean(type) ? FromBoolean(context, type) : IsConstructor(type) ? FromConstructor(context, type) : IsCyclic(type) ? FromCyclic(context, type) : IsEnum$1(type) ? FromEnum(context, type) : IsFunction(type) ? FromFunction(context, type) : IsInteger(type) ? FromInteger(context, type) : IsIntersect(type) ? FromIntersect(context, type) : IsIterator(type) ? FromIterator(context, type) : IsLiteral(type) ? FromLiteral(context, type) : IsNever(type) ? FromNever(context, type) : IsNull(type) ? FromNull(context, type) : IsNumber(type) ? FromNumber(context, type) : IsObject(type) ? FromObject(context, type) : IsPromise(type) ? FromPromise(context, type) : IsRecord(type) ? FromRecord(context, type) : IsRef$1(type) ? FromRef(context, type) : IsString(type) ? FromString(context, type) : IsSymbol(type) ? FromSymbol(context, type) : IsTemplateLiteral(type) ? FromTemplateLiteral(context, type) : IsTuple(type) ? FromTuple(context, type) : IsUndefined(type) ? void 0 : IsUnion(type) ? FromUnion(context, type) : IsVoid(type) ? void 0 : void 0; + return IsDefault(type) ? FromDefault(context, type) : IsArray(type) ? FromArray(context, type) : IsBigInt(type) ? FromBigInt(context, type) : IsBoolean(type) ? FromBoolean(context, type) : IsConstructor(type) ? FromConstructor(context, type) : IsCyclic(type) ? FromCyclic(context, type) : IsEnum$1(type) ? FromEnum(context, type) : IsFunction(type) ? FromFunction(context, type) : IsInteger(type) ? FromInteger(context, type) : IsIntersect(type) ? FromIntersect(context, type) : IsLiteral(type) ? FromLiteral(context, type) : IsNever(type) ? FromNever(context, type) : IsNull(type) ? FromNull(context, type) : IsNumber(type) ? FromNumber(context, type) : IsObject(type) ? FromObject(context, type) : IsRecord(type) ? FromRecord(context, type) : IsRef$1(type) ? FromRef(context, type) : IsString(type) ? FromString(context, type) : IsSymbol(type) ? FromSymbol(context, type) : IsTemplateLiteral(type) ? FromTemplateLiteral(context, type) : IsTuple(type) ? FromTuple(context, type) : IsUndefined(type) ? void 0 : IsUnion(type) ? FromUnion(context, type) : IsVoid(type) ? void 0 : void 0; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/create/create.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/create.mjs /** Creates a value from the provided type. This function will use `default` annotations if present. */ function Create(...args) { const [context, type] = Match$3(args, { @@ -9128,7 +8816,7 @@ function Create(...args) { return FromType(context, type); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/parse/parse.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/parse/parse.mjs var ParseError = class extends AssertError { constructor(value, errors) { super("Parse", value, errors); @@ -9162,30 +8850,13 @@ Union([ }) ]); //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/compile/validator.mjs -var Validator = class Validator extends Base$1 { +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/compile/validator.mjs +var Validator = class { /** Constructs a Validator. */ - constructor(...args) { - super(); - const matched = Match$3(args, { - 3: (hasCodec, buildResult, evaluateResult) => [ - hasCodec, - buildResult, - evaluateResult - ], - 2: (context, type) => [context, type] - }); - if (matched.length === 3 && matched[1] instanceof BuildResult && matched[2] instanceof EvaluateResult) { - const [hasCodec, buildResult, evaluateResult] = matched; - this.hasCodec = hasCodec; - this.buildResult = buildResult; - this.evaluateResult = evaluateResult; - } else { - const [context, type] = matched; - this.hasCodec = HasCodec(context, type); - this.buildResult = Build(context, type); - this.evaluateResult = this.buildResult.Evaluate(); - } + constructor(context, type) { + this.hasCodec = HasCodec(context, type); + this.buildResult = Build(context, type); + this.evaluateResult = this.buildResult.Evaluate(); } /** Returns true if this Validator is using JIT acceleration. */ IsAccelerated() { @@ -9242,16 +8913,9 @@ var Validator = class Validator extends Base$1 { Encode(value) { return this.hasCodec ? Encode(this.Context(), this.Type(), value) : this.Parse(value); } - /** - * @deprecated Validator instances should not support Clone because they are owners of JIT evaluated functions. This function will be - * removed in the next version of TypeBox (relates to Type.Base deprecation) - */ - Clone() { - return new Validator(this.hasCodec, this.buildResult, this.evaluateResult); - } }; //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/compile/compile.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/compile/compile.mjs /** Compiles a type into a high performance Validator */ function Compile(...args) { const [context, type] = Match$3(args, { @@ -9261,7 +8925,7 @@ function Compile(...args) { return new Validator(context, type); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/compile/index.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/compile/index.mjs var compile_default = Compile; //#endregion //#region ../schemas/libraries/typebox/download/compile.ts diff --git a/schemas/libraries/typebox/download_compiled/minified.js b/schemas/libraries/typebox/download_compiled/minified.js index ec0c4916..d8c80467 100644 --- a/schemas/libraries/typebox/download_compiled/minified.js +++ b/schemas/libraries/typebox/download_compiled/minified.js @@ -1,9 +1,9 @@ -var e=Object.defineProperty,t=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r};const n={assign:0,create:0,clone:0,discard:0,update:0};function r(e,t){return n.assign+=1,{...e,...t}}function i(e,t,n){return e>=t&&e<=n}function a(e){return i(e,127462,127487)}function o(e){return i(e,65024,65039)}function s(e){return i(e,768,879)||i(e,6832,6911)||i(e,7616,7679)||i(e,65056,65071)}function c(e){return e>65535?2:1}function l(e,t){for(;t=t)return!0;return!1}function re(e,t){let n=0,r=0;for(;rt)return!1;return!0}function ie(e,t){if(t===0)return!0;let n=0;for(;n=t)return!0}return!1}function ae(e,t){let n=0;for(;nt)return!1}return!0}var oe=t({Entries:()=>Oe,EntriesRegExp:()=>De,Every:()=>y,EveryAll:()=>Te,GraphemeCount:()=>Se,HasPropertyKey:()=>x,IsArray:()=>d,IsAsyncIterator:()=>se,IsBigInt:()=>f,IsBoolean:()=>p,IsClassInstance:()=>be,IsConstructor:()=>ce,IsDeepEqual:()=>Ne,IsEqual:()=>v,IsFunction:()=>le,IsGreaterEqualThan:()=>ve,IsGreaterThan:()=>he,IsInteger:()=>ue,IsIterator:()=>de,IsLessEqualThan:()=>_e,IsLessThan:()=>ge,IsMaxLength:()=>Ce,IsMinLength:()=>we,IsMultipleOf:()=>ye,IsNull:()=>fe,IsNumber:()=>m,IsObject:()=>h,IsObjectNotArray:()=>pe,IsString:()=>g,IsSymbol:()=>me,IsUndefined:()=>_,IsUnsafePropertyKey:()=>Ee,IsValueLike:()=>xe,Keys:()=>S,ShiftLeft:()=>b,Symbols:()=>ke,Values:()=>Ae});function d(e){return Array.isArray(e)}function se(e){return h(e)&&Symbol.asyncIterator in e}function f(e){return v(typeof e,`bigint`)}function p(e){return v(typeof e,`boolean`)}function ce(e){if(_(e)||!le(e))return!1;let t=Function.prototype.toString.call(e);return!!(/^class\s/.test(t)||/\[native code\]/.test(t))}function le(e){return v(typeof e,`function`)}function ue(e){return Number.isInteger(e)}function de(e){return h(e)&&Symbol.iterator in e}function fe(e){return v(e,null)}function m(e){return Number.isFinite(e)}function pe(e){return h(e)&&!d(e)}function h(e){return v(typeof e,`object`)&&!fe(e)}function g(e){return v(typeof e,`string`)}function me(e){return v(typeof e,`symbol`)}function _(e){return v(e,void 0)}function v(e,t){return e===t}function he(e,t){return e>t}function ge(e,t){return e=t}function ye(e,t){if(f(e)||f(t))return BigInt(e)%BigInt(t)===0n;if(!m(e)||ue(e)&&1/t%1==0)return!0;let n=e%t;return Math.min(Math.abs(n),Math.abs(n-t))<1e-10}function be(e){if(!h(e))return!1;let t=globalThis.Object.getPrototypeOf(e);return fe(t)?!1:v(typeof t.constructor,`function`)&&!(v(t.constructor,globalThis.Object)||v(t.constructor.name,`Object`))}function xe(e){return f(e)||p(e)||fe(e)||m(e)||g(e)||_(e)}function Se(e){return te(e)}function Ce(e,t){return ae(e,t)}function we(e,t){return ie(e,t)}function y(e,t,n){for(let r=t;r[RegExp(`^${t}$`),e[t]])}function Oe(e){return Object.entries(e)}function S(e){return Object.getOwnPropertyNames(e)}function ke(e){return Object.getOwnPropertySymbols(e)}function Ae(e){return Object.values(e)}function je(e,t){if(!h(t))return!1;let n=S(e);return v(n.length,S(t).length)&&n.every(n=>Ne(e[n],t[n]))}function Me(e,t){return d(t)&&v(e.length,t.length)&&e.every((n,r)=>Ne(e[r],t[r]))}function Ne(e,t){return d(e)?Me(e,t):h(e)?je(e,t):v(e,t)}function Pe(e){return e instanceof Boolean}function Fe(e){return e instanceof Number}function Ie(e){return e instanceof String}function Le(e){return globalThis.ArrayBuffer.isView(e)}function Re(e){return e instanceof globalThis.RegExp}function ze(e){return e instanceof globalThis.Date}function Be(e){return e instanceof globalThis.Set}function Ve(e){return e instanceof globalThis.Map}var He=oe;function Ue(e){return h(e)&&x(e,`~guard`)}function We(e){return e}function Ge(e){return e.map(e=>Ye(e))}function Ke(e){let t={},n=Object.getOwnPropertyDescriptors(e);for(let e of Object.keys(n)){let r=n[e];x(r,`value`)&&Object.defineProperty(t,e,{...r,value:Ye(r.value)})}return t}function qe(e){return new RegExp(e.source,e.flags)}function Je(e){return e}function Ye(e){return e instanceof RegExp?qe(e):Ue(e)?We(e):d(e)?Ge(e):h(e)?Ke(e):Je(e)}function Xe(e){return n.clone+=1,Ye(e)}const Ze={immutableTypes:!1,maxErrors:8,useAcceleration:!0,exactOptionalPropertyTypes:!1,enumerableKind:!1,correctiveParse:!1,unionPrioritySort:!0};function Qe(){return Ze}function $e(e,t){for(let n of Object.keys(t))Object.defineProperty(e,n,{configurable:!0,writable:!0,enumerable:!1,value:t[n]});return e}function et(e,t){return{...e,...t}}function C(e,t,r={}){n.create+=1;let i=Qe(),a=et(t,r),o=i.enumerableKind?et(a,e):$e(a,e);return i.immutableTypes?Object.freeze(o):o}function tt(e,t){n.discard+=1;let r={},i=Object.getOwnPropertyDescriptors(Xe(e)),a=new Set(t);for(let e of Object.keys(i))a.has(e)||Object.defineProperty(r,e,i[e]);return r}function w(e,t,r){n.update+=1;let i=Qe(),a=Xe(e);for(let e of Object.keys(t))Object.defineProperty(a,e,{configurable:!0,writable:!0,enumerable:i.enumerableKind,value:t[e]});for(let e of Object.keys(r))Object.defineProperty(a,e,{configurable:!0,enumerable:!0,writable:!0,value:r[e]});return a}function T(e,t){return h(e)&&x(e,`~kind`)&&v(e[`~kind`],t)}function nt(e){return h(e)}function E(e,t,n){return C({"~kind":`Deferred`},{type:`deferred`,action:e,parameters:t,options:n},{})}function rt(e){return T(e,`Deferred`)}function it(e){return{enumerable:Qe().enumerableKind,writable:!1,configurable:!1,value:e}}var at=class{constructor(){globalThis.Object.defineProperty(this,`~kind`,it(`Base`)),globalThis.Object.defineProperty(this,`~guard`,it({check:e=>this.Check(e),errors:e=>this.Errors(e)}))}Check(e){return!0}Errors(e){return[]}Convert(e){return e}Clean(e){return e}Default(e){return e}Create(){throw Error(`Create not implemented`)}Clone(){throw Error(`Clone not implemented`)}};function ot(e){return T(e,`Base`)}function st(e,t){return C({"~kind":`Array`},{type:`array`,items:e},t)}function D(e){return T(e,`Array`)}function ct(e){return tt(e,[`~kind`,`type`,`items`])}function lt(e,t){return C({"~kind":`AsyncIterator`},{type:`asyncIterator`,iteratorItems:e},t)}function ut(e){return T(e,`AsyncIterator`)}function dt(e){return tt(e,[`~kind`,`type`,`iteratorItems`])}function ft(e,t,n={}){return C({"~kind":`Constructor`},{type:`constructor`,parameters:e,instanceType:t},n)}function pt(e){return T(e,`Constructor`)}function mt(e){return tt(e,[`~kind`,`type`,`parameters`,`instanceType`])}function ht(e,t,n={}){return C({"~kind":`Function`},{type:`function`,parameters:e,returnType:t},n)}function gt(e){return T(e,`Function`)}function _t(e){return tt(e,[`~kind`,`type`,`parameters`,`returnType`])}function vt(e,t){return C({"~kind":`Ref`},{$ref:e},t)}function yt(e){return T(e,`Ref`)}function bt(e,t){return C({"~kind":`Generic`},{type:`generic`,parameters:e,expression:t})}function xt(e){return T(e,`Generic`)}function St(e){return C({"~kind":`Any`},{},e)}function Ct(e){return T(e,`Any`)}function wt(e){return C({"~kind":`Never`},{not:{}},e)}function Tt(e){return T(e,`Never`)}function Et(e){return w(e,{"~optional":!0},{})}function Dt(e,t){return w(Et(e),{},t)}function Ot(e,t,n,r){return Dt(J(e,t,n),r)}function kt(e,t={}){return E(`AddOptional`,[e],t)}function At(e,t={}){return Dt(e,t)}function jt(e){return At(e)}function Mt(e){return nt(e)&&x(e,`~optional`)}function Nt(e){return S(e).filter(t=>!Mt(e[t]))}function Pt(e){return S(e)}function Ft(e){return Ae(e)}function O(e,t={}){let n=Nt(e);return C({"~kind":`Object`},{type:`object`,...n.length>0?{required:n}:{},properties:e},t)}function k(e){return T(e,`Object`)}function It(e){return tt(e,[`~kind`,`type`,`properties`,`required`])}function Lt(e){return C({"~kind":`Unknown`},{},e)}function Rt(e){return T(e,`Unknown`)}function zt(e,t,n){return C({"~kind":`Cyclic`},{$defs:S(e).reduce((t,n)=>({...t,[n]:w(e[n],{},{$id:n})}),{}),$ref:t},n)}function Bt(e){return T(e,`Cyclic`)}function Vt(e){return w(e,{"~unsafe":null},{})}function Ht(e){return pe(e)&&x(e,`~unsafe`)&&fe(e[`~unsafe`])}function Ut(e,t){return t[e.length]?.(...e)??(()=>{throw Error(`Invalid Arguments`)})()}function Wt(...e){let[t,n]=Ut(e,{2:(e,t)=>[e,t,t],1:e=>[e,Lt(),Lt()]});return C({"~kind":`Infer`},{type:`infer`,name:t,extends:n},{})}function Gt(e){return T(e,`Infer`)}function Kt(e,t,n,r={}){return C({"~kind":`Dependent`},{if:e,then:t,else:n},r)}function qt(e){return T(e,`Dependent`)}function Jt(e){return tt(e,[`~kind`,`if`,`then`,`else`])}function Yt(e){return pe(e)}function Xt(e){return S(e).filter(e=>isNaN(e)).reduce((t,n)=>[...t,e[n]],[])}function Zt(e,t){return C({"~kind":`Enum`},{enum:Yt(e)?Xt(e):e},t)}function Qt(e){return T(e,`Enum`)}function $t(e,t={}){return C({"~kind":`Intersect`},{allOf:e},t)}function A(e){return T(e,`Intersect`)}function en(e){return tt(e,[`~kind`,`allOf`])}function tn(){throw Error(`Unreachable`)}function nn(e){let t=new Set,n=e;for(;n&&n!==Object.prototype;){for(let e of Reflect.ownKeys(n))e!==`constructor`&&typeof e!=`symbol`&&t.add(e);n=Object.getPrototypeOf(n)}return[...t]}function rn(e){return typeof e==`number`}var an;(function(e){e[e.Array=0]=`Array`,e[e.BigInt=1]=`BigInt`,e[e.Boolean=2]=`Boolean`,e[e.Date=3]=`Date`,e[e.Constructor=4]=`Constructor`,e[e.Function=5]=`Function`,e[e.Null=6]=`Null`,e[e.Number=7]=`Number`,e[e.Object=8]=`Object`,e[e.RegExp=9]=`RegExp`,e[e.String=10]=`String`,e[e.Symbol=11]=`Symbol`,e[e.TypeArray=12]=`TypeArray`,e[e.Undefined=13]=`Undefined`})(an||={});let on=BigInt(`14695981039346656037`);const[sn,cn]=[BigInt(`1099511628211`),BigInt(`18446744073709551616`)],ln=Array.from({length:256}).map((e,t)=>BigInt(t)),un=new Float64Array(1),dn=new DataView(un.buffer),fn=new Uint8Array(un.buffer);function j(e){on^=ln[e],on=on*sn%cn}function pn(e){j(an.Array);for(let t of e)On(t)}function mn(e){j(an.BigInt),dn.setBigInt64(0,e);for(let e of fn)j(e)}function hn(e){j(an.Boolean),j(+!!e)}function gn(e){j(an.Constructor),On(e.toString())}function _n(e){j(an.Date),On(e.getTime())}function vn(e){j(an.Function),On(e.toString())}function yn(e){j(an.Null)}function bn(e){j(an.Number),dn.setFloat64(0,e,!0);for(let e of fn)j(e)}function xn(e){j(an.Object);for(let t of nn(e).sort())On(t),On(e[t])}function Sn(e){j(an.RegExp),wn(e.toString())}const Cn=new TextEncoder;function wn(e){j(an.String);for(let t of Cn.encode(e))j(t)}function Tn(e){j(an.Symbol),On(e.toString())}function En(e){j(an.TypeArray);let t=new Uint8Array(e.buffer);for(let e=0;ethis.decode(t[`~codec`].decode(e)):this.decode,encode:zn(t)?n=>t[`~codec`].encode(e(n)):e};return w(this.type,{"~codec":n},{})}},Fn=class{constructor(e){this.type=e}Decode(e){return new Pn(this.type,e)}};function In(e){return new Fn(e)}function Ln(e,t){return In(e).Decode(t).Encode(()=>{throw Error(`Encode not implemented`)})}function Rn(e,t){return In(e).Decode(()=>{throw Error(`Decode not implemented`)}).Encode(t)}function zn(e){return nt(e)&&x(e,`~codec`)&&h(e[`~codec`])&&x(e[`~codec`],`encode`)&&x(e[`~codec`],`decode`)}function Bn(e){return Tv(e)}function Vn(e){return nt(e)&&x(e,`~immutable`)}function Hn(e){return w(e,{"~readonly":!0},{})}function Un(e,t){return w(Hn(e),{},t)}function Wn(e,t,n,r){return Un(J(e,t,n),r)}function Gn(e,t={}){return E(`AddReadonly`,[e],t)}function Kn(e,t={}){return Un(e,t)}function qn(e){return Kn(e)}function Jn(e){return nt(e)&&x(e,`~readonly`)}function Yn(e,t){return w(e,{"~refine":Qn(e)?[...e[`~refine`],t]:[t]},{})}function Xn(...e){let[t,n,r]=Ut(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[e,t,()=>`Refine Error`]});return Yn(t,{check:n,error:g(r)?()=>r:r})}function Zn(e){return pe(e)&&x(e,`check`)&&x(e,`error`)&&le(e.check)&&le(e.error)}function Qn(e){return nt(e)&&x(e,`~refine`)&&d(e[`~refine`])&&y(e[`~refine`],0,e=>Zn(e))}function $n(e){return C({"~kind":`BigInt`},{type:`bigint`},e)}function er(e){return T(e,`BigInt`)}function tr(e){return C({"~kind":`Boolean`},{type:`boolean`},e)}function nr(e){return T(e,`Boolean`)}function rr(e){return C({"~kind":`Identifier`},{name:e})}function ir(e){return T(e,`Identifier`)}const ar=`-?(?:0|[1-9][0-9]*)`;function or(e){return C({"~kind":`Integer`},{type:`integer`},e)}function sr(e){return T(e,`Integer`)}function cr(e,t){return C({"~kind":`Iterator`},{type:`iterator`,iteratorItems:e},t)}function lr(e){return T(e,`Iterator`)}function ur(e){return tt(e,[`~kind`,`type`,`iteratorItems`])}var dr=class extends Error{constructor(e){super(`Invalid Literal value`),Object.defineProperty(this,"cause",{value:{value:e},writable:!1,configurable:!1,enumerable:!1})}};function fr(e){return f(e)?`bigint`:p(e)?`boolean`:m(e)?`number`:g(e)?`string`:(()=>{throw new dr(e)})()}function M(e,t){return C({"~kind":`Literal`},{type:fr(e),const:e},t)}function pr(e){return f(e)||p(e)||m(e)||g(e)}function mr(e){return N(e)&&f(e.const)}function hr(e){return N(e)&&p(e.const)}function gr(e){return N(e)&&m(e.const)}function _r(e){return N(e)&&g(e.const)}function N(e){return T(e,`Literal`)}function vr(e){return C({"~kind":`Null`},{type:`null`},e)}function yr(e){return T(e,`Null`)}const br=`-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?`;function xr(e){return C({"~kind":`Number`},{type:`number`},e)}function Sr(e){return T(e,`Number`)}function Cr(e){return C({"~kind":`Symbol`},{type:`symbol`},e)}function wr(e){return T(e,`Symbol`)}function Tr(...e){let[t,n,r]=Ut(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[e,t,t],1:e=>[e,Lt(),Lt()]});return C({"~kind":`Parameter`},{name:t,extends:n,equals:r},{})}function Er(e){return T(e,`Parameter`)}function Dr(e,t){return C({"~kind":`Promise`},{type:`promise`,item:e},t)}function Or(e){return T(e,`Promise`)}function kr(e){return tt(e,[`~kind`,`type`,`item`])}function Ar(e){return C({"~kind":`String`},{type:`string`},e)}function jr(e){return T(e,`String`)}function P(e,t={}){return C({"~kind":`Union`},{anyOf:e},t)}function F(e){return T(e,`Union`)}function Mr(e){return tt(e,[`~kind`,`anyOf`])}function Nr(e){let t=qu(e);return v(t.length,2)?t[0]:[]}function Pr(e){return!0}function Fr(e){return b(e,(e,t)=>Lr(e)?Fr(t):!1,()=>!0)}function Ir(e){return v(e.length,0)?!1:Fr(e)}function Lr(e){return F(e)?Ir(e.anyOf):N(e)?Pr(e.const):!1}function Rr(e){return Ir(e)}function zr(e){return C({"~kind":`TemplateLiteral`},{type:`string`,pattern:e},{})}function Br(e,t,n=[]){return b(e,(e,r)=>Br(r,t,[...n,`${e}${t}`]),()=>n)}function Vr(e,t){return v(e.length,0)?[`${t}`]:Br(e,t)}function Hr(e,t,n=[]){return b(t,(t,r)=>Hr(e,r,[...n,...Ur(e,t)]),()=>n)}function Ur(e,t){return F(t)?Hr(e,t.anyOf):N(t)?Vr(e,t.const):tn()}function Wr(e,t){return b(t,(t,n)=>Wr(Ur(e,t),n),()=>e)}function Gr(e){return e.map(e=>M(e))}function Kr(e){return P(Gr(Wr([],e)))}function qr(e){return v(e.length,0)?tn():v(e.length,1)&&N(e[0])?e[0]:Kr(e)}function Jr(e){let t=Nr(e);return v(t.length,0)?Ar():Rr(t)?qr(t):zr(e)}function Yr(e){let t=Jr(e);return Md(t)?Ar():t}function Xr(e,t){return C({"~kind":`Record`},{type:`object`,patternProperties:{[e]:t}})}function Zr(e){return Xr(na,e)}function Qr(e){return O({true:e,false:e})}function $r(e,t={}){let[n,r,i]=[e,e.length,!1];return C({"~kind":`Tuple`},{type:`array`,additionalItems:i,items:n,minItems:r},t)}function I(e){return T(e,`Tuple`)}function ei(e){return tt(e,[`~kind`,`type`,`items`,`minItems`,`additionalItems`])}function ti(e){return tt(e,[`~readonly`])}function ni(e,t){return w(ti(e),{},t)}function ri(e,t,n,r){return ni(J(e,t,n),r)}function ii(e,t={}){return E(`RemoveReadonly`,[e],t)}function ai(e,t={}){return ni(e,t)}function oi(e){return tt(e,[`~optional`])}function si(e,t){return w(oi(e),{},t)}function ci(e,t,n,r){return si(J(e,t,n),r)}function li(e,t={}){return E(`RemoveOptional`,[e],t)}function ui(e,t={}){return si(e,t)}function di(e){return e.reduceRight((e,t,n)=>({[n]:t,...e}),{})}function fi(e){return O(di(e.items))}function pi(e,t){return Jn(e)?!!Jn(t):!1}function mi(e,t){return Mt(e)?!!Mt(t):!1}function hi(e,t){let n=pi(e,t),r=mi(e,t),i=ai(ui(Mi([e,t])));return n&&r?Kn(At(i)):n&&!r?Kn(i):!n&&r?At(i):i}function gi(e,t,n){return n in e?n in t?hi(e[n],t[n]):e[n]:n in t?t[n]:wt()}function _i(e,t){return[...new Set([...S(t),...S(e)])].reduce((n,r)=>({...n,[r]:gi(e,t,r)}),{})}function vi(e){return k(e)?e.properties:I(e)?di(e.items):tn()}function yi(e,t){return O(_i(vi(e),vi(t)))}function bi(e,t){let n=Lp(e,t);return v(n,`left-inside`)?e:v(n,`right-inside`)||v(n,`equal`)?t:wt()}function xi(e){return k(e)||I(e)}function Si(e,t){let n=F(e),r=F(t);return n||r}function Ci(e,t){let n=Fi(e),r=Fi(t),i=Si(n,r),a=xi(n),o=xi(r);return i?Mi([n,r]):a&&o?yi(n,r):a&&!o?n:!a&&o?r:bi(n,r)}function wi(e,t,n=[]){return b(t,(t,r)=>wi(e,r,[...n,Ci(e,t)]),()=>v(n.length,0)?[e]:n)}function Ti(e,t,n=[]){return b(e,(e,r)=>Ti(r,t,[...n,...Ei([e],t)]),()=>n)}function Ei(e,t=[]){return b(e,(e,n)=>F(e)?Ei(n,Ti(e.anyOf,t)):Ei(n,wi(e,t)),()=>t)}function Di(e,t){return Rd(Ip({},e,t))?[]:[e]}function Oi(e,t){return e.reduce((e,n)=>[...e,...Di(n,t)],[])}function ki(e,t){let n=Fi(e);return Pi(Oi(F(n)?n.anyOf:[n],t))}function Ai(e,t,n){return Pi([$t([e,t]),ki(n,e)])}function ji(e){return Pi(e.map(e=>M(e)))}function Mi(e){return Ii(Hp(Ei(e)))}function Ni(e){return Fi(Yr(e))}function Pi(e){return Ii(Hp(e))}function Fi(e){return qt(e)?Ai(e.if,e.then,e.else):Qt(e)?ji(e.enum):A(e)?Mi(e.allOf):Md(e)?Ni(e.pattern):F(e)?Pi(e.anyOf):e}function Ii(e){return v(e.length,1)?e[0]:v(e.length,0)?wt():P(e)}function Li(e,t){return Zi(ji(e),t)}function Ri(e,t){return Xr(ea,t)}function zi(e,t){return Zi(Mi(e),t)}function Bi(e,t){return g(e)||m(e)?O({[e]:t}):v(e,!1)?O({false:t}):v(e,!0)?O({true:t}):O({})}function Vi(e,t){return Xr(ta,t)}function Hi(e,t){return x(e,`pattern`)&&(g(e.pattern)||e.pattern instanceof RegExp)?Xr(e.pattern.toString(),t):Xr(na,t)}function Ui(e,t){return Rr(Nr(e))?Zi(Ni(e),t):Xr(e,t)}function Wi(e){return F(e)?Gi(e.anyOf):[e]}function Gi(e){return e.reduce((e,t)=>[...e,...Wi(t)],[])}function Ki(e){return e.some(e=>jr(e)||Sr(e)||sr(e))}function qi(e,t){return v(Ki(e),!0)?Xr(na,t):void 0}function Ji(e,t){return e.reduce((e,n)=>N(n)&&(g(n.const)||m(n.const))?{...e,[n.const]:t}:e,{})}function Yi(e,t){return O(Ji(e,t))}function Xi(e,t){let n=Gi(e),r=qi(n,t);return nt(r)?r:Yi(n,t)}function Zi(e,t){return Ct(e)?Zr(t):nr(e)?Qr(t):Qt(e)?Li(e.enum,t):sr(e)?Ri(e,t):A(e)?zi(e.allOf,t):N(e)?Bi(e.const,t):Sr(e)?Vi(e,t):F(e)?Xi(e.anyOf,t):jr(e)?Hi(e,t):Md(e)?Ui(e.pattern,t):O({})}function Qi(e,t,n){return q([e])?w(Zi(e,t),{},n):ra(e,t,n)}function $i(e,t,n,r,i){return Qi(J(e,t,n),J(e,t,r),i)}const ea=`^${ar}$`,ta=`^${br}$`,na=`^.*$`;function ra(e,t,n={}){return E(`Record`,[e,t],n)}function ia(e,t,n={}){return Qi(e,t,n)}function aa(e,t){return Xr(e,t)}function oa(e){return v(e,na)?Ar():v(e,ea)?or():v(e,ta)?xr():Jr(e)}function sa(e){return S(e.patternProperties)[0]}function ca(e){return oa(sa(e))}function la(e){return e.patternProperties[sa(e)]}function ua(e){return T(e,`Record`)}function da(e){return C({"~kind":`Rest`},{type:`rest`,items:e},{})}function fa(e){return T(e,`Rest`)}function pa(e){return C({"~kind":`This`},{$ref:`#`},e)}function ma(e){return T(e,`This`)}function ha(e){return C({"~kind":`Undefined`},{type:`undefined`},e)}function ga(e){return T(e,`Undefined`)}function _a(e){return C({"~kind":`Void`},{type:`void`},e)}function va(e){return T(e,`Void`)}function ya(e,t){return v(e,`Array`)?st(t[0]):v(e,`AsyncIterator`)?lt(t[0]):v(e,`Iterator`)?cr(t[0]):v(e,`Promise`)?Dr(t[0]):v(e,`Awaited`)?Sm(t[0]):v(e,`Capitalize`)?Mm(t[0]):v(e,`ConstructorParameters`)?rh(t[0]):v(e,`Evaluate`)?Ev(t[0]):v(e,`Exclude`)?ch(t[0],t[1]):v(e,`Extract`)?fh(t[0],t[1]):v(e,`Index`)?xh(t[0],t[1]):v(e,`InstanceType`)?gg(t[0]):v(e,`Lowercase`)?Pm(t[0]):v(e,`NonNullable`)?Qg(t[0]):v(e,`Omit`)?r_(t[0],t[1]):v(e,`Parameters`)?u_(t[0]):v(e,`Partial`)?h_(t[0]):v(e,`Pick`)?T_(t[0],t[1]):v(e,`Readonly`)?j_(t[0]):v(e,`KeyOf`)?xg(t[0]):v(e,`Record`)?ra(t[0],t[1]):v(e,`Required`)?Z_(t[0]):v(e,`ReturnType`)?tv(t[0]):v(e,`Uncapitalize`)?Im(t[0]):v(e,`Uppercase`)?Rm(t[0]):gm(vt(e),t)}function ba(){throw Error(`Unreachable`)}const xa=(e,t=[])=>e.reduce((e,t)=>d(t)&&v(t.length,2)?[...e,t[0]]:[...e,t],[]),Sa=e=>{let[t,n]=e;return xa([...t,...n])};function Ca(e){return Tr(e[0],e[2],e[4])}function wa(e){return Tr(e[0],e[2],e[2])}function Ta(e){return Tr(e[0],Lt(),e[2])}function Ea(e){return Tr(e,Lt(),Lt())}function Da(e){return e}function Oa(e){return Sa(e)}function ka(e){return e[1]}function Aa(e){return Sa(e)}function ja(e){return e[1]}function Ma(e){return ya(e[0],e[1])}function Na(e){return null}function Pa(e){return Ar()}function Fa(e){return xr()}function Ia(e){return tr()}function La(e){return ha()}function Ra(e){return vr()}function za(e){return or()}function Ba(e){return $n()}function Va(e){return Lt()}function Ha(e){return St()}function Ua(e){return O({})}function Wa(e){return wt()}function Ga(e){return Cr()}function Ka(e){return _a()}function qa(e){return pa()}function Ja(e){return M(BigInt(e))}function Ya(e){return M(v(e,`true`))}function Xa(e){return M(parseFloat(e))}function Za(e){return M(e)}function Qa(e){return e[1]}function $a(e){return M(e)}function eo(e){return v(e.length,3)?[e[0],e[1],...e[2]]:[e[0]]}function to(e){return e[1]}function no(e){return Dd(e)}function ro(e){return v(e.length,6)?Kt(e[1],e[3],e[5]):Kt(e[1],e[3],Lt())}function io(e){return e.length>0}function ao(e){return e.reduce((e,t)=>v(t.length,3)?[...e,[t[1]]]:[...e,[]],[])}function oo(e){return v(e.length,6)?[e[1],e[3],e[5]]:[]}function so(e){return d(e)&&v(e.length,3)?e[1]:e}function co(e){return v(e.length,2)?e[1]:[]}function lo(e,t){return t.reduce((e,t)=>{let n=t;return v(n.length,1)?xh(e,n[0]):v(n.length,0)?st(e):ba()},e)}function uo(e,t){return v(t.length,3)?Qm(e,t[0],t[1],t[2]):e}function fo(e,t){return d(t)&&v(t.length,0)?e:ov(e,t)}function po(e){let[t,n,r,i,a]=e;return fo(uo(t?xg(lo(n,r)):lo(n,r),i),a)}function mo(e,t){return v(t.length,3)?(()=>{let[n,r,i]=t,a=mo(r,i);if(v(n,`&`))return A(a)?$t([e,...a.allOf]):$t([e,a]);if(v(n,`|`))return F(a)?P([e,...a.anyOf]):P([e,a]);ba()})():e}function ho(e){return e}function go(e){let[t,n]=e;return mo(t,n)}function _o(e){return e}function vo(e){let[t,n]=e;return mo(t,n)}function yo(e){return wv(e[1])}function bo(e){return e[1]}function xo(e){return bt(e[0],e[2])}function So(e){return v(e.length,4)?Wt(e[1],e[3]):v(e.length,2)?Wt(e[1],Lt()):ba()}function Co(e){return e}function wo(e){return`${e}`}function To(e){return e}function Eo(e){return e}function Do(e){return sr(e[3])?ea:Sr(e[3])?ta:wr(e[3])||jr(e[3])?na:ba()}function Oo(e){return e}function ko(e){return e.length>0}function Ao(e){return e.length>0}function jo(e){let[t,n,r,i,a]=e;return{[n]:t&&r?Gn(kt(a)):t&&!r?Gn(a):!t&&r?kt(a):a}}function Mo(e){return e}function No(e){return Sa(e)}function Po(e){return e.reduce((e,t)=>x(t,ea)||x(t,ta)||x(t,na)?[e[0],r(e[1],t)]:[r(e[0],t),e[1]],[{},{}])}function Fo(e){return Po(e[1])}function Io(e){let[t,n]=e;return O(t,v(S(n).length,0)?{}:{patternProperties:n})}function Lo(e){return v(e.length,5)?Gn(kt(e[4])):v(e.length,3)?e[2]:v(e.length,4)?v(e[2],`readonly`)?Gn(e[3]):kt(e[3]):ba()}function Ro(e){return Gn(kt(e[1]))}function zo(e){return Gn(e[1])}function Bo(e){return kt(e[0])}function Vo(e){return e}function Ho(e){return v(e.length,2)?da(e[1]):v(e.length,1)?e[0]:ba()}function Uo(e){return Sa(e)}function Wo(e){return $r(e[1])}function Go(e){return Gn(kt(e[4]))}function Ko(e){return Gn(e[3])}function qo(e){return kt(e[3])}function Jo(e){return e[2]}function Yo(e){return e}function Xo(e){return v(e.length,2)?da(e[1]):v(e.length,1)?e[0]:ba()}function Zo(e){return Sa(e)}function Qo(e){return ht(e[1],e[4])}function $o(e){return ft(e[2],e[5])}function es(e,t){return v(e,`remove`)?ii(t):v(e,`add`)?Gn(t):t}function ts(e){return v(e.length,2)&&v(e[0],`-`)?`remove`:v(e.length,2)&&v(e[0],`+`)||v(e.length,1)?`add`:`none`}function ns(e,t){return v(e,`remove`)?li(t):v(e,`add`)?kt(t):t}function rs(e){return v(e.length,2)&&v(e[0],`-`)?`remove`:v(e.length,2)&&v(e[0],`+`)||v(e.length,1)?`add`:`none`}function is(e){return v(e.length,2)?[e[1]]:[]}function as(e){return d(e[6])&&v(e[6].length,1)?Ng(rr(e[3]),e[5],e[6][0],es(e[1],ns(e[8],e[10]))):Ng(rr(e[3]),e[5],vt(e[3]),es(e[1],ns(e[8],e[10])))}function os(e){return vt(e)}function ss(e){return BigInt(e)}function cs(e){return parseFloat(e)}function ls(e){return v(e,`true`)}function us(e){return e}function ds(e){return null}function fs(e){return{[e[0]]:e[2]}}function ps(e){return Sa(e)}function ms(e){return e.reduce((e,t)=>r(e,t),{})}function hs(e){return ms(e[1])}function gs(e){return Sa(e)}function _s(e){return e[1]}function vs(e){return e}function ys(e){return $n()}function bs(e){return Ar()}function xs(e){return xr()}function Ss(e){return or()}function Cs(e){return wt()}function ws(e){return M(e)}function Ts(e){return e}function Es(e){return P(e[1])}function Ds(e){return e.length===3?[...e[0],...e[2]]:e.length===1?[...e[0]]:[]}function Os(e){return[e[0],...e[1]]}function ks(e){return e}function As(e){return e[1]}function js(e){return Sa(e)}function Ms(e){return v(e.length,2)?e[1]:[]}function Ns(e){let t=e[2],n=e[3],[r,i]=e[4],a=v(S(i).length,0)?{}:{patternProperties:i};return{[e[1]]:bt(t,lp(n,r,a))}}function Ps(e){let t=e[2],[n,r]=e[3],i=v(S(r).length,0)?{}:{patternProperties:r};return{[e[1]]:lp(t,n,i)}}function Fs(e){return{[e[1]]:bt(e[2],e[4])}}function Is(e){return{[e[1]]:e[3]}}function Ls(e){return null}function Rs(e){return e}function zs(e){return Po(Sa(e))}function Bs(e){return e[1]}function Vs(e){let t=e[0],n=e[1];return Ov(r(t,n[0]))}function Hs(e){return e}function Us(e){return v(e.length,2)}function L(e,t,n){return Us(e)?t(e[0],e[1]):n()}function Ws(e,t){return v(t.indexOf(e),0)?[e,t.slice(e.length)]:[]}function Gs(e,t){for(let n=0;nString.fromCharCode(e+n))}const qs=[...Ks(97,122),...Ks(65,90)],Js=Ks(49,57),Ys=[`0`,...Js];function Xs(e){let t=e.indexOf(`*/`);return v(t,-1)?``:e.slice(t+2)}function Zs(e){let t=e.indexOf(` -`);return v(t,-1)?``:e.slice(t)}function Qs(e){return e.replace(/^[ \t\r\f\v]+/,``)}function $s(e){let t=Qs(e);return t.startsWith(`/*`)?$s(Xs(t.slice(2))):t.startsWith(`//`)?$s(Zs(t.slice(2))):t}function ec(e){let t=e.trimStart();return t.startsWith(`/*`)?ec(Xs(t.slice(2))):t.startsWith(`//`)?ec(Zs(t.slice(2))):t}function tc(e,t){return L(Gs([e],t),(e,t)=>[e,t],()=>[``,t])}function nc(e,t){return e.includes(t)}function rc(e,t,n,r=``){return L(Gs(e,n),(n,i)=>nc(t,n)?rc(e,t,i,r):rc(e,t,i,`${r}${n}`),()=>[r,n])}function ic(e){return Gs(Js,e)}const ac=[...Ys,`_`];function oc(e){return rc(ac,[`_`],e)}function sc(e){return L(Gs([`0`],e),(e,t)=>[e,t],()=>L(ic(e),(e,t)=>L(oc(t),(t,n)=>[`${e}${t}`,n],()=>[]),()=>[]))}function cc(e){return sc(ec(e))}function lc(e){return tc(`-`,e)}function uc(e){return L(lc(e),(e,t)=>L(cc(t),(t,n)=>[`${e}${t}`,n],()=>[]),()=>[])}function dc(e){return uc(ec(e))}function fc(e){return L(dc(e),(e,t)=>L(Gs([`n`],t),(t,n)=>[`${e}`,n],()=>[]),()=>[])}function pc(e){return fc(e)}function mc(e,t){return Gs([e],t)}function R(e,t){return v(e,``)?[``,t]:e.startsWith(` -`)?mc(e,$s(t)):e.startsWith(` `)?mc(e,t):mc(e,ec(t))}const hc=[...qs,`_`,`$`];function gc(e){return Gs(hc,e)}const _c=[...hc,...Ys];function vc(e,t=``){return L(Gs(_c,e),(e,n)=>vc(n,`${t}${e}`),()=>[t,e])}function yc(e){return L(gc(e),(e,t)=>L(vc(t),(t,n)=>[`${e}${t}`,n],()=>[]),()=>[])}function z(e){return yc(ec(e))}const bc=[...Ys,`_`];function xc(e){return Us(Gs([`.`],e))}function Sc(e){return L(rc(bc,[`_`],e),(e,t)=>v(e,``)?[]:[e,t],()=>[])}function Cc(e){return L(Gs([`.`],e),(e,t)=>L(Sc(t),(t,n)=>[`0${e}${t}`,n],()=>[]),()=>[])}function wc(e){return L(cc(e),(e,t)=>L(Gs([`.`],t),(t,n)=>L(Sc(n),(n,r)=>[`${e}${t}${n}`,r],()=>[`${e}`,n]),()=>[`${e}`,t]),()=>[])}function Tc(e){return xc(e)?Cc(e):wc(e)}function Ec(e){return Tc(ec(e))}function Dc(e){return tc(`-`,e)}function Oc(e){return L(Dc(e),(e,t)=>L(Ec(t),(t,n)=>[`${e}${t}`,n],()=>[]),()=>[])}function kc(e){return Oc(ec(e))}function Ac(e){return v(e,``)?[]:[e.slice(0,1),e.slice(1)]}function jc(e,t){return b(e,(e,n)=>t.startsWith(e)?!0:jc(n,t),()=>!1)}function Mc(e,t,n=``){return L(Ac(t),(r,i)=>jc(e,t)?[n,t]:Mc(e,i,`${n}${r}`),()=>[])}function Nc(e,t,n){return L(Gs([e],n),(e,n)=>L(Mc([t],n),(e,n)=>L(Gs([t],n),(t,n)=>[`${e}`,n],()=>[]),()=>[]),()=>[])}function Pc(e,t,n){return L(Gs([e],n),(e,n)=>L(Mc([` -`,t],n),(e,n)=>L(Gs([t],n),(t,n)=>[`${e}`,n],()=>[]),()=>[]),()=>[])}function Fc(e,t,n,r){return n?Nc(e,t,ec(r)):Pc(e,t,ec(r))}function Ic(e,t){return Gs(e,t)}function Lc(e,t){return Fc(e,e,!1,t)}function Rc(e,t){return L(Ic(e,t),(e,t)=>Lc(e,`${e}${t}`),()=>[])}function zc(e,t){return Rc(e,ec(t))}function Bc(e,t){return L(Mc(e,t),(e,t)=>v(e,``)?[]:[e,t],()=>[])}const B=(e,t,n=()=>[])=>e.length===2?t(e):n(),Vc=e=>B(B(z(e),([e,t])=>B(R(`extends`,t),([t,n])=>B(V(n),([n,r])=>B(R(`=`,r),([r,i])=>B(V(i),([i,a])=>[[e,t,n,r,i],a]))))),([e,t])=>[Ca(e),t]),Hc=e=>B(B(z(e),([e,t])=>B(R(`extends`,t),([t,n])=>B(V(n),([n,r])=>[[e,t,n],r]))),([e,t])=>[wa(e),t]),Uc=e=>B(B(z(e),([e,t])=>B(R(`=`,t),([t,n])=>B(V(n),([n,r])=>[[e,t,n],r]))),([e,t])=>[Ta(e),t]),Wc=e=>B(z(e),([e,t])=>[Ea(e),t]),Gc=e=>B(B(Vc(e),([e,t])=>[e,t],()=>B(Hc(e),([e,t])=>[e,t],()=>B(Uc(e),([e,t])=>[e,t],()=>B(Wc(e),([e,t])=>[e,t],()=>[])))),([e,t])=>[Da(e),t]),Kc=(e,t=[])=>B(B(Gc(e),([e,t])=>B(R(`,`,t),([t,n])=>[[e,t],n])),([e,n])=>Kc(n,[...t,e]),()=>[t,e]),qc=e=>B(B(Kc(e),([e,t])=>B(B(B(Gc(t),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>B([[],t],([e,t])=>[e,t],()=>[])),([t,n])=>[[e,t],n])),([e,t])=>[Oa(e),t]),Jc=e=>B(B(R(`<`,e),([e,t])=>B(qc(t),([t,n])=>B(R(`>`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[ka(e),t]),Yc=(e,t=[])=>B(B(V(e),([e,t])=>B(R(`,`,t),([t,n])=>[[e,t],n])),([e,n])=>Yc(n,[...t,e]),()=>[t,e]),Xc=e=>B(B(Yc(e),([e,t])=>B(B(B(V(t),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>B([[],t],([e,t])=>[e,t],()=>[])),([t,n])=>[[e,t],n])),([e,t])=>[Aa(e),t]),Zc=e=>B(B(R(`<`,e),([e,t])=>B(Xc(t),([t,n])=>B(R(`>`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[ja(e),t]),Qc=e=>B(B(z(e),([e,t])=>B(Zc(t),([t,n])=>[[e,t],n])),([e,t])=>[Ma(e),t]),$c=e=>B(B(B(R(`;`,e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>B([[],e],([e,t])=>[e,t],()=>[])),([e,t])=>[Na(e),t]),el=e=>B(R(`string`,e),([e,t])=>[Pa(e),t]),tl=e=>B(R(`number`,e),([e,t])=>[Fa(e),t]),nl=e=>B(R(`boolean`,e),([e,t])=>[Ia(e),t]),rl=e=>B(R(`undefined`,e),([e,t])=>[La(e),t]),il=e=>B(R(`null`,e),([e,t])=>[Ra(e),t]),al=e=>B(R(`integer`,e),([e,t])=>[za(e),t]),ol=e=>B(R(`bigint`,e),([e,t])=>[Ba(e),t]),sl=e=>B(R(`unknown`,e),([e,t])=>[Va(e),t]),cl=e=>B(R(`any`,e),([e,t])=>[Ha(e),t]),ll=e=>B(R(`object`,e),([e,t])=>[Ua(e),t]),ul=e=>B(R(`never`,e),([e,t])=>[Wa(e),t]),dl=e=>B(R(`symbol`,e),([e,t])=>[Ga(e),t]),fl=e=>B(R(`void`,e),([e,t])=>[Ka(e),t]),pl=e=>B(R(`this`,e),([e,t])=>[qa(e),t]),ml=e=>B(B(R("${",e),([e,t])=>B(V(t),([t,n])=>B(R(`}`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[Qa(e),t]),hl=e=>B(Mc(["${","`"],e),([e,t])=>[$a(e),t]),gl=e=>B(B(B(hl(e),([e,t])=>B(ml(t),([t,n])=>B(gl(n),([n,r])=>[[e,t,n],r]))),([e,t])=>[e,t],()=>B(B(hl(e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>B(B(hl(e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>[]))),([e,t])=>[eo(e),t]),_l=e=>B(B(R("`",e),([e,t])=>B(gl(t),([t,n])=>B(R("`",n),([n,r])=>[[e,t,n],r]))),([e,t])=>[to(e),t]),vl=e=>B(_l(e),([e,t])=>[no(e),t]),yl=e=>B(B(B(R(`if`,e),([e,t])=>B(V(t),([t,n])=>B(R(`then`,n),([n,r])=>B(V(r),([r,i])=>B(R(`else`,i),([i,a])=>B(V(a),([a,o])=>[[e,t,n,r,i,a],o])))))),([e,t])=>[e,t],()=>B(B(R(`if`,e),([e,t])=>B(V(t),([t,n])=>B(R(`then`,n),([n,r])=>B(V(r),([r,i])=>[[e,t,n,r],i])))),([e,t])=>[e,t],()=>[])),([e,t])=>[ro(e),t]),bl=e=>B(pc(e),([e,t])=>[Ja(e),t]),xl=e=>B(B(R(`true`,e),([e,t])=>[e,t],()=>B(R(`false`,e),([e,t])=>[e,t],()=>[])),([e,t])=>[Ya(e),t]),Sl=e=>B(kc(e),([e,t])=>[Xa(e),t]),Cl=e=>B(zc([`'`,`"`],e),([e,t])=>[Za(e),t]),wl=e=>B(B(B(R(`keyof`,e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>B([[],e],([e,t])=>[e,t],()=>[])),([e,t])=>[io(e),t]),Tl=(e,t=[])=>B(B(B(R(`[`,e),([e,t])=>B(V(t),([t,n])=>B(R(`]`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[e,t],()=>B(B(R(`[`,e),([e,t])=>B(R(`]`,t),([t,n])=>[[e,t],n])),([e,t])=>[e,t],()=>[])),([e,n])=>Tl(n,[...t,e]),()=>[t,e]),El=e=>B(Tl(e),([e,t])=>[ao(e),t]),Dl=e=>B(B(B(R(`extends`,e),([e,t])=>B(V(t),([t,n])=>B(R(`?`,n),([n,r])=>B(V(r),([r,i])=>B(R(`:`,i),([i,a])=>B(V(a),([a,o])=>[[e,t,n,r,i,a],o])))))),([e,t])=>[e,t],()=>B([[],e],([e,t])=>[e,t],()=>[])),([e,t])=>[oo(e),t]),Ol=e=>B(B(B(R(`(`,e),([e,t])=>B(V(t),([t,n])=>B(R(`)`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[e,t],()=>B(el(e),([e,t])=>[e,t],()=>B(tl(e),([e,t])=>[e,t],()=>B(nl(e),([e,t])=>[e,t],()=>B(rl(e),([e,t])=>[e,t],()=>B(il(e),([e,t])=>[e,t],()=>B(al(e),([e,t])=>[e,t],()=>B(ol(e),([e,t])=>[e,t],()=>B(sl(e),([e,t])=>[e,t],()=>B(cl(e),([e,t])=>[e,t],()=>B(ll(e),([e,t])=>[e,t],()=>B(ul(e),([e,t])=>[e,t],()=>B(dl(e),([e,t])=>[e,t],()=>B(fl(e),([e,t])=>[e,t],()=>B(pl(e),([e,t])=>[e,t],()=>B(bl(e),([e,t])=>[e,t],()=>B(xl(e),([e,t])=>[e,t],()=>B(Sl(e),([e,t])=>[e,t],()=>B(Cl(e),([e,t])=>[e,t],()=>B(vl(e),([e,t])=>[e,t],()=>B(yl(e),([e,t])=>[e,t],()=>B(Zl(e),([e,t])=>[e,t],()=>B(ou(e),([e,t])=>[e,t],()=>B(gu(e),([e,t])=>[e,t],()=>B(hu(e),([e,t])=>[e,t],()=>B(bu(e),([e,t])=>[e,t],()=>B(Qc(e),([e,t])=>[e,t],()=>B(xu(e),([e,t])=>[e,t],()=>[])))))))))))))))))))))))))))),([e,t])=>[so(e),t]),kl=e=>B(B(B(R(`with`,e),([e,t])=>B(ju(t),([t,n])=>[[e,t],n])),([e,t])=>[e,t],()=>B([[],e],([e,t])=>[e,t],()=>[])),([e,t])=>[co(e),t]),Al=e=>B(B(wl(e),([e,t])=>B(Ol(t),([t,n])=>B(El(n),([n,r])=>B(Dl(r),([r,i])=>B(kl(i),([i,a])=>[[e,t,n,r,i],a]))))),([e,t])=>[po(e),t]),jl=e=>B(B(B(R(`&`,e),([e,t])=>B(Al(t),([t,n])=>B(jl(n),([n,r])=>[[e,t,n],r]))),([e,t])=>[e,t],()=>B([[],e],([e,t])=>[e,t],()=>[])),([e,t])=>[ho(e),t]),Ml=e=>B(B(Al(e),([e,t])=>B(jl(t),([t,n])=>[[e,t],n])),([e,t])=>[go(e),t]),Nl=e=>B(B(B(R(`|`,e),([e,t])=>B(Ml(t),([t,n])=>B(Nl(n),([n,r])=>[[e,t,n],r]))),([e,t])=>[e,t],()=>B([[],e],([e,t])=>[e,t],()=>[])),([e,t])=>[_o(e),t]),Pl=e=>B(B(Ml(e),([e,t])=>B(Nl(t),([t,n])=>[[e,t],n])),([e,t])=>[vo(e),t]),Fl=e=>B(B(R(`readonly`,e),([e,t])=>B(Pl(t),([t,n])=>[[e,t],n])),([e,t])=>[yo(e),t]),Il=e=>B(B(R(`|`,e),([e,t])=>B(Pl(t),([t,n])=>[[e,t],n])),([e,t])=>[bo(e),t]),Ll=e=>B(B(Jc(e),([e,t])=>B(R(`=`,t),([t,n])=>B(V(n),([n,r])=>[[e,t,n],r]))),([e,t])=>[xo(e),t]),Rl=e=>B(B(B(R(`infer`,e),([e,t])=>B(z(t),([t,n])=>B(R(`extends`,n),([n,r])=>B(Pl(r),([r,i])=>[[e,t,n,r],i])))),([e,t])=>[e,t],()=>B(B(R(`infer`,e),([e,t])=>B(z(t),([t,n])=>[[e,t],n])),([e,t])=>[e,t],()=>[])),([e,t])=>[So(e),t]),V=e=>B(B(Rl(e),([e,t])=>[e,t],()=>B(Il(e),([e,t])=>[e,t],()=>B(Fl(e),([e,t])=>[e,t],()=>B(Pl(e),([e,t])=>[e,t],()=>[])))),([e,t])=>[Co(e),t]),zl=e=>B(kc(e),([e,t])=>[wo(e),t]),Bl=e=>B(z(e),([e,t])=>[To(e),t]),Vl=e=>B(zc([`'`,`"`],e),([e,t])=>[Eo(e),t]),Hl=e=>B(B(R(`[`,e),([e,t])=>B(z(t),([t,n])=>B(R(`:`,n),([n,r])=>B(B(al(r),([e,t])=>[e,t],()=>B(tl(r),([e,t])=>[e,t],()=>B(el(r),([e,t])=>[e,t],()=>B(dl(r),([e,t])=>[e,t],()=>[])))),([r,i])=>B(R(`]`,i),([i,a])=>[[e,t,n,r,i],a]))))),([e,t])=>[Do(e),t]),Ul=e=>B(B(zl(e),([e,t])=>[e,t],()=>B(Bl(e),([e,t])=>[e,t],()=>B(Vl(e),([e,t])=>[e,t],()=>B(Hl(e),([e,t])=>[e,t],()=>[])))),([e,t])=>[Oo(e),t]),Wl=e=>B(B(B(R(`readonly`,e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>B([[],e],([e,t])=>[e,t],()=>[])),([e,t])=>[ko(e),t]),Gl=e=>B(B(B(R(`?`,e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>B([[],e],([e,t])=>[e,t],()=>[])),([e,t])=>[Ao(e),t]),Kl=e=>B(B(Wl(e),([e,t])=>B(Ul(t),([t,n])=>B(Gl(n),([n,r])=>B(R(`:`,r),([r,i])=>B(V(i),([i,a])=>[[e,t,n,r,i],a]))))),([e,t])=>[jo(e),t]),ql=e=>B(B(B(R(`,`,e),([e,t])=>B(R(` +var e=Object.defineProperty,t=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r};const n={assign:0,create:0,clone:0,discard:0,update:0};function r(e,t){return n.assign+=1,{...e,...t}}function i(e,t,n){return e>=t&&e<=n}function a(e){return i(e,127462,127487)}function o(e){return i(e,65024,65039)}function s(e){return i(e,768,879)||i(e,6832,6911)||i(e,7616,7679)||i(e,65056,65071)}function c(e){return e>65535?2:1}function l(e,t){for(;t=t)return!0;return!1}function re(e,t){let n=0,r=0;for(;rt)return!1;return!0}function ie(e,t){if(t===0)return!0;let n=0;for(;n=t)return!0}return!1}function ae(e,t){let n=0;for(;nt)return!1}return!0}var oe=t({Entries:()=>Ee,EntriesRegExp:()=>Te,Every:()=>y,EveryAll:()=>Ce,GraphemeCount:()=>be,HasPropertyKey:()=>x,IsArray:()=>d,IsBigInt:()=>f,IsBoolean:()=>p,IsClassInstance:()=>ve,IsConstructor:()=>se,IsDeepEqual:()=>je,IsEqual:()=>v,IsFunction:()=>ce,IsGreaterEqualThan:()=>ge,IsGreaterThan:()=>pe,IsInteger:()=>le,IsLessEqualThan:()=>he,IsLessThan:()=>me,IsMaxLength:()=>xe,IsMinLength:()=>Se,IsMultipleOf:()=>_e,IsNull:()=>ue,IsNumber:()=>m,IsObject:()=>h,IsObjectNotArray:()=>de,IsString:()=>g,IsSymbol:()=>fe,IsUndefined:()=>_,IsUnsafePropertyKey:()=>we,IsValueLike:()=>ye,Keys:()=>S,ShiftLeft:()=>b,Symbols:()=>De,Values:()=>Oe});function d(e){return Array.isArray(e)}function f(e){return v(typeof e,`bigint`)}function p(e){return v(typeof e,`boolean`)}function se(e){if(_(e)||!ce(e))return!1;let t=Function.prototype.toString.call(e);return!!(/^class\s/.test(t)||/\[native code\]/.test(t))}function ce(e){return v(typeof e,`function`)}function le(e){return Number.isInteger(e)}function ue(e){return v(e,null)}function m(e){return Number.isFinite(e)}function de(e){return h(e)&&!d(e)}function h(e){return v(typeof e,`object`)&&!ue(e)}function g(e){return v(typeof e,`string`)}function fe(e){return v(typeof e,`symbol`)}function _(e){return v(e,void 0)}function v(e,t){return e===t}function pe(e,t){return e>t}function me(e,t){return e=t}function _e(e,t){if(f(e)||f(t))return BigInt(e)%BigInt(t)===0n;if(!m(e)||le(e)&&1/t%1==0)return!0;let n=e%t;return Math.min(Math.abs(n),Math.abs(n-t))<1e-10}function ve(e){if(!h(e))return!1;let t=globalThis.Object.getPrototypeOf(e);return ue(t)?!1:v(typeof t.constructor,`function`)&&!(v(t.constructor,globalThis.Object)||v(t.constructor.name,`Object`))}function ye(e){return f(e)||p(e)||ue(e)||m(e)||g(e)||_(e)}function be(e){return te(e)}function xe(e,t){return ae(e,t)}function Se(e,t){return ie(e,t)}function y(e,t,n){for(let r=t;r[RegExp(`^${t}$`),e[t]])}function Ee(e){return Object.entries(e)}function S(e){return Object.getOwnPropertyNames(e)}function De(e){return Object.getOwnPropertySymbols(e)}function Oe(e){return Object.values(e)}function ke(e,t){if(!h(t))return!1;let n=S(e);return v(n.length,S(t).length)&&n.every(n=>je(e[n],t[n]))}function Ae(e,t){return d(t)&&v(e.length,t.length)&&e.every((n,r)=>je(e[r],t[r]))}function je(e,t){return d(e)?Ae(e,t):h(e)?ke(e,t):v(e,t)}function Me(e){return e instanceof Boolean}function Ne(e){return e instanceof Number}function Pe(e){return e instanceof String}function Fe(e){return globalThis.ArrayBuffer.isView(e)}function Ie(e){return e instanceof globalThis.RegExp}function Le(e){return e instanceof globalThis.Date}function Re(e){return e instanceof globalThis.Set}function ze(e){return e instanceof globalThis.Map}var Be=oe;function Ve(e){return e}function He(e){return x(e,`~kind`)}function Ue(e){let t={},n=Object.getOwnPropertyDescriptors(e);for(let e of Object.keys(n)){if(we(e))continue;let r=n[e];x(r,`value`)&&Object.defineProperty(t,e,{...r,value:Ze(r.value)})}return t}function We(e){let t={};for(let n of S(e))we(n)||(t[n]=Ze(e[n]));for(let n of De(e))t[n]=Ze(e[n]);return t}function Ge(e){return ve(e)?Ve(e):He(e)?Ue(e):We(e)}function Ke(e){return e.map(e=>Ze(e))}function qe(e){return e.slice()}function Je(e){return new RegExp(e.source,e.flags)}function Ye(e){return new Map(Ze([...e.entries()]))}function Xe(e){return new Set(Ze([...e.values()]))}function Ze(e){return Fe(e)?qe(e):Ie(e)?Je(e):ze(e)?Ye(e):Re(e)?Xe(e):d(e)?Ke(e):h(e)?Ge(e):e}function Qe(e){return n.clone+=1,Ze(e)}const $e={immutableTypes:!1,maxErrors:8,useAcceleration:!0,exactOptionalPropertyTypes:!1,enumerableKind:!1,correctiveParse:!1,unionPrioritySort:!0};function et(){return $e}function tt(e,t){for(let n of Object.keys(t))Object.defineProperty(e,n,{configurable:!0,writable:!0,enumerable:!1,value:t[n]});return e}function nt(e,t){return{...e,...t}}function C(e,t,r={}){n.create+=1;let i=et(),a=nt(t,r),o=i.enumerableKind?nt(a,e):tt(a,e);return i.immutableTypes?Object.freeze(o):o}function rt(e,t){n.discard+=1;let r={},i=Object.getOwnPropertyDescriptors(Qe(e)),a=new Set(t);for(let e of Object.keys(i))a.has(e)||Object.defineProperty(r,e,i[e]);return r}function w(e,t,r){n.update+=1;let i=et(),a=Qe(e);for(let e of Object.keys(t))Object.defineProperty(a,e,{configurable:!0,writable:!0,enumerable:i.enumerableKind,value:t[e]});for(let e of Object.keys(r))Object.defineProperty(a,e,{configurable:!0,enumerable:!0,writable:!0,value:r[e]});return a}function T(e,t){return h(e)&&x(e,`~kind`)&&v(e[`~kind`],t)}function it(e){return h(e)}function E(e,t,n){return C({"~kind":`Deferred`},{type:`deferred`,action:e,parameters:t,options:n},{})}function at(e){return T(e,`Deferred`)}function ot(e){return w(e,{"~readonly":!0},{})}function st(e,t){return w(ot(e),{},t)}function ct(e,t,n,r){return st(J(e,t,n),r)}function lt(e){return w(e,{"~optional":!0},{})}function ut(e,t){return w(lt(e),{},t)}function dt(e,t,n,r){return ut(J(e,t,n),r)}function ft(e,t){return C({"~kind":`Array`},{type:`array`,items:e},t)}function D(e){return T(e,`Array`)}function pt(e){return rt(e,[`~kind`,`type`,`items`])}function mt(e,t,n={}){return C({"~kind":`Constructor`},{type:`constructor`,parameters:e,instanceType:t},n)}function ht(e){return T(e,`Constructor`)}function gt(e){return rt(e,[`~kind`,`type`,`parameters`,`instanceType`])}function _t(e,t,n={}){return C({"~kind":`Function`},{type:`function`,parameters:e,returnType:t},n)}function vt(e){return T(e,`Function`)}function yt(e){return rt(e,[`~kind`,`type`,`parameters`,`returnType`])}function bt(e,t){return C({"~kind":`Ref`},{$ref:e},t)}function xt(e){return T(e,`Ref`)}function St(e,t){return C({"~kind":`Generic`},{type:`generic`,parameters:e,expression:t})}function Ct(e){return T(e,`Generic`)}function wt(e){return C({"~kind":`Any`},{},e)}function Tt(e){return T(e,`Any`)}function Et(e){return C({"~kind":`Never`},{not:{}},e)}function Dt(e){return T(e,`Never`)}function Ot(e,t={}){return E(`AddOptional`,[e],t)}function kt(e,t={}){return ut(e,t)}function At(e){return kt(e)}function jt(e){return it(e)&&x(e,`~optional`)}function Mt(e){return S(e).filter(t=>!jt(e[t]))}function Nt(e){return S(e)}function Pt(e){return Oe(e)}function O(e,t={}){let n=Mt(e);return C({"~kind":`Object`},{type:`object`,...n.length>0?{required:n}:{},properties:e},t)}function k(e){return T(e,`Object`)}function Ft(e){return rt(e,[`~kind`,`type`,`properties`,`required`])}function It(e){return C({"~kind":`Unknown`},{},e)}function Lt(e){return T(e,`Unknown`)}function Rt(e,t,n){return C({"~kind":`Cyclic`},{$defs:S(e).reduce((t,n)=>({...t,[n]:w(e[n],{},{$id:n})}),{}),$ref:t},n)}function zt(e){return T(e,`Cyclic`)}function Bt(e){return w(e,{"~unsafe":null},{})}function Vt(e){return de(e)&&x(e,`~unsafe`)&&ue(e[`~unsafe`])}function Ht(e,t){return t[e.length]?.(...e)??(()=>{throw Error(`Invalid Arguments`)})()}function Ut(...e){let[t,n]=Ht(e,{2:(e,t)=>[e,t,t],1:e=>[e,It(),It()]});return C({"~kind":`Infer`},{type:`infer`,name:t,extends:n},{})}function Wt(e){return T(e,`Infer`)}function Gt(e,t,n,r={}){return C({"~kind":`Dependent`},{if:e,then:t,else:n},r)}function Kt(e){return T(e,`Dependent`)}function qt(e){return rt(e,[`~kind`,`if`,`then`,`else`])}function Jt(e){return de(e)}function Yt(e){return S(e).filter(e=>isNaN(e)).reduce((t,n)=>[...t,e[n]],[])}function Xt(e,t){return C({"~kind":`Enum`},{enum:Jt(e)?Yt(e):e},t)}function Zt(e){return T(e,`Enum`)}function Qt(e,t={}){return C({"~kind":`Intersect`},{allOf:e},t)}function A(e){return T(e,`Intersect`)}function $t(e){return rt(e,[`~kind`,`allOf`])}function en(){throw Error(`Unreachable`)}function tn(e){let t=new Set,n=e;for(;n&&n!==Object.prototype;){for(let e of Reflect.ownKeys(n))e!==`constructor`&&typeof e!=`symbol`&&t.add(e);n=Object.getPrototypeOf(n)}return[...t]}function nn(e){return typeof e==`number`}var rn;(function(e){e[e.Array=0]=`Array`,e[e.BigInt=1]=`BigInt`,e[e.Boolean=2]=`Boolean`,e[e.Date=3]=`Date`,e[e.Constructor=4]=`Constructor`,e[e.Function=5]=`Function`,e[e.Null=6]=`Null`,e[e.Number=7]=`Number`,e[e.Object=8]=`Object`,e[e.RegExp=9]=`RegExp`,e[e.String=10]=`String`,e[e.Symbol=11]=`Symbol`,e[e.TypeArray=12]=`TypeArray`,e[e.Undefined=13]=`Undefined`})(rn||={});let an=BigInt(`14695981039346656037`);const[on,sn]=[BigInt(`1099511628211`),BigInt(`18446744073709551616`)],cn=Array.from({length:256}).map((e,t)=>BigInt(t)),ln=new Float64Array(1),un=new DataView(ln.buffer),dn=new Uint8Array(ln.buffer);function j(e){an^=cn[e],an=an*on%sn}function fn(e){j(rn.Array);for(let t of e)Dn(t)}function pn(e){j(rn.BigInt),un.setBigInt64(0,e);for(let e of dn)j(e)}function mn(e){j(rn.Boolean),j(+!!e)}function hn(e){j(rn.Constructor),Dn(e.toString())}function gn(e){j(rn.Date),Dn(e.getTime())}function _n(e){j(rn.Function),Dn(e.toString())}function vn(e){j(rn.Null)}function yn(e){j(rn.Number),un.setFloat64(0,e,!0);for(let e of dn)j(e)}function bn(e){j(rn.Object);for(let t of tn(e).sort())Dn(t),Dn(e[t])}function xn(e){j(rn.RegExp),Cn(e.toString())}const Sn=new TextEncoder;function Cn(e){j(rn.String);for(let t of Sn.encode(e))j(t)}function wn(e){j(rn.Symbol),Dn(e.toString())}function Tn(e){j(rn.TypeArray);let t=new Uint8Array(e.buffer);for(let e=0;ethis.decode(t[`~codec`].decode(e)):this.decode,encode:Rn(t)?n=>t[`~codec`].encode(e(n)):e};return w(this.type,{"~codec":n},{})}},Pn=class{constructor(e){this.type=e}Decode(e){return new Nn(this.type,e)}};function Fn(e){return new Pn(e)}function In(e,t){return Fn(e).Decode(t).Encode(()=>{throw Error(`Encode not implemented`)})}function Ln(e,t){return Fn(e).Decode(()=>{throw Error(`Decode not implemented`)}).Encode(t)}function Rn(e){return it(e)&&x(e,`~codec`)&&h(e[`~codec`])&&x(e[`~codec`],`encode`)&&x(e[`~codec`],`decode`)}function zn(e){return av(e)}function Bn(e){return it(e)&&x(e,`~immutable`)}function Vn(e,t={}){return E(`AddReadonly`,[e],t)}function Hn(e,t={}){return st(e,t)}function Un(e){return Hn(e)}function Wn(e){return it(e)&&x(e,`~readonly`)}function Gn(e,t){return w(e,{"~refine":Jn(e)?[...e[`~refine`],t]:[t]},{})}function Kn(...e){let[t,n,r]=Ht(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[e,t,()=>`Refine Error`]});return Gn(t,{check:n,error:r})}function qn(e){return de(e)&&x(e,`check`)&&x(e,`error`)&&ce(e.check)&&ce(e.error)}function Jn(e){return it(e)&&x(e,`~refine`)&&d(e[`~refine`])&&y(e[`~refine`],0,e=>qn(e))}function Yn(e){return C({"~kind":`BigInt`},{type:`bigint`},e)}function Xn(e){return T(e,`BigInt`)}function Zn(e){return C({"~kind":`Boolean`},{type:`boolean`},e)}function Qn(e){return T(e,`Boolean`)}function $n(e){return C({"~kind":`Identifier`},{name:e})}function er(e){return T(e,`Identifier`)}const tr=`-?(?:0|[1-9][0-9]*)`;function nr(e){return C({"~kind":`Integer`},{type:`integer`},e)}function rr(e){return T(e,`Integer`)}var ir=class extends Error{constructor(e){super(`Invalid Literal value`),Object.defineProperty(this,"cause",{value:{value:e},writable:!1,configurable:!1,enumerable:!1})}};function ar(e){return f(e)?`bigint`:p(e)?`boolean`:m(e)?`number`:g(e)?`string`:(()=>{throw new ir(e)})()}function M(e,t){return C({"~kind":`Literal`},{type:ar(e),const:e},t)}function or(e){return f(e)||p(e)||m(e)||g(e)}function sr(e){return N(e)&&f(e.const)}function cr(e){return N(e)&&p(e.const)}function lr(e){return N(e)&&m(e.const)}function ur(e){return N(e)&&g(e.const)}function N(e){return T(e,`Literal`)}function dr(e){return C({"~kind":`Null`},{type:`null`},e)}function fr(e){return T(e,`Null`)}const pr=`-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?`;function mr(e){return C({"~kind":`Number`},{type:`number`},e)}function hr(e){return T(e,`Number`)}function gr(e){return C({"~kind":`Symbol`},{type:`symbol`},e)}function _r(e){return T(e,`Symbol`)}function vr(...e){let[t,n,r]=Ht(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[e,t,t],1:e=>[e,It(),It()]});return C({"~kind":`Parameter`},{name:t,extends:n,equals:r},{})}function yr(e){return T(e,`Parameter`)}function br(e){return C({"~kind":`String`},{type:`string`},e)}function xr(e){return T(e,`String`)}function P(e,t={}){return C({"~kind":`Union`},{anyOf:e},t)}function F(e){return T(e,`Union`)}function Sr(e){return rt(e,[`~kind`,`anyOf`])}function Cr(e){let t=Lu(e);return v(t.length,2)?t[0]:[]}function wr(e){return!0}function Tr(e){return b(e,(e,t)=>Dr(e)?Tr(t):!1,()=>!0)}function Er(e){return v(e.length,0)?!1:Tr(e)}function Dr(e){return F(e)?Er(e.anyOf):N(e)?wr(e.const):!1}function Or(e){return Er(e)}function kr(e){return C({"~kind":`TemplateLiteral`},{type:`string`,pattern:e},{})}function Ar(e,t,n=[]){return b(e,(e,r)=>Ar(r,t,[...n,`${e}${t}`]),()=>n)}function jr(e,t){return v(e.length,0)?[`${t}`]:Ar(e,t)}function Mr(e,t,n=[]){return b(t,(t,r)=>Mr(e,r,[...n,...Nr(e,t)]),()=>n)}function Nr(e,t){return F(t)?Mr(e,t.anyOf):N(t)?jr(e,t.const):en()}function Pr(e,t){return b(t,(t,n)=>Pr(Nr(e,t),n),()=>e)}function Fr(e){return e.map(e=>M(e))}function Ir(e){return P(Fr(Pr([],e)))}function Lr(e){return v(e.length,0)?en():v(e.length,1)&&N(e[0])?e[0]:Ir(e)}function Rr(e){let t=Cr(e);return v(t.length,0)?br():Or(t)?Lr(t):kr(e)}function zr(e){let t=Rr(e);return Sd(t)?br():t}function Br(e,t){return C({"~kind":`Record`},{type:`object`,patternProperties:{[e]:t}})}function Vr(e){return Br(Ki,e)}function Hr(e){return O({true:e,false:e})}function Ur(e,t={}){let[n,r,i]=[e,e.length,!1];return C({"~kind":`Tuple`},{type:`array`,additionalItems:i,items:n,minItems:r},t)}function I(e){return T(e,`Tuple`)}function Wr(e){return rt(e,[`~kind`,`type`,`items`,`minItems`,`additionalItems`])}function Gr(e){return rt(e,[`~readonly`])}function Kr(e,t){return w(Gr(e),{},t)}function qr(e,t,n,r){return Kr(J(e,t,n),r)}function Jr(e,t={}){return E(`RemoveReadonly`,[e],t)}function Yr(e,t={}){return Kr(e,t)}function Xr(e){return rt(e,[`~optional`])}function Zr(e,t){return w(Xr(e),{},t)}function Qr(e,t,n,r){return Zr(J(e,t,n),r)}function $r(e,t={}){return E(`RemoveOptional`,[e],t)}function ei(e,t={}){return Zr(e,t)}function ti(e){return e.reduceRight((e,t,n)=>({[n]:t,...e}),{})}function ni(e){return O(ti(e.items))}function ri(e,t){return Wn(e)?!!Wn(t):!1}function ii(e,t){return jt(e)?!!jt(t):!1}function ai(e,t){let n=ri(e,t),r=ii(e,t),i=Yr(ei(Si([e,t])));return n&&r?Hn(kt(i)):n&&!r?Hn(i):!n&&r?kt(i):i}function oi(e,t,n){return n in e?n in t?ai(e[n],t[n]):e[n]:n in t?t[n]:Et()}function si(e,t){return[...new Set([...S(t),...S(e)])].reduce((n,r)=>({...n,[r]:oi(e,t,r)}),{})}function ci(e){return k(e)?e.properties:I(e)?ti(e.items):en()}function li(e,t){return O(si(ci(e),ci(t)))}function ui(e,t){let n=wp(e,t);return v(n,`left-inside`)?e:v(n,`right-inside`)||v(n,`equal`)?t:Et()}function di(e){return k(e)||I(e)}function fi(e,t){let n=F(e),r=F(t);return n||r}function pi(e,t){let n=Ti(e),r=Ti(t),i=fi(n,r),a=di(n),o=di(r);return i?Si([n,r]):a&&o?li(n,r):a&&!o?n:!a&&o?r:ui(n,r)}function mi(e,t,n=[]){return b(t,(t,r)=>mi(e,r,[...n,pi(e,t)]),()=>v(n.length,0)?[e]:n)}function hi(e,t,n=[]){return b(e,(e,r)=>hi(r,t,[...n,...gi([e],t)]),()=>n)}function gi(e,t=[]){return b(e,(e,n)=>F(e)?gi(n,hi(e.anyOf,t)):gi(n,mi(e,t)),()=>t)}function _i(e,t){return Od(Cp({},e,t))?[]:[e]}function vi(e,t){return e.reduce((e,n)=>[...e,..._i(n,t)],[])}function yi(e,t){let n=Ti(e);return wi(vi(F(n)?n.anyOf:[n],t))}function bi(e,t,n){return wi([Qt([e,t]),yi(n,e)])}function xi(e){return wi(e.map(e=>M(e)))}function Si(e){return Ei(kp(gi(e)))}function Ci(e){return Ti(zr(e))}function wi(e){return Ei(kp(e))}function Ti(e){return Kt(e)?bi(e.if,e.then,e.else):Zt(e)?xi(e.enum):A(e)?Si(e.allOf):Sd(e)?Ci(e.pattern):F(e)?wi(e.anyOf):e}function Ei(e){return v(e.length,1)?e[0]:v(e.length,0)?Et():P(e)}function Di(e,t){return Vi(xi(e),t)}function Oi(e,t){return Br(Wi,t)}function ki(e,t){return Vi(Si(e),t)}function Ai(e,t){return g(e)||m(e)?O({[e]:t}):v(e,!1)?O({false:t}):v(e,!0)?O({true:t}):O({})}function ji(e,t){return Br(Gi,t)}function Mi(e,t){return x(e,`pattern`)&&(g(e.pattern)||e.pattern instanceof RegExp)?Br(e.pattern.toString(),t):Br(Ki,t)}function Ni(e,t){return Or(Cr(e))?Vi(Ci(e),t):Br(e,t)}function Pi(e){return F(e)?Fi(e.anyOf):[e]}function Fi(e){return e.reduce((e,t)=>[...e,...Pi(t)],[])}function Ii(e){return e.some(e=>xr(e)||hr(e)||rr(e))}function Li(e,t){return v(Ii(e),!0)?Br(Ki,t):void 0}function Ri(e,t){return e.reduce((e,n)=>N(n)&&(g(n.const)||m(n.const))?{...e,[n.const]:t}:e,{})}function zi(e,t){return O(Ri(e,t))}function Bi(e,t){let n=Fi(e),r=Li(n,t);return it(r)?r:zi(n,t)}function Vi(e,t){return Tt(e)?Vr(t):Qn(e)?Hr(t):Zt(e)?Di(e.enum,t):rr(e)?Oi(e,t):A(e)?ki(e.allOf,t):N(e)?Ai(e.const,t):hr(e)?ji(e,t):F(e)?Bi(e.anyOf,t):xr(e)?Mi(e,t):Sd(e)?Ni(e.pattern,t):O({})}function Hi(e,t,n){return q([e])?w(Vi(e,t),{},n):qi(e,t,n)}function Ui(e,t,n,r,i){return Hi(J(e,t,n),J(e,t,r),i)}const Wi=`^${tr}$`,Gi=`^${pr}$`,Ki=`^.*$`;function qi(e,t,n={}){return E(`Record`,[e,t],n)}function Ji(e,t,n={}){return Hi(e,t,n)}function Yi(e,t){return Br(e,t)}function Xi(e){return v(e,Ki)?br():v(e,Wi)?nr():v(e,Gi)?mr():Rr(e)}function Zi(e){return S(e.patternProperties)[0]}function Qi(e){return Xi(Zi(e))}function $i(e){return e.patternProperties[Zi(e)]}function ea(e){return T(e,`Record`)}function ta(e){return C({"~kind":`Rest`},{type:`rest`,items:e},{})}function na(e){return T(e,`Rest`)}function ra(e){return C({"~kind":`This`},{$ref:`#`},e)}function ia(e){return T(e,`This`)}function aa(e){return C({"~kind":`Undefined`},{type:`undefined`},e)}function oa(e){return T(e,`Undefined`)}function sa(e){return C({"~kind":`Void`},{type:`void`},e)}function ca(e){return T(e,`Void`)}function la(e,t){return v(e,`Array`)?ft(t[0]):v(e,`Capitalize`)?mm(t[0]):v(e,`ConstructorParameters`)?zm(t[0]):v(e,`Evaluate`)?ov(t[0]):v(e,`Exclude`)?Wm(t[0],t[1]):v(e,`Extract`)?Jm(t[0],t[1]):v(e,`Index`)?rh(t[0],t[1]):v(e,`InstanceType`)?Qh(t[0]):v(e,`Lowercase`)?gm(t[0]):v(e,`NonNullable`)?Pg(t[0]):v(e,`Omit`)?zg(t[0],t[1]):v(e,`Parameters`)?Kg(t[0]):v(e,`Partial`)?Zg(t[0]):v(e,`Pick`)?s_(t[0],t[1]):v(e,`Readonly`)?p_(t[0]):v(e,`KeyOf`)?rg(t[0]):v(e,`Record`)?qi(t[0],t[1]):v(e,`Required`)?M_(t[0]):v(e,`ReturnType`)?I_(t[0]):v(e,`Uncapitalize`)?vm(t[0]):v(e,`Uppercase`)?bm(t[0]):rm(bt(e),t)}function ua(){throw Error(`Unreachable`)}const da=(e,t=[])=>e.reduce((e,t)=>d(t)&&v(t.length,2)?[...e,t[0]]:[...e,t],[]),fa=e=>{let[t,n]=e;return da([...t,...n])};function pa(e){return vr(e[0],e[2],e[4])}function ma(e){return vr(e[0],e[2],e[2])}function ha(e){return vr(e[0],It(),e[2])}function ga(e){return vr(e,It(),It())}function _a(e){return e}function va(e){return fa(e)}function ya(e){return e[1]}function ba(e){return fa(e)}function xa(e){return e[1]}function Sa(e){return la(e[0],e[1])}function Ca(e){return null}function wa(e){return br()}function Ta(e){return mr()}function Ea(e){return Zn()}function Da(e){return aa()}function Oa(e){return dr()}function ka(e){return nr()}function Aa(e){return Yn()}function ja(e){return It()}function Ma(e){return wt()}function Na(e){return O({})}function Pa(e){return Et()}function Fa(e){return gr()}function Ia(e){return sa()}function La(e){return ra()}function Ra(e){return M(BigInt(e))}function za(e){return M(v(e,`true`))}function Ba(e){return M(parseFloat(e))}function Va(e){return M(e)}function Ha(e){return e[1]}function Ua(e){return M(e)}function Wa(e){return v(e.length,3)?[e[0],e[1],...e[2]]:[e[0]]}function Ga(e){return e[1]}function Ka(e){return _d(e)}function qa(e){return v(e.length,6)?Gt(e[1],e[3],e[5]):Gt(e[1],e[3],It())}function Ja(e){return e.length>0}function Ya(e){return e.reduce((e,t)=>v(t.length,3)?[...e,[t[1]]]:[...e,[]],[])}function Xa(e){return v(e.length,6)?[e[1],e[3],e[5]]:[]}function Za(e){return d(e)&&v(e.length,3)?e[1]:e}function Qa(e){return v(e.length,2)?e[1]:[]}function $a(e,t){return t.reduce((e,t)=>{let n=t;return v(n.length,1)?rh(e,n[0]):v(n.length,0)?ft(e):ua()},e)}function eo(e,t){return v(t.length,3)?Pm(e,t[0],t[1],t[2]):e}function to(e,t){return d(t)&&v(t.length,0)?e:V_(e,t)}function no(e){let[t,n,r,i,a]=e;return to(eo(t?rg($a(n,r)):$a(n,r),i),a)}function ro(e,t){return v(t.length,3)?(()=>{let[n,r,i]=t,a=ro(r,i);if(v(n,`&`))return A(a)?Qt([e,...a.allOf]):Qt([e,a]);if(v(n,`|`))return F(a)?P([e,...a.anyOf]):P([e,a]);ua()})():e}function io(e){return e}function ao(e){let[t,n]=e;return ro(t,n)}function oo(e){return e}function so(e){let[t,n]=e;return ro(t,n)}function co(e){return iv(e[1])}function lo(e){return e[1]}function uo(e){return St(e[0],e[2])}function fo(e){return v(e.length,4)?Ut(e[1],e[3]):v(e.length,2)?Ut(e[1],It()):ua()}function po(e){return e}function mo(e){return`${e}`}function ho(e){return e}function go(e){return e}function _o(e){return rr(e[3])?Wi:hr(e[3])?Gi:_r(e[3])||xr(e[3])?Ki:ua()}function vo(e){return e}function yo(e){return e.length>0}function bo(e){return e.length>0}function xo(e){let[t,n,r,i,a]=e;return{[n]:t&&r?Vn(Ot(a)):t&&!r?Vn(a):!t&&r?Ot(a):a}}function So(e){return e}function Co(e){return fa(e)}function wo(e){return e.reduce((e,t)=>x(t,Wi)||x(t,Gi)||x(t,Ki)?[e[0],r(e[1],t)]:[r(e[0],t),e[1]],[{},{}])}function To(e){return wo(e[1])}function Eo(e){let[t,n]=e;return O(t,v(S(n).length,0)?{}:{patternProperties:n})}function Do(e){return v(e.length,5)?Vn(Ot(e[4])):v(e.length,3)?e[2]:v(e.length,4)?v(e[2],`readonly`)?Vn(e[3]):Ot(e[3]):ua()}function Oo(e){return Vn(Ot(e[1]))}function ko(e){return Vn(e[1])}function Ao(e){return Ot(e[0])}function jo(e){return e}function Mo(e){return v(e.length,2)?ta(e[1]):v(e.length,1)?e[0]:ua()}function No(e){return fa(e)}function Po(e){return Ur(e[1])}function Fo(e){return Vn(Ot(e[4]))}function Io(e){return Vn(e[3])}function Lo(e){return Ot(e[3])}function Ro(e){return e[2]}function zo(e){return e}function Bo(e){return v(e.length,2)?ta(e[1]):v(e.length,1)?e[0]:ua()}function Vo(e){return fa(e)}function Ho(e){return _t(e[1],e[4])}function Uo(e){return mt(e[2],e[5])}function Wo(e,t){return v(e,`remove`)?Jr(t):v(e,`add`)?Vn(t):t}function Go(e){return v(e.length,2)&&v(e[0],`-`)?`remove`:v(e.length,2)&&v(e[0],`+`)||v(e.length,1)?`add`:`none`}function Ko(e,t){return v(e,`remove`)?$r(t):v(e,`add`)?Ot(t):t}function qo(e){return v(e.length,2)&&v(e[0],`-`)?`remove`:v(e.length,2)&&v(e[0],`+`)||v(e.length,1)?`add`:`none`}function Jo(e){return v(e.length,2)?[e[1]]:[]}function Yo(e){return d(e[6])&&v(e[6].length,1)?hg($n(e[3]),e[5],e[6][0],Wo(e[1],Ko(e[8],e[10]))):hg($n(e[3]),e[5],bt(e[3]),Wo(e[1],Ko(e[8],e[10])))}function Xo(e){return bt(e)}function Zo(e){return BigInt(e)}function Qo(e){return parseFloat(e)}function $o(e){return v(e,`true`)}function es(e){return e}function ts(e){return null}function ns(e){return{[e[0]]:e[2]}}function rs(e){return fa(e)}function is(e){return e.reduce((e,t)=>r(e,t),{})}function as(e){return is(e[1])}function os(e){return fa(e)}function ss(e){return e[1]}function cs(e){return e}function ls(e){return Yn()}function us(e){return br()}function ds(e){return mr()}function fs(e){return nr()}function ps(e){return Et()}function ms(e){return M(e)}function hs(e){return e}function gs(e){return P(e[1])}function _s(e){return e.length===3?[...e[0],...e[2]]:e.length===1?[...e[0]]:[]}function vs(e){return[e[0],...e[1]]}function ys(e){return e}function bs(e){return e[1]}function xs(e){return fa(e)}function Ss(e){return v(e.length,2)?e[1]:[]}function Cs(e){let t=e[2],n=e[3],[r,i]=e[4],a=v(S(i).length,0)?{}:{patternProperties:i};return{[e[1]]:St(t,Xf(n,r,a))}}function ws(e){let t=e[2],[n,r]=e[3],i=v(S(r).length,0)?{}:{patternProperties:r};return{[e[1]]:Xf(t,n,i)}}function Ts(e){return{[e[1]]:St(e[2],e[4])}}function Es(e){return{[e[1]]:e[3]}}function Ds(e){return null}function Os(e){return e}function ks(e){return wo(fa(e))}function As(e){return e[1]}function js(e){let t=e[0],n=e[1];return cv(r(t,n[0]))}function Ms(e){return e}function Ns(e){return v(e.length,2)}function L(e,t,n){return Ns(e)?t(e[0],e[1]):n()}function Ps(e,t){return v(t.indexOf(e),0)?[e,t.slice(e.length)]:[]}function Fs(e,t){for(let n=0;nString.fromCharCode(e+n))}const Ls=[...Is(97,122),...Is(65,90)],Rs=Is(49,57),zs=[`0`,...Rs];function Bs(e){let t=e.indexOf(`*/`);return v(t,-1)?``:e.slice(t+2)}function Vs(e){let t=e.indexOf(` +`);return v(t,-1)?``:e.slice(t)}function Hs(e){return e.replace(/^[ \t\r\f\v]+/,``)}function Us(e){let t=Hs(e);return t.startsWith(`/*`)?Us(Bs(t.slice(2))):t.startsWith(`//`)?Us(Vs(t.slice(2))):t}function Ws(e){let t=e.trimStart();return t.startsWith(`/*`)?Ws(Bs(t.slice(2))):t.startsWith(`//`)?Ws(Vs(t.slice(2))):t}function Gs(e,t){return L(Fs([e],t),(e,t)=>[e,t],()=>[``,t])}function Ks(e,t){return e.includes(t)}function qs(e,t,n,r=``){return L(Fs(e,n),(n,i)=>Ks(t,n)?qs(e,t,i,r):qs(e,t,i,`${r}${n}`),()=>[r,n])}function Js(e){return Fs(Rs,e)}const Ys=[...zs,`_`];function Xs(e){return qs(Ys,[`_`],e)}function Zs(e){return L(Fs([`0`],e),(e,t)=>[e,t],()=>L(Js(e),(e,t)=>L(Xs(t),(t,n)=>[`${e}${t}`,n],()=>[]),()=>[]))}function Qs(e){return Zs(Ws(e))}function $s(e){return Gs(`-`,e)}function ec(e){return L($s(e),(e,t)=>L(Qs(t),(t,n)=>[`${e}${t}`,n],()=>[]),()=>[])}function tc(e){return ec(Ws(e))}function nc(e){return L(tc(e),(e,t)=>L(Fs([`n`],t),(t,n)=>[`${e}`,n],()=>[]),()=>[])}function rc(e){return nc(e)}function ic(e,t){return Fs([e],t)}function R(e,t){return v(e,``)?[``,t]:e.startsWith(` +`)?ic(e,Us(t)):e.startsWith(` `)?ic(e,t):ic(e,Ws(t))}const ac=[...Ls,`_`,`$`];function oc(e){return Fs(ac,e)}const sc=[...ac,...zs];function cc(e,t=``){return L(Fs(sc,e),(e,n)=>cc(n,`${t}${e}`),()=>[t,e])}function lc(e){return L(oc(e),(e,t)=>L(cc(t),(t,n)=>[`${e}${t}`,n],()=>[]),()=>[])}function z(e){return lc(Ws(e))}const uc=[...zs,`_`];function dc(e){return Ns(Fs([`.`],e))}function fc(e){return L(qs(uc,[`_`],e),(e,t)=>v(e,``)?[]:[e,t],()=>[])}function pc(e){return L(Fs([`.`],e),(e,t)=>L(fc(t),(t,n)=>[`0${e}${t}`,n],()=>[]),()=>[])}function mc(e){return L(Qs(e),(e,t)=>L(Fs([`.`],t),(t,n)=>L(fc(n),(n,r)=>[`${e}${t}${n}`,r],()=>[`${e}`,n]),()=>[`${e}`,t]),()=>[])}function hc(e){return dc(e)?pc(e):mc(e)}function gc(e){return hc(Ws(e))}function _c(e){return Gs(`-`,e)}function vc(e){return L(_c(e),(e,t)=>L(gc(t),(t,n)=>[`${e}${t}`,n],()=>[]),()=>[])}function yc(e){return vc(Ws(e))}function bc(e){return v(e,``)?[]:[e.slice(0,1),e.slice(1)]}function xc(e,t){return b(e,(e,n)=>t.startsWith(e)?!0:xc(n,t),()=>!1)}function Sc(e,t,n=``){return L(bc(t),(r,i)=>xc(e,t)?[n,t]:Sc(e,i,`${n}${r}`),()=>[])}function Cc(e,t,n){return L(Fs([e],n),(e,n)=>L(Sc([t],n),(e,n)=>L(Fs([t],n),(t,n)=>[`${e}`,n],()=>[]),()=>[]),()=>[])}function wc(e,t,n){return L(Fs([e],n),(e,n)=>L(Sc([` +`,t],n),(e,n)=>L(Fs([t],n),(t,n)=>[`${e}`,n],()=>[]),()=>[]),()=>[])}function Tc(e,t,n,r){return n?Cc(e,t,Ws(r)):wc(e,t,Ws(r))}function Ec(e,t){return Fs(e,t)}function Dc(e,t){return Tc(e,e,!1,t)}function Oc(e,t){return L(Ec(e,t),(e,t)=>Dc(e,`${e}${t}`),()=>[])}function kc(e,t){return Oc(e,Ws(t))}function Ac(e,t){return L(Sc(e,t),(e,t)=>v(e,``)?[]:[e,t],()=>[])}const B=(e,t,n=()=>[])=>e.length===2?t(e):n(),jc=e=>B(B(z(e),([e,t])=>B(R(`extends`,t),([t,n])=>B(V(n),([n,r])=>B(R(`=`,r),([r,i])=>B(V(i),([i,a])=>[[e,t,n,r,i],a]))))),([e,t])=>[pa(e),t]),Mc=e=>B(B(z(e),([e,t])=>B(R(`extends`,t),([t,n])=>B(V(n),([n,r])=>[[e,t,n],r]))),([e,t])=>[ma(e),t]),Nc=e=>B(B(z(e),([e,t])=>B(R(`=`,t),([t,n])=>B(V(n),([n,r])=>[[e,t,n],r]))),([e,t])=>[ha(e),t]),Pc=e=>B(z(e),([e,t])=>[ga(e),t]),Fc=e=>B(B(jc(e),([e,t])=>[e,t],()=>B(Mc(e),([e,t])=>[e,t],()=>B(Nc(e),([e,t])=>[e,t],()=>B(Pc(e),([e,t])=>[e,t],()=>[])))),([e,t])=>[_a(e),t]),Ic=(e,t=[])=>B(B(Fc(e),([e,t])=>B(R(`,`,t),([t,n])=>[[e,t],n])),([e,n])=>Ic(n,[...t,e]),()=>[t,e]),Lc=e=>B(B(Ic(e),([e,t])=>B(B(B(Fc(t),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>B([[],t],([e,t])=>[e,t],()=>[])),([t,n])=>[[e,t],n])),([e,t])=>[va(e),t]),Rc=e=>B(B(R(`<`,e),([e,t])=>B(Lc(t),([t,n])=>B(R(`>`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[ya(e),t]),zc=(e,t=[])=>B(B(V(e),([e,t])=>B(R(`,`,t),([t,n])=>[[e,t],n])),([e,n])=>zc(n,[...t,e]),()=>[t,e]),Bc=e=>B(B(zc(e),([e,t])=>B(B(B(V(t),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>B([[],t],([e,t])=>[e,t],()=>[])),([t,n])=>[[e,t],n])),([e,t])=>[ba(e),t]),Vc=e=>B(B(R(`<`,e),([e,t])=>B(Bc(t),([t,n])=>B(R(`>`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[xa(e),t]),Hc=e=>B(B(z(e),([e,t])=>B(Vc(t),([t,n])=>[[e,t],n])),([e,t])=>[Sa(e),t]),Uc=e=>B(B(B(R(`;`,e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>B([[],e],([e,t])=>[e,t],()=>[])),([e,t])=>[Ca(e),t]),Wc=e=>B(R(`string`,e),([e,t])=>[wa(e),t]),Gc=e=>B(R(`number`,e),([e,t])=>[Ta(e),t]),Kc=e=>B(R(`boolean`,e),([e,t])=>[Ea(e),t]),qc=e=>B(R(`undefined`,e),([e,t])=>[Da(e),t]),Jc=e=>B(R(`null`,e),([e,t])=>[Oa(e),t]),Yc=e=>B(R(`integer`,e),([e,t])=>[ka(e),t]),Xc=e=>B(R(`bigint`,e),([e,t])=>[Aa(e),t]),Zc=e=>B(R(`unknown`,e),([e,t])=>[ja(e),t]),Qc=e=>B(R(`any`,e),([e,t])=>[Ma(e),t]),$c=e=>B(R(`object`,e),([e,t])=>[Na(e),t]),el=e=>B(R(`never`,e),([e,t])=>[Pa(e),t]),tl=e=>B(R(`symbol`,e),([e,t])=>[Fa(e),t]),nl=e=>B(R(`void`,e),([e,t])=>[Ia(e),t]),rl=e=>B(R(`this`,e),([e,t])=>[La(e),t]),il=e=>B(B(R("${",e),([e,t])=>B(V(t),([t,n])=>B(R(`}`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[Ha(e),t]),al=e=>B(Sc(["${","`"],e),([e,t])=>[Ua(e),t]),ol=e=>B(B(B(al(e),([e,t])=>B(il(t),([t,n])=>B(ol(n),([n,r])=>[[e,t,n],r]))),([e,t])=>[e,t],()=>B(B(al(e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>B(B(al(e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>[]))),([e,t])=>[Wa(e),t]),sl=e=>B(B(R("`",e),([e,t])=>B(ol(t),([t,n])=>B(R("`",n),([n,r])=>[[e,t,n],r]))),([e,t])=>[Ga(e),t]),cl=e=>B(sl(e),([e,t])=>[Ka(e),t]),ll=e=>B(B(B(R(`if`,e),([e,t])=>B(V(t),([t,n])=>B(R(`then`,n),([n,r])=>B(V(r),([r,i])=>B(R(`else`,i),([i,a])=>B(V(a),([a,o])=>[[e,t,n,r,i,a],o])))))),([e,t])=>[e,t],()=>B(B(R(`if`,e),([e,t])=>B(V(t),([t,n])=>B(R(`then`,n),([n,r])=>B(V(r),([r,i])=>[[e,t,n,r],i])))),([e,t])=>[e,t],()=>[])),([e,t])=>[qa(e),t]),ul=e=>B(rc(e),([e,t])=>[Ra(e),t]),dl=e=>B(B(R(`true`,e),([e,t])=>[e,t],()=>B(R(`false`,e),([e,t])=>[e,t],()=>[])),([e,t])=>[za(e),t]),fl=e=>B(yc(e),([e,t])=>[Ba(e),t]),pl=e=>B(kc([`'`,`"`],e),([e,t])=>[Va(e),t]),ml=e=>B(B(B(R(`keyof`,e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>B([[],e],([e,t])=>[e,t],()=>[])),([e,t])=>[Ja(e),t]),hl=(e,t=[])=>B(B(B(R(`[`,e),([e,t])=>B(V(t),([t,n])=>B(R(`]`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[e,t],()=>B(B(R(`[`,e),([e,t])=>B(R(`]`,t),([t,n])=>[[e,t],n])),([e,t])=>[e,t],()=>[])),([e,n])=>hl(n,[...t,e]),()=>[t,e]),gl=e=>B(hl(e),([e,t])=>[Ya(e),t]),_l=e=>B(B(B(R(`extends`,e),([e,t])=>B(V(t),([t,n])=>B(R(`?`,n),([n,r])=>B(V(r),([r,i])=>B(R(`:`,i),([i,a])=>B(V(a),([a,o])=>[[e,t,n,r,i,a],o])))))),([e,t])=>[e,t],()=>B([[],e],([e,t])=>[e,t],()=>[])),([e,t])=>[Xa(e),t]),vl=e=>B(B(B(R(`(`,e),([e,t])=>B(V(t),([t,n])=>B(R(`)`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[e,t],()=>B(Wc(e),([e,t])=>[e,t],()=>B(Gc(e),([e,t])=>[e,t],()=>B(Kc(e),([e,t])=>[e,t],()=>B(qc(e),([e,t])=>[e,t],()=>B(Jc(e),([e,t])=>[e,t],()=>B(Yc(e),([e,t])=>[e,t],()=>B(Xc(e),([e,t])=>[e,t],()=>B(Zc(e),([e,t])=>[e,t],()=>B(Qc(e),([e,t])=>[e,t],()=>B($c(e),([e,t])=>[e,t],()=>B(el(e),([e,t])=>[e,t],()=>B(tl(e),([e,t])=>[e,t],()=>B(nl(e),([e,t])=>[e,t],()=>B(rl(e),([e,t])=>[e,t],()=>B(ul(e),([e,t])=>[e,t],()=>B(dl(e),([e,t])=>[e,t],()=>B(fl(e),([e,t])=>[e,t],()=>B(pl(e),([e,t])=>[e,t],()=>B(cl(e),([e,t])=>[e,t],()=>B(ll(e),([e,t])=>[e,t],()=>B(Vl(e),([e,t])=>[e,t],()=>B(Xl(e),([e,t])=>[e,t],()=>B(ou(e),([e,t])=>[e,t],()=>B(au(e),([e,t])=>[e,t],()=>B(uu(e),([e,t])=>[e,t],()=>B(Hc(e),([e,t])=>[e,t],()=>B(du(e),([e,t])=>[e,t],()=>[])))))))))))))))))))))))))))),([e,t])=>[Za(e),t]),yl=e=>B(B(B(R(`with`,e),([e,t])=>B(xu(t),([t,n])=>[[e,t],n])),([e,t])=>[e,t],()=>B([[],e],([e,t])=>[e,t],()=>[])),([e,t])=>[Qa(e),t]),bl=e=>B(B(ml(e),([e,t])=>B(vl(t),([t,n])=>B(gl(n),([n,r])=>B(_l(r),([r,i])=>B(yl(i),([i,a])=>[[e,t,n,r,i],a]))))),([e,t])=>[no(e),t]),xl=e=>B(B(B(R(`&`,e),([e,t])=>B(bl(t),([t,n])=>B(xl(n),([n,r])=>[[e,t,n],r]))),([e,t])=>[e,t],()=>B([[],e],([e,t])=>[e,t],()=>[])),([e,t])=>[io(e),t]),Sl=e=>B(B(bl(e),([e,t])=>B(xl(t),([t,n])=>[[e,t],n])),([e,t])=>[ao(e),t]),Cl=e=>B(B(B(R(`|`,e),([e,t])=>B(Sl(t),([t,n])=>B(Cl(n),([n,r])=>[[e,t,n],r]))),([e,t])=>[e,t],()=>B([[],e],([e,t])=>[e,t],()=>[])),([e,t])=>[oo(e),t]),wl=e=>B(B(Sl(e),([e,t])=>B(Cl(t),([t,n])=>[[e,t],n])),([e,t])=>[so(e),t]),Tl=e=>B(B(R(`readonly`,e),([e,t])=>B(wl(t),([t,n])=>[[e,t],n])),([e,t])=>[co(e),t]),El=e=>B(B(R(`|`,e),([e,t])=>B(wl(t),([t,n])=>[[e,t],n])),([e,t])=>[lo(e),t]),Dl=e=>B(B(Rc(e),([e,t])=>B(R(`=`,t),([t,n])=>B(V(n),([n,r])=>[[e,t,n],r]))),([e,t])=>[uo(e),t]),Ol=e=>B(B(B(R(`infer`,e),([e,t])=>B(z(t),([t,n])=>B(R(`extends`,n),([n,r])=>B(wl(r),([r,i])=>[[e,t,n,r],i])))),([e,t])=>[e,t],()=>B(B(R(`infer`,e),([e,t])=>B(z(t),([t,n])=>[[e,t],n])),([e,t])=>[e,t],()=>[])),([e,t])=>[fo(e),t]),V=e=>B(B(Ol(e),([e,t])=>[e,t],()=>B(El(e),([e,t])=>[e,t],()=>B(Tl(e),([e,t])=>[e,t],()=>B(wl(e),([e,t])=>[e,t],()=>[])))),([e,t])=>[po(e),t]),kl=e=>B(yc(e),([e,t])=>[mo(e),t]),Al=e=>B(z(e),([e,t])=>[ho(e),t]),jl=e=>B(kc([`'`,`"`],e),([e,t])=>[go(e),t]),Ml=e=>B(B(R(`[`,e),([e,t])=>B(z(t),([t,n])=>B(R(`:`,n),([n,r])=>B(B(Yc(r),([e,t])=>[e,t],()=>B(Gc(r),([e,t])=>[e,t],()=>B(Wc(r),([e,t])=>[e,t],()=>B(tl(r),([e,t])=>[e,t],()=>[])))),([r,i])=>B(R(`]`,i),([i,a])=>[[e,t,n,r,i],a]))))),([e,t])=>[_o(e),t]),Nl=e=>B(B(kl(e),([e,t])=>[e,t],()=>B(Al(e),([e,t])=>[e,t],()=>B(jl(e),([e,t])=>[e,t],()=>B(Ml(e),([e,t])=>[e,t],()=>[])))),([e,t])=>[vo(e),t]),Pl=e=>B(B(B(R(`readonly`,e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>B([[],e],([e,t])=>[e,t],()=>[])),([e,t])=>[yo(e),t]),Fl=e=>B(B(B(R(`?`,e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>B([[],e],([e,t])=>[e,t],()=>[])),([e,t])=>[bo(e),t]),Il=e=>B(B(Pl(e),([e,t])=>B(Nl(t),([t,n])=>B(Fl(n),([n,r])=>B(R(`:`,r),([r,i])=>B(V(i),([i,a])=>[[e,t,n,r,i],a]))))),([e,t])=>[xo(e),t]),Ll=e=>B(B(B(R(`,`,e),([e,t])=>B(R(` `,t),([t,n])=>[[e,t],n])),([e,t])=>[e,t],()=>B(B(R(`;`,e),([e,t])=>B(R(` `,t),([t,n])=>[[e,t],n])),([e,t])=>[e,t],()=>B(B(R(`,`,e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>B(B(R(`;`,e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>B(B(R(` -`,e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>[]))))),([e,t])=>[Mo(e),t]),Jl=(e,t=[])=>B(B(Kl(e),([e,t])=>B(ql(t),([t,n])=>[[e,t],n])),([e,n])=>Jl(n,[...t,e]),()=>[t,e]),Yl=e=>B(B(Jl(e),([e,t])=>B(B(B(Kl(t),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>B([[],t],([e,t])=>[e,t],()=>[])),([t,n])=>[[e,t],n])),([e,t])=>[No(e),t]),Xl=e=>B(B(R(`{`,e),([e,t])=>B(Yl(t),([t,n])=>B(R(`}`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[Fo(e),t]),Zl=e=>B(Xl(e),([e,t])=>[Io(e),t]),Ql=e=>B(B(B(z(e),([e,t])=>B(R(`?`,t),([t,n])=>B(R(`:`,n),([n,r])=>B(R(`readonly`,r),([r,i])=>B(V(i),([i,a])=>[[e,t,n,r,i],a]))))),([e,t])=>[e,t],()=>B(B(z(e),([e,t])=>B(R(`:`,t),([t,n])=>B(R(`readonly`,n),([n,r])=>B(V(r),([r,i])=>[[e,t,n,r],i])))),([e,t])=>[e,t],()=>B(B(z(e),([e,t])=>B(R(`?`,t),([t,n])=>B(R(`:`,n),([n,r])=>B(V(r),([r,i])=>[[e,t,n,r],i])))),([e,t])=>[e,t],()=>B(B(z(e),([e,t])=>B(R(`:`,t),([t,n])=>B(V(n),([n,r])=>[[e,t,n],r]))),([e,t])=>[e,t],()=>[])))),([e,t])=>[Lo(e),t]),$l=e=>B(B(R(`readonly`,e),([e,t])=>B(V(t),([t,n])=>B(R(`?`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[Ro(e),t]),eu=e=>B(B(R(`readonly`,e),([e,t])=>B(V(t),([t,n])=>[[e,t],n])),([e,t])=>[zo(e),t]),tu=e=>B(B(V(e),([e,t])=>B(R(`?`,t),([t,n])=>[[e,t],n])),([e,t])=>[Bo(e),t]),nu=e=>B(B(Ql(e),([e,t])=>[e,t],()=>B($l(e),([e,t])=>[e,t],()=>B(eu(e),([e,t])=>[e,t],()=>B(tu(e),([e,t])=>[e,t],()=>B(V(e),([e,t])=>[e,t],()=>[]))))),([e,t])=>[Vo(e),t]),ru=e=>B(B(B(R(`...`,e),([e,t])=>B(nu(t),([t,n])=>[[e,t],n])),([e,t])=>[e,t],()=>B(B(nu(e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>[])),([e,t])=>[Ho(e),t]),iu=(e,t=[])=>B(B(ru(e),([e,t])=>B(R(`,`,t),([t,n])=>[[e,t],n])),([e,n])=>iu(n,[...t,e]),()=>[t,e]),au=e=>B(B(iu(e),([e,t])=>B(B(B(ru(t),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>B([[],t],([e,t])=>[e,t],()=>[])),([t,n])=>[[e,t],n])),([e,t])=>[Uo(e),t]),ou=e=>B(B(R(`[`,e),([e,t])=>B(au(t),([t,n])=>B(R(`]`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[Wo(e),t]),su=e=>B(B(z(e),([e,t])=>B(R(`?`,t),([t,n])=>B(R(`:`,n),([n,r])=>B(R(`readonly`,r),([r,i])=>B(V(i),([i,a])=>[[e,t,n,r,i],a]))))),([e,t])=>[Go(e),t]),cu=e=>B(B(z(e),([e,t])=>B(R(`:`,t),([t,n])=>B(R(`readonly`,n),([n,r])=>B(V(r),([r,i])=>[[e,t,n,r],i])))),([e,t])=>[Ko(e),t]),lu=e=>B(B(z(e),([e,t])=>B(R(`?`,t),([t,n])=>B(R(`:`,n),([n,r])=>B(V(r),([r,i])=>[[e,t,n,r],i])))),([e,t])=>[qo(e),t]),uu=e=>B(B(z(e),([e,t])=>B(R(`:`,t),([t,n])=>B(V(n),([n,r])=>[[e,t,n],r]))),([e,t])=>[Jo(e),t]),du=e=>B(B(su(e),([e,t])=>[e,t],()=>B(cu(e),([e,t])=>[e,t],()=>B(lu(e),([e,t])=>[e,t],()=>B(uu(e),([e,t])=>[e,t],()=>[])))),([e,t])=>[Yo(e),t]),fu=e=>B(B(B(R(`...`,e),([e,t])=>B(du(t),([t,n])=>[[e,t],n])),([e,t])=>[e,t],()=>B(B(du(e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>[])),([e,t])=>[Xo(e),t]),pu=(e,t=[])=>B(B(fu(e),([e,t])=>B(R(`,`,t),([t,n])=>[[e,t],n])),([e,n])=>pu(n,[...t,e]),()=>[t,e]),mu=e=>B(B(pu(e),([e,t])=>B(B(B(fu(t),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>B([[],t],([e,t])=>[e,t],()=>[])),([t,n])=>[[e,t],n])),([e,t])=>[Zo(e),t]),hu=e=>B(B(R(`(`,e),([e,t])=>B(mu(t),([t,n])=>B(R(`)`,n),([n,r])=>B(R(`=>`,r),([r,i])=>B(V(i),([i,a])=>[[e,t,n,r,i],a]))))),([e,t])=>[Qo(e),t]),gu=e=>B(B(R(`new`,e),([e,t])=>B(R(`(`,t),([t,n])=>B(mu(n),([n,r])=>B(R(`)`,r),([r,i])=>B(R(`=>`,i),([i,a])=>B(V(a),([a,o])=>[[e,t,n,r,i,a],o])))))),([e,t])=>[$o(e),t]),_u=e=>B(B(B(R(`+`,e),([e,t])=>B(R(`readonly`,t),([t,n])=>[[e,t],n])),([e,t])=>[e,t],()=>B(B(R(`-`,e),([e,t])=>B(R(`readonly`,t),([t,n])=>[[e,t],n])),([e,t])=>[e,t],()=>B(B(R(`readonly`,e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>B([[],e],([e,t])=>[e,t],()=>[])))),([e,t])=>[ts(e),t]),vu=e=>B(B(B(R(`+`,e),([e,t])=>B(R(`?`,t),([t,n])=>[[e,t],n])),([e,t])=>[e,t],()=>B(B(R(`-`,e),([e,t])=>B(R(`?`,t),([t,n])=>[[e,t],n])),([e,t])=>[e,t],()=>B(B(R(`?`,e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>B([[],e],([e,t])=>[e,t],()=>[])))),([e,t])=>[rs(e),t]),yu=e=>B(B(B(R(`as`,e),([e,t])=>B(V(t),([t,n])=>[[e,t],n])),([e,t])=>[e,t],()=>B([[],e],([e,t])=>[e,t],()=>[])),([e,t])=>[is(e),t]),bu=e=>B(B(R(`{`,e),([e,t])=>B(_u(t),([t,n])=>B(R(`[`,n),([n,r])=>B(z(r),([r,i])=>B(R(`in`,i),([i,a])=>B(V(a),([a,o])=>B(yu(o),([o,s])=>B(R(`]`,s),([s,c])=>B(vu(c),([c,l])=>B(R(`:`,l),([l,u])=>B(V(u),([u,ee])=>B($c(ee),([ee,te])=>B(R(`}`,te),([te,ne])=>[[e,t,n,r,i,a,o,s,c,l,u,ee,te],ne]))))))))))))),([e,t])=>[as(e),t]),xu=e=>B(z(e),([e,t])=>[os(e),t]),Su=e=>B(pc(e),([e,t])=>[ss(e),t]),Cu=e=>B(kc(e),([e,t])=>[cs(e),t]),wu=e=>B(B(R(`true`,e),([e,t])=>[e,t],()=>B(R(`false`,e),([e,t])=>[e,t],()=>[])),([e,t])=>[ls(e),t]),Tu=e=>B(zc([`"`,`'`],e),([e,t])=>[us(e),t]),Eu=e=>B(R(`null`,e),([e,t])=>[ds(e),t]),Du=e=>B(R(`undefined`,e),([e,t])=>[void 0,t]),Ou=e=>B(B(Ul(e),([e,t])=>B(R(`:`,t),([t,n])=>B(Fu(n),([n,r])=>[[e,t,n],r]))),([e,t])=>[fs(e),t]),ku=(e,t=[])=>B(B(Ou(e),([e,t])=>B(ql(t),([t,n])=>[[e,t],n])),([e,n])=>ku(n,[...t,e]),()=>[t,e]),Au=e=>B(B(ku(e),([e,t])=>B(B(B(Ou(t),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>B([[],t],([e,t])=>[e,t],()=>[])),([t,n])=>[[e,t],n])),([e,t])=>[ps(e),t]),ju=e=>B(B(R(`{`,e),([e,t])=>B(Au(t),([t,n])=>B(R(`}`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[hs(e),t]),Mu=(e,t=[])=>B(B(Fu(e),([e,t])=>B(R(`,`,t),([t,n])=>[[e,t],n])),([e,n])=>Mu(n,[...t,e]),()=>[t,e]),Nu=e=>B(B(Mu(e),([e,t])=>B(B(B(Fu(t),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>B([[],t],([e,t])=>[e,t],()=>[])),([t,n])=>[[e,t],n])),([e,t])=>[gs(e),t]),Pu=e=>B(B(R(`[`,e),([e,t])=>B(Nu(t),([t,n])=>B(R(`]`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[_s(e),t]),Fu=e=>B(B(Su(e),([e,t])=>[e,t],()=>B(Cu(e),([e,t])=>[e,t],()=>B(wu(e),([e,t])=>[e,t],()=>B(Tu(e),([e,t])=>[e,t],()=>B(Eu(e),([e,t])=>[e,t],()=>B(Du(e),([e,t])=>[e,t],()=>B(ju(e),([e,t])=>[e,t],()=>B(Pu(e),([e,t])=>[e,t],()=>[])))))))),([e,t])=>[vs(e),t]),Iu=e=>B(R(`-?(?:0|[1-9][0-9]*)n`,e),([e,t])=>[ys(e),t]),Lu=e=>B(R(`.*`,e),([e,t])=>[bs(e),t]),Ru=e=>B(R(`-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?`,e),([e,t])=>[xs(e),t]),zu=e=>B(R(`-?(?:0|[1-9][0-9]*)`,e),([e,t])=>[Ss(e),t]),Bu=e=>B(R(`(?!)`,e),([e,t])=>[Cs(e),t]),Vu=e=>B(Bc([`-?(?:0|[1-9][0-9]*)n`,`.*`,`-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?`,`-?(?:0|[1-9][0-9]*)`,`(?!)`,`(`,`)`,`$`,`|`],e),([e,t])=>[ws(e),t]),Hu=e=>B(B(Iu(e),([e,t])=>[e,t],()=>B(Lu(e),([e,t])=>[e,t],()=>B(Ru(e),([e,t])=>[e,t],()=>B(zu(e),([e,t])=>[e,t],()=>B(Bu(e),([e,t])=>[e,t],()=>B(Uu(e),([e,t])=>[e,t],()=>B(Vu(e),([e,t])=>[e,t],()=>[]))))))),([e,t])=>[Ts(e),t]),Uu=e=>B(B(R(`(`,e),([e,t])=>B(Ku(t),([t,n])=>B(R(`)`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[Es(e),t]),Wu=e=>B(B(B(Gu(e),([e,t])=>B(R(`|`,t),([t,n])=>B(Wu(n),([n,r])=>[[e,t,n],r]))),([e,t])=>[e,t],()=>B(B(Gu(e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>B([[],e],([e,t])=>[e,t],()=>[]))),([e,t])=>[Ds(e),t]),Gu=e=>B(B(Hu(e),([e,t])=>B(Ku(t),([t,n])=>[[e,t],n])),([e,t])=>[Os(e),t]),Ku=e=>B(B(Wu(e),([e,t])=>[e,t],()=>B(Gu(e),([e,t])=>[e,t],()=>[])),([e,t])=>[ks(e),t]),qu=e=>B(B(R(`^`,e),([e,t])=>B(Ku(t),([t,n])=>B(R(`$`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[As(e),t]),Ju=(e,t=[])=>B(B(V(e),([e,t])=>B(R(`,`,t),([t,n])=>[[e,t],n])),([e,n])=>Ju(n,[...t,e]),()=>[t,e]),Yu=e=>B(B(Ju(e),([e,t])=>B(B(B(V(t),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>B([[],t],([e,t])=>[e,t],()=>[])),([t,n])=>[[e,t],n])),([e,t])=>[js(e),t]),Xu=e=>B(B(B(R(`extends`,e),([e,t])=>B(Yu(t),([t,n])=>[[e,t],n])),([e,t])=>[e,t],()=>B([[],e],([e,t])=>[e,t],()=>[])),([e,t])=>[Ms(e),t]),Zu=e=>B(B(R(`interface`,e),([e,t])=>B(z(t),([t,n])=>B(Jc(n),([n,r])=>B(Xu(r),([r,i])=>B(Xl(i),([i,a])=>[[e,t,n,r,i],a]))))),([e,t])=>[Ns(e),t]),Qu=e=>B(B(R(`interface`,e),([e,t])=>B(z(t),([t,n])=>B(Xu(n),([n,r])=>B(Xl(r),([r,i])=>[[e,t,n,r],i])))),([e,t])=>[Ps(e),t]),$u=e=>B(B(R(`type`,e),([e,t])=>B(z(t),([t,n])=>B(Jc(n),([n,r])=>B(R(`=`,r),([r,i])=>B(V(i),([i,a])=>[[e,t,n,r,i],a]))))),([e,t])=>[Fs(e),t]),ed=e=>B(B(R(`type`,e),([e,t])=>B(z(t),([t,n])=>B(R(`=`,n),([n,r])=>B(V(r),([r,i])=>[[e,t,n,r],i])))),([e,t])=>[Is(e),t]),td=e=>B(B(B(R(`export`,e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>B([[],e],([e,t])=>[e,t],()=>[])),([e,t])=>[Ls(e),t]),nd=e=>B(B(B(R(`;`,e),([e,t])=>B(R(` +`,e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>[]))))),([e,t])=>[So(e),t]),Rl=(e,t=[])=>B(B(Il(e),([e,t])=>B(Ll(t),([t,n])=>[[e,t],n])),([e,n])=>Rl(n,[...t,e]),()=>[t,e]),zl=e=>B(B(Rl(e),([e,t])=>B(B(B(Il(t),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>B([[],t],([e,t])=>[e,t],()=>[])),([t,n])=>[[e,t],n])),([e,t])=>[Co(e),t]),Bl=e=>B(B(R(`{`,e),([e,t])=>B(zl(t),([t,n])=>B(R(`}`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[To(e),t]),Vl=e=>B(Bl(e),([e,t])=>[Eo(e),t]),Hl=e=>B(B(B(z(e),([e,t])=>B(R(`?`,t),([t,n])=>B(R(`:`,n),([n,r])=>B(R(`readonly`,r),([r,i])=>B(V(i),([i,a])=>[[e,t,n,r,i],a]))))),([e,t])=>[e,t],()=>B(B(z(e),([e,t])=>B(R(`:`,t),([t,n])=>B(R(`readonly`,n),([n,r])=>B(V(r),([r,i])=>[[e,t,n,r],i])))),([e,t])=>[e,t],()=>B(B(z(e),([e,t])=>B(R(`?`,t),([t,n])=>B(R(`:`,n),([n,r])=>B(V(r),([r,i])=>[[e,t,n,r],i])))),([e,t])=>[e,t],()=>B(B(z(e),([e,t])=>B(R(`:`,t),([t,n])=>B(V(n),([n,r])=>[[e,t,n],r]))),([e,t])=>[e,t],()=>[])))),([e,t])=>[Do(e),t]),Ul=e=>B(B(R(`readonly`,e),([e,t])=>B(V(t),([t,n])=>B(R(`?`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[Oo(e),t]),Wl=e=>B(B(R(`readonly`,e),([e,t])=>B(V(t),([t,n])=>[[e,t],n])),([e,t])=>[ko(e),t]),Gl=e=>B(B(V(e),([e,t])=>B(R(`?`,t),([t,n])=>[[e,t],n])),([e,t])=>[Ao(e),t]),Kl=e=>B(B(Hl(e),([e,t])=>[e,t],()=>B(Ul(e),([e,t])=>[e,t],()=>B(Wl(e),([e,t])=>[e,t],()=>B(Gl(e),([e,t])=>[e,t],()=>B(V(e),([e,t])=>[e,t],()=>[]))))),([e,t])=>[jo(e),t]),ql=e=>B(B(B(R(`...`,e),([e,t])=>B(Kl(t),([t,n])=>[[e,t],n])),([e,t])=>[e,t],()=>B(B(Kl(e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>[])),([e,t])=>[Mo(e),t]),Jl=(e,t=[])=>B(B(ql(e),([e,t])=>B(R(`,`,t),([t,n])=>[[e,t],n])),([e,n])=>Jl(n,[...t,e]),()=>[t,e]),Yl=e=>B(B(Jl(e),([e,t])=>B(B(B(ql(t),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>B([[],t],([e,t])=>[e,t],()=>[])),([t,n])=>[[e,t],n])),([e,t])=>[No(e),t]),Xl=e=>B(B(R(`[`,e),([e,t])=>B(Yl(t),([t,n])=>B(R(`]`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[Po(e),t]),Zl=e=>B(B(z(e),([e,t])=>B(R(`?`,t),([t,n])=>B(R(`:`,n),([n,r])=>B(R(`readonly`,r),([r,i])=>B(V(i),([i,a])=>[[e,t,n,r,i],a]))))),([e,t])=>[Fo(e),t]),Ql=e=>B(B(z(e),([e,t])=>B(R(`:`,t),([t,n])=>B(R(`readonly`,n),([n,r])=>B(V(r),([r,i])=>[[e,t,n,r],i])))),([e,t])=>[Io(e),t]),$l=e=>B(B(z(e),([e,t])=>B(R(`?`,t),([t,n])=>B(R(`:`,n),([n,r])=>B(V(r),([r,i])=>[[e,t,n,r],i])))),([e,t])=>[Lo(e),t]),eu=e=>B(B(z(e),([e,t])=>B(R(`:`,t),([t,n])=>B(V(n),([n,r])=>[[e,t,n],r]))),([e,t])=>[Ro(e),t]),tu=e=>B(B(Zl(e),([e,t])=>[e,t],()=>B(Ql(e),([e,t])=>[e,t],()=>B($l(e),([e,t])=>[e,t],()=>B(eu(e),([e,t])=>[e,t],()=>[])))),([e,t])=>[zo(e),t]),nu=e=>B(B(B(R(`...`,e),([e,t])=>B(tu(t),([t,n])=>[[e,t],n])),([e,t])=>[e,t],()=>B(B(tu(e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>[])),([e,t])=>[Bo(e),t]),ru=(e,t=[])=>B(B(nu(e),([e,t])=>B(R(`,`,t),([t,n])=>[[e,t],n])),([e,n])=>ru(n,[...t,e]),()=>[t,e]),iu=e=>B(B(ru(e),([e,t])=>B(B(B(nu(t),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>B([[],t],([e,t])=>[e,t],()=>[])),([t,n])=>[[e,t],n])),([e,t])=>[Vo(e),t]),au=e=>B(B(R(`(`,e),([e,t])=>B(iu(t),([t,n])=>B(R(`)`,n),([n,r])=>B(R(`=>`,r),([r,i])=>B(V(i),([i,a])=>[[e,t,n,r,i],a]))))),([e,t])=>[Ho(e),t]),ou=e=>B(B(R(`new`,e),([e,t])=>B(R(`(`,t),([t,n])=>B(iu(n),([n,r])=>B(R(`)`,r),([r,i])=>B(R(`=>`,i),([i,a])=>B(V(a),([a,o])=>[[e,t,n,r,i,a],o])))))),([e,t])=>[Uo(e),t]),su=e=>B(B(B(R(`+`,e),([e,t])=>B(R(`readonly`,t),([t,n])=>[[e,t],n])),([e,t])=>[e,t],()=>B(B(R(`-`,e),([e,t])=>B(R(`readonly`,t),([t,n])=>[[e,t],n])),([e,t])=>[e,t],()=>B(B(R(`readonly`,e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>B([[],e],([e,t])=>[e,t],()=>[])))),([e,t])=>[Go(e),t]),cu=e=>B(B(B(R(`+`,e),([e,t])=>B(R(`?`,t),([t,n])=>[[e,t],n])),([e,t])=>[e,t],()=>B(B(R(`-`,e),([e,t])=>B(R(`?`,t),([t,n])=>[[e,t],n])),([e,t])=>[e,t],()=>B(B(R(`?`,e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>B([[],e],([e,t])=>[e,t],()=>[])))),([e,t])=>[qo(e),t]),lu=e=>B(B(B(R(`as`,e),([e,t])=>B(V(t),([t,n])=>[[e,t],n])),([e,t])=>[e,t],()=>B([[],e],([e,t])=>[e,t],()=>[])),([e,t])=>[Jo(e),t]),uu=e=>B(B(R(`{`,e),([e,t])=>B(su(t),([t,n])=>B(R(`[`,n),([n,r])=>B(z(r),([r,i])=>B(R(`in`,i),([i,a])=>B(V(a),([a,o])=>B(lu(o),([o,s])=>B(R(`]`,s),([s,c])=>B(cu(c),([c,l])=>B(R(`:`,l),([l,u])=>B(V(u),([u,ee])=>B(Uc(ee),([ee,te])=>B(R(`}`,te),([te,ne])=>[[e,t,n,r,i,a,o,s,c,l,u,ee,te],ne]))))))))))))),([e,t])=>[Yo(e),t]),du=e=>B(z(e),([e,t])=>[Xo(e),t]),fu=e=>B(rc(e),([e,t])=>[Zo(e),t]),pu=e=>B(yc(e),([e,t])=>[Qo(e),t]),mu=e=>B(B(R(`true`,e),([e,t])=>[e,t],()=>B(R(`false`,e),([e,t])=>[e,t],()=>[])),([e,t])=>[$o(e),t]),hu=e=>B(kc([`"`,`'`],e),([e,t])=>[es(e),t]),gu=e=>B(R(`null`,e),([e,t])=>[ts(e),t]),_u=e=>B(R(`undefined`,e),([e,t])=>[void 0,t]),vu=e=>B(B(Nl(e),([e,t])=>B(R(`:`,t),([t,n])=>B(Tu(n),([n,r])=>[[e,t,n],r]))),([e,t])=>[ns(e),t]),yu=(e,t=[])=>B(B(vu(e),([e,t])=>B(Ll(t),([t,n])=>[[e,t],n])),([e,n])=>yu(n,[...t,e]),()=>[t,e]),bu=e=>B(B(yu(e),([e,t])=>B(B(B(vu(t),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>B([[],t],([e,t])=>[e,t],()=>[])),([t,n])=>[[e,t],n])),([e,t])=>[rs(e),t]),xu=e=>B(B(R(`{`,e),([e,t])=>B(bu(t),([t,n])=>B(R(`}`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[as(e),t]),Su=(e,t=[])=>B(B(Tu(e),([e,t])=>B(R(`,`,t),([t,n])=>[[e,t],n])),([e,n])=>Su(n,[...t,e]),()=>[t,e]),Cu=e=>B(B(Su(e),([e,t])=>B(B(B(Tu(t),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>B([[],t],([e,t])=>[e,t],()=>[])),([t,n])=>[[e,t],n])),([e,t])=>[os(e),t]),wu=e=>B(B(R(`[`,e),([e,t])=>B(Cu(t),([t,n])=>B(R(`]`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[ss(e),t]),Tu=e=>B(B(fu(e),([e,t])=>[e,t],()=>B(pu(e),([e,t])=>[e,t],()=>B(mu(e),([e,t])=>[e,t],()=>B(hu(e),([e,t])=>[e,t],()=>B(gu(e),([e,t])=>[e,t],()=>B(_u(e),([e,t])=>[e,t],()=>B(xu(e),([e,t])=>[e,t],()=>B(wu(e),([e,t])=>[e,t],()=>[])))))))),([e,t])=>[cs(e),t]),Eu=e=>B(R(`-?(?:0|[1-9][0-9]*)n`,e),([e,t])=>[ls(e),t]),Du=e=>B(R(`.*`,e),([e,t])=>[us(e),t]),Ou=e=>B(R(`-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?`,e),([e,t])=>[ds(e),t]),ku=e=>B(R(`-?(?:0|[1-9][0-9]*)`,e),([e,t])=>[fs(e),t]),Au=e=>B(R(`(?!)`,e),([e,t])=>[ps(e),t]),ju=e=>B(Ac([`-?(?:0|[1-9][0-9]*)n`,`.*`,`-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?`,`-?(?:0|[1-9][0-9]*)`,`(?!)`,`(`,`)`,`$`,`|`],e),([e,t])=>[ms(e),t]),Mu=e=>B(B(Eu(e),([e,t])=>[e,t],()=>B(Du(e),([e,t])=>[e,t],()=>B(Ou(e),([e,t])=>[e,t],()=>B(ku(e),([e,t])=>[e,t],()=>B(Au(e),([e,t])=>[e,t],()=>B(Nu(e),([e,t])=>[e,t],()=>B(ju(e),([e,t])=>[e,t],()=>[]))))))),([e,t])=>[hs(e),t]),Nu=e=>B(B(R(`(`,e),([e,t])=>B(Iu(t),([t,n])=>B(R(`)`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[gs(e),t]),Pu=e=>B(B(B(Fu(e),([e,t])=>B(R(`|`,t),([t,n])=>B(Pu(n),([n,r])=>[[e,t,n],r]))),([e,t])=>[e,t],()=>B(B(Fu(e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>B([[],e],([e,t])=>[e,t],()=>[]))),([e,t])=>[_s(e),t]),Fu=e=>B(B(Mu(e),([e,t])=>B(Iu(t),([t,n])=>[[e,t],n])),([e,t])=>[vs(e),t]),Iu=e=>B(B(Pu(e),([e,t])=>[e,t],()=>B(Fu(e),([e,t])=>[e,t],()=>[])),([e,t])=>[ys(e),t]),Lu=e=>B(B(R(`^`,e),([e,t])=>B(Iu(t),([t,n])=>B(R(`$`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[bs(e),t]),Ru=(e,t=[])=>B(B(V(e),([e,t])=>B(R(`,`,t),([t,n])=>[[e,t],n])),([e,n])=>Ru(n,[...t,e]),()=>[t,e]),zu=e=>B(B(Ru(e),([e,t])=>B(B(B(V(t),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>B([[],t],([e,t])=>[e,t],()=>[])),([t,n])=>[[e,t],n])),([e,t])=>[xs(e),t]),Bu=e=>B(B(B(R(`extends`,e),([e,t])=>B(zu(t),([t,n])=>[[e,t],n])),([e,t])=>[e,t],()=>B([[],e],([e,t])=>[e,t],()=>[])),([e,t])=>[Ss(e),t]),Vu=e=>B(B(R(`interface`,e),([e,t])=>B(z(t),([t,n])=>B(Rc(n),([n,r])=>B(Bu(r),([r,i])=>B(Bl(i),([i,a])=>[[e,t,n,r,i],a]))))),([e,t])=>[Cs(e),t]),Hu=e=>B(B(R(`interface`,e),([e,t])=>B(z(t),([t,n])=>B(Bu(n),([n,r])=>B(Bl(r),([r,i])=>[[e,t,n,r],i])))),([e,t])=>[ws(e),t]),Uu=e=>B(B(R(`type`,e),([e,t])=>B(z(t),([t,n])=>B(Rc(n),([n,r])=>B(R(`=`,r),([r,i])=>B(V(i),([i,a])=>[[e,t,n,r,i],a]))))),([e,t])=>[Ts(e),t]),Wu=e=>B(B(R(`type`,e),([e,t])=>B(z(t),([t,n])=>B(R(`=`,n),([n,r])=>B(V(r),([r,i])=>[[e,t,n,r],i])))),([e,t])=>[Es(e),t]),Gu=e=>B(B(B(R(`export`,e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>B([[],e],([e,t])=>[e,t],()=>[])),([e,t])=>[Ds(e),t]),Ku=e=>B(B(B(R(`;`,e),([e,t])=>B(R(` `,t),([t,n])=>[[e,t],n])),([e,t])=>[e,t],()=>B(B(R(`;`,e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>B(B(R(` -`,e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>[]))),([e,t])=>[Rs(e),t]),rd=(e,t=[])=>B(B(ad(e),([e,t])=>B(nd(t),([t,n])=>[[e,t],n])),([e,n])=>rd(n,[...t,e]),()=>[t,e]),id=e=>B(B(rd(e),([e,t])=>B(B(B(ad(t),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>B([[],t],([e,t])=>[e,t],()=>[])),([t,n])=>[[e,t],n])),([e,t])=>[zs(e),t]),ad=e=>B(B(td(e),([e,t])=>B(B(Zu(t),([e,t])=>[e,t],()=>B(Qu(t),([e,t])=>[e,t],()=>B($u(t),([e,t])=>[e,t],()=>B(ed(t),([e,t])=>[e,t],()=>[])))),([t,n])=>B($c(n),([n,r])=>[[e,t,n],r]))),([e,t])=>[Bs(e),t]),od=e=>B(B(ad(e),([e,t])=>B(id(t),([t,n])=>[[e,t],n])),([e,t])=>[Vs(e),t]),sd=e=>B(B(od(e),([e,t])=>[e,t],()=>B(Ll(e),([e,t])=>[e,t],()=>B(V(e),([e,t])=>[e,t],()=>[]))),([e,t])=>[Hs(e),t]);function cd(e){let t=_l(`\`${e}\``);return v(t.length,2)?t[0]:tn()}function ld(e){return e.join(`|`)}function ud(e){return e.slice(1,e.length-1)}function dd(e,t,n){return Sd(t,`${n}${e}`)}function fd(e,t){return Sd(e,`${t}-?(?:0|[1-9][0-9]*)n`)}function pd(e,t){return Sd(e,`${t}${ar}`)}function md(e,t){return Sd(e,`${t}${br}`)}function hd(e,t){return xd(P([M(`false`),M(`true`)]),e,t)}function gd(e,t){return Sd(e,`${t}.*`)}function _d(e,t,n){return Sd(t,`${n}${ud(e)}`)}function vd(e,t,n){return xd(Td(e,{}),t,n)}function yd(e,t,n){return xd(ji(e),t,n)}function bd(e,t,n,r=[]){return b(e,(e,i)=>bd(i,t,n,[...r,xd(e,[],``)]),()=>Sd(t,`${n}(${ld(r)})`))}function xd(e,t,n){return Qt(e)?yd(e.enum,t,n):sr(e)?pd(t,n):N(e)?dd(e.const,t,n):er(e)?fd(t,n):nr(e)?hd(t,n):Sr(e)?md(t,n):jr(e)?gd(t,n):Md(e)?_d(e.pattern,t,n):Od(e)?vd(e.parameters[0],t,n):F(e)?bd(e.anyOf,t,n):`(?!)`}function Sd(e,t){return b(e,(e,n)=>xd(e,n,t),()=>t)}function Cd(e){return`^${Sd(e,``)}$`}function wd(e){return zr(Cd(e))}function Td(e,t){return q(e)?w(wd(e),{},t):Dd(e,t)}function Ed(e,t,n,r){return Td(gv(e,t,n),r)}function Dd(e,t={}){return E(`TemplateLiteral`,[e],t)}function Od(e){return nt(e)&&x(e,`action`)&&v(e.action,`TemplateLiteral`)}function kd(e){return Td(e,{})}function Ad(e){return kd(cd(e))}function jd(e,t={}){return w(g(e)?Ad(e):kd(e),{},t)}function Md(e){return T(e,`TemplateLiteral`)}var Nd=t({ExtendsFalse:()=>U,ExtendsTrue:()=>H,ExtendsUnion:()=>Pd,IsExtendsFalse:()=>Ld,IsExtendsTrue:()=>Id,IsExtendsTrueLike:()=>Rd,IsExtendsUnion:()=>Fd,Match:()=>W});function Pd(e){return C({"~kind":`ExtendsUnion`},{inferred:e})}function Fd(e){return h(e)&&x(e,`~kind`)&&x(e,`inferred`)&&v(e[`~kind`],`ExtendsUnion`)&&h(e.inferred)}function H(e){return C({"~kind":`ExtendsTrue`},{inferred:e})}function Id(e){return h(e)&&x(e,`~kind`)&&x(e,`inferred`)&&v(e[`~kind`],`ExtendsTrue`)&&h(e.inferred)}function U(){return C({"~kind":`ExtendsFalse`},{})}function Ld(e){return h(e)&&x(e,`~kind`)&&v(e[`~kind`],`ExtendsFalse`)}function Rd(e){return Fd(e)||Id(e)}function W(e,t,n){return Rd(e)?t(e.inferred):n()}function zd(e,t,n,i){return W(K(e,n,i),i=>H(r(r(e,i),{[t]:n})),()=>U())}function Bd(e,t){return H(e)}function Vd(e,t,n,r,i){return W(K(e,t,n),e=>W(K(e,t,r),e=>H(e),()=>U()),()=>W(K(e,t,i),e=>H(e),()=>U()))}function Hd(e,t,n){return K(e,t,ji(n))}function Ud(e,t,n){return b(n,(n,r)=>W(K(e,t,n),e=>Ud(e,t,r),()=>U()),()=>H(e))}function Wd(e,t,n){return K(e,t,Ni(n))}function Gd(e,t,n){return b(n,(n,r)=>W(K(e,t,n),e=>H(e),()=>Gd(e,t,r)),()=>U())}function G(e,t,n){return Ct(n)?Bd(e,t):qt(n)?Vd(e,t,n.if,n.then,n.else):Qt(n)?Hd(e,t,n.enum):Gt(n)?zd(e,n.name,t,n.extends):A(n)?Ud(e,t,n.allOf):Md(n)?Wd(e,t,n.pattern):F(n)?Gd(e,t,n.anyOf):Rt(n)?H(e):U()}function Kd(e,t,n){return Gt(n)?G(e,t,n):Ct(n)||Rt(n)?H(e):Pd(e)}function qd(e,t){let n=Vn(e),r=Vn(t);return n&&r||!n&&r?!0:!(n&&!r)}function Jd(e,t,n,r){return D(r)?qd(t,r)?K(e,n,r.items):U():G(e,t,r)}function Yd(e,t,n){return ut(n)?K(e,t,n.iteratorItems):G(e,lt(t),n)}function Xd(e,t,n){return er(n)?H(e):G(e,t,n)}function Zd(e,t,n){return nr(n)?H(e):G(e,t,n)}function Qd(e,t,n,r,i){let a=Gt(r)?t:r,o=Gt(r)?r:t,s=Mt(t),c=Mt(r);return!s&&c?U():W(K(e,a,o),e=>tf(e,n,i),()=>U())}function $d(e,t,n,r){return b(r,(r,i)=>Qd(e,t,n,r,i),()=>Mt(t)?H(e):U())}function ef(e,t,n){return b(t,(t,r)=>$d(e,t,r,n),()=>H(e))}function tf(e,t,n){return ef(e,t,n)}function nf(e,t,n){return va(n)?H(e):K(e,t,n)}function rf(e,t,n,r){return Ct(r)||Rt(r)?H(e):pt(r)?W(tf(e,t,r.parameters),e=>nf(e,n,r.instanceType),()=>U()):U()}function af(e,t,n,r,i){return W(K(e,t,i),()=>K(e,n,i),()=>K(e,r,i))}function of(e,t,n){return K(e,ji(t),n)}function sf(e,t,n,r){return Ct(r)||Rt(r)?H(e):gt(r)?W(tf(e,t,r.parameters),e=>nf(e,n,r.returnType),()=>U()):U()}function cf(e,t,n){return sr(n)||Sr(n)?H(e):G(e,t,n)}function lf(e,t,n){return K(e,Mi(t),n)}function uf(e,t,n){return lr(n)?K(e,t,n.iteratorItems):G(e,cr(t),n)}function df(e,t,n){return t===n?H(e):U()}function ff(e,t,n){return N(n)?df(e,t,n.const):er(n)?H(e):G(e,M(t),n)}function pf(e,t,n){return N(n)?df(e,t,n.const):nr(n)?H(e):G(e,M(t),n)}function mf(e,t,n){return N(n)?df(e,t,n.const):Sr(n)?H(e):G(e,M(t),n)}function hf(e,t,n){return N(n)?df(e,t,n.const):jr(n)?H(e):G(e,M(t),n)}function gf(e,t,n){return f(t.const)?ff(e,t.const,n):p(t.const)?pf(e,t.const,n):m(t.const)?mf(e,t.const,n):g(t.const)?hf(e,t.const,n):tn()}function _f(e,t,n){return Gt(n)?G(e,t,n):H(e)}function vf(e,t,n){return yr(n)?H(e):G(e,t,n)}function yf(e,t,n){return Sr(n)?H(e):G(e,t,n)}function bf(e,t,n){return Mt(t)?Mt(n)?H(e):U():H(e)}function xf(e,t,n){return Gt(n)&&Tt(n.extends)?U():W(K(e,t,n),e=>bf(e,t,n),()=>U())}function Sf(e,t){return e.reduce((e,n)=>n in t&&Rd(t[n])?{...e,...t[n].inferred}:tn(),{})}function Cf(e,t,n){let i={};for(let a of S(n))i[a]=a in t?xf({},t[a],n[a]):Mt(n[a])?Gt(n[a])?H(r(e,{[n[a].name]:n[a].extends})):H(e):U();let a=Ae(i).every(e=>Rd(e)),o=a?Sf(S(i),i):{};return a?H(o):U()}function wf(e,t,n){let i=Cf(e,t,n);return Rd(i)?H(r(e,i.inferred)):U()}function Tf(e,t,n){return wf(e,t,n)}function Ef(e,t){return S(t).reduce((n,r)=>({...n,[r]:x(e,r)?F(n[r])?P([...n[r].anyOf,t[r]]):P([e[r],t[r]]):t[r]}),e)}function Df(e,t,n,r){return b(t,(t,i)=>W(K({},e[t],n),t=>Df(e,i,n,Ef(r,t)),()=>U()),()=>H(r))}function Of(e,t,n,r){return Df(t,S(t),r,e)}function kf(e,t,n){return ua(n)?Of(e,t,sa(n),la(n)):k(n)?Tf(e,t,n.properties):G(e,O(t),n)}function Af(e,t,n){return Or(n)?K(e,t,n.item):G(e,Dr(t),n)}function jf(e,t){return v(S(t).length,0)?H(e):U()}function Mf(e,t,n,r,i){return K(e,n,i)}function Nf(e,t,n,r){return ua(r)?Mf(e,oa(t),n,oa(sa(r)),la(r)):k(r)?jf(e,r.properties):Ct(r)||Rt(r)?H(e):U()}function Pf(e,t,n){return jr(n)?H(e):G(e,t,n)}function Ff(e,t,n){return wr(n)?H(e):G(e,t,n)}function If(e,t,n){return K(e,Ni(t),n)}function Lf(e,t){return C({"~kind":`Inferrable`},{name:e,type:t},{})}function Rf(e){return h(e)&&x(e,`~kind`)&&x(e,`name`)&&x(e,`type`)&&v(e[`~kind`],`Inferrable`)&&g(e.name)&&h(e.type)}function zf(e){return fa(e)?Gt(e.items)?D(e.items.extends)?Lf(e.items.name,e.items.extends.items):Rt(e.items.extends)?Lf(e.items.name,e.items.extends):void 0:tn():void 0}function Bf(e){return Gt(e)?Lf(e.name,e.extends):void 0}function Vf(e,t,n=[]){return b(e,(e,r)=>W(K({},e,t),()=>Vf(r,t,[...n,e]),()=>void 0),()=>n)}function Hf(e,t,n,i){let a=Vf(n,i);return d(a)?H(r(e,{[t]:$r(a)})):U()}function Uf(e,t,n,i){let a=Vf(n,i);return d(a)?H(r(e,{[t]:P(a)})):U()}function Wf(e){return[...e].reverse()}function Gf(e,t){return t?Wf(e):e}function Kf(e){let t=e.length>0?e[0]:void 0;return nt(nt(t)?zf(t):void 0)}function qf(e,t,n,r,i,a){return W(K(e,n,i),e=>Xf(e,t,r,a),()=>U())}function Jf(e,t,n,r,i){let a=zf(r);return Rf(a)?Hf(e,a.name,Gf(n,t),a.type):b(n,(n,a)=>qf(e,t,n,a,r,i),()=>U())}function Yf(e,t,n,r){return b(r,(r,i)=>Jf(e,t,n,r,i),()=>v(n.length,0)?H(e):U())}function Xf(e,t,n,r){return Yf(e,t,n,r)}function Zf(e,t,n){let r=hv(e,pv([],[]),n),i=Kf(r);return Xf(e,i,Gf(t,i),Gf(r,i))}function Qf(e,t,n){let r=Bf(n);return Rf(r)?Uf(e,r.name,t,r.type):b(t,(t,r)=>W(K(e,t,n),e=>Qf(e,r,n),()=>U()),()=>H(e))}function $f(e,t,n){let r=hv(e,pv([],[]),t);return I(n)?Zf(e,r,n.items):D(n)?Qf(e,r,n.items):G(e,$r(r),n)}function ep(e,t,n){return va(n)||ga(n)?H(e):G(e,t,n)}function tp(e,t,n){return b(n,(n,r)=>W(K(e,t,n),e=>H(e),()=>tp(e,t,r)),()=>U())}function np(e,t,n){return b(t,(t,r)=>W(tp(e,t,n),e=>np(e,r,n),()=>U()),()=>H(e))}function rp(e,t,n){let r=Bf(n);return Rf(r)?Uf(e,r.name,t,r.type):F(n)?np(e,t,n.anyOf):np(e,t,[n])}function ip(e,t,n){return Gt(n)?G(e,t,n):Ct(n)||Rt(n)?H(e):U()}function ap(e,t,n){return va(n)?H(e):G(e,t,n)}function K(e,t,n){return Ct(t)?Kd(e,t,n):D(t)?Jd(e,t,t.items,n):ut(t)?Yd(e,t.iteratorItems,n):er(t)?Xd(e,t,n):nr(t)?Zd(e,t,n):pt(t)?rf(e,t.parameters,t.instanceType,n):qt(t)?af(e,t.if,t.then,t.else,n):Qt(t)?of(e,t.enum,n):gt(t)?sf(e,t.parameters,t.returnType,n):sr(t)?cf(e,t,n):A(t)?lf(e,t.allOf,n):lr(t)?uf(e,t.iteratorItems,n):N(t)?gf(e,t,n):Tt(t)?_f(e,t,n):yr(t)?vf(e,t,n):Sr(t)?yf(e,t,n):k(t)?kf(e,t.properties,n):Or(t)?Af(e,t.item,n):ua(t)?Nf(e,sa(t),la(t),n):jr(t)?Pf(e,t,n):wr(t)?Ff(e,t,n):Md(t)?If(e,t.pattern,n):I(t)?$f(e,t.items,n):ga(t)?ep(e,t,n):F(t)?rp(e,t.anyOf,n):Rt(t)?ip(e,t,n):va(t)?ap(e,t,n):U()}function op(e,t){return Mi([...e,O(t)])}function sp(e,t,n){return q(e)?w(op(e,t),{},n):lp(e,t,n)}function cp(e,t,n,r,i){return sp(gv(e,t,n),mv(e,t,r),i)}function lp(e,t,n={}){return E(`Interface`,[e,t],n)}function up(e){return nt(e)&&x(e,`action`)&&v(e.action,`Interface`)}function dp(e,t,n={}){return sp(e,t,n)}function fp(e,t,n){return e.includes(n)?!0:hp([...e,n],t,t[n])}function pp(e,t,n){return mp(e,t,Ft(n))}function mp(e,t,n){return b(n,(n,r)=>hp(e,t,n)?!0:mp(e,t,r),()=>!1)}function hp(e,t,n){return yt(n)?fp(e,t,n.$ref):D(n)?hp(e,t,n.items):ut(n)?hp(e,t,n.iteratorItems):pt(n)?mp(e,t,[...n.parameters,n.instanceType]):gt(n)?mp(e,t,[...n.parameters,n.returnType]):up(n)?pp(e,t,n.parameters[1]):A(n)?mp(e,t,n.allOf):lr(n)?hp(e,t,n.iteratorItems):k(n)?pp(e,t,n.properties):Or(n)?hp(e,t,n.item):F(n)?mp(e,t,n.anyOf):I(n)?mp(e,t,n.items):ua(n)?hp(e,t,la(n)):!1}function gp(e,t,n){return hp(e,t,n)}function _p(e,t){return t.reduce((t,n)=>gp([n],e,e[n])?[...t,n]:t,[])}function vp(e){return _p(e,Pt(e))}function yp(e,t,n){return n.includes(t)?n:t in e?Sp(e,e[t],[...n,t]):tn()}function bp(e,t,n){return xp(e,Ft(t),n)}function xp(e,t,n){return t.reduce((t,n)=>Sp(e,n,t),n)}function Sp(e,t,n){return yt(t)?yp(e,t.$ref,n):D(t)?Sp(e,t.items,n):ut(t)?Sp(e,t.iteratorItems,n):pt(t)?xp(e,[...t.parameters,t.instanceType],n):gt(t)?xp(e,[...t.parameters,t.returnType],n):up(t)?bp(e,t.parameters[1],n):A(t)?xp(e,t.allOf,n):lr(t)?Sp(e,t.iteratorItems,n):k(t)?bp(e,t.properties,n):Or(t)?Sp(e,t.item,n):F(t)?xp(e,t.anyOf,n):I(t)?xp(e,t.items,n):ua(t)?Sp(e,la(t),n):n}function Cp(e,t,n){return Sp(e,n,[t])}function wp(e){return St()}function Tp(e){return S(e).reduce((t,n)=>({...t,[n]:Dp(e[n])}),{})}function Ep(e){return e.reduce((e,t)=>[...e,Dp(t)],[])}function Dp(e){return yt(e)?wp(e.$ref):D(e)?st(Dp(e.items),ct(e)):ut(e)?lt(Dp(e.iteratorItems)):pt(e)?ft(Ep(e.parameters),Dp(e.instanceType)):gt(e)?ht(Ep(e.parameters),Dp(e.returnType)):A(e)?$t(Ep(e.allOf)):lr(e)?cr(Dp(e.iteratorItems)):k(e)?O(Tp(e.properties)):Or(e)?Dr(Dp(e.item)):ua(e)?ia(ca(e),Dp(la(e))):F(e)?P(Ep(e.anyOf)):I(e)?$r(Ep(e.items)):e}function Op(e,t){return t in e?Dp(e[t]):Lt()}function kp(e){return Op(e.$defs,e.$ref)}function Ap(e,t,n){let r=gv(e,pv([],[]),t),i=mv({},pv([],[]),n);return Mi([...r,O(i)])}function jp(e,t){return S(e).filter(e=>t.includes(e)).reduce((t,n)=>{let r=e[n],i=up(r)?Ap(e,r.parameters[0],r.parameters[1]):r;return{...t,[n]:i}},{})}function Mp(e,t,n){return zt(jp(e,Cp(e,t,n)),t)}function Np(e,t){return t in e?yt(e[t])?Np(e,e[t].$ref):e[t]:wt()}function Pp(e,t){return Np(e,t)}function Fp(e){return Bt(e)?kp(e):Ht(e)?Lt():e}function Ip(e,t,n){return K(e,Fp(t),Fp(n))}function Lp(e,t){let n=[Rt(e)?U():Ip({},e,t),Rt(e)?H({}):Ip({},t,e)];return Rd(n[0])&&Rd(n[1])?`equal`:Rd(n[0])&&Ld(n[1])?`left-inside`:Ld(n[0])&&Rd(n[1])?`right-inside`:`disjoint`}function Rp(e,t){return t.filter(t=>Lp(e,t)!==`right-inside`)}function zp(e,t){return v(t.some(t=>{let n=Lp(e,t);return v(n,`left-inside`)||v(n,`equal`)}),!1)}function Bp(e,t){let n=Fi(e);return Ct(n)?[n]:zp(n,t)?[...Rp(n,t),n]:t}function Vp(e){return e.reduce((e,t)=>k(t)?[...e,t]:Tt(t)?e:Bp(t,e),[])}function Hp(e){return Gi(Vp(e))}function Up(e,t){return w(Fi(e),{},t)}function Wp(e,t,n,r){return Up(J(e,t,n),r)}function Gp(e,t=[]){return rt(e)&&v(e.action,`Conditional`)?yt(e.parameters[0])?Gp(e.parameters[2],Gp(e.parameters[3],[...t,e.parameters[0].$ref])):Gp(e.parameters[2],Gp(e.parameters[3],t)):rt(e)&&v(e.action,`Mapped`)&&rt(e.parameters[1])&&v(e.parameters[1].action,`KeyOf`)&&yt(e.parameters[1].parameters[0])?[...t,e.parameters[1].parameters[0].$ref]:t}function Kp(e,t){return e.reduce((e,n)=>[...e,t.includes(n.name)],[])}function qp(e,t,n=[]){return b(e,(e,r)=>b(t,(t,i)=>qp(r,i,[...n,[t,e]]),()=>n),()=>n)}function Jp(e){return F(e)?[...e.anyOf]:[e]}function Yp(e,t){return e.reduce((e,n)=>[...e,[...n,t]],[])}function Xp(e,t){return t.reduce((t,n)=>[...t,...Yp(e,n)],[])}function Zp(e){return e.reduce((e,t)=>v(t[0],!0)?Xp(e,Jp(t[1])):Xp(e,[t[1]]),[[]])}function Qp(e,t,n){let r=qp(t,Kp(e,Gp(n)));return rt(n)&&v(n.action,`Conditional`)||rt(n)&&v(n.action,`Mapped`)?Zp(r):[t]}function $p(){return[`(not-resolvable)`,wt()]}function em(){return[`(not-generic)`,wt()]}function tm(e,t,n){return[e,bt(t,n)]}function nm(e,t,n){return t in e?rm(e,t,e[t],n):$p()}function rm(e,t,n,r){return xt(n)?tm(t,n.parameters,n.expression):yt(n)?nm(e,n.$ref,r):em()}function im(e,t,n){return rm(e,`(anonymous)`,t,n)}function am(e,t,n){if(Gt(t)||vm(t)||Rd(Ip({},t,n)))return;let r={parameter:e,expect:n,actual:t};throw Error(`Argument for parameter ${e} does not satisfy constraint`,{cause:r})}function om(e,t,n,i,a){let o=J(e,t,a);return am(n,o,i),r(e,{[n]:o})}function sm(e,t,n,r,i){let a=J(e,t,n.extends),o=J(e,t,n.equals);return b(i,(i,o)=>cm(om(e,t,n.name,a,i),t,r,o),()=>cm(om(e,t,n.name,a,o),t,r,[]))}function cm(e,t,n,r){return b(n,(n,i)=>sm(e,t,n,i,r),()=>e)}function lm(e,t,n,r){return cm(e,t,n,r)}function um(e){return he(e.callstack.length,0)?e.callstack[e.callstack.length-1]:``}function dm(e,t){return v(um(e),t)}function fm(e,t,n,r,i,a){let o=lm(e,t,r,a),s=J(o,pv([...t.callstack,n.$ref],t.visited),i);return J(o,pv([],[]),s)}function pm(e,t,n,r,i,a){return a.reduce((a,o)=>[...a,fm(e,t,n,r,i,o)],[])}function mm(e,t,n,r,i,a){let o=pm(e,t,n,r,i,Qp(r,a,i));return v(o.length,1)?o[0]:Pi(o)}function hm(e,t,n,r){let i=gv(e,t,r),a=im(e,n,r),o=a[0],s=a[1];return xt(s)?dm(t,o)?gm(vt(o),i):mm(e,t,vt(o),s.parameters,s.expression,i):gm(n,i)}function gm(e,t){return C({"~kind":`Call`},{type:`call`,target:e,arguments:t},{})}function _m(e,t){return hm({},pv([],[]),e,t)}function vm(e){return T(e,`Call`)}function ym(e){return tt(e,[`~immutable`])}function bm(e,t){return w(ym(e),{},t)}function xm(e,t,n,r){return bm(J(e,t,n),r)}function Sm(e,t={}){return E(`Awaited`,[e],t)}function Cm(e,t={}){return Tm(e,t)}function wm(e){return Or(e)?wm(e.item):e}function Tm(e,t){return q([e])?w(wm(e),{},t):Sm(e,t)}function Em(e,t,n,r){return Tm(J(e,t,n),r)}function Dm(e,t){return e(t)}function Om(e,t){return g(t)?M(Dm(e,t)):M(t)}function km(e,t){return jm(e,Ni(t))}function Am(e,t){return P(t.map(t=>jm(e,t)))}function jm(e,t){return N(t)?Om(e,t.const):Md(t)?km(e,t.pattern):F(t)?Am(e,t.anyOf):t}function Mm(e,t={}){return E(`Capitalize`,[e],t)}function Nm(e,t={}){return Wm(e,t)}function Pm(e,t={}){return E(`Lowercase`,[e],t)}function Fm(e,t={}){return Gm(e,t)}function Im(e,t={}){return E(`Uncapitalize`,[e],t)}function Lm(e,t={}){return Km(e,t)}function Rm(e,t={}){return E(`Uppercase`,[e],t)}function zm(e,t={}){return qm(e,t)}const Bm=e=>e[0].toUpperCase()+e.slice(1),Vm=e=>e.toLowerCase(),Hm=e=>e[0].toLowerCase()+e.slice(1),Um=e=>e.toUpperCase();function Wm(e,t){return q([e])?w(jm(Bm,e),{},t):Mm(e,t)}function Gm(e,t){return q([e])?w(jm(Vm,e),{},t):Pm(e,t)}function Km(e,t){return q([e])?w(jm(Hm,e),{},t):Im(e,t)}function qm(e,t){return q([e])?w(jm(Um,e),{},t):Rm(e,t)}function Jm(e,t,n,r){return Wm(J(e,t,n),r)}function Ym(e,t,n,r){return Gm(J(e,t,n),r)}function Xm(e,t,n,r){return Km(J(e,t,n),r)}function Zm(e,t,n,r){return qm(J(e,t,n),r)}function Qm(e,t,n,r,i={}){return E(`Conditional`,[e,t,n,r],i)}function $m(e,t,n,r,i={}){return th({},pv([],[]),e,t,n,r,i)}function eh(e,t,n,r,i,a){let o=Ip(e,n,r);return Fd(o)?P([J(o.inferred,t,i),J(e,t,a)]):Id(o)?J(o.inferred,t,i):J(e,t,a)}function th(e,t,n,r,i,a,o){return q([n,r])?w(eh(e,t,n,r,i,a),{},o):Qm(n,r,i,a,o)}function nh(e,t,n,r,i,a,o){return th(e,t,J(e,t,n),J(e,t,r),i,a,o)}function rh(e,t={}){return E(`ConstructorParameters`,[e],t)}function ih(e,t={}){return oh(e,t)}function ah(e){let t=pt(e)?e.parameters:[];return $r(hv({},pv([],[]),t))}function oh(e,t){return q([e])?w(ah(e),{},t):rh(e,t)}function sh(e,t,n,r){return oh(J(e,t,n),r)}function ch(e,t,n={}){return E(`Exclude`,[e,t],n)}function lh(e,t,n={}){return uh(e,t,n)}function uh(e,t,n){return q([e,t])?w(ki(e,t),{},n):ch(e,t,n)}function dh(e,t,n,r,i){return uh(J(e,t,n),J(e,t,r),i)}function fh(e,t,n={}){return E(`Extract`,[e,t],n)}function ph(e,t,n={}){return _h(e,t,n)}function mh(e,t){return Rd(Ip({},e,t))?[e]:[]}function hh(e,t){return e.reduce((e,n)=>[...e,...mh(n,t)],[])}function gh(e,t){let n=Fi(e);return Pi(hh(F(n)?n.anyOf:[n],t))}function _h(e,t,n){return q([e,t])?w(gh(e,t),{},n):fh(e,t,n)}function vh(e,t,n,r,i){return _h(J(e,t,n),J(e,t,r),i)}function yh(e){return e.reduce((e,t)=>pr(t)?[...e,M(t)]:e,[])}function bh(e){return P(yh(e))}function xh(e,t,n={}){return E(`Index`,[e,t],n)}function Sh(e,t,n={}){return mg(e,d(t)?bh(t):t,n)}function Ch(e,t){return Mh(Pp(e,t))}function wh(e,t,n){return Mh(Ai(e,t,n))}function Th(e,t){let n=S(e).filter(e=>!x(t,e)),i=S(t).filter(t=>!x(e,t)),a=S(e).filter(e=>x(t,e)),o=n.reduce((t,n)=>({...t,[n]:e[n]}),{}),s=i.reduce((e,n)=>({...e,[n]:t[n]}),{}),c=a.reduce((n,r)=>({...n,[r]:Mi([e[r],t[r]])}),{});return r(r(o,s),c)}function Eh(e){return e.reduce((e,t)=>Th(e,Mh(t)),{})}function Dh(e){return e}function Oh(e){return Mh(fi($r(e)))}function kh(e,t){return S(e).filter(e=>e in t).reduce((n,r)=>({...n,[r]:Pi([e[r],t[r]])}),{})}function Ah(e,t){return b(e,(e,n)=>Ah(n,kh(t,Mh(e))),()=>t)}function jh(e){return b(e,(e,t)=>Ah(t,Mh(e)),()=>tn())}function Mh(e){return Bt(e)?Ch(e.$defs,e.$ref):qt(e)?wh(e.if,e.then,e.else):A(e)?Eh(e.allOf):F(e)?jh(e.anyOf):I(e)?Oh(e.items):k(e)?Dh(e.properties):{}}function Nh(e){return O(Mh(e))}const Ph=RegExp(`^(?:0|[1-9][0-9]*)$`);function Fh(e){let t=`${e}`;return Ph.test(t)?parseInt(t):e}function Ih(e){return M(Fh(e))}function Lh(e){return e.map(e=>Rh(e))}function Rh(e){return A(e)?$t(Lh(e.allOf)):F(e)?P(Lh(e.anyOf)):N(e)?Ih(e.const):e}function zh(e,t){return Rd(Ip({},Rh(t),xr()))?e:N(t)&&v(t.const,`length`)?xr():wt()}function Bh(e,t){return qh(Pp(e,t))}function Vh(e,t,n){return qh(Ai(e,t,n))}function Hh(e){return qh(ji(e))}function Uh(e){return qh(Mi(e))}function Wh(e){return[`${e}`]}function Gh(e){return qh(Ni(e))}function Kh(e){return e.reduce((e,t)=>[...e,...qh(t)],[])}function qh(e){return Bt(e)?Bh(e.$defs,e.$ref):qt(e)?Vh(e.if,e.then,e.else):Qt(e)?Hh(e.enum):A(e)?Uh(e.allOf):N(e)?Wh(e.const):Md(e)?Gh(e.pattern):F(e)?Kh(e.anyOf):[]}function Jh(e){return qh(e)}function Yh(e,t){return t.map(t=>Xh(e,t))}function Xh(e,t){return D(t)?st(Xh(e,t.items)):ut(t)?lt(Xh(e,t.iteratorItems)):pt(t)?ft(Yh(e,t.parameters),Xh(e,t.instanceType)):gt(t)?ht(Yh(e,t.parameters),Xh(e,t.returnType)):lr(t)?cr(Xh(e,t.iteratorItems)):Or(t)?Dr(Xh(e,t.item)):I(t)?$r(Yh(e,t.items)):F(t)?P(Yh(e,t.anyOf)):A(t)?$t(Yh(e,t.allOf)):ma(t)?O(e):t}function Zh(e,t){return Xh(e,t)}function Qh(e,t){return Zh(e,t in e?e[t]:wt())}function $h(e,t){return t.reduce((t,n)=>[...t,Qh(e,n)],[])}function eg(e,t){return Pi($h(e,Jh(t)))}const tg=new RegExp(ea);function ng(e){return e.filter(e=>tg.test(e))}function rg(e){return Pi($h(e,ng(Pt(e))))}function ig(e,t){return Sr(t)?rg(e):eg(e,t)}function ag(e){return M(Fh(e))}function og(e){return e.map(e=>sg(e))}function sg(e){return A(e)?$t(og(e.allOf)):F(e)?P(og(e.anyOf)):N(e)?ag(e.const):e}function cg(e,t){return e.reduceRight((e,n,r)=>Rd(Ip({},M(r),t))?[n,...e]:e,[])}function lg(e,t){return Ii(cg(e,sg(t)))}function ug(e){return Ii(e)}function dg(e,t){return N(t)&&v(t.const,`length`)?M(e.length):Sr(t)||sr(t)?ug(e):lg(e,t)}function fg(e,t){return D(e)?zh(e.items,t):k(e)?ig(e.properties,t):I(e)?dg(e.items,t):wt()}function pg(e){return Bt(e)||qt(e)||A(e)||F(e)?Nh(e):e}function mg(e,t,n){return q([e,t])?w(fg(pg(e),t),{},n):xh(e,t,n)}function hg(e,t,n,r,i){return mg(J(e,t,n),J(e,t,r),i)}function gg(e,t={}){return E(`InstanceType`,[e],t)}function _g(e,t={}){return yg(e,t)}function vg(e){return pt(e)?e.instanceType:wt()}function yg(e,t){return q([e])?w(vg(e),{},t):gg(e,t)}function bg(e,t,n,r={}){return yg(J(e,t,n),r)}function xg(e,t={}){return E(`KeyOf`,[e],t)}function Sg(e,t={}){return jg(e,t)}function Cg(){return P([xr(),Ar(),Cr()])}function wg(e){return xr()}function Tg(e){return e.reduce((e,t)=>pr(t)?[...e,M(Fh(t))]:tn(),[])}function Eg(e){return Ii(Tg(S(e)))}function Dg(e){return ca(e)}function Og(e){return Ii(e.map((e,t)=>M(t)))}function kg(e){return Ct(e)?Cg():D(e)?wg(e.items):k(e)?Eg(e.properties):ua(e)?Dg(e):I(e)?Og(e.items):wt()}function Ag(e){return Bt(e)||qt(e)||A(e)||F(e)?Nh(e):e}function jg(e,t){return q([e])?w(kg(Ag(e)),{},t):xg(e,t)}function Mg(e,t,n,r){return jg(J(e,t,n),r)}function Ng(e,t,n,r,i={}){return E(`Mapped`,[e,t,n,r],i)}function Pg(e,t,n,r,i={}){return Kg({},pv([],[]),e,t,n,r,i)}function Fg(e){return zg(Ni(e))}function Ig(e){return e.reduce((e,t)=>[...e,...zg(t)],[])}function Lg(e){return zg(ji(e))}function Rg(e){return m(e)?[M(`${e}`)]:[M(e)]}function zg(e){return Qt(e)?Lg(e.enum):N(e)?Rg(e.const):Md(e)?Fg(e.pattern):F(e)?Ig(e.anyOf):[e]}function Bg(e){return zg(e)}function Vg(e){return Md(e)?Ni(e.pattern):e}function Hg(e,t,n,i,a,o){let s=r(e,{[n.name]:i}),c=Vg(J(s,t,a)),l=J(s,t,o);return gr(c)||_r(c)?{[c.const]:l}:{}}function Ug(e,t,n,r,i,a){return r.reduce((r,o)=>[...r,Hg(e,t,n,o,i,a)],[])}function Wg(e){return e.reduce((e,t)=>[...e,O(t)],[])}function Gg(e,t,n,r,i,a){return Mi(Wg(Ug(e,t,n,Bg(r),i,a)))}function Kg(e,t,n,r,i,a,o){return q([r])?w(Gg(e,t,n,r,i,a),{},o):Ng(n,r,i,a,o)}function qg(e,t,n,r,i,a,o){return Kg(e,t,n,J(e,t,r),i,a,o)}function Jg(e,t,n){let i=r(e,t);return S(t).filter(e=>n.includes(e)).reduce((e,n)=>({...e,[n]:Mp(i,n,t[n])}),{})}function Yg(e,t,n){let i=r(e,t);return S(t).filter(e=>!n.includes(e)).reduce((e,n)=>({...e,[n]:J(i,pv([],[]),t[n])}),{})}function Xg(e,t,n){let r=vp(t),i=Jg(e,t,r),a=Yg(e,t,r);return w({...i,...a},{},n)}function Zg(e,t,n,r){return Xg(e,n,r)}function Qg(e,t={}){return E(`NonNullable`,[e],t)}function $g(e,t={}){return t_(e,t)}function e_(e){return uh(e,P([vr(),ha()]),{})}function t_(e,t){return q([e])?w(e_(e),{},t):Qg(e,t)}function n_(e,t,n,r){return t_(J(e,t,n),r)}function r_(e,t,n={}){return E(`Omit`,[e,t],n)}function i_(e,t,n={}){return c_(e,d(t)?bh(t):t,n)}function a_(e){let t=Nh(e);return k(t)?t.properties:tn()}function o_(e,t){return S(e).reduce((n,r)=>t.includes(r)?n:{...n,[r]:e[r]},{})}function s_(e,t){return O(o_(a_(e),Jh(t)))}function c_(e,t,n){return q([e,t])?w(s_(e,t),{},n):r_(e,t,n)}function l_(e,t,n,r,i){return c_(J(e,t,n),J(e,t,r),i)}function u_(e,t={}){return E(`Parameters`,[e],t)}function d_(e,t={}){return p_(e,t)}function f_(e){let t=gt(e)?e.parameters:[];return $r(hv({},pv([],[]),t))}function p_(e,t){return q([e])?w(f_(e),{},t):u_(e,t)}function m_(e,t,n,r){return p_(J(e,t,n),r)}function h_(e,t={}){return E(`Partial`,[e],t)}function g_(e,t={}){return C_(e,t)}function __(e,t){let n=S_(Pp(e,t));return zt(r(e,{[t]:n}),t)}function v_(e,t,n){return S_(Ai(e,t,n))}function y_(e){return S_(Mi(e))}function b_(e){return P(e.map(e=>S_(e)))}function x_(e){return O(S(e).reduce((t,n)=>({...t,[n]:At(e[n])}),{}))}function S_(e){return Bt(e)?__(e.$defs,e.$ref):qt(e)?v_(e.if,e.then,e.else):A(e)?y_(e.allOf):F(e)?b_(e.anyOf):k(e)?x_(e.properties):O({})}function C_(e,t){return q([e])?w(S_(e),{},t):h_(e,t)}function w_(e,t,n,r){return C_(J(e,t,n),r)}function T_(e,t,n={}){return E(`Pick`,[e,t],n)}function E_(e,t,n={}){return k_(e,d(t)?bh(t):t,n)}function D_(e,t){return S(e).reduce((n,i)=>t.includes(i)?r(n,{[i]:e[i]}):n,{})}function O_(e,t){return O(D_(a_(e),Jh(t)))}function k_(e,t,n){return q([e,t])?w(O_(e,t),{},n):T_(e,t,n)}function A_(e,t,n,r,i){return k_(J(e,t,n),J(e,t,r),i)}function j_(e,t={}){return E(`ReadonlyObject`,[e],t)}function M_(e,t={}){return H_(e,t)}const N_=M_;function P_(e){return Tv(st(e))}function F_(e,t){let n=V_(Pp(e,t));return zt(r(e,{[t]:n}),t)}function I_(e,t,n){return V_(Ai(e,t,n))}function L_(e){return V_(Mi(e))}function R_(e){return O(S(e).reduce((t,n)=>({...t,[n]:Kn(e[n])}),{}))}function z_(e){return Tv($r(e))}function B_(e){return P(e.map(e=>V_(e)))}function V_(e){return D(e)?P_(e.items):Bt(e)?F_(e.$defs,e.$ref):qt(e)?I_(e.if,e.then,e.else):A(e)?L_(e.allOf):k(e)?R_(e.properties):I(e)?z_(e.items):F(e)?B_(e.anyOf):e}function H_(e,t){return q([e])?w(V_(e),{},t):j_(e)}function U_(e,t,n,r){return H_(J(e,t,n),r)}function W_(e,t,n,r){return t.visited.includes(r)?n:r in e?J(e,pv(t.callstack,[...t.visited,r]),e[r]):n}function G_(e,t){let n=X_(Pp(e,t));return zt(r(e,{[t]:n}),t)}function K_(e,t,n){return X_(Ai(e,t,n))}function q_(e){return X_(Mi(e))}function J_(e){return P(e.map(e=>X_(e)))}function Y_(e){return O(S(e).reduce((t,n)=>({...t,[n]:ui(e[n])}),{}))}function X_(e){return Bt(e)?G_(e.$defs,e.$ref):qt(e)?K_(e.if,e.then,e.else):A(e)?q_(e.allOf):F(e)?J_(e.anyOf):k(e)?Y_(e.properties):O({})}function Z_(e,t={}){return E(`Required`,[e],t)}function Q_(e,t={}){return $_(e,t)}function $_(e,t){return q([e])?w(X_(e),{},t):Z_(e,t)}function ev(e,t,n,r){return $_(J(e,t,n),r)}function tv(e,t={}){return E(`ReturnType`,[e],t)}function nv(e,t={}){return iv(e,t)}function rv(e){return gt(e)?e.returnType:wt()}function iv(e,t){return q([e])?w(rv(e),{},t):tv(e,t)}function av(e,t,n,r={}){return iv(J(e,t,n),r)}function ov(e,t){return E(`With`,[e,t],{})}function sv(e,t){return lv(e,t)}function cv(e,t){return sv(e,t)}function lv(e,t){return q([e])?w(e,{},t):ov(e,t)}function uv(e,t,n,r){return lv(J(e,t,n),r)}function dv(e){return fa(e)?I(e.items)?fv(e.items.items):Gt(e.items)||yt(e.items)?[e]:[wt()]:[e]}function fv(e){return e.reduce((e,t)=>[...e,...dv(t)],[])}function pv(e,t){return{callstack:e,visited:t}}function q(e){return b(e,(e,t)=>yt(e)?!1:q(t),()=>!0)}function mv(e,t,n){return S(n).reduce((r,i)=>({...r,[i]:J(e,t,n[i])}),{})}function hv(e,t,n){return fv(gv(e,t,n))}function gv(e,t,n){return n.map(n=>J(e,t,n))}function _v(e,t,n,r,i){return v(n,`AddImmutable`)?Cv(e,t,r[0],i):v(n,`RemoveImmutable`)?xm(e,t,r[0],i):v(n,`AddReadonly`)?Wn(e,t,r[0],i):v(n,`RemoveReadonly`)?ri(e,t,r[0],i):v(n,`AddOptional`)?Ot(e,t,r[0],i):v(n,`RemoveOptional`)?ci(e,t,r[0],i):v(n,`Awaited`)?Em(e,t,r[0],i):v(n,`Capitalize`)?Jm(e,t,r[0],i):v(n,`Conditional`)?nh(e,t,r[0],r[1],r[2],r[3],i):v(n,`ConstructorParameters`)?sh(e,t,r[0],i):v(n,`Evaluate`)?Wp(e,t,r[0],i):v(n,`Exclude`)?dh(e,t,r[0],r[1],i):v(n,`Extract`)?vh(e,t,r[0],r[1],i):v(n,`Index`)?hg(e,t,r[0],r[1],i):v(n,`InstanceType`)?bg(e,t,r[0],i):v(n,`Interface`)?cp(e,t,r[0],r[1],i):v(n,`KeyOf`)?Mg(e,t,r[0],i):v(n,`Lowercase`)?Ym(e,t,r[0],i):v(n,`Mapped`)?qg(e,t,r[0],r[1],r[2],r[3],i):v(n,`Module`)?Zg(e,t,r[0],i):v(n,`NonNullable`)?n_(e,t,r[0],i):v(n,`Pick`)?A_(e,t,r[0],r[1],i):v(n,`Parameters`)?m_(e,t,r[0],i):v(n,`Partial`)?w_(e,t,r[0],i):v(n,`Omit`)?l_(e,t,r[0],r[1],i):v(n,`ReadonlyObject`)?U_(e,t,r[0],i):v(n,`Record`)?$i(e,t,r[0],r[1],i):v(n,`Required`)?ev(e,t,r[0],i):v(n,`ReturnType`)?av(e,t,r[0],i):v(n,`TemplateLiteral`)?Ed(e,t,r[0],i):v(n,`Uncapitalize`)?Xm(e,t,r[0],i):v(n,`Uppercase`)?Zm(e,t,r[0],i):v(n,`With`)?uv(e,t,r[0],r[1]):E(n,r,i)}function vv(e,t,n){return n=ot(n)?n.Clone():n,yt(n)?W_(e,t,n,n.$ref):D(n)?st(J(e,t,n.items),ct(n)):ut(n)?lt(J(e,t,n.iteratorItems),dt(n)):vm(n)?hm(e,t,n.target,n.arguments):pt(n)?ft(gv(e,t,n.parameters),J(e,t,n.instanceType),mt(n)):rt(n)?_v(e,t,n.action,n.parameters,n.options):gt(n)?ht(gv(e,t,n.parameters),J(e,t,n.returnType),_t(n)):qt(n)?Kt(J(e,t,n.if),J(e,t,n.then),J(e,t,n.else),Jt(n)):A(n)?$t(gv(e,t,n.allOf),en(n)):lr(n)?cr(J(e,t,n.iteratorItems),ur(n)):k(n)?O(mv(e,t,n.properties),It(n)):Or(n)?Dr(J(e,t,n.item),kr(n)):ua(n)?aa(sa(n),J(e,t,la(n))):fa(n)?da(J(e,t,n.items)):I(n)?$r(hv(e,t,n.items),ei(n)):F(n)?P(gv(e,t,n.anyOf),Mr(n)):n}function yv(e,t){let n=Vn(e)?Bn(t):t,r=Jn(e)?qn(n):n;return Mt(e)?jt(r):r}function J(e,t,n){let r=vv(e,t,n);return rt(n)?r:yv(n,r)}function bv(e,t){return J(e,pv([],[]),t)}function xv(e){return w(e,{"~immutable":!0},{})}function Sv(e,t){return w(xv(e),{},t)}function Cv(e,t,n,r){return Sv(J(e,t,n),r)}function wv(e,t={}){return E(`AddImmutable`,[e],t)}function Tv(e,t={}){return Sv(e,t)}function Ev(e,t={}){return E(`Evaluate`,[e],t)}function Dv(e,t={}){return Up(e,t)}function Ov(e,t={}){return E(`Module`,[e],t)}function kv(e,t={}){return Zg({},pv([],[]),e,t)}function Av(e,t){let n=Lp(e,t);return v(n,`right-inside`)?1:+!!v(n,`disjoint`)}function jv(e,t,n=[]){return b(t,(r,i)=>v(Av(e,r),1)?jv(e,i,[...n,r]):[...n,e,...t],()=>[...n,e])}function Mv(e,t=[]){return b(e,(e,n)=>Mv(n,jv(e,t)),()=>t)}function Nv(e){return Mv(e)}function Pv(...e){let[t,n,r]=Ut(e,{2:(e,t)=>g(e)?[{},e,t]:[e,t,{}],3:(e,t,n)=>[e,t,n],1:e=>[{},e,{}]}),i=sd(n);return w(d(i)&&v(i.length,2)?J(t,pv([],[]),i[0]):wt(),{},r)}var Y=t({Any:()=>St,Array:()=>st,AsyncIterator:()=>lt,Awaited:()=>Cm,Base:()=>at,BigInt:()=>$n,Boolean:()=>tr,Call:()=>_m,Capitalize:()=>Nm,Codec:()=>In,Conditional:()=>$m,Constructor:()=>ft,ConstructorParameters:()=>ih,Cyclic:()=>zt,Decode:()=>Ln,DecodeBuilder:()=>Fn,Dependent:()=>Kt,Encode:()=>Rn,EncodeBuilder:()=>Pn,Enum:()=>Zt,Evaluate:()=>Dv,Exclude:()=>lh,Extends:()=>Ip,ExtendsResult:()=>Nd,Extract:()=>ph,Function:()=>ht,Generic:()=>bt,Identifier:()=>rr,Immutable:()=>Bn,Index:()=>Sh,Infer:()=>Wt,InstanceType:()=>_g,Instantiate:()=>bv,Integer:()=>or,Interface:()=>dp,Intersect:()=>$t,IsAny:()=>Ct,IsArray:()=>D,IsAsyncIterator:()=>ut,IsBase:()=>ot,IsBigInt:()=>er,IsBoolean:()=>nr,IsCall:()=>vm,IsCodec:()=>zn,IsConstructor:()=>pt,IsCyclic:()=>Bt,IsDependent:()=>qt,IsEnum:()=>Qt,IsFunction:()=>gt,IsGeneric:()=>xt,IsIdentifier:()=>ir,IsImmutable:()=>Vn,IsInfer:()=>Gt,IsInteger:()=>sr,IsIntersect:()=>A,IsIterator:()=>lr,IsKind:()=>T,IsLiteral:()=>N,IsNever:()=>Tt,IsNull:()=>yr,IsNumber:()=>Sr,IsObject:()=>k,IsOptional:()=>Mt,IsParameter:()=>Er,IsPromise:()=>Or,IsReadonly:()=>Jn,IsRecord:()=>ua,IsRef:()=>yt,IsRefine:()=>Qn,IsRest:()=>fa,IsSchema:()=>nt,IsString:()=>jr,IsSymbol:()=>wr,IsTemplateLiteral:()=>Md,IsThis:()=>ma,IsTuple:()=>I,IsUndefined:()=>ga,IsUnion:()=>F,IsUnknown:()=>Rt,IsUnsafe:()=>Ht,IsVoid:()=>va,Iterator:()=>cr,KeyOf:()=>Sg,Literal:()=>M,Lowercase:()=>Fm,Mapped:()=>Pg,Module:()=>kv,Never:()=>wt,NonNullable:()=>$g,Null:()=>vr,Number:()=>xr,Object:()=>O,Omit:()=>i_,Optional:()=>jt,Options:()=>cv,Parameter:()=>Tr,Parameters:()=>d_,Partial:()=>g_,Pick:()=>E_,Promise:()=>Dr,Readonly:()=>qn,ReadonlyObject:()=>M_,ReadonlyType:()=>N_,Record:()=>ia,RecordKey:()=>ca,RecordPattern:()=>sa,RecordValue:()=>la,Ref:()=>vt,Refine:()=>Xn,Required:()=>Q_,Rest:()=>da,ReturnType:()=>nv,Script:()=>Pv,String:()=>Ar,Symbol:()=>Cr,TemplateLiteral:()=>jd,This:()=>pa,Tuple:()=>$r,Uncapitalize:()=>Lm,Undefined:()=>ha,Union:()=>P,Unknown:()=>Lt,Unsafe:()=>Vt,Uppercase:()=>zm,Void:()=>_a,With:()=>sv});function Fv(e){return h(e)&&x(e,`check`)&&x(e,`errors`)&&le(e.check)&&le(e.errors)}function Iv(e){return x(e,`~guard`)&&Fv(e[`~guard`])}function Lv(e){return x(e,`~refine`)&&d(e[`~refine`])&&y(e[`~refine`],0,e=>h(e)&&x(e,`check`)&&x(e,`error`)&&le(e.check)&&le(e.error))}function Rv(e){return h(e)&&!d(e)}function zv(e){return p(e)}function X(e){return Rv(e)||zv(e)}function Bv(e){return x(e,`additionalItems`)&&X(e.additionalItems)}function Vv(e){return x(e,`additionalProperties`)&&X(e.additionalProperties)}function Hv(e){return x(e,`allOf`)&&d(e.allOf)&&e.allOf.every(e=>X(e))}function Uv(e){return x(e,`$anchor`)&&g(e.$anchor)}function Wv(e){return x(e,`anyOf`)&&d(e.anyOf)&&e.anyOf.every(e=>X(e))}function Gv(e){return x(e,`const`)}function Kv(e){return x(e,`contains`)&&X(e.contains)}function qv(e){return x(e,`default`)}function Jv(e){return x(e,`dependencies`)&&h(e.dependencies)&&Object.values(e.dependencies).every(e=>X(e)||d(e)&&e.every(e=>g(e)))}function Yv(e){return x(e,`dependentRequired`)&&h(e.dependentRequired)&&Object.values(e.dependentRequired).every(e=>d(e)&&e.every(e=>g(e)))}function Xv(e){return x(e,`dependentSchemas`)&&h(e.dependentSchemas)&&Object.values(e.dependentSchemas).every(e=>X(e))}function Zv(e){return x(e,`$dynamicAnchor`)&&g(e.$dynamicAnchor)}function Qv(e){return x(e,`$dynamicRef`)&&g(e.$dynamicRef)}function $v(e){return x(e,`else`)&&X(e.else)}function ey(e){return x(e,`enum`)&&d(e.enum)}function ty(e){return x(e,`exclusiveMaximum`)&&(m(e.exclusiveMaximum)||f(e.exclusiveMaximum))}function ny(e){return x(e,`exclusiveMinimum`)&&(m(e.exclusiveMinimum)||f(e.exclusiveMinimum))}function ry(e){return x(e,`format`)&&g(e.format)}function iy(e){return x(e,`$id`)&&g(e.$id)}function ay(e){return x(e,`if`)&&X(e.if)}function oy(e){return x(e,`items`)&&(X(e.items)||d(e.items)&&e.items.every(e=>X(e)))}function sy(e){return oy(e)&&d(e.items)}function cy(e){return x(e,`maximum`)&&(m(e.maximum)||f(e.maximum))}function ly(e){return x(e,`maxContains`)&&m(e.maxContains)}function uy(e){return x(e,`maxItems`)&&m(e.maxItems)}function dy(e){return x(e,`maxLength`)&&m(e.maxLength)}function fy(e){return x(e,`maxProperties`)&&m(e.maxProperties)}function py(e){return x(e,`minimum`)&&(m(e.minimum)||f(e.minimum))}function my(e){return x(e,`minContains`)&&m(e.minContains)}function hy(e){return x(e,`minItems`)&&m(e.minItems)}function gy(e){return x(e,`minLength`)&&m(e.minLength)}function _y(e){return x(e,`minProperties`)&&m(e.minProperties)}function vy(e){return x(e,`multipleOf`)&&(m(e.multipleOf)||f(e.multipleOf))}function yy(e){return x(e,`not`)&&X(e.not)}function by(e){return x(e,`oneOf`)&&d(e.oneOf)&&e.oneOf.every(e=>X(e))}function xy(e){return x(e,`pattern`)&&(g(e.pattern)||e.pattern instanceof RegExp)}function Sy(e){return x(e,`patternProperties`)&&h(e.patternProperties)&&Object.values(e.patternProperties).every(e=>X(e))}function Cy(e){return x(e,`prefixItems`)&&d(e.prefixItems)&&e.prefixItems.every(e=>X(e))}function wy(e){return x(e,`properties`)&&h(e.properties)&&Object.values(e.properties).every(e=>X(e))}function Ty(e){return x(e,`propertyNames`)&&(h(e.propertyNames)||X(e.propertyNames))}function Ey(e){return x(e,`$recursiveAnchor`)&&p(e.$recursiveAnchor)}function Dy(e){return Ey(e)&&v(e.$recursiveAnchor,!0)}function Oy(e){return x(e,`$recursiveRef`)&&g(e.$recursiveRef)}function ky(e){return x(e,`$ref`)&&g(e.$ref)}function Ay(e){return x(e,`required`)&&d(e.required)&&e.required.every(e=>g(e))}function jy(e){return x(e,`then`)&&X(e.then)}function My(e){return x(e,`type`)&&(g(e.type)||d(e.type)&&e.type.every(e=>g(e)))}function Ny(e){return x(e,`uniqueItems`)&&p(e.uniqueItems)}function Py(e){return x(e,`unevaluatedItems`)&&X(e.unevaluatedItems)}function Fy(e){return x(e,`unevaluatedProperties`)&&X(e.unevaluatedProperties)}var Iy=class{constructor(){let e=new Set,t=new Set;this.stack=[{indices:e,keys:t}]}Push(){let e=new Set,t=new Set;return this.stack.push({indices:e,keys:t}),!0}Pop(){return this.stack.pop(),!0}AddIndex(e){return this.GetIndices().add(e),!0}AddKey(e){return this.GetKeys().add(e),!0}GetIndices(){return this.stack[this.stack.length-1].indices}GetKeys(){return this.stack[this.stack.length-1].keys}Merge(e){for(let t of e)t.GetIndices().forEach(e=>this.GetIndices().add(e)),t.GetKeys().forEach(e=>this.GetKeys().add(e));return!0}},Ly=class extends Iy{constructor(e){super(),this.callback=e}AddError(e){return this.callback(e),!1}},Ry=class extends Ly{constructor(){super(e=>this.errors.push(e)),this.errors=[]}AddError(e){return this.errors.push(e),!1}GetErrors(){return this.errors}};function zy(e,t,n,r){return n[`~guard`].check(r)}function By(e,t,n,r,i,a){return i[`~guard`].check(a)||t.AddError({keyword:`~guard`,schemaPath:n,instancePath:r,params:{errors:i[`~guard`].errors(a)}})}function Vy(e,t,n,r){return y(n[`~refine`],0,(e,t)=>e.check(r))}function Hy(e,t,n,r,i,a){return Te(i[`~refine`],0,(e,i)=>e.check(a)||t.AddError({keyword:`~refine`,schemaPath:n,instancePath:r,params:{index:i,message:e.error(a)}}))}function Uy(e){return oy(e)&&d(e.items)}function Wy(e,t,n,r){return Uy(n)?r.every((r,i)=>ge(i,n.items.length)||XS(e,t,n.additionalItems,r)&&t.AddIndex(i)):!0}function Gy(e,t,n,r,i,a){return Uy(i)?a.every((a,o)=>{let s=`${n}/additionalItems`,c=`${r}/${o}`;return ge(o,i.items.length)||ZS(e,t,s,c,i.additionalItems,a)&&t.AddIndex(o)}):!0}function Ky(e){return`^${e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}$`}function qy(e){let t=[];return Sy(e)&&t.push(...S(e.patternProperties)),wy(e)&&t.push(...S(e.properties).map(Ky)),v(t.length,0)?`(?!)`:`(${t.join(`|`)})`}function Jy(e,t,n,r){let i=new RegExp(qy(n));return y(S(r),0,(a,o)=>i.test(a)||XS(e,t,n.additionalProperties,r[a])&&t.AddKey(a))}function Yy(e,t,n,r,i,a){let o=new RegExp(qy(i)),s=[];return Te(S(a),0,(c,l)=>{let u=`${n}/additionalProperties`,ee=`${r}/${c}`,te=new Ry,ne=o.test(c)||ZS(e,te,u,ee,i.additionalProperties,a[c])&&t.AddKey(c);return ne||s.push(c),ne})||t.AddError({keyword:`additionalProperties`,schemaPath:n,instancePath:r,params:{additionalProperties:s}})}function Xy(e,t,n,r){let i=n.allOf.reduce((t,n)=>{let i=new Iy;return Q(e,i,n,r)?[...t,i]:t},[]);return v(i.length,n.allOf.length)&&t.Merge(i)}function Zy(e,t,n,r,i,a){let o=[],s=i.allOf.reduce((t,i,s)=>{let c=`${n}/allOf/${s}`,l=new Ry,u=QS(e,l,c,r,i,a);return u||o.push(l),u?[...t,l]:t},[]),c=v(s.length,i.allOf.length)&&t.Merge(s);return c||o.forEach(e=>e.GetErrors().forEach(e=>t.AddError(e))),c}function Qy(e,t,n,r){let i=n.anyOf.reduce((t,n)=>{let i=new Iy;return Q(e,i,n,r)?[...t,i]:t},[]);return he(i.length,0)&&t.Merge(i)}function $y(e,t,n,r,i,a){let o=[],s=i.anyOf.reduce((t,i,s)=>{let c=new Ry,l=QS(e,c,`${n}/anyOf/${s}`,r,i,a);return l||o.push(c),l?[...t,c]:t},[]),c=he(s.length,0)&&t.Merge(s);return c||o.forEach(e=>e.GetErrors().forEach(e=>t.AddError(e))),c||t.AddError({keyword:`anyOf`,schemaPath:n,instancePath:r,params:{}})}function eb(e,t,n,r){return n}function tb(e,t,n,r,i,a){return eb(e,t,i,a)||t.AddError({keyword:`boolean`,schemaPath:n,instancePath:r,params:{}})}function nb(e,t,n,r){return xe(n.const)?v(r,n.const):Ne(r,n.const)}function rb(e,t,n,r,i,a){return nb(e,t,i,a)||t.AddError({keyword:`const`,schemaPath:n,instancePath:r,params:{allowedValue:i.const}})}function ib(e){return!(my(e)&&v(e.minContains,0))}function ab(e,t,n,r){return ib(n)?!v(r.length,0)&&r.some(r=>Q(e,t,n.contains,r)):!0}function ob(e,t,n,r,i,a){return ab(e,t,i,a)||t.AddError({keyword:`contains`,schemaPath:n,instancePath:r,params:{minContains:1}})}function sb(e,t,n,r){let i=v(S(r).length,0),a=y(Oe(n.dependencies),0,([n,i])=>!x(r,n)||(d(i)?i.every(e=>x(r,e)):Q(e,t,i,r)));return i||a}function cb(e,t,n,r,i,a){let o=v(S(a).length,0),s=Te(Oe(i.dependencies),0,([i,o])=>{let s=`${n}/dependencies/${i}`;return!x(a,i)||(d(o)?o.every(e=>x(a,e)||t.AddError({keyword:`dependencies`,schemaPath:n,instancePath:r,params:{property:i,dependencies:o}})):QS(e,t,s,r,o,a))});return o||s}function lb(e,t,n,r){let i=v(S(r).length,0),a=y(Oe(n.dependentRequired),0,([e,t])=>!x(r,e)||t.every(e=>x(r,e)));return i||a}function ub(e,t,n,r,i,a){let o=v(S(a).length,0),s=Te(Oe(i.dependentRequired),0,([e,i])=>!x(a,e)||Te(i,0,o=>x(a,o)||t.AddError({keyword:`dependentRequired`,schemaPath:n,instancePath:r,params:{property:e,dependencies:i}})));return o||s}function db(e,t,n,r){let i=v(S(r).length,0),a=y(Oe(n.dependentSchemas),0,([n,i])=>!x(r,n)||Q(e,t,i,r));return i||a}function fb(e,t,n,r,i,a){let o=v(S(a).length,0),s=Te(Oe(i.dependentSchemas),0,([i,o])=>{let s=`${n}/dependentSchemas/${i}`;return!x(a,i)||QS(e,t,s,r,o,a)});return o||s}function pb(e,t,n,r){let i=e.DynamicRef(n)??!1;return X(i)&&Q(e,t,i,r)}function mb(e,t,n,r,i,a){let o=e.DynamicRef(i)??!1;return X(o)&&QS(e,t,`#`,r,o,a)}function hb(e,t,n,r){return n.enum.some(e=>xe(e)?v(r,e):Ne(r,e))}function gb(e,t,n,r,i,a){return hb(e,t,i,a)||t.AddError({keyword:`enum`,schemaPath:n,instancePath:r,params:{allowedValues:i.enum}})}function _b(e,t,n,r){return ge(r,n.exclusiveMaximum)}function vb(e,t,n,r,i,a){return _b(e,t,i,a)||t.AddError({keyword:`exclusiveMaximum`,schemaPath:n,instancePath:r,params:{comparison:`<`,limit:i.exclusiveMaximum}})}function yb(e,t,n,r){return he(r,n.exclusiveMinimum)}function bb(e,t,n,r,i,a){return yb(e,t,i,a)||t.AddError({keyword:`exclusiveMinimum`,schemaPath:n,instancePath:r,params:{comparison:`>`,limit:i.exclusiveMinimum}})}const xb=[0,31,28,31,30,31,30,31,31,30,31,30,31],Sb=/^(\d\d\d\d)-(\d\d)-(\d\d)$/;function Cb(e){return e%4==0&&(e%100!=0||e%400==0)}function wb(e){let t=Sb.exec(e);if(!t)return!1;let n=+t[1],r=+t[2],i=+t[3];return r>=1&&r<=12&&i>=1&&i<=(r===2&&Cb(n)?29:xb[r])}const Tb=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(?:Z|([+-])(\d\d):(\d\d))?$/i;function Eb(e,t=!0){let n=Tb.exec(e);if(!n)return!1;let r=+n[1],i=+n[2],a=+n[3],o=n[4]===`-`?-1:1,s=+(n[5]||0),c=+(n[6]||0);if(s>23||c>59||t&&!n[4]&&e.toLowerCase().indexOf(`z`)===-1)return!1;if(r<=23&&i<=59&&a<60)return!0;let l=i-c*o,u=r-s*o-+(l<0);return(u===23||u===-1)&&(l===59||l===-1)&&a<61}function Db(e,t=!0){let n=e.split(/T/i);return n.length===2&&wb(n[0])&&Eb(n[1],t)}const Ob=/^P((\d+Y(\d+M(\d+D)?)?|\d+M(\d+D)?|\d+D)(T(\d+H(\d+M(\d+S)?)?|\d+M(\d+S)?|\d+S))?|T(\d+H(\d+M(\d+S)?)?|\d+M(\d+S)?|\d+S)|\d+W)$/;function kb(e){return Ob.test(e)}const Ab=/^(?!.*\.\.)[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i;function jb(e){return Ab.test(e)}function Mb(e,t,n){e=n?Math.floor(e/700):e>>1,e+=Math.floor(e/t);let r=0;for(;e>455;)e=Math.floor(e/35),r+=36;return r+Math.floor(36*e/(e+38))}function Nb(e){let t=[],n=128,r=0,i=72,a=e.lastIndexOf(`-`);if(a>0)for(let n=0;n=128)throw Error(`Invalid punycode: non-basic before delimiter`);t.push(r)}let o=a<0?0:a+1;for(;o=e.length)throw Error(`Invalid punycode: unexpected end of input`);let t=e.charCodeAt(o++),n;if(t>=97&&t<=122)n=t-97;else if(t>=48&&t<=57)n=t-48+26;else if(t>=65&&t<=90)n=t-65;else throw Error(`Invalid punycode: bad digit character`);r+=n*s;let a=c<=i?1:c>=i+26?26:c-i;if(n=1632&&e<=1641}function Kb(e){return e>=1776&&e<=1785}function qb(e){return zb.has(e)}function Jb(e){if(e.length===0)return!1;let t=[...e].map(e=>e.codePointAt(0)),n=t.length;if(t[0]===45||t[n-1]===45||n>=4&&t[2]===45&&t[3]===45||Lb(t[0]))return!1;let r=!1,i=!1,a=!1;for(let e=0;e=4&&e.charCodeAt(2)===45&&e.charCodeAt(3)===45)return!1;for(let t=0;t=97&&n<=122||n>=65&&n<=90||n>=48&&n<=57||n===45))return!1}return!0}function Xb(e){return e.toLowerCase().startsWith(`xn--`)}function Zb(e){try{return Jb(Nb(e.slice(4)))}catch{return!1}}function Qb(e){return e.length===0||e.length>63?!1:Xb(e)?Zb(e):Jb(e)}function $b(e){return e.length===0||e.length>63?!1:Xb(e)?Zb(e):Yb(e)}function ex(e){if(e.length===0||e.length>253||e.charCodeAt(e.length-1)===46)return!1;for(let t of e.split(`.`))if(!$b(t))return!1;return!0}const tx=/^(?!.*\.\.)[\p{L}\p{N}!#$%&'*+/=?^_`{|}~-]+(?:\.[\p{L}\p{N}!#$%&'*+/=?^_`{|}~-]+)*@[\p{L}\p{N}](?:[\p{L}\p{N}-]{0,61}[\p{L}\p{N}])?(?:\.[\p{L}\p{N}](?:[\p{L}\p{N}-]{0,61}[\p{L}\p{N}])?)*$/iu;function nx(e){return tx.test(e)}function rx(e){if(e.length===0||e.includes(` `))return!1;let t=e.normalize(`NFC`).replace(/[\u002E\u3002\uFF0E\uFF61]/g,`.`);if(t.length>253)return!1;for(let e of t.split(`.`))if(!Qb(e))return!1;return!0}function ix(e,t,n){let r=0,i=0,a=0,o=0;for(let s=t;s255||o===48&&a>1)return!1;r++,i=0,a=0,o=0}else if(t>=48&&t<=57)a===0&&(o=t),i=i*10+(t-48),a++;else return!1}return r===3&&a>0&&i<=255&&!(o===48&&a>1)}function ax(e){return ix(e,0,e.length)}function ox(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function sx(e){let t=e.length;if(t===0)return!1;let n=0,r=!1,i=0;if(e.charCodeAt(0)===58&&e.charCodeAt(1)===58){if(t===2)return!0;r=!0,i=2}for(;i4)return!1;if(n++,i===t)break;if(s!==58)return!1;if(i++,e.charCodeAt(i)===58){if(r||e.charCodeAt(i+1)===58)return!1;if(r=!0,i++,i===t)break}}return r?n<=7:n===8}function cx(e){try{return new URL(e,`http://example.com`),!0}catch{return!1}}function lx(e){if(e.includes(` `)||e.includes(`\\`)||/[\x00-\x1F\x7F]/.test(e)||/%(?![0-9a-fA-F]{2})/.test(e))return!1;if(e===``)return!0;let t=e.indexOf(`:`);return t>0&&/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(e.substring(0,t))?cx(e):e.match(/^([a-zA-Z][a-zA-Z0-9+\-.]*)(\/\/)/)&&t===-1?!1:cx(e)}function ux(e){try{return new URL(e),!0}catch{return!1}}const dx=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i;function fx(e){return dx.test(e)}const px=/^(?:\/(?:[^~/]|~0|~1)*)*$/;function mx(e){return px.test(e)}function hx(e){if(e.length===0)return!1;try{return new RegExp(e),!0}catch{return!1}}const gx=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;function _x(e){return gx.test(e)}const vx=/^(?!.*[^\x00-\x7F])(?!.*\\)(?:(?:[a-z][a-z0-9+\-.]*:)?(?:\/\/[^\s[\]{}<>^`|]*)?|[^\s[\]{}<>^`|]*)(?:\?[^\s[\]{}<>^`|]*)?(?:#[^\s[\]{}<>^`|]*)?$/i;function yx(e){return vx.test(e)}const bx=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i;function xx(e){return bx.test(e)}function Sx(e){return e>=97&&e<=122||e>=65&&e<=90}function Cx(e){return Sx(e)||e>=48&&e<=57}function wx(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Tx(e){return Cx(e)||e===43||e===45||e===46}function Ex(e){return Cx(e)||e===45||e===46||e===95||e===126}function Dx(e){return e===33||e===36||e===38||e===39||e===40||e===41||e===42||e===43||e===44||e===59||e===61}function Ox(e){return Ex(e)||Dx(e)||e===58||e===64}function kx(e){let t=e.length;if(t===0||!Sx(e.charCodeAt(0)))return!1;let n=1;for(;n=i||!wx(e.charCodeAt(t+1))||!wx(e.charCodeAt(t+2)))return!1;t+=2}else if(!Ex(n)&&!Dx(n)&&n!==58)return!1}n=i+1}if(e.charCodeAt(n)===91){for(n++;n57)return!1;n++}}for(;n=t||!wx(e.charCodeAt(n+1))||!wx(e.charCodeAt(n+2)))return!1;n+=2}else if(r>127)return!1;else if(!(Ox(r)||r===47||r===63||r===35))return!1;n++}return!0}const Ax=/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu;function jx(e){return Ax.test(e)}const Mx=/^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;function Nx(e){return Mx.test(e)}const Z=new Map;function Px(){Z.clear()}function Fx(e,t){return Z.get(e)?.(t)??!0}function Ix(){Px(),Z.set(`date-time`,Db),Z.set(`date`,wb),Z.set(`duration`,kb),Z.set(`email`,jb),Z.set(`hostname`,ex),Z.set(`idn-email`,nx),Z.set(`idn-hostname`,rx),Z.set(`ipv4`,ax),Z.set(`ipv6`,sx),Z.set(`iri-reference`,lx),Z.set(`iri`,ux),Z.set(`json-pointer-uri-fragment`,fx),Z.set(`json-pointer`,mx),Z.set(`regex`,hx),Z.set(`relative-json-pointer`,_x),Z.set(`time`,Eb),Z.set(`uri-reference`,yx),Z.set(`uri-template`,xx),Z.set(`uri`,kx),Z.set(`url`,jx),Z.set(`uuid`,Nx)}Ix();function Lx(e,t,n,r){return Fx(n.format,r)}function Rx(e,t,n,r,i,a){return Lx(e,t,i,a)||t.AddError({keyword:`format`,schemaPath:n,instancePath:r,params:{format:i.format}})}function zx(e,t,n,r){let i=jy(n)?n.then:!0,a=$v(n)?n.else:!0;return Q(e,t,n.if,r)?Q(e,t,i,r):Q(e,t,a,r)}function Bx(e,t,n,r,i,a){let o=jy(i)?i.then:!0,s=$v(i)?i.else:!0,c=new Ry,l=QS(e,c,`${n}/if`,r,i.if,a)?QS(e,c,`${n}/then`,r,o,a)||t.AddError({keyword:`if`,schemaPath:n,instancePath:r,params:{failingKeyword:`then`}}):QS(e,t,`${n}/else`,r,s,a)||t.AddError({keyword:`if`,schemaPath:n,instancePath:r,params:{failingKeyword:`else`}});return l&&t.Merge([c]),l}function Vx(e,t,n,r){return y(n.items,0,(n,i)=>_e(r.length,i)||XS(e,t,n,r[i])&&t.AddIndex(i))}function Hx(e,t,n,r,i,a){return Te(i.items,0,(i,o)=>{let s=`${n}/items/${o}`,c=`${r}/${o}`;return _e(a.length,o)||ZS(e,t,s,c,i,a[o])&&t.AddIndex(o)})}function Ux(e,t,n,r){return y(r,Cy(n)?n.prefixItems.length:0,(r,i)=>XS(e,t,n.items,r)&&t.AddIndex(i))}function Wx(e,t,n,r,i,a){return Te(a,Cy(i)?i.prefixItems.length:0,(a,o)=>ZS(e,t,`${n}/items`,`${r}/${o}`,i.items,a)&&t.AddIndex(o))}function Gx(e,t,n,r){return sy(n)?Vx(e,t,n,r):Ux(e,t,n,r)}function Kx(e,t,n,r,i,a){return sy(i)?Hx(e,t,n,r,i,a):Wx(e,t,n,r,i,a)}function qx(e){return Kv(e)}function Jx(e,t,n,r){return qx(n)?_e(r.reduce((r,i)=>Q(e,t,n.contains,i)?++r:r,0),n.maxContains):!0}function Yx(e,t,n,r,i,a){let o=my(i)?i.minContains:1;return Jx(e,t,i,a)||t.AddError({keyword:`contains`,schemaPath:n,instancePath:r,params:{minContains:o,maxContains:i.maxContains}})}function Xx(e,t,n,r){return _e(r,n.maximum)}function Zx(e,t,n,r,i,a){return Xx(e,t,i,a)||t.AddError({keyword:`maximum`,schemaPath:n,instancePath:r,params:{comparison:`<=`,limit:i.maximum}})}function Qx(e,t,n,r){return _e(r.length,n.maxItems)}function $x(e,t,n,r,i,a){return Qx(e,t,i,a)||t.AddError({keyword:`maxItems`,schemaPath:n,instancePath:r,params:{limit:i.maxItems}})}function eS(e,t,n,r){return Ce(r,n.maxLength)}function tS(e,t,n,r,i,a){return eS(e,t,i,a)||t.AddError({keyword:`maxLength`,schemaPath:n,instancePath:r,params:{limit:i.maxLength}})}function nS(e,t,n,r){return _e(S(r).length,n.maxProperties)}function rS(e,t,n,r,i,a){return nS(e,t,i,a)||t.AddError({keyword:`maxProperties`,schemaPath:n,instancePath:r,params:{limit:i.maxProperties}})}function iS(e){return Kv(e)}function aS(e,t,n,r){return iS(n)?ve(r.reduce((r,i)=>Q(e,t,n.contains,i)?++r:r,0),n.minContains):!0}function oS(e,t,n,r,i,a){return aS(e,t,i,a)||t.AddError({keyword:`contains`,schemaPath:n,instancePath:r,params:{minContains:i.minContains}})}function sS(e,t,n,r){return ve(r,n.minimum)}function cS(e,t,n,r,i,a){return sS(e,t,i,a)||t.AddError({keyword:`minimum`,schemaPath:n,instancePath:r,params:{comparison:`>=`,limit:i.minimum}})}function lS(e,t,n,r){return ve(r.length,n.minItems)}function uS(e,t,n,r,i,a){return lS(e,t,i,a)||t.AddError({keyword:`minItems`,schemaPath:n,instancePath:r,params:{limit:i.minItems}})}function dS(e,t,n,r){return we(r,n.minLength)}function fS(e,t,n,r,i,a){return dS(e,t,i,a)||t.AddError({keyword:`minLength`,schemaPath:n,instancePath:r,params:{limit:i.minLength}})}function pS(e,t,n,r){return ve(S(r).length,n.minProperties)}function mS(e,t,n,r,i,a){return pS(e,t,i,a)||t.AddError({keyword:`minProperties`,schemaPath:n,instancePath:r,params:{limit:i.minProperties}})}function hS(e,t,n,r){return ye(r,n.multipleOf)}function gS(e,t,n,r,i,a){return hS(e,t,i,a)||t.AddError({keyword:`multipleOf`,schemaPath:n,instancePath:r,params:{multipleOf:i.multipleOf}})}function _S(e,t,n,r){let i=new Iy;return!Q(e,i,n.not,r)&&t.Merge([i])}function vS(e,t,n,r,i,a){return _S(e,t,i,a)||t.AddError({keyword:`not`,schemaPath:n,instancePath:r,params:{}})}function yS(e,t,n,r){let i=n.oneOf.reduce((t,n)=>{let i=new Iy;return Q(e,i,n,r)?[...t,i]:t},[]);return v(i.length,1)&&t.Merge(i)}function bS(e,t,n,r,i,a){let o=[],s=[],c=i.oneOf.reduce((t,i,c)=>{let l=new Ry,u=QS(e,l,`${n}/oneOf/${c}`,r,i,a);return u&&s.push(c),u||o.push(l),u?[...t,l]:t},[]),l=v(c.length,1)&&t.Merge(c);return!l&&v(s.length,0)&&o.forEach(e=>e.GetErrors().forEach(e=>t.AddError(e))),l||t.AddError({keyword:`oneOf`,schemaPath:n,instancePath:r,params:{passingSchemas:s}})}function xS(e,t,n,r){return(g(n.pattern)?new RegExp(n.pattern,`u`):n.pattern).test(r)}function SS(e,t,n,r,i,a){return xS(e,t,i,a)||t.AddError({keyword:`pattern`,schemaPath:n,instancePath:r,params:{pattern:i.pattern}})}function CS(e,t,n,r){return y(Oe(n.patternProperties),0,([n,i])=>{let a=new RegExp(n,`u`);return y(Oe(r),0,([n,r])=>!a.test(n)||XS(e,t,i,r)&&t.AddKey(n))})}function wS(e,t,n,r,i,a){return Te(Oe(i.patternProperties),0,([i,o])=>{let s=`${n}/patternProperties/${i}`,c=new RegExp(i,`u`);return Te(Oe(a),0,([n,i])=>{let a=`${r}/${n}`;return!c.test(n)||ZS(e,t,s,a,o,i)&&t.AddKey(n)})})}function TS(e,t,n,r){return v(r.length,0)||y(n.prefixItems,0,(n,i)=>_e(r.length,i)||XS(e,t,n,r[i])&&t.AddIndex(i))}function ES(e,t,n,r,i,a){return v(a.length,0)||Te(i.prefixItems,0,(i,o)=>{let s=`${n}/prefixItems/${o}`,c=`${r}/${o}`;return _e(a.length,o)||ZS(e,t,s,c,i,a[o])&&t.AddIndex(o)})}function DS(e,t){return e.includes(t)||Qe().exactOptionalPropertyTypes}function OS(e,t){return _(e[t])}function kS(e,t,n,r){let i=Ay(n)?n.required:[];return y(Oe(n.properties),0,([n,a])=>{let o=!x(r,n)||XS(e,t,a,r[n])&&t.AddKey(n);return DS(i,n)?o:OS(r,n)||o})}function AS(e,t,n,r,i,a){let o=Ay(i)?i.required:[];return Te(Oe(i.properties),0,([i,s])=>{let c=`${n}/properties/${i}`,l=`${r}/${i}`,u=()=>!x(a,i)||ZS(e,t,c,l,s,a[i])&&t.AddKey(i);return DS(o,i)?u():OS(a,i)||u()})}function jS(e,t,n,r){return y(S(r),0,(r,i)=>Q(e,t,n.propertyNames,r))}function MS(e,t,n,r,i,a){let o=[];return Te(S(a),0,(t,a)=>{let s=`${r}/${t}`,c=`${n}/propertyNames`,l=QS(e,new Ry,c,s,i.propertyNames,t);return l||o.push(t),l})||t.AddError({keyword:`propertyNames`,schemaPath:n,instancePath:r,params:{propertyNames:o}})}function NS(e,t,n,r){let i=e.RecursiveRef(n)??!1;return X(i)&&Q(e,t,i,r)}function PS(e,t,n,r,i,a){let o=e.RecursiveRef(i)??!1;return X(o)&&QS(e,t,`#`,r,o,a)}function FS(e,t,n,r){let i=e.Ref(n)??!1,a=new Iy,o=X(i)&&Q(e,a,i,r);return o&&t.Merge([a]),o}function IS(e,t,n,r,i,a){let o=e.Ref(i)??!1,s=new Ry,c=X(o)&&QS(e,s,`#`,r,o,a);return c&&t.Merge([s]),c||s.GetErrors().forEach(e=>t.AddError(e)),c}function LS(e,t,n,r){return y(n.required,0,e=>x(r,e))}function RS(e,t,n,r,i,a){let o=[];return Te(i.required,0,e=>{let t=x(a,e);return t||o.push(e),t})||t.AddError({keyword:`required`,schemaPath:n,instancePath:r,params:{requiredProperties:o}})}function zS(e,t,n,r,i){return v(n,`object`)?pe(i):v(n,`array`)?d(i):v(n,`boolean`)?p(i):v(n,`integer`)?ue(i):v(n,`number`)?m(i):v(n,`null`)?fe(i):v(n,`string`)?g(i):v(n,`asyncIterator`)?se(i):v(n,`bigint`)?f(i):v(n,`constructor`)?ce(i):v(n,`function`)?le(i):v(n,`iterator`)?de(i):v(n,`symbol`)?me(i):v(n,`undefined`)||v(n,`void`)?_(i):!0}function BS(e,t,n,r,i){return n.some(n=>zS(e,t,n,r,i))}function VS(e,t,n,r){return d(n.type)?BS(e,t,n.type,n,r):zS(e,t,n.type,n,r)}function HS(e,t,n,r,i,a){return(d(i.type)?BS(e,t,i.type,i,a):zS(e,t,i.type,i,a))||t.AddError({keyword:`type`,schemaPath:n,instancePath:r,params:{type:i.type}})}function US(e,t,n,r){let i=t.GetIndices();return y(r,0,(r,a)=>(i.has(a)||Q(e,t,n.unevaluatedItems,r))&&t.AddIndex(a))}function WS(e,t,n,r,i,a){let o=t.GetIndices(),s=[];return Te(a,0,(a,c)=>{let l=new Ry,u=(o.has(c)||QS(e,l,n,r,i.unevaluatedItems,a))&&t.AddIndex(c);return u||s.push(c),u})||t.AddError({keyword:`unevaluatedItems`,schemaPath:n,instancePath:r,params:{unevaluatedItems:s}})}function GS(e,t,n,r){let i=t.GetKeys();return y(Oe(r),0,([r,a])=>i.has(r)||Q(e,t,n.unevaluatedProperties,a)&&t.AddKey(r))}function KS(e,t,n,r,i,a){let o=t.GetKeys(),s=[];return Te(Oe(a),0,([a,c])=>{let l=new Ry,u=o.has(a)||QS(e,l,n,r,i.unevaluatedProperties,c)&&t.AddKey(a);return u||s.push(a),u})||t.AddError({keyword:`unevaluatedProperties`,schemaPath:n,instancePath:r,params:{unevaluatedProperties:s}})}function qS(e){return!v(e.uniqueItems,!1)}function JS(e,t,n,r){if(!qS(n))return!0;let i=new Set(r.map(An)).size,a=r.length;return v(i,a)}function YS(e,t,n,r,i,a){if(!qS(i))return!0;let o=new Set,s=a.reduce((e,t,n)=>{let r=An(t);return o.has(r)?[...e,n]:(o.add(r),e)},[]);return v(s.length,0)||t.AddError({keyword:`uniqueItems`,schemaPath:n,instancePath:r,params:{duplicateItems:s}})}function XS(e,t,n,r){return t.Push()&&Q(e,t,n,r)&&t.Pop()}function Q(e,t,n,r){e.Push(n);let i=zv(n)?eb(e,t,n,r):(!My(n)||VS(e,t,n,r))&&(!(h(r)&&!d(r))||(!Ay(n)||LS(e,t,n,r))&&(!Vv(n)||Jy(e,t,n,r))&&(!Jv(n)||sb(e,t,n,r))&&(!Yv(n)||lb(e,t,n,r))&&(!Xv(n)||db(e,t,n,r))&&(!Sy(n)||CS(e,t,n,r))&&(!wy(n)||kS(e,t,n,r))&&(!Ty(n)||jS(e,t,n,r))&&(!_y(n)||pS(e,t,n,r))&&(!fy(n)||nS(e,t,n,r)))&&(!d(r)||(!Bv(n)||Wy(e,t,n,r))&&(!Kv(n)||ab(e,t,n,r))&&(!oy(n)||Gx(e,t,n,r))&&(!ly(n)||Jx(e,t,n,r))&&(!uy(n)||Qx(e,t,n,r))&&(!my(n)||aS(e,t,n,r))&&(!hy(n)||lS(e,t,n,r))&&(!Cy(n)||TS(e,t,n,r))&&(!Ny(n)||JS(e,t,n,r)))&&(!g(r)||(!dy(n)||eS(e,t,n,r))&&(!gy(n)||dS(e,t,n,r))&&(!ry(n)||Lx(e,t,n,r))&&(!xy(n)||xS(e,t,n,r)))&&(!(m(r)||f(r))||(!ty(n)||_b(e,t,n,r))&&(!ny(n)||yb(e,t,n,r))&&(!cy(n)||Xx(e,t,n,r))&&(!py(n)||sS(e,t,n,r))&&(!vy(n)||hS(e,t,n,r)))&&(!ky(n)||FS(e,t,n,r))&&(!Oy(n)||NS(e,t,n,r))&&(!Qv(n)||pb(e,t,n,r))&&(!Iv(n)||zy(e,t,n,r))&&(!Gv(n)||nb(e,t,n,r))&&(!ey(n)||hb(e,t,n,r))&&(!ay(n)||zx(e,t,n,r))&&(!yy(n)||_S(e,t,n,r))&&(!Hv(n)||Xy(e,t,n,r))&&(!Wv(n)||Qy(e,t,n,r))&&(!by(n)||yS(e,t,n,r))&&(!Py(n)||!d(r)||US(e,t,n,r))&&(!Fy(n)||!h(r)||GS(e,t,n,r))&&(!Lv(n)||Vy(e,t,n,r));return e.Pop(n),i}function ZS(e,t,n,r,i,a){return t.Push()&&QS(e,t,n,r,i,a)&&t.Pop()}function QS(e,t,n,r,i,a){e.Push(i);let o=zv(i)?tb(e,t,n,r,i,a):!!((!My(i)||HS(e,t,n,r,i,a))&+(!(h(a)&&!d(a))||!!((!Ay(i)||RS(e,t,n,r,i,a))&+(!Vv(i)||Yy(e,t,n,r,i,a))&(!Jv(i)||cb(e,t,n,r,i,a))&(!Yv(i)||ub(e,t,n,r,i,a))&(!Xv(i)||fb(e,t,n,r,i,a))&(!Sy(i)||wS(e,t,n,r,i,a))&(!wy(i)||AS(e,t,n,r,i,a))&(!Ty(i)||MS(e,t,n,r,i,a))&(!_y(i)||mS(e,t,n,r,i,a))&(!fy(i)||rS(e,t,n,r,i,a))))&(!d(a)||!!((!Bv(i)||Gy(e,t,n,r,i,a))&+(!Kv(i)||ob(e,t,n,r,i,a))&(!oy(i)||Kx(e,t,n,r,i,a))&(!ly(i)||Yx(e,t,n,r,i,a))&(!uy(i)||$x(e,t,n,r,i,a))&(!my(i)||oS(e,t,n,r,i,a))&(!hy(i)||uS(e,t,n,r,i,a))&(!Cy(i)||ES(e,t,n,r,i,a))&(!Ny(i)||YS(e,t,n,r,i,a))))&(!g(a)||!!((!dy(i)||tS(e,t,n,r,i,a))&+(!gy(i)||fS(e,t,n,r,i,a))&(!ry(i)||Rx(e,t,n,r,i,a))&(!xy(i)||SS(e,t,n,r,i,a))))&(!(m(a)||f(a))||!!((!ty(i)||vb(e,t,n,r,i,a))&+(!ny(i)||bb(e,t,n,r,i,a))&(!cy(i)||Zx(e,t,n,r,i,a))&(!py(i)||cS(e,t,n,r,i,a))&(!vy(i)||gS(e,t,n,r,i,a))))&(!ky(i)||IS(e,t,n,r,i,a))&(!Oy(i)||PS(e,t,n,r,i,a))&(!Qv(i)||mb(e,t,n,r,i,a))&(!Iv(i)||By(e,t,n,r,i,a))&(!Gv(i)||rb(e,t,n,r,i,a))&(!ey(i)||gb(e,t,n,r,i,a))&(!ay(i)||Bx(e,t,n,r,i,a))&(!yy(i)||vS(e,t,n,r,i,a))&(!Hv(i)||Zy(e,t,n,r,i,a))&(!Wv(i)||$y(e,t,n,r,i,a))&(!by(i)||bS(e,t,n,r,i,a))&(!Py(i)||!d(a)||WS(e,t,n,r,i,a))&(!Fy(i)||!h(a)||KS(e,t,n,r,i,a)))&&(!Lv(i)||Hy(e,t,n,r,i,a));return e.Pop(i),o}function $S(e,t){return h(t)&&!Ee(e)?t[e]:void 0}function eC(e,t){return e.reduce((e,t)=>$S(t,e),t)}function tC(e){if(v(e.length,0))return[];let t=e.split(`/`).map(e=>e.replace(/~1/g,`/`).replace(/~0/g,`~`));return t.length>0&&t[0]===``?t.slice(1):t}function nC(e,t){return eC(tC(t),e)}function rC(e,t,n){if(e.$id===n.hash)return e;let r=new URL(e.$id,t.href),i=new URL(n.href,t.href);if(v(r.pathname,i.pathname))return n.hash.startsWith(`#`)?oC(e,t,n):e}function iC(e,t,n){let r=new URL(`#${e.$anchor}`,t.href),i=new URL(n.href,t.href);return v(r.href,i.href)?e:void 0}function aC(e,t,n){let r=new URL(`#${e.$dynamicAnchor}`,t.href),i=new URL(n.href,t.href);return v(r.href,i.href)?e:void 0}function oC(e,t,n){if(n.href.endsWith(`#`))return e;if(!n.hash.startsWith(`#`))return;let r=decodeURIComponent(n.hash.slice(1));if(r.startsWith(`/`))return nC(e,r)}function sC(e,t,n){if(iy(e)){let r=rC(e,t,n);if(!_(r))return r}if(Uv(e)){let r=iC(e,t,n);if(!_(r))return r}if(Zv(e)){let r=aC(e,t,n);if(!_(r))return r}return oC(e,t,n)}function cC(e,t,n){return e.reduce((e,r)=>{let i=uC(r,t,n);return _(i)?e:i},void 0)}function lC(e,t,n){return S(e).reduce((r,i)=>{let a=uC(e[i],t,n);return _(a)?r:a},void 0)}function uC(e,t,n){let r=Rv(e)&&iy(e)?new URL(e.$id,t.href):t;if(Rv(e)){let t=sC(e,r,n);if(!_(t))return t}if(d(e))return cC(e,r,n);if(h(e))return lC(e,r,n)}function dC(e,t){let n=new URL(`http://unknown/`),r=iy(e)?new URL(e.$id,n.href):n;return uC(e,r,new URL(t,r.href))}function fC(e,t,n,r){let i=n.$dynamicRef.startsWith(`#`)?dC(t,n.$dynamicRef):dC(e,n.$dynamicRef);if(!_(i))return!Rv(i)||!Zv(i)||new URL(n.$dynamicRef,`http://unknown/`).hash.startsWith(`#/`)?i:r.find(e=>e.$dynamicAnchor===i.$dynamicAnchor)??i}var pC=function(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)},mC,hC,gC,_C,vC,yC=class{constructor(e,t){mC.add(this),this.context=e,this.schema=t,this.ids=[],this.anchors=[],this.recursiveAnchors=[],this.dynamicAnchors=[]}BaseURL(){return this.ids.reduce((e,t)=>new URL(t.$id,e),new URL(`http://unknown`))}Base(){return this.ids[this.ids.length-1]??this.schema}Push(e){Rv(e)&&(iy(e)&&(this.ids.push(e),pC(this,mC,`m`,hC).call(this,e)),Uv(e)&&this.anchors.push(e),Dy(e)&&this.recursiveAnchors.push(e),Zv(e)&&this.dynamicAnchors.push(e))}Pop(e){Rv(e)&&(iy(e)&&(this.ids.pop(),pC(this,mC,`m`,gC).call(this,e)),Uv(e)&&this.anchors.pop(),Dy(e)&&this.recursiveAnchors.pop(),Zv(e)&&this.dynamicAnchors.pop())}Ref(e){return pC(this,mC,`m`,_C).call(this,e)??pC(this,mC,`m`,vC).call(this,e)}RecursiveRef(e){return Dy(this.Base())?dC(this.recursiveAnchors[0],e.$recursiveRef):dC(this.Base(),e.$recursiveRef)}DynamicRef(e){let t=this.schema;return fC(t,this.Base(),e,this.dynamicAnchors)}};mC=new WeakSet,hC=function e(t,n=!0){if(!Rv(t))return;let r=t;if(!(!n&&iy(r))){!n&&Zv(r)&&this.dynamicAnchors.push(r);for(let t of S(r))pC(this,mC,`m`,e).call(this,r[t],!1)}},gC=function e(t,n=!0){if(!Rv(t))return;let r=t;if(!(!n&&iy(r))){!n&&Zv(r)&&this.dynamicAnchors.pop();for(let t of S(r))pC(this,mC,`m`,e).call(this,r[t],!1)}},_C=function(e){return x(this.context,e.$ref)?this.context[e.$ref]:void 0},vC=function(e){let t=this.schema;return e.$ref.startsWith(`#`)?dC(this.Base(),e.$ref):dC(t,e.$ref)};function bC(...e){let[t,n,r]=Ut(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]}),i=Qe(),a=Nn(),o=[];return[QS(new yC(t,n),new Ly(e=>{if(!ve(o.length,i.maxErrors))return o.push({...e,message:a(e)})}),`#`,``,n,r),o]}function xC(...e){let[t,n,r]=Ut(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]});return Q(new yC(t,n),new Iy,n,r)}function SC(...e){let[t,n,r]=Ut(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]});return xC(t,n,r)}function CC(...e){let[t,n,r]=Ut(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]}),[i,a]=bC(t,n,r);return a}var wC=class extends Error{constructor(e,t,n){super(e),Object.defineProperty(this,"cause",{value:{source:e,errors:n,value:t},writable:!1,configurable:!1,enumerable:!1})}};function TC(e,t,n){return d(n)?n.map(n=>qC(e,t.items,n)):n}function EC(e,t,n){return t.Clean(n)}function DC(e,t,n){return qC({...e,...t.$defs},vt(t.$ref),n)}function OC(e,t){let n=x(t,`unevaluatedProperties`)?{additionalProperties:t.unevaluatedProperties}:{},r=Dv(bv(e,t));return k(r)?sv(r,n):r}function kC(e,t,n){return qC(e,OC(e,t),n)}function AC(e){return x(e,`additionalProperties`)?e.additionalProperties:void 0}function jC(e,t,n){if(!h(n)||d(n))return n;let r=AC(t);for(let i of S(n)){if(x(t.properties,i)){n[i]=qC(e,t.properties[i],n[i]);continue}if(p(r)&&v(r,!0)||nt(r)&&SC(e,r,n[i])){n[i]=qC(e,r,n[i]);continue}delete n[i]}return n}function MC(e,t,n){if(!h(n))return n;let r=AC(t),[i,a]=[new RegExp(sa(t)),la(t)];for(let t of S(n)){if(i.test(t)){n[t]=qC(e,a,n[t]);continue}if(p(r)&&v(r,!0)||nt(r)&&SC(e,r,n[t])){n[t]=qC(e,r,n[t]);continue}delete n[t]}return n}function NC(e,t,n){return x(e,t.$ref)?qC(e,e[t.$ref],n):n}function PC(e,t,n){if(!d(n))return n;let r=Math.min(n.length,t.items.length);for(let i=0;iGC(e))}function VC(e){return e.slice()}function HC(e){return new Map(GC([...e.entries()]))}function UC(e){return new Set(GC([...e.values()]))}function WC(e){return e}function GC(e){return Le(e)?VC(e):Ve(e)?HC(e):Be(e)?UC(e):d(e)?BC(e):h(e)?zC(e):WC(e)}function KC(e,t,n){for(let r of t.anyOf){let t=qC(e,r,GC(n));if(SC(e,r,t))return t}return n}function qC(e,t,n){return D(t)?TC(e,t,n):ot(t)?EC(e,t,n):Bt(t)?DC(e,t,n):A(t)?kC(e,t,n):k(t)?jC(e,t,n):ua(t)?MC(e,t,n):yt(t)?NC(e,t,n):I(t)?PC(e,t,n):F(t)?KC(e,t,n):n}function JC(e,t){for(let n of He.Keys(e))He.HasPropertyKey(t,n)||(t[n]=e[n]);return t}function YC(e){let t={};for(let n of He.Keys(e))t[n]=QC(e[n]);return t}function XC(e){return ZC(Nv(e))}function ZC(e){return e.map(e=>QC(e))}function QC(e){return JC(e,D(e)?st(QC(e.items),ct(e)):A(e)?$t(ZC(e.allOf)):F(e)?P(XC(e.anyOf)):k(e)?O(YC(e.properties)):ua(e)?ia(ca(e),QC(la(e))):I(e)?$r(ZC(e.items)):e)}function $C(e){return QC(e)}function ew(...e){let[t,n,r]=Ut(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]});return qC(t,Qe().unionPrioritySort?$C(n):n,r)}function tw(e){return h(e)&&x(e,`value`)}function $(e){return{value:e}}function nw(e){return d(e)?$(e):$([e])}function rw(e){return v(e,!0)?$(BigInt(1)):$(BigInt(0))}const iw=/^-?(0|[1-9]\d*)n$/,aw=/^-?(0|[1-9]\d*)\.\d+$/,ow=/^-?(0|[1-9]\d*)$/;function sw(e){return iw.test(e)}function cw(e){return aw.test(e)}function lw(e){return ow.test(e)}function uw(e){let t=e.toLowerCase();return sw(e)?$(BigInt(e.slice(0,e.length-1))):cw(e)?$(BigInt(e.split(`.`)[0])):lw(e)?$(BigInt(e)):v(t,`false`)?$(BigInt(0)):v(t,`true`)?$(BigInt(1)):void 0}function dw(e){return f(e)?$(e):p(e)?rw(e):m(e)?$(BigInt(Math.trunc(e))):fe(e)?$(BigInt(0)):g(e)?uw(e):_(e)?$(BigInt(0)):void 0}function fw(e){return v(e,BigInt(0))?$(!1):v(e,BigInt(1))?$(!0):void 0}function pw(e){return v(e,0)?$(!1):v(e,1)?$(!0):void 0}function mw(e){return v(e.toLowerCase(),`false`)?$(!1):v(e.toLowerCase(),`true`)?$(!0):v(e,`0`)?$(!1):v(e,`1`)?$(!0):void 0}function hw(e){return f(e)?fw(e):p(e)?$(e):m(e)?pw(e):fe(e)?$(!1):g(e)?mw(e):_(e)?$(!1):void 0}function gw(e){return v(e,BigInt(0))?$(null):void 0}function _w(e){return v(e,!1)?$(null):void 0}function vw(e){return v(e,0)?$(null):void 0}function yw(e){let t=e.toLowerCase();return v(t,`undefined`)||v(t,`null`)||v(e,``)||v(e,`0`)?$(null):void 0}function bw(e){return f(e)?gw(e):p(e)?_w(e):m(e)?vw(e):fe(e)?$(null):g(e)?yw(e):_(e)?$(null):void 0}const xw=BigInt(2**53-1),Sw=BigInt(-(2**53-1));function Cw(e){return e<=xw&&e>=Sw?$(Number(e)):void 0}function ww(e){return $(+!!e)}function Tw(e){let t=+e;if(m(t))return $(t);let n=e.toLowerCase();if(v(n,`false`))return $(0);if(v(n,`true`))return $(1);let r=dw(e);if(tw(r))return r.value<=xw&&r.value>=Sw?$(Number(r.value)):void 0}function Ew(e){return f(e)?Cw(e):p(e)?ww(e):m(e)?$(e):fe(e)?$(0):g(e)?Tw(e):_(e)?$(0):void 0}function Dw(e){return f(e)||p(e)||m(e)?$(e.toString()):fe(e)?$(`null`):g(e)?$(e):_(e)?$(``):void 0}function Ow(e){return v(e,BigInt(0))?$(void 0):void 0}function kw(e){return v(e,!1)?$(void 0):void 0}function Aw(e){return v(e,0)?$(void 0):void 0}function jw(e){let t=e.toLowerCase();return v(t,`undefined`)||v(t,`null`)||v(e,``)||v(e,`0`)?$(void 0):void 0}function Mw(e){return f(e)?Ow(e):p(e)?kw(e):m(e)?Aw(e):fe(e)?$(void 0):g(e)?jw(e):_(e)?$(e):void 0}function Nw(e,t,n){return nw(n).value.map(n=>sT(e,t.items,n))}function Pw(e,t,n){return t.Convert(n)}function Fw(e,t,n){let r=dw(n);return tw(r)?r.value:n}function Iw(e,t,n){let r=hw(n);return tw(r)?r.value:n}function Lw(e,t,n){return sT({...e,...t.$defs},vt(t.$ref),n)}function Rw(e,t,n){return sT(e,Dv(t),n)}function zw(e,t,n){let r=Ew(n);return tw(r)?Math.trunc(r.value):n}function Bw(e,t,n){return sT(e,Dv(bv(e,t)),n)}function Vw(e,t,n){let r=dw(n);return tw(r)&&v(t.const,r.value)?r.value:n}function Hw(e,t,n){let r=hw(n);return tw(r)&&v(t.const,r.value)?r.value:n}function Uw(e,t,n){let r=Ew(n);return tw(r)&&v(t.const,r.value)?r.value:n}function Ww(e,t,n){let r=Dw(n);return tw(r)&&v(t.const,r.value)?r.value:n}function Gw(e,t,n){return v(t.const,n)?n:mr(t)?Vw(e,t,n):hr(t)?Hw(e,t,n):gr(t)?Uw(e,t,n):_r(t)?Ww(e,t,n):tn()}function Kw(e,t,n){let r=bw(n);return tw(r)?r.value:n}function qw(e,t,n){let r=Ew(n);return tw(r)?r.value:n}function Jw(e,t,n,r){let i=S(r);for(let[a,o]of t)for(let t of i)a.test(t)||(r[t]=sT(e,n,r[t]));return r}function Yw(e,t,n){return Mt(e)&&_(n[t])}function Xw(e,t,n){let r=De(t.properties),i=S(n);for(let[t,a]of r)for(let r of i)!t.test(r)||Yw(a,r,n)||(n[r]=sT(e,a,n[r]));return x(t,`additionalProperties`)&&h(t.additionalProperties)?Jw(e,r,t.additionalProperties,n):n}function Zw(e,t,n){return pe(n)?Xw(e,t,n):n}function Qw(e,t,n){let r=De(t.patternProperties),i=S(n);for(let[t,a]of r)for(let r of i)t.test(r)&&(n[r]=sT(e,a,n[r]));return x(t,`additionalProperties`)&&h(t.additionalProperties)?Jw(e,r,t.additionalProperties,n):n}function $w(e,t,n){return pe(n)?Qw(e,t,n):n}function eT(e,t,n){return x(e,t.$ref)?sT(e,e[t.$ref],n):n}function tT(e,t,n){let r=Dw(n);return tw(r)?r.value:n}function nT(e,t,n){return sT(e,Dv(t),n)}function rT(e,t,n){if(!d(n))return n;for(let r=0;rSC(e,t,n)))return n;let r=t.anyOf.map(t=>sT(e,t,GC(n))).find(n=>SC(e,t,n));return _(r)?n:r}function oT(e,t,n){return tw(Mw(n))?void 0:n}function sT(e,t,n){return D(t)?Nw(e,t,n):ot(t)?Pw(e,t,n):er(t)?Fw(e,t,n):nr(t)?Iw(e,t,n):Bt(t)?Lw(e,t,n):Qt(t)?Rw(e,t,n):sr(t)?zw(e,t,n):A(t)?Bw(e,t,n):N(t)?Gw(e,t,n):yr(t)?Kw(e,t,n):Sr(t)?qw(e,t,n):k(t)?Zw(e,t,n):ua(t)?$w(e,t,n):yt(t)?eT(e,t,n):jr(t)?tT(e,t,n):Md(t)?nT(e,t,n):I(t)?rT(e,t,n):ga(t)?iT(e,t,n):F(t)?aT(e,t,n):va(t)?oT(e,t,n):n}function cT(...e){let[t,n,r]=Ut(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]});return sT(t,n,r)}function lT(e,t,n){if(!d(n))return n;for(let r=0;r[e,t,n],2:(e,t)=>[{},e,t]});return yT(t,n,r)}function xT(e){return(...t)=>{let[n,r,i]=Ut(t,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]});return e.reduce((e,t)=>t(n,r,e),i)}}function ST(e,t,n){return t[`~codec`].decode(n)}function CT(e,t,n){return t[`~codec`].encode(n)}function wT(e,t,n,r){return zn(n)?v(e,`Decode`)?ST(t,n,r):CT(t,n,r):r}function TT(e,t,n,r){if(!d(r))return r;for(let i=0;i({...e,...t}),{})}function AT(e,t){for(let n of t)if(!Ne(e,n))return n;return e}function jT(e,t,n,r){if(v(n.allOf.length,0))return wT(e,t,n,r);let i=n.allOf.map(n=>JT(e,t,n,ew(n,GC(r))));return wT(e,t,n,i.every(e=>h(e))?kT(i):AT(r,i))}function MT(e,t,n,r){if(v(n.allOf.length,0))return wT(e,t,n,r);let i=wT(e,t,n,r),a=n.allOf.map(n=>JT(e,t,n,ew(n,GC(i))));return a.every(e=>h(e))?kT(a):AT(i,a)}function NT(e,t,n,r){return v(e,`Decode`)?jT(e,t,n,r):MT(e,t,n,r)}function PT(e,t,n,r){if(!pe(r))return r;for(let i of S(n.properties))!x(r,i)||Yw(n.properties[i],i,r)||(r[i]=JT(e,t,n.properties[i],r[i]));return wT(e,t,n,r)}function FT(e,t,n,r){let i=wT(e,t,n,r);if(!pe(i))return i;for(let r of S(n.properties))!x(i,r)||Yw(n.properties[r],r,i)||(i[r]=JT(e,t,n.properties[r],i[r]));return i}function IT(e,t,n,r){return v(e,`Decode`)?PT(e,t,n,r):FT(e,t,n,r)}function LT(e,t,n,r){if(!pe(r))return r;let i=new RegExp(sa(n));for(let a of S(r))i.test(a)&&(r[a]=JT(e,t,la(n),r[a]));return wT(e,t,n,r)}function RT(e,t,n,r){let i=wT(e,t,n,r);if(!pe(i))return i;let a=new RegExp(sa(n));for(let r of S(i))a.test(r)&&(i[r]=JT(e,t,la(n),i[r]));return i}function zT(e,t,n,r){return v(e,`Decode`)?LT(e,t,n,r):RT(e,t,n,r)}function BT(e,t,n,r){return x(t,n.$ref)?JT(e,t,t[n.$ref],r):r}function VT(e,t,n,r){return v(e,`Decode`)?wT(e,t,n,BT(e,t,n,r)):BT(e,t,n,wT(e,t,n,r))}function HT(e,t,n,r){if(!d(r))return r;for(let i=0;iGC(n),(e,t,n)=>bT(e,t,n),(e,t,n)=>cT(e,t,n),(e,t,n)=>ew(e,t,n),(e,t,n)=>XT(e,t,n)]);function QT(...e){let[t,n,r]=Ut(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]});if(SC(t,n,r))return r;if(Qe().correctiveParse)return ZT(t,n,r);throw new YT(r,CC(t,n,r))}P([O({type:M(`insert`),path:Ar(),value:Lt()}),Object({type:M(`update`),path:Ar(),value:Lt()}),O({type:M(`delete`),path:Ar()})]);const $T=Y.Refine(Y.Unsafe({}),e=>e instanceof Date),eE=Y.Object({id:Y.Number(),created:$T,title:Y.String({minLength:1,maxLength:100}),type:Y.Enum([`jpg`,`png`]),size:Y.Number(),url:Y.String({format:`url`})}),tE=Y.Object({id:Y.Number(),stars:Y.Number({minimum:1,maximum:5}),title:Y.String({minLength:1,maxLength:100}),text:Y.String({minLength:1,maxLength:1e3}),images:Y.Array(eE)});QT(Y.Object({id:Y.Number(),created:$T,title:Y.String({minLength:1,maxLength:100}),brand:Y.String({minLength:1,maxLength:30}),description:Y.String({minLength:1,maxLength:500}),price:Y.Number({minimum:1,maximum:1e4}),discount:Y.Union([Y.Number({minimum:1,maximum:100}),Y.Null()]),quantity:Y.Number({minimum:1,maximum:10}),tags:Y.Array(Y.String({minLength:1,maxLength:30})),images:Y.Array(eE),ratings:Y.Array(tE)}),{}); \ No newline at end of file +`,e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>[]))),([e,t])=>[Os(e),t]),qu=(e,t=[])=>B(B(Yu(e),([e,t])=>B(Ku(t),([t,n])=>[[e,t],n])),([e,n])=>qu(n,[...t,e]),()=>[t,e]),Ju=e=>B(B(qu(e),([e,t])=>B(B(B(Yu(t),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>B([[],t],([e,t])=>[e,t],()=>[])),([t,n])=>[[e,t],n])),([e,t])=>[ks(e),t]),Yu=e=>B(B(Gu(e),([e,t])=>B(B(Vu(t),([e,t])=>[e,t],()=>B(Hu(t),([e,t])=>[e,t],()=>B(Uu(t),([e,t])=>[e,t],()=>B(Wu(t),([e,t])=>[e,t],()=>[])))),([t,n])=>B(Uc(n),([n,r])=>[[e,t,n],r]))),([e,t])=>[As(e),t]),Xu=e=>B(B(Yu(e),([e,t])=>B(Ju(t),([t,n])=>[[e,t],n])),([e,t])=>[js(e),t]),Zu=e=>B(B(Xu(e),([e,t])=>[e,t],()=>B(Dl(e),([e,t])=>[e,t],()=>B(V(e),([e,t])=>[e,t],()=>[]))),([e,t])=>[Ms(e),t]);function Qu(e){let t=sl(`\`${e}\``);return v(t.length,2)?t[0]:en()}function $u(e){return e.join(`|`)}function ed(e){return e.slice(1,e.length-1)}function td(e,t,n){return fd(t,`${n}${e}`)}function nd(e,t){return fd(e,`${t}-?(?:0|[1-9][0-9]*)n`)}function rd(e,t){return fd(e,`${t}${tr}`)}function id(e,t){return fd(e,`${t}${pr}`)}function ad(e,t){return dd(P([M(`false`),M(`true`)]),e,t)}function od(e,t){return fd(e,`${t}.*`)}function sd(e,t,n){return fd(t,`${n}${ed(e)}`)}function cd(e,t,n){return dd(hd(e,{}),t,n)}function ld(e,t,n){return dd(xi(e),t,n)}function ud(e,t,n,r=[]){return b(e,(e,i)=>ud(i,t,n,[...r,dd(e,[],``)]),()=>fd(t,`${n}(${$u(r)})`))}function dd(e,t,n){return Zt(e)?ld(e.enum,t,n):rr(e)?rd(t,n):N(e)?td(e.const,t,n):Xn(e)?nd(t,n):Qn(e)?ad(t,n):hr(e)?id(t,n):xr(e)?od(t,n):Sd(e)?sd(e.pattern,t,n):vd(e)?cd(e.parameters[0],t,n):F(e)?ud(e.anyOf,t,n):`(?!)`}function fd(e,t){return b(e,(e,n)=>dd(e,n,t),()=>t)}function pd(e){return`^${fd(e,``)}$`}function md(e){return kr(pd(e))}function hd(e,t){return q(e)?w(md(e),{},t):_d(e,t)}function gd(e,t,n,r){return hd(X_(e,t,n),r)}function _d(e,t={}){return E(`TemplateLiteral`,[e],t)}function vd(e){return it(e)&&x(e,`action`)&&v(e.action,`TemplateLiteral`)}function yd(e){return hd(e,{})}function bd(e){return yd(Qu(e))}function xd(e,t={}){return w(g(e)?bd(e):yd(e),{},t)}function Sd(e){return T(e,`TemplateLiteral`)}var Cd=t({ExtendsFalse:()=>U,ExtendsTrue:()=>H,ExtendsUnion:()=>wd,IsExtendsFalse:()=>Dd,IsExtendsTrue:()=>Ed,IsExtendsTrueLike:()=>Od,IsExtendsUnion:()=>Td,Match:()=>W});function wd(e){return C({"~kind":`ExtendsUnion`},{inferred:e})}function Td(e){return h(e)&&x(e,`~kind`)&&x(e,`inferred`)&&v(e[`~kind`],`ExtendsUnion`)&&h(e.inferred)}function H(e){return C({"~kind":`ExtendsTrue`},{inferred:e})}function Ed(e){return h(e)&&x(e,`~kind`)&&x(e,`inferred`)&&v(e[`~kind`],`ExtendsTrue`)&&h(e.inferred)}function U(){return C({"~kind":`ExtendsFalse`},{})}function Dd(e){return h(e)&&x(e,`~kind`)&&v(e[`~kind`],`ExtendsFalse`)}function Od(e){return Td(e)||Ed(e)}function W(e,t,n){return Od(e)?t(e.inferred):n()}function kd(e,t,n,i){return W(K(e,n,i),i=>H(r(r(e,i),{[t]:n})),()=>U())}function Ad(e,t){return H(e)}function jd(e,t,n,r,i){return W(K(e,t,n),e=>W(K(e,t,r),e=>H(e),()=>U()),()=>W(K(e,t,i),e=>H(e),()=>U()))}function Md(e,t,n){return K(e,t,xi(n))}function Nd(e,t,n){return b(n,(n,r)=>W(K(e,t,n),e=>Nd(e,t,r),()=>U()),()=>H(e))}function Pd(e,t,n){return K(e,t,Ci(n))}function Fd(e,t,n){return b(n,(n,r)=>W(K(e,t,n),e=>H(e),()=>Fd(e,t,r)),()=>U())}function G(e,t,n){return Tt(n)?Ad(e,t):Kt(n)?jd(e,t,n.if,n.then,n.else):Zt(n)?Md(e,t,n.enum):Wt(n)?kd(e,n.name,t,n.extends):A(n)?Nd(e,t,n.allOf):Sd(n)?Pd(e,t,n.pattern):F(n)?Fd(e,t,n.anyOf):Lt(n)?H(e):U()}function Id(e,t,n){return Wt(n)?G(e,t,n):Tt(n)||Lt(n)?H(e):wd(e)}function Ld(e,t){let n=Bn(e),r=Bn(t);return n&&r||!n&&r?!0:!(n&&!r)}function Rd(e,t,n,r){return D(r)?Ld(t,r)?K(e,n,r.items):U():G(e,t,r)}function zd(e,t,n){return Xn(n)?H(e):G(e,t,n)}function Bd(e,t,n){return Qn(n)?H(e):G(e,t,n)}function Vd(e,t,n,r,i){let a=Wt(r)?t:r,o=Wt(r)?r:t,s=jt(t),c=jt(r);return!s&&c?U():W(K(e,a,o),e=>Wd(e,n,i),()=>U())}function Hd(e,t,n,r){return b(r,(r,i)=>Vd(e,t,n,r,i),()=>jt(t)?H(e):U())}function Ud(e,t,n){return b(t,(t,r)=>Hd(e,t,r,n),()=>H(e))}function Wd(e,t,n){return Ud(e,t,n)}function Gd(e,t,n){return ca(n)?H(e):K(e,t,n)}function Kd(e,t,n,r){return Tt(r)||Lt(r)?H(e):ht(r)?W(Wd(e,t,r.parameters),e=>Gd(e,n,r.instanceType),()=>U()):U()}function qd(e,t,n,r,i){return W(K(e,t,i),()=>K(e,n,i),()=>K(e,r,i))}function Jd(e,t,n){return K(e,xi(t),n)}function Yd(e,t,n,r){return Tt(r)||Lt(r)?H(e):vt(r)?W(Wd(e,t,r.parameters),e=>Gd(e,n,r.returnType),()=>U()):U()}function Xd(e,t,n){return rr(n)||hr(n)?H(e):G(e,t,n)}function Zd(e,t,n){return K(e,Si(t),n)}function Qd(e,t,n){return t===n?H(e):U()}function $d(e,t,n){return N(n)?Qd(e,t,n.const):Xn(n)?H(e):G(e,M(t),n)}function ef(e,t,n){return N(n)?Qd(e,t,n.const):Qn(n)?H(e):G(e,M(t),n)}function tf(e,t,n){return N(n)?Qd(e,t,n.const):hr(n)?H(e):G(e,M(t),n)}function nf(e,t,n){return N(n)?Qd(e,t,n.const):xr(n)?H(e):G(e,M(t),n)}function rf(e,t,n){return f(t.const)?$d(e,t.const,n):p(t.const)?ef(e,t.const,n):m(t.const)?tf(e,t.const,n):g(t.const)?nf(e,t.const,n):en()}function af(e,t,n){return Wt(n)?G(e,t,n):H(e)}function of(e,t,n){return fr(n)?H(e):G(e,t,n)}function sf(e,t,n){return hr(n)?H(e):G(e,t,n)}function cf(e,t,n){return jt(t)?jt(n)?H(e):U():H(e)}function lf(e,t,n){return Wt(n)&&Dt(n.extends)?U():W(K(e,t,n),e=>cf(e,t,n),()=>U())}function uf(e,t){return e.reduce((e,n)=>n in t&&Od(t[n])?{...e,...t[n].inferred}:en(),{})}function df(e,t,n){let i={};for(let a of S(n))i[a]=a in t?lf({},t[a],n[a]):jt(n[a])?Wt(n[a])?H(r(e,{[n[a].name]:n[a].extends})):H(e):U();let a=Oe(i).every(e=>Od(e)),o=a?uf(S(i),i):{};return a?H(o):U()}function ff(e,t,n){let i=df(e,t,n);return Od(i)?H(r(e,i.inferred)):U()}function pf(e,t,n){return ff(e,t,n)}function mf(e,t){return S(t).reduce((n,r)=>({...n,[r]:x(e,r)?F(n[r])?P([...n[r].anyOf,t[r]]):P([e[r],t[r]]):t[r]}),e)}function hf(e,t,n,r){return b(t,(t,i)=>W(K({},e[t],n),t=>hf(e,i,n,mf(r,t)),()=>U()),()=>H(r))}function gf(e,t,n,r){return hf(t,S(t),r,e)}function _f(e,t,n){return ea(n)?gf(e,t,Zi(n),$i(n)):k(n)?pf(e,t,n.properties):G(e,O(t),n)}function vf(e,t){return v(S(t).length,0)?H(e):U()}function yf(e,t,n,r,i){return K(e,n,i)}function bf(e,t,n,r){return ea(r)?yf(e,Xi(t),n,Xi(Zi(r)),$i(r)):k(r)?vf(e,r.properties):Tt(r)||Lt(r)?H(e):U()}function xf(e,t,n){return xr(n)?H(e):G(e,t,n)}function Sf(e,t,n){return _r(n)?H(e):G(e,t,n)}function Cf(e,t,n){return K(e,Ci(t),n)}function wf(e,t){return C({"~kind":`Inferrable`},{name:e,type:t},{})}function Tf(e){return h(e)&&x(e,`~kind`)&&x(e,`name`)&&x(e,`type`)&&v(e[`~kind`],`Inferrable`)&&g(e.name)&&h(e.type)}function Ef(e){return na(e)?Wt(e.items)?D(e.items.extends)?wf(e.items.name,e.items.extends.items):Lt(e.items.extends)?wf(e.items.name,e.items.extends):void 0:en():void 0}function Df(e){return Wt(e)?wf(e.name,e.extends):void 0}function Of(e,t,n=[]){return b(e,(e,r)=>W(K({},e,t),()=>Of(r,t,[...n,e]),()=>void 0),()=>n)}function kf(e,t,n,i){let a=Of(n,i);return d(a)?H(r(e,{[t]:Ur(a)})):U()}function Af(e,t,n,i){let a=Of(n,i);return d(a)?H(r(e,{[t]:P(a)})):U()}function jf(e){return[...e].reverse()}function Mf(e,t){return t?jf(e):e}function Nf(e){let t=e.length>0?e[0]:void 0;return it(it(t)?Ef(t):void 0)}function Pf(e,t,n,r,i,a){return W(K(e,n,i),e=>Lf(e,t,r,a),()=>U())}function Ff(e,t,n,r,i){let a=Ef(r);return Tf(a)?kf(e,a.name,Mf(n,t),a.type):b(n,(n,a)=>Pf(e,t,n,a,r,i),()=>U())}function If(e,t,n,r){return b(r,(r,i)=>Ff(e,t,n,r,i),()=>v(n.length,0)?H(e):U())}function Lf(e,t,n,r){return If(e,t,n,r)}function Rf(e,t,n){let r=Y_(e,q_([],[]),n),i=Nf(r);return Lf(e,i,Mf(t,i),Mf(r,i))}function zf(e,t,n){let r=Df(n);return Tf(r)?Af(e,r.name,t,r.type):b(t,(t,r)=>W(K(e,t,n),e=>zf(e,r,n),()=>U()),()=>H(e))}function Bf(e,t,n){let r=Y_(e,q_([],[]),t);return I(n)?Rf(e,r,n.items):D(n)?zf(e,r,n.items):G(e,Ur(r),n)}function Vf(e,t,n){return ca(n)||oa(n)?H(e):G(e,t,n)}function Hf(e,t,n){return b(n,(n,r)=>W(K(e,t,n),e=>H(e),()=>Hf(e,t,r)),()=>U())}function Uf(e,t,n){return b(t,(t,r)=>W(Hf(e,t,n),e=>Uf(e,r,n),()=>U()),()=>H(e))}function Wf(e,t,n){let r=Df(n);return Tf(r)?Af(e,r.name,t,r.type):F(n)?Uf(e,t,n.anyOf):Uf(e,t,[n])}function Gf(e,t,n){return Wt(n)?G(e,t,n):Tt(n)||Lt(n)?H(e):U()}function Kf(e,t,n){return ca(n)?H(e):G(e,t,n)}function K(e,t,n){return Tt(t)?Id(e,t,n):D(t)?Rd(e,t,t.items,n):Xn(t)?zd(e,t,n):Qn(t)?Bd(e,t,n):ht(t)?Kd(e,t.parameters,t.instanceType,n):Kt(t)?qd(e,t.if,t.then,t.else,n):Zt(t)?Jd(e,t.enum,n):vt(t)?Yd(e,t.parameters,t.returnType,n):rr(t)?Xd(e,t,n):A(t)?Zd(e,t.allOf,n):N(t)?rf(e,t,n):Dt(t)?af(e,t,n):fr(t)?of(e,t,n):hr(t)?sf(e,t,n):k(t)?_f(e,t.properties,n):ea(t)?bf(e,Zi(t),$i(t),n):xr(t)?xf(e,t,n):_r(t)?Sf(e,t,n):Sd(t)?Cf(e,t.pattern,n):I(t)?Bf(e,t.items,n):oa(t)?Vf(e,t,n):F(t)?Wf(e,t.anyOf,n):Lt(t)?Gf(e,t,n):ca(t)?Kf(e,t,n):U()}function qf(e,t){return Si([...e,O(t)])}function Jf(e,t,n){return q(e)?w(qf(e,t),{},n):Xf(e,t,n)}function Yf(e,t,n,r,i){return Jf(X_(e,t,n),J_(e,t,r),i)}function Xf(e,t,n={}){return E(`Interface`,[e,t],n)}function Zf(e){return it(e)&&x(e,`action`)&&v(e.action,`Interface`)}function Qf(e,t,n={}){return Jf(e,t,n)}function $f(e,t,n){return e.includes(n)?!0:np([...e,n],t,t[n])}function ep(e,t,n){return tp(e,t,Pt(n))}function tp(e,t,n){return b(n,(n,r)=>np(e,t,n)?!0:tp(e,t,r),()=>!1)}function np(e,t,n){return xt(n)?$f(e,t,n.$ref):D(n)?np(e,t,n.items):ht(n)?tp(e,t,[...n.parameters,n.instanceType]):vt(n)?tp(e,t,[...n.parameters,n.returnType]):Zf(n)?ep(e,t,n.parameters[1]):A(n)?tp(e,t,n.allOf):k(n)?ep(e,t,n.properties):F(n)?tp(e,t,n.anyOf):I(n)?tp(e,t,n.items):ea(n)?np(e,t,$i(n)):!1}function rp(e,t,n){return np(e,t,n)}function ip(e,t){return t.reduce((t,n)=>rp([n],e,e[n])?[...t,n]:t,[])}function ap(e){return ip(e,Nt(e))}function op(e,t,n){return n.includes(t)?n:t in e?lp(e,e[t],[...n,t]):en()}function sp(e,t,n){return cp(e,Pt(t),n)}function cp(e,t,n){return t.reduce((t,n)=>lp(e,n,t),n)}function lp(e,t,n){return xt(t)?op(e,t.$ref,n):D(t)?lp(e,t.items,n):ht(t)?cp(e,[...t.parameters,t.instanceType],n):vt(t)?cp(e,[...t.parameters,t.returnType],n):Zf(t)?sp(e,t.parameters[1],n):A(t)?cp(e,t.allOf,n):k(t)?sp(e,t.properties,n):F(t)?cp(e,t.anyOf,n):I(t)?cp(e,t.items,n):ea(t)?lp(e,$i(t),n):n}function up(e,t,n){return lp(e,n,[t])}function dp(e){return wt()}function fp(e){return S(e).reduce((t,n)=>({...t,[n]:mp(e[n])}),{})}function pp(e){return e.reduce((e,t)=>[...e,mp(t)],[])}function mp(e){return xt(e)?dp(e.$ref):D(e)?ft(mp(e.items),pt(e)):ht(e)?mt(pp(e.parameters),mp(e.instanceType)):vt(e)?_t(pp(e.parameters),mp(e.returnType)):A(e)?Qt(pp(e.allOf)):k(e)?O(fp(e.properties)):ea(e)?Ji(Qi(e),mp($i(e))):F(e)?P(pp(e.anyOf)):I(e)?Ur(pp(e.items)):e}function hp(e,t){return t in e?mp(e[t]):It()}function gp(e){return hp(e.$defs,e.$ref)}function _p(e,t,n){let r=X_(e,q_([],[]),t),i=J_({},q_([],[]),n);return Si([...r,O(i)])}function vp(e,t){return S(e).filter(e=>t.includes(e)).reduce((t,n)=>{let r=e[n],i=Zf(r)?_p(e,r.parameters[0],r.parameters[1]):r;return{...t,[n]:i}},{})}function yp(e,t,n){return Rt(vp(e,up(e,t,n)),t)}function bp(e,t){return t in e?xt(e[t])?bp(e,e[t].$ref):e[t]:Et()}function xp(e,t){return bp(e,t)}function Sp(e){return zt(e)?gp(e):Vt(e)?It():e}function Cp(e,t,n){return K(e,Sp(t),Sp(n))}function wp(e,t){let n=[Lt(e)?U():Cp({},e,t),Lt(e)?H({}):Cp({},t,e)];return Od(n[0])&&Od(n[1])?`equal`:Od(n[0])&&Dd(n[1])?`left-inside`:Dd(n[0])&&Od(n[1])?`right-inside`:`disjoint`}function Tp(e,t){return t.filter(t=>wp(e,t)!==`right-inside`)}function Ep(e,t){return v(t.some(t=>{let n=wp(e,t);return v(n,`left-inside`)||v(n,`equal`)}),!1)}function Dp(e,t){let n=Ti(e);return Tt(n)?[n]:Ep(n,t)?[...Tp(n,t),n]:t}function Op(e){return e.reduce((e,t)=>k(t)?[...e,t]:Dt(t)?e:Dp(t,e),[])}function kp(e){return Fi(Op(e))}function Ap(e,t){return w(Ti(e),{},t)}function jp(e,t,n,r){return Ap(J(e,t,n),r)}function Mp(e,t=[]){return at(e)&&v(e.action,`Conditional`)?xt(e.parameters[0])?Mp(e.parameters[2],Mp(e.parameters[3],[...t,e.parameters[0].$ref])):Mp(e.parameters[2],Mp(e.parameters[3],t)):at(e)&&v(e.action,`Mapped`)&&at(e.parameters[1])&&v(e.parameters[1].action,`KeyOf`)&&xt(e.parameters[1].parameters[0])?[...t,e.parameters[1].parameters[0].$ref]:t}function Np(e,t){return e.reduce((e,n)=>[...e,t.includes(n.name)],[])}function Pp(e,t,n=[]){return b(e,(e,r)=>b(t,(t,i)=>Pp(r,i,[...n,[t,e]]),()=>n),()=>n)}function Fp(e){return F(e)?[...e.anyOf]:[e]}function Ip(e,t){return e.reduce((e,n)=>[...e,[...n,t]],[])}function Lp(e,t){return t.reduce((t,n)=>[...t,...Ip(e,n)],[])}function Rp(e){return e.reduce((e,t)=>v(t[0],!0)?Lp(e,Fp(t[1])):Lp(e,[t[1]]),[[]])}function zp(e,t,n){let r=Pp(t,Np(e,Mp(n)));return at(n)&&v(n.action,`Conditional`)||at(n)&&v(n.action,`Mapped`)?Rp(r):[t]}function Bp(){return[`(not-resolvable)`,Et()]}function Vp(){return[`(not-generic)`,Et()]}function Hp(e,t,n){return[e,St(t,n)]}function Up(e,t,n){return t in e?Wp(e,t,e[t],n):Bp()}function Wp(e,t,n,r){return Ct(n)?Hp(t,n.parameters,n.expression):xt(n)?Up(e,n.$ref,r):Vp()}function Gp(e,t,n){return Wp(e,`(anonymous)`,t,n)}function Kp(e,t,n){if(Wt(t)||am(t)||Od(Cp({},t,n)))return;let r={parameter:e,expect:n,actual:t};throw Error(`Argument for parameter ${e} does not satisfy constraint`,{cause:r})}function qp(e,t,n,i,a){let o=J(e,t,a);return Kp(n,o,i),r(e,{[n]:o})}function Jp(e,t,n,r,i){let a=J(e,t,n.extends),o=J(e,t,n.equals);return b(i,(i,o)=>Yp(qp(e,t,n.name,a,i),t,r,o),()=>Yp(qp(e,t,n.name,a,o),t,r,[]))}function Yp(e,t,n,r){return b(n,(n,i)=>Jp(e,t,n,i,r),()=>e)}function Xp(e,t,n,r){return Yp(e,t,n,r)}function Zp(e){return pe(e.callstack.length,0)?e.callstack[e.callstack.length-1]:``}function Qp(e,t){return v(Zp(e),t)}function $p(e,t,n,r,i,a){let o=Xp(e,t,r,a),s=J(o,q_([...t.callstack,n.$ref],t.visited),i);return J(o,q_([],[]),s)}function em(e,t,n,r,i,a){return a.reduce((a,o)=>[...a,$p(e,t,n,r,i,o)],[])}function tm(e,t,n,r,i,a){let o=em(e,t,n,r,i,zp(r,a,i));return v(o.length,1)?o[0]:wi(o)}function nm(e,t,n,r){let i=X_(e,t,r),a=Gp(e,n,r),o=a[0],s=a[1];return Ct(s)?Qp(t,o)?rm(bt(o),i):tm(e,t,bt(o),s.parameters,s.expression,i):rm(n,i)}function rm(e,t){return C({"~kind":`Call`},{type:`call`,target:e,arguments:t},{})}function im(e,t){return nm({},q_([],[]),e,t)}function am(e){return T(e,`Call`)}function om(e){return rt(e,[`~immutable`])}function sm(e,t){return w(om(e),{},t)}function cm(e,t,n,r){return sm(J(e,t,n),r)}function lm(e,t){return e(t)}function um(e,t){return g(t)?M(lm(e,t)):M(t)}function dm(e,t){return pm(e,Ci(t))}function fm(e,t){return P(t.map(t=>pm(e,t)))}function pm(e,t){return N(t)?um(e,t.const):Sd(t)?dm(e,t.pattern):F(t)?fm(e,t.anyOf):t}function mm(e,t={}){return E(`Capitalize`,[e],t)}function hm(e,t={}){return Em(e,t)}function gm(e,t={}){return E(`Lowercase`,[e],t)}function _m(e,t={}){return Dm(e,t)}function vm(e,t={}){return E(`Uncapitalize`,[e],t)}function ym(e,t={}){return Om(e,t)}function bm(e,t={}){return E(`Uppercase`,[e],t)}function xm(e,t={}){return km(e,t)}const Sm=e=>e[0].toUpperCase()+e.slice(1),Cm=e=>e.toLowerCase(),wm=e=>e[0].toLowerCase()+e.slice(1),Tm=e=>e.toUpperCase();function Em(e,t){return q([e])?w(pm(Sm,e),{},t):mm(e,t)}function Dm(e,t){return q([e])?w(pm(Cm,e),{},t):gm(e,t)}function Om(e,t){return q([e])?w(pm(wm,e),{},t):vm(e,t)}function km(e,t){return q([e])?w(pm(Tm,e),{},t):bm(e,t)}function Am(e,t,n,r){return Em(J(e,t,n),r)}function jm(e,t,n,r){return Dm(J(e,t,n),r)}function Mm(e,t,n,r){return Om(J(e,t,n),r)}function Nm(e,t,n,r){return km(J(e,t,n),r)}function Pm(e,t,n,r,i={}){return E(`Conditional`,[e,t,n,r],i)}function Fm(e,t,n,r,i={}){return Lm({},q_([],[]),e,t,n,r,i)}function Im(e,t,n,r,i,a){let o=Cp(e,n,r);return Td(o)?P([J(o.inferred,t,i),J(e,t,a)]):Ed(o)?J(o.inferred,t,i):J(e,t,a)}function Lm(e,t,n,r,i,a,o){return q([n,r])?w(Im(e,t,n,r,i,a),{},o):Pm(n,r,i,a,o)}function Rm(e,t,n,r,i,a,o){return Lm(e,t,J(e,t,n),J(e,t,r),i,a,o)}function zm(e,t={}){return E(`ConstructorParameters`,[e],t)}function Bm(e,t={}){return Hm(e,t)}function Vm(e){let t=ht(e)?e.parameters:[];return Ur(Y_({},q_([],[]),t))}function Hm(e,t){return q([e])?w(Vm(e),{},t):zm(e,t)}function Um(e,t,n,r){return Hm(J(e,t,n),r)}function Wm(e,t,n={}){return E(`Exclude`,[e,t],n)}function Gm(e,t,n={}){return Km(e,t,n)}function Km(e,t,n){return q([e,t])?w(yi(e,t),{},n):Wm(e,t,n)}function qm(e,t,n,r,i){return Km(J(e,t,n),J(e,t,r),i)}function Jm(e,t,n={}){return E(`Extract`,[e,t],n)}function Ym(e,t,n={}){return $m(e,t,n)}function Xm(e,t){return Od(Cp({},e,t))?[e]:[]}function Zm(e,t){return e.reduce((e,n)=>[...e,...Xm(n,t)],[])}function Qm(e,t){let n=Ti(e);return wi(Zm(F(n)?n.anyOf:[n],t))}function $m(e,t,n){return q([e,t])?w(Qm(e,t),{},n):Jm(e,t,n)}function eh(e,t,n,r,i){return $m(J(e,t,n),J(e,t,r),i)}function th(e){return e.reduce((e,t)=>or(t)?[...e,M(t)]:e,[])}function nh(e){return P(th(e))}function rh(e,t,n={}){return E(`Index`,[e,t],n)}function ih(e,t,n={}){return Xh(e,d(t)?nh(t):t,n)}function ah(e,t){return mh(xp(e,t))}function oh(e,t,n){return mh(bi(e,t,n))}function sh(e,t){let n=S(e).filter(e=>!x(t,e)),i=S(t).filter(t=>!x(e,t)),a=S(e).filter(e=>x(t,e)),o=n.reduce((t,n)=>({...t,[n]:e[n]}),{}),s=i.reduce((e,n)=>({...e,[n]:t[n]}),{}),c=a.reduce((n,r)=>({...n,[r]:Si([e[r],t[r]])}),{});return r(r(o,s),c)}function ch(e){return e.reduce((e,t)=>sh(e,mh(t)),{})}function lh(e){return e}function uh(e){return mh(ni(Ur(e)))}function dh(e,t){return S(e).filter(e=>e in t).reduce((n,r)=>({...n,[r]:wi([e[r],t[r]])}),{})}function fh(e,t){return b(e,(e,n)=>fh(n,dh(t,mh(e))),()=>t)}function ph(e){return b(e,(e,t)=>fh(t,mh(e)),()=>en())}function mh(e){return zt(e)?ah(e.$defs,e.$ref):Kt(e)?oh(e.if,e.then,e.else):A(e)?ch(e.allOf):F(e)?ph(e.anyOf):I(e)?uh(e.items):k(e)?lh(e.properties):{}}function hh(e){return O(mh(e))}const gh=RegExp(`^(?:0|[1-9][0-9]*)$`);function _h(e){let t=`${e}`;return gh.test(t)?parseInt(t):e}function vh(e){return M(_h(e))}function yh(e){return e.map(e=>bh(e))}function bh(e){return A(e)?Qt(yh(e.allOf)):F(e)?P(yh(e.anyOf)):N(e)?vh(e.const):e}function xh(e,t){return Od(Cp({},bh(t),mr()))?e:N(t)&&v(t.const,`length`)?mr():Et()}function Sh(e,t){return kh(xp(e,t))}function Ch(e,t,n){return kh(bi(e,t,n))}function wh(e){return kh(xi(e))}function Th(e){return kh(Si(e))}function Eh(e){return[`${e}`]}function Dh(e){return kh(Ci(e))}function Oh(e){return e.reduce((e,t)=>[...e,...kh(t)],[])}function kh(e){return zt(e)?Sh(e.$defs,e.$ref):Kt(e)?Ch(e.if,e.then,e.else):Zt(e)?wh(e.enum):A(e)?Th(e.allOf):N(e)?Eh(e.const):Sd(e)?Dh(e.pattern):F(e)?Oh(e.anyOf):[]}function Ah(e){return kh(e)}function jh(e,t){return t.map(t=>Mh(e,t))}function Mh(e,t){return D(t)?ft(Mh(e,t.items)):ht(t)?mt(jh(e,t.parameters),Mh(e,t.instanceType)):vt(t)?_t(jh(e,t.parameters),Mh(e,t.returnType)):I(t)?Ur(jh(e,t.items)):F(t)?P(jh(e,t.anyOf)):A(t)?Qt(jh(e,t.allOf)):ia(t)?O(e):t}function Nh(e,t){return Mh(e,t)}function Ph(e,t){return Nh(e,t in e?e[t]:Et())}function Fh(e,t){return t.reduce((t,n)=>[...t,Ph(e,n)],[])}function Ih(e,t){return wi(Fh(e,Ah(t)))}const Lh=new RegExp(Wi);function Rh(e){return e.filter(e=>Lh.test(e))}function zh(e){return wi(Fh(e,Rh(Nt(e))))}function Bh(e,t){return hr(t)?zh(e):Ih(e,t)}function Vh(e){return M(_h(e))}function Hh(e){return e.map(e=>Uh(e))}function Uh(e){return A(e)?Qt(Hh(e.allOf)):F(e)?P(Hh(e.anyOf)):N(e)?Vh(e.const):e}function Wh(e,t){return e.reduceRight((e,n,r)=>Od(Cp({},M(r),t))?[n,...e]:e,[])}function Gh(e,t){return Ei(Wh(e,Uh(t)))}function Kh(e){return Ei(e)}function qh(e,t){return N(t)&&v(t.const,`length`)?M(e.length):hr(t)||rr(t)?Kh(e):Gh(e,t)}function Jh(e,t){return D(e)?xh(e.items,t):k(e)?Bh(e.properties,t):I(e)?qh(e.items,t):Et()}function Yh(e){return zt(e)||Kt(e)||A(e)||F(e)?hh(e):e}function Xh(e,t,n){return q([e,t])?w(Jh(Yh(e),t),{},n):rh(e,t,n)}function Zh(e,t,n,r,i){return Xh(J(e,t,n),J(e,t,r),i)}function Qh(e,t={}){return E(`InstanceType`,[e],t)}function $h(e,t={}){return tg(e,t)}function eg(e){return ht(e)?e.instanceType:Et()}function tg(e,t){return q([e])?w(eg(e),{},t):Qh(e,t)}function ng(e,t,n,r={}){return tg(J(e,t,n),r)}function rg(e,t={}){return E(`KeyOf`,[e],t)}function ig(e,t={}){return pg(e,t)}function ag(){return P([mr(),br(),gr()])}function og(e){return mr()}function sg(e){return e.reduce((e,t)=>or(t)?[...e,M(_h(t))]:en(),[])}function cg(e){return Ei(sg(S(e)))}function lg(e){return Qi(e)}function ug(e){return Ei(e.map((e,t)=>M(t)))}function dg(e){return Tt(e)?ag():D(e)?og(e.items):k(e)?cg(e.properties):ea(e)?lg(e):I(e)?ug(e.items):Et()}function fg(e){return zt(e)||Kt(e)||A(e)||F(e)?hh(e):e}function pg(e,t){return q([e])?w(dg(fg(e)),{},t):rg(e,t)}function mg(e,t,n,r){return pg(J(e,t,n),r)}function hg(e,t,n,r,i={}){return E(`Mapped`,[e,t,n,r],i)}function gg(e,t,n,r,i={}){return Og({},q_([],[]),e,t,n,r,i)}function _g(e){return xg(Ci(e))}function vg(e){return e.reduce((e,t)=>[...e,...xg(t)],[])}function yg(e){return xg(xi(e))}function bg(e){return m(e)?[M(`${e}`)]:[M(e)]}function xg(e){return Zt(e)?yg(e.enum):N(e)?bg(e.const):Sd(e)?_g(e.pattern):F(e)?vg(e.anyOf):[e]}function Sg(e){return xg(e)}function Cg(e){return Sd(e)?Ci(e.pattern):e}function wg(e,t,n,i,a,o){let s=r(e,{[n.name]:i}),c=Cg(J(s,t,a)),l=J(s,t,o);return lr(c)||ur(c)?{[c.const]:l}:{}}function Tg(e,t,n,r,i,a){return r.reduce((r,o)=>[...r,wg(e,t,n,o,i,a)],[])}function Eg(e){return e.reduce((e,t)=>[...e,O(t)],[])}function Dg(e,t,n,r,i,a){return Si(Eg(Tg(e,t,n,Sg(r),i,a)))}function Og(e,t,n,r,i,a,o){return q([r])?w(Dg(e,t,n,r,i,a),{},o):hg(n,r,i,a,o)}function kg(e,t,n,r,i,a,o){return Og(e,t,n,J(e,t,r),i,a,o)}function Ag(e,t,n){let i=r(e,t);return S(t).filter(e=>n.includes(e)).reduce((e,n)=>({...e,[n]:yp(i,n,t[n])}),{})}function jg(e,t,n){let i=r(e,t);return S(t).filter(e=>!n.includes(e)).reduce((e,n)=>({...e,[n]:J(i,q_([],[]),t[n])}),{})}function Mg(e,t,n){let r=ap(t),i=Ag(e,t,r),a=jg(e,t,r);return w({...i,...a},{},n)}function Ng(e,t,n,r){return Mg(e,n,r)}function Pg(e,t={}){return E(`NonNullable`,[e],t)}function Fg(e,t={}){return Lg(e,t)}function Ig(e){return Km(e,P([dr(),aa()]),{})}function Lg(e,t){return q([e])?w(Ig(e),{},t):Pg(e,t)}function Rg(e,t,n,r){return Lg(J(e,t,n),r)}function zg(e,t,n={}){return E(`Omit`,[e,t],n)}function Bg(e,t,n={}){return Wg(e,d(t)?nh(t):t,n)}function Vg(e){let t=hh(e);return k(t)?t.properties:en()}function Hg(e,t){return S(e).reduce((n,r)=>t.includes(r)?n:{...n,[r]:e[r]},{})}function Ug(e,t){return O(Hg(Vg(e),Ah(t)))}function Wg(e,t,n){return q([e,t])?w(Ug(e,t),{},n):zg(e,t,n)}function Gg(e,t,n,r,i){return Wg(J(e,t,n),J(e,t,r),i)}function Kg(e,t={}){return E(`Parameters`,[e],t)}function qg(e,t={}){return Yg(e,t)}function Jg(e){let t=vt(e)?e.parameters:[];return Ur(Y_({},q_([],[]),t))}function Yg(e,t){return q([e])?w(Jg(e),{},t):Kg(e,t)}function Xg(e,t,n,r){return Yg(J(e,t,n),r)}function Zg(e,t={}){return E(`Partial`,[e],t)}function Qg(e,t={}){return a_(e,t)}function $g(e,t){let n=i_(xp(e,t));return Rt(r(e,{[t]:n}),t)}function e_(e,t,n){return i_(bi(e,t,n))}function t_(e){return i_(Si(e))}function n_(e){return P(e.map(e=>i_(e)))}function r_(e){return O(S(e).reduce((t,n)=>({...t,[n]:kt(e[n])}),{}))}function i_(e){return zt(e)?$g(e.$defs,e.$ref):Kt(e)?e_(e.if,e.then,e.else):A(e)?t_(e.allOf):F(e)?n_(e.anyOf):k(e)?r_(e.properties):O({})}function a_(e,t){return q([e])?w(i_(e),{},t):Zg(e,t)}function o_(e,t,n,r){return a_(J(e,t,n),r)}function s_(e,t,n={}){return E(`Pick`,[e,t],n)}function c_(e,t,n={}){return d_(e,d(t)?nh(t):t,n)}function l_(e,t){return S(e).reduce((n,i)=>t.includes(i)?r(n,{[i]:e[i]}):n,{})}function u_(e,t){return O(l_(Vg(e),Ah(t)))}function d_(e,t,n){return q([e,t])?w(u_(e,t),{},n):s_(e,t,n)}function f_(e,t,n,r,i){return d_(J(e,t,n),J(e,t,r),i)}function p_(e,t={}){return E(`ReadonlyObject`,[e],t)}function m_(e,t={}){return C_(e,t)}function h_(e){return av(ft(e))}function g_(e,t){let n=S_(xp(e,t));return Rt(r(e,{[t]:n}),t)}function __(e,t,n){return S_(bi(e,t,n))}function v_(e){return S_(Si(e))}function y_(e){return O(S(e).reduce((t,n)=>({...t,[n]:Hn(e[n])}),{}))}function b_(e){return av(Ur(e))}function x_(e){return P(e.map(e=>S_(e)))}function S_(e){return D(e)?h_(e.items):zt(e)?g_(e.$defs,e.$ref):Kt(e)?__(e.if,e.then,e.else):A(e)?v_(e.allOf):k(e)?y_(e.properties):I(e)?b_(e.items):F(e)?x_(e.anyOf):e}function C_(e,t){return q([e])?w(S_(e),{},t):p_(e)}function w_(e,t,n,r){return C_(J(e,t,n),r)}function T_(e,t,n,r){return t.visited.includes(r)?n:r in e?J(e,q_(t.callstack,[...t.visited,r]),e[r]):n}function E_(e,t){let n=j_(xp(e,t));return Rt(r(e,{[t]:n}),t)}function D_(e,t,n){return j_(bi(e,t,n))}function O_(e){return j_(Si(e))}function k_(e){return P(e.map(e=>j_(e)))}function A_(e){return O(S(e).reduce((t,n)=>({...t,[n]:ei(e[n])}),{}))}function j_(e){return zt(e)?E_(e.$defs,e.$ref):Kt(e)?D_(e.if,e.then,e.else):A(e)?O_(e.allOf):F(e)?k_(e.anyOf):k(e)?A_(e.properties):O({})}function M_(e,t={}){return E(`Required`,[e],t)}function N_(e,t={}){return P_(e,t)}function P_(e,t){return q([e])?w(j_(e),{},t):M_(e,t)}function F_(e,t,n,r){return P_(J(e,t,n),r)}function I_(e,t={}){return E(`ReturnType`,[e],t)}function L_(e,t={}){return z_(e,t)}function R_(e){return vt(e)?e.returnType:Et()}function z_(e,t){return q([e])?w(R_(e),{},t):I_(e,t)}function B_(e,t,n,r={}){return z_(J(e,t,n),r)}function V_(e,t){return E(`With`,[e,t],{})}function H_(e,t){return U_(e,t)}function U_(e,t){return q([e])?w(e,{},t):V_(e,t)}function W_(e,t,n,r){return U_(J(e,t,n),r)}function G_(e){return na(e)?I(e.items)?K_(e.items.items):Wt(e.items)||xt(e.items)?[e]:[Et()]:[e]}function K_(e){return e.reduce((e,t)=>[...e,...G_(t)],[])}function q_(e,t){return{callstack:e,visited:t}}function q(e){return b(e,(e,t)=>xt(e)?!1:q(t),()=>!0)}function J_(e,t,n){return S(n).reduce((r,i)=>({...r,[i]:J(e,t,n[i])}),{})}function Y_(e,t,n){return K_(X_(e,t,n))}function X_(e,t,n){return n.map(n=>J(e,t,n))}function Z_(e,t){let n=jt(e)?ut(t,{}):t,r=Wn(e)?st(n,{}):n;return Bn(e)?nv(r,{}):r}function Q_(e,t,n,r,i){return v(n,`AddImmutable`)?rv(e,t,r[0],i):v(n,`RemoveImmutable`)?cm(e,t,r[0],i):v(n,`AddReadonly`)?ct(e,t,r[0],i):v(n,`RemoveReadonly`)?qr(e,t,r[0],i):v(n,`AddOptional`)?dt(e,t,r[0],i):v(n,`RemoveOptional`)?Qr(e,t,r[0],i):v(n,`Capitalize`)?Am(e,t,r[0],i):v(n,`Conditional`)?Rm(e,t,r[0],r[1],r[2],r[3],i):v(n,`ConstructorParameters`)?Um(e,t,r[0],i):v(n,`Evaluate`)?jp(e,t,r[0],i):v(n,`Exclude`)?qm(e,t,r[0],r[1],i):v(n,`Extract`)?eh(e,t,r[0],r[1],i):v(n,`Index`)?Zh(e,t,r[0],r[1],i):v(n,`InstanceType`)?ng(e,t,r[0],i):v(n,`Interface`)?Yf(e,t,r[0],r[1],i):v(n,`KeyOf`)?mg(e,t,r[0],i):v(n,`Lowercase`)?jm(e,t,r[0],i):v(n,`Mapped`)?kg(e,t,r[0],r[1],r[2],r[3],i):v(n,`Module`)?Ng(e,t,r[0],i):v(n,`NonNullable`)?Rg(e,t,r[0],i):v(n,`Pick`)?f_(e,t,r[0],r[1],i):v(n,`Parameters`)?Xg(e,t,r[0],i):v(n,`Partial`)?o_(e,t,r[0],i):v(n,`Omit`)?Gg(e,t,r[0],r[1],i):v(n,`ReadonlyObject`)?w_(e,t,r[0],i):v(n,`Record`)?Ui(e,t,r[0],r[1],i):v(n,`Required`)?F_(e,t,r[0],i):v(n,`ReturnType`)?B_(e,t,r[0],i):v(n,`TemplateLiteral`)?gd(e,t,r[0],i):v(n,`Uncapitalize`)?Mm(e,t,r[0],i):v(n,`Uppercase`)?Nm(e,t,r[0],i):v(n,`With`)?W_(e,t,r[0],r[1]):E(n,r,i)}function $_(e,t,n){return Z_(n,xt(n)?T_(e,t,n,n.$ref):D(n)?ft(J(e,t,n.items),pt(n)):am(n)?nm(e,t,n.target,n.arguments):ht(n)?mt(X_(e,t,n.parameters),J(e,t,n.instanceType),gt(n)):vt(n)?_t(X_(e,t,n.parameters),J(e,t,n.returnType),yt(n)):Kt(n)?Gt(J(e,t,n.if),J(e,t,n.then),J(e,t,n.else),qt(n)):A(n)?Qt(X_(e,t,n.allOf),$t(n)):k(n)?O(J_(e,t,n.properties),Ft(n)):ea(n)?Yi(Zi(n),J(e,t,$i(n))):na(n)?ta(J(e,t,n.items)):I(n)?Ur(Y_(e,t,n.items),Wr(n)):F(n)?P(X_(e,t,n.anyOf),Sr(n)):n)}function J(e,t,n){return at(n)?Q_(e,t,n.action,n.parameters,n.options):$_(e,t,n)}function ev(e,t){return J(e,q_([],[]),t)}function tv(e){return w(e,{"~immutable":!0},{})}function nv(e,t){return w(tv(e),{},t)}function rv(e,t,n,r){return nv(J(e,t,n),r)}function iv(e,t={}){return E(`AddImmutable`,[e],t)}function av(e,t={}){return nv(e,t)}function ov(e,t={}){return E(`Evaluate`,[e],t)}function sv(e,t={}){return Ap(e,t)}function cv(e,t={}){return E(`Module`,[e],t)}function lv(e,t={}){return Ng({},q_([],[]),e,t)}function uv(e,t){let n=wp(e,t);return v(n,`right-inside`)?1:+!!v(n,`disjoint`)}function dv(e,t,n=[]){return b(t,(r,i)=>v(uv(e,r),1)?dv(e,i,[...n,r]):[...n,e,...t],()=>[...n,e])}function fv(e,t=[]){return b(e,(e,n)=>fv(n,dv(e,t)),()=>t)}function pv(e){return fv(e)}function mv(...e){let[t,n,r]=Ht(e,{2:(e,t)=>g(e)?[{},e,t]:[e,t,{}],3:(e,t,n)=>[e,t,n],1:e=>[{},e,{}]}),i=Zu(n);return w(d(i)&&v(i.length,2)?J(t,q_([],[]),i[0]):Et(),{},r)}var Y=t({Any:()=>wt,Array:()=>ft,BigInt:()=>Yn,Boolean:()=>Zn,Call:()=>im,Capitalize:()=>hm,Codec:()=>Fn,Conditional:()=>Fm,Constructor:()=>mt,ConstructorParameters:()=>Bm,Cyclic:()=>Rt,Decode:()=>In,DecodeBuilder:()=>Pn,Dependent:()=>Gt,Encode:()=>Ln,EncodeBuilder:()=>Nn,Enum:()=>Xt,Evaluate:()=>sv,Exclude:()=>Gm,Extends:()=>Cp,ExtendsResult:()=>Cd,Extract:()=>Ym,Function:()=>_t,Generic:()=>St,Identifier:()=>$n,Immutable:()=>zn,Index:()=>ih,Infer:()=>Ut,InstanceType:()=>$h,Instantiate:()=>ev,Integer:()=>nr,Interface:()=>Qf,Intersect:()=>Qt,IsAny:()=>Tt,IsArray:()=>D,IsBigInt:()=>Xn,IsBoolean:()=>Qn,IsCall:()=>am,IsCodec:()=>Rn,IsConstructor:()=>ht,IsCyclic:()=>zt,IsDependent:()=>Kt,IsEnum:()=>Zt,IsFunction:()=>vt,IsGeneric:()=>Ct,IsIdentifier:()=>er,IsImmutable:()=>Bn,IsInfer:()=>Wt,IsInteger:()=>rr,IsIntersect:()=>A,IsKind:()=>T,IsLiteral:()=>N,IsNever:()=>Dt,IsNull:()=>fr,IsNumber:()=>hr,IsObject:()=>k,IsOptional:()=>jt,IsParameter:()=>yr,IsReadonly:()=>Wn,IsRecord:()=>ea,IsRef:()=>xt,IsRefine:()=>Jn,IsRest:()=>na,IsSchema:()=>it,IsString:()=>xr,IsSymbol:()=>_r,IsTemplateLiteral:()=>Sd,IsThis:()=>ia,IsTuple:()=>I,IsUndefined:()=>oa,IsUnion:()=>F,IsUnknown:()=>Lt,IsUnsafe:()=>Vt,IsVoid:()=>ca,KeyOf:()=>ig,Literal:()=>M,Lowercase:()=>_m,Mapped:()=>gg,Module:()=>lv,Never:()=>Et,NonNullable:()=>Fg,Null:()=>dr,Number:()=>mr,Object:()=>O,Omit:()=>Bg,Optional:()=>At,Parameter:()=>vr,Parameters:()=>qg,Partial:()=>Qg,Pick:()=>c_,Readonly:()=>Un,ReadonlyObject:()=>m_,Record:()=>Ji,RecordKey:()=>Qi,RecordPattern:()=>Zi,RecordValue:()=>$i,Ref:()=>bt,Refine:()=>Kn,Required:()=>N_,Rest:()=>ta,ReturnType:()=>L_,Script:()=>mv,String:()=>br,Symbol:()=>gr,TemplateLiteral:()=>xd,This:()=>ra,Tuple:()=>Ur,Uncapitalize:()=>ym,Undefined:()=>aa,Union:()=>P,Unknown:()=>It,Unsafe:()=>Bt,Uppercase:()=>xm,Void:()=>sa,With:()=>H_});function hv(e){return x(e,`~refine`)&&d(e[`~refine`])&&y(e[`~refine`],0,e=>h(e)&&x(e,`check`)&&x(e,`error`)&&ce(e.check)&&ce(e.error))}function gv(e){return h(e)&&!d(e)}function _v(e){return p(e)}function X(e){return gv(e)||_v(e)}function vv(e){return x(e,`additionalItems`)&&X(e.additionalItems)}function yv(e){return x(e,`additionalProperties`)&&X(e.additionalProperties)}function bv(e){return x(e,`allOf`)&&d(e.allOf)&&e.allOf.every(e=>X(e))}function xv(e){return x(e,`$anchor`)&&g(e.$anchor)}function Sv(e){return x(e,`anyOf`)&&d(e.anyOf)&&e.anyOf.every(e=>X(e))}function Cv(e){return x(e,`const`)}function wv(e){return x(e,`contains`)&&X(e.contains)}function Tv(e){return x(e,`default`)}function Ev(e){return x(e,`dependencies`)&&h(e.dependencies)&&Object.values(e.dependencies).every(e=>X(e)||d(e)&&e.every(e=>g(e)))}function Dv(e){return x(e,`dependentRequired`)&&h(e.dependentRequired)&&Object.values(e.dependentRequired).every(e=>d(e)&&e.every(e=>g(e)))}function Ov(e){return x(e,`dependentSchemas`)&&h(e.dependentSchemas)&&Object.values(e.dependentSchemas).every(e=>X(e))}function kv(e){return x(e,`$dynamicAnchor`)&&g(e.$dynamicAnchor)}function Av(e){return x(e,`$dynamicRef`)&&g(e.$dynamicRef)}function jv(e){return x(e,`else`)&&X(e.else)}function Mv(e){return x(e,`enum`)&&d(e.enum)}function Nv(e){return x(e,`exclusiveMaximum`)&&(m(e.exclusiveMaximum)||f(e.exclusiveMaximum))}function Pv(e){return x(e,`exclusiveMinimum`)&&(m(e.exclusiveMinimum)||f(e.exclusiveMinimum))}function Fv(e){return x(e,`format`)&&g(e.format)}function Iv(e){return x(e,`$id`)&&g(e.$id)}function Lv(e){return x(e,`if`)&&X(e.if)}function Rv(e){return x(e,`items`)&&(X(e.items)||d(e.items)&&e.items.every(e=>X(e)))}function zv(e){return Rv(e)&&d(e.items)}function Bv(e){return x(e,`maximum`)&&(m(e.maximum)||f(e.maximum))}function Vv(e){return x(e,`maxContains`)&&m(e.maxContains)}function Hv(e){return x(e,`maxItems`)&&m(e.maxItems)}function Uv(e){return x(e,`maxLength`)&&m(e.maxLength)}function Wv(e){return x(e,`maxProperties`)&&m(e.maxProperties)}function Gv(e){return x(e,`minimum`)&&(m(e.minimum)||f(e.minimum))}function Kv(e){return x(e,`minContains`)&&m(e.minContains)}function qv(e){return x(e,`minItems`)&&m(e.minItems)}function Jv(e){return x(e,`minLength`)&&m(e.minLength)}function Yv(e){return x(e,`minProperties`)&&m(e.minProperties)}function Xv(e){return x(e,`multipleOf`)&&(m(e.multipleOf)||f(e.multipleOf))}function Zv(e){return x(e,`not`)&&X(e.not)}function Qv(e){return x(e,`oneOf`)&&d(e.oneOf)&&e.oneOf.every(e=>X(e))}function $v(e){return x(e,`pattern`)&&(g(e.pattern)||e.pattern instanceof RegExp)}function ey(e){return x(e,`patternProperties`)&&h(e.patternProperties)&&Object.values(e.patternProperties).every(e=>X(e))}function ty(e){return x(e,`prefixItems`)&&d(e.prefixItems)&&e.prefixItems.every(e=>X(e))}function ny(e){return x(e,`properties`)&&h(e.properties)&&Object.values(e.properties).every(e=>X(e))}function ry(e){return x(e,`propertyNames`)&&(h(e.propertyNames)||X(e.propertyNames))}function iy(e){return x(e,`$recursiveAnchor`)&&p(e.$recursiveAnchor)}function ay(e){return iy(e)&&v(e.$recursiveAnchor,!0)}function oy(e){return x(e,`$recursiveRef`)&&g(e.$recursiveRef)}function sy(e){return x(e,`$ref`)&&g(e.$ref)}function cy(e){return x(e,`required`)&&d(e.required)&&e.required.every(e=>g(e))}function ly(e){return x(e,`then`)&&X(e.then)}function uy(e){return x(e,`type`)&&(g(e.type)||d(e.type)&&e.type.every(e=>g(e)))}function dy(e){return x(e,`uniqueItems`)&&p(e.uniqueItems)}function fy(e){return x(e,`unevaluatedItems`)&&X(e.unevaluatedItems)}function py(e){return x(e,`unevaluatedProperties`)&&X(e.unevaluatedProperties)}var my=class{constructor(){let e=new Set,t=new Set;this.stack=[{indices:e,keys:t}]}Push(){let e=new Set,t=new Set;return this.stack.push({indices:e,keys:t}),!0}Pop(){return this.stack.pop(),!0}AddIndex(e){return this.GetIndices().add(e),!0}AddKey(e){return this.GetKeys().add(e),!0}GetIndices(){return this.stack[this.stack.length-1].indices}GetKeys(){return this.stack[this.stack.length-1].keys}Merge(e){for(let t of e)t.GetIndices().forEach(e=>this.GetIndices().add(e)),t.GetKeys().forEach(e=>this.GetKeys().add(e));return!0}},hy=class extends my{constructor(e){super(),this.callback=e}AddError(e){return this.callback(e),!1}},gy=class extends hy{constructor(){super(e=>this.errors.push(e)),this.errors=[]}AddError(e){return this.errors.push(e),!1}GetErrors(){return this.errors}};function _y(e,t,n,r){return y(n[`~refine`],0,(e,t)=>e.check(r))}function vy(e,t,n,r,i,a){return Ce(i[`~refine`],0,(e,i)=>e.check(a)||t.AddError({keyword:`~refine`,schemaPath:n,instancePath:r,params:{index:i,message:e.error(a)}}))}function yy(e){return Rv(e)&&d(e.items)}function by(e,t,n,r){return yy(n)?r.every((r,i)=>me(i,n.items.length)||ES(e,t,n.additionalItems,r)&&t.AddIndex(i)):!0}function xy(e,t,n,r,i,a){return yy(i)?a.every((a,o)=>{let s=`${n}/additionalItems`,c=`${r}/${o}`;return me(o,i.items.length)||DS(e,t,s,c,i.additionalItems,a)&&t.AddIndex(o)}):!0}function Sy(e){return`^${e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}$`}function Cy(e){let t=[];return ey(e)&&t.push(...S(e.patternProperties)),ny(e)&&t.push(...S(e.properties).map(Sy)),v(t.length,0)?`(?!)`:`(${t.join(`|`)})`}function wy(e,t,n,r){let i=new RegExp(Cy(n));return y(S(r),0,(a,o)=>i.test(a)||ES(e,t,n.additionalProperties,r[a])&&t.AddKey(a))}function Ty(e,t,n,r,i,a){let o=new RegExp(Cy(i)),s=[];return Ce(S(a),0,(c,l)=>{let u=`${n}/additionalProperties`,ee=`${r}/${c}`,te=new gy,ne=o.test(c)||DS(e,te,u,ee,i.additionalProperties,a[c])&&t.AddKey(c);return ne||s.push(c),ne})||t.AddError({keyword:`additionalProperties`,schemaPath:n,instancePath:r,params:{additionalProperties:s}})}function Ey(e,t,n,r){let i=n.allOf.reduce((t,n)=>{let i=new my;return Q(e,i,n,r)?[...t,i]:t},[]);return v(i.length,n.allOf.length)&&t.Merge(i)}function Dy(e,t,n,r,i,a){let o=[],s=i.allOf.reduce((t,i,s)=>{let c=`${n}/allOf/${s}`,l=new gy,u=OS(e,l,c,r,i,a);return u||o.push(l),u?[...t,l]:t},[]),c=v(s.length,i.allOf.length)&&t.Merge(s);return c||o.forEach(e=>e.GetErrors().forEach(e=>t.AddError(e))),c}function Oy(e,t,n,r){let i=n.anyOf.reduce((t,n)=>{let i=new my;return Q(e,i,n,r)?[...t,i]:t},[]);return pe(i.length,0)&&t.Merge(i)}function ky(e,t,n,r,i,a){let o=[],s=i.anyOf.reduce((t,i,s)=>{let c=new gy,l=OS(e,c,`${n}/anyOf/${s}`,r,i,a);return l||o.push(c),l?[...t,c]:t},[]),c=pe(s.length,0)&&t.Merge(s);return c||o.forEach(e=>e.GetErrors().forEach(e=>t.AddError(e))),c||t.AddError({keyword:`anyOf`,schemaPath:n,instancePath:r,params:{}})}function Ay(e,t,n,r){return n}function jy(e,t,n,r,i,a){return Ay(e,t,i,a)||t.AddError({keyword:`boolean`,schemaPath:n,instancePath:r,params:{}})}function My(e,t,n,r){return ye(n.const)?v(r,n.const):je(r,n.const)}function Ny(e,t,n,r,i,a){return My(e,t,i,a)||t.AddError({keyword:`const`,schemaPath:n,instancePath:r,params:{allowedValue:i.const}})}function Py(e){return!(Kv(e)&&v(e.minContains,0))}function Fy(e,t,n,r){return Py(n)?!v(r.length,0)&&r.some(r=>Q(e,t,n.contains,r)):!0}function Iy(e,t,n,r,i,a){return Fy(e,t,i,a)||t.AddError({keyword:`contains`,schemaPath:n,instancePath:r,params:{minContains:1}})}function Ly(e,t,n,r){let i=v(S(r).length,0),a=y(Ee(n.dependencies),0,([n,i])=>!x(r,n)||(d(i)?i.every(e=>x(r,e)):Q(e,t,i,r)));return i||a}function Ry(e,t,n,r,i,a){let o=v(S(a).length,0),s=Ce(Ee(i.dependencies),0,([i,o])=>{let s=`${n}/dependencies/${i}`;return!x(a,i)||(d(o)?o.every(e=>x(a,e)||t.AddError({keyword:`dependencies`,schemaPath:n,instancePath:r,params:{property:i,dependencies:o}})):OS(e,t,s,r,o,a))});return o||s}function zy(e,t,n,r){let i=v(S(r).length,0),a=y(Ee(n.dependentRequired),0,([e,t])=>!x(r,e)||t.every(e=>x(r,e)));return i||a}function By(e,t,n,r,i,a){let o=v(S(a).length,0),s=Ce(Ee(i.dependentRequired),0,([e,i])=>!x(a,e)||Ce(i,0,o=>x(a,o)||t.AddError({keyword:`dependentRequired`,schemaPath:n,instancePath:r,params:{property:e,dependencies:i}})));return o||s}function Vy(e,t,n,r){let i=v(S(r).length,0),a=y(Ee(n.dependentSchemas),0,([n,i])=>!x(r,n)||Q(e,t,i,r));return i||a}function Hy(e,t,n,r,i,a){let o=v(S(a).length,0),s=Ce(Ee(i.dependentSchemas),0,([i,o])=>{let s=`${n}/dependentSchemas/${i}`;return!x(a,i)||OS(e,t,s,r,o,a)});return o||s}function Uy(e,t,n,r){let i=e.DynamicRef(n)??!1;return X(i)&&Q(e,t,i,r)}function Wy(e,t,n,r,i,a){let o=e.DynamicRef(i)??!1;return X(o)&&OS(e,t,`#`,r,o,a)}function Gy(e,t,n,r){return n.enum.some(e=>ye(e)?v(r,e):je(r,e))}function Ky(e,t,n,r,i,a){return Gy(e,t,i,a)||t.AddError({keyword:`enum`,schemaPath:n,instancePath:r,params:{allowedValues:i.enum}})}function qy(e,t,n,r){return me(r,n.exclusiveMaximum)}function Jy(e,t,n,r,i,a){return qy(e,t,i,a)||t.AddError({keyword:`exclusiveMaximum`,schemaPath:n,instancePath:r,params:{comparison:`<`,limit:i.exclusiveMaximum}})}function Yy(e,t,n,r){return pe(r,n.exclusiveMinimum)}function Xy(e,t,n,r,i,a){return Yy(e,t,i,a)||t.AddError({keyword:`exclusiveMinimum`,schemaPath:n,instancePath:r,params:{comparison:`>`,limit:i.exclusiveMinimum}})}const Zy=[0,31,28,31,30,31,30,31,31,30,31,30,31],Qy=/^(\d\d\d\d)-(\d\d)-(\d\d)$/;function $y(e){return e%4==0&&(e%100!=0||e%400==0)}function eb(e){let t=Qy.exec(e);if(!t)return!1;let n=+t[1],r=+t[2],i=+t[3];return r>=1&&r<=12&&i>=1&&i<=(r===2&&$y(n)?29:Zy[r])}const tb=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(?:Z|([+-])(\d\d):(\d\d))?$/i;function nb(e,t=!0){let n=tb.exec(e);if(!n)return!1;let r=+n[1],i=+n[2],a=+n[3],o=n[4]===`-`?-1:1,s=+(n[5]||0),c=+(n[6]||0);if(s>23||c>59||t&&!n[4]&&e.toLowerCase().indexOf(`z`)===-1)return!1;if(r<=23&&i<=59&&a<60)return!0;let l=i-c*o,u=r-s*o-+(l<0);return(u===23||u===-1)&&(l===59||l===-1)&&a<61}function rb(e,t=!0){let n=e.split(/T/i);return n.length===2&&eb(n[0])&&nb(n[1],t)}const ib=/^P((\d+Y(\d+M(\d+D)?)?|\d+M(\d+D)?|\d+D)(T(\d+H(\d+M(\d+S)?)?|\d+M(\d+S)?|\d+S))?|T(\d+H(\d+M(\d+S)?)?|\d+M(\d+S)?|\d+S)|\d+W)$/;function ab(e){return ib.test(e)}const ob=/^(?!.*\.\.)[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i;function sb(e){return ob.test(e)}function cb(e,t,n){e=n?Math.floor(e/700):e>>1,e+=Math.floor(e/t);let r=0;for(;e>455;)e=Math.floor(e/35),r+=36;return r+Math.floor(36*e/(e+38))}function lb(e){let t=[],n=128,r=0,i=72,a=e.lastIndexOf(`-`);if(a>0)for(let n=0;n=128)throw Error(`Invalid punycode: non-basic before delimiter`);t.push(r)}let o=a<0?0:a+1;for(;o=e.length)throw Error(`Invalid punycode: unexpected end of input`);let t=e.charCodeAt(o++),n;if(t>=97&&t<=122)n=t-97;else if(t>=48&&t<=57)n=t-48+26;else if(t>=65&&t<=90)n=t-65;else throw Error(`Invalid punycode: bad digit character`);r+=n*s;let a=c<=i?1:c>=i+26?26:c-i;if(n=1632&&e<=1641}function Sb(e){return e>=1776&&e<=1785}function Cb(e){return hb.has(e)}function wb(e){if(e.length===0)return!1;let t=[...e].map(e=>e.codePointAt(0)),n=t.length;if(t[0]===45||t[n-1]===45||n>=4&&t[2]===45&&t[3]===45||pb(t[0]))return!1;let r=!1,i=!1,a=!1;for(let e=0;e=4&&e.charCodeAt(2)===45&&e.charCodeAt(3)===45)return!1;for(let t=0;t=97&&n<=122||n>=65&&n<=90||n>=48&&n<=57||n===45))return!1}return!0}function Eb(e){return e.toLowerCase().startsWith(`xn--`)}function Db(e){try{let t=e.slice(4).toLowerCase();if(t.lastIndexOf(`-`)===0)return!1;let n=lb(t);return n?wb(n):!1}catch{return!1}}function Ob(e){return e.length===0||e.length>63?!1:Eb(e)?Db(e):wb(e)}function kb(e){return e.length===0||e.length>63?!1:Eb(e)?Db(e):Tb(e)}function Ab(e){if(e.length===0||e.length>253||e.charCodeAt(e.length-1)===46)return!1;for(let t of e.split(`.`))if(!kb(t))return!1;return!0}const jb=/^(?!.*\.\.)[\p{L}\p{N}!#$%&'*+/=?^_`{|}~-]+(?:\.[\p{L}\p{N}!#$%&'*+/=?^_`{|}~-]+)*@[\p{L}\p{N}](?:[\p{L}\p{N}-]{0,61}[\p{L}\p{N}])?(?:\.[\p{L}\p{N}](?:[\p{L}\p{N}-]{0,61}[\p{L}\p{N}])?)*$/iu;function Mb(e){return jb.test(e)}function Nb(e){if(e.length===0||e.includes(` `))return!1;let t=e.normalize(`NFC`).replace(/[\u002E\u3002\uFF0E\uFF61]/g,`.`);if(t.length>253)return!1;for(let e of t.split(`.`))if(!Ob(e))return!1;return!0}function Pb(e,t,n){let r=0,i=0,a=0,o=0;for(let s=t;s255||o===48&&a>1)return!1;r++,i=0,a=0,o=0}else if(t>=48&&t<=57)a===0&&(o=t),i=i*10+(t-48),a++;else return!1}return r===3&&a>0&&i<=255&&!(o===48&&a>1)}function Fb(e){return Pb(e,0,e.length)}function Ib(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Lb(e){let t=e.length;if(t===0)return!1;let n=0,r=!1,i=0;if(e.charCodeAt(0)===58&&e.charCodeAt(1)===58){if(t===2)return!0;r=!0,i=2}for(;i4)return!1;if(n++,i===t)break;if(s!==58)return!1;if(i++,e.charCodeAt(i)===58){if(r||e.charCodeAt(i+1)===58)return!1;if(r=!0,i++,i===t)break}}return r?n<=7:n===8}function Rb(e){try{return new URL(e,`http://example.com`),!0}catch{return!1}}function zb(e){if(e.includes(` `)||e.includes(`\\`)||/[\x00-\x1F\x7F]/.test(e)||/%(?![0-9a-fA-F]{2})/.test(e))return!1;if(e===``)return!0;let t=e.indexOf(`:`);return t>0&&/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(e.substring(0,t))?Rb(e):e.match(/^([a-zA-Z][a-zA-Z0-9+\-.]*)(\/\/)/)&&t===-1?!1:Rb(e)}function Bb(e){try{return new URL(e),!0}catch{return!1}}const Vb=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i;function Hb(e){return Vb.test(e)}const Ub=/^(?:\/(?:[^~/]|~0|~1)*)*$/;function Wb(e){return Ub.test(e)}function Gb(e){if(e.length===0)return!1;try{return new RegExp(e),!0}catch{return!1}}const Kb=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;function qb(e){return Kb.test(e)}const Jb=/^(?!.*[^\x00-\x7F])(?!.*\\)(?:(?:[a-z][a-z0-9+\-.]*:)?(?:\/\/[^\s[\]{}<>^`|]*)?|[^\s[\]{}<>^`|]*)(?:\?[^\s[\]{}<>^`|]*)?(?:#[^\s[\]{}<>^`|]*)?$/i;function Yb(e){return Jb.test(e)}const Xb=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i;function Zb(e){return Xb.test(e)}function Qb(e){return e>=97&&e<=122||e>=65&&e<=90}function $b(e){return Qb(e)||e>=48&&e<=57}function ex(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function tx(e){return $b(e)||e===43||e===45||e===46}function nx(e){return $b(e)||e===45||e===46||e===95||e===126}function rx(e){return e===33||e===36||e===38||e===39||e===40||e===41||e===42||e===43||e===44||e===59||e===61}function ix(e){return nx(e)||rx(e)||e===58||e===64}function ax(e){let t=e.length;if(t===0||!Qb(e.charCodeAt(0)))return!1;let n=1;for(;n=i||!ex(e.charCodeAt(t+1))||!ex(e.charCodeAt(t+2)))return!1;t+=2}else if(!nx(n)&&!rx(n)&&n!==58)return!1}n=i+1}if(e.charCodeAt(n)===91){for(n++;n57)return!1;n++}}for(;n=t||!ex(e.charCodeAt(n+1))||!ex(e.charCodeAt(n+2)))return!1;n+=2}else if(r>127)return!1;else if(!(ix(r)||r===47||r===63||r===35))return!1;n++}return!0}const ox=/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu;function sx(e){return ox.test(e)}const cx=/^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;function lx(e){return cx.test(e)}const Z=new Map;function ux(){Z.clear()}function dx(e,t){return Z.get(e)?.(t)??!0}function fx(){ux(),Z.set(`date-time`,rb),Z.set(`date`,eb),Z.set(`duration`,ab),Z.set(`email`,sb),Z.set(`hostname`,Ab),Z.set(`idn-email`,Mb),Z.set(`idn-hostname`,Nb),Z.set(`ipv4`,Fb),Z.set(`ipv6`,Lb),Z.set(`iri-reference`,zb),Z.set(`iri`,Bb),Z.set(`json-pointer-uri-fragment`,Hb),Z.set(`json-pointer`,Wb),Z.set(`regex`,Gb),Z.set(`relative-json-pointer`,qb),Z.set(`time`,nb),Z.set(`uri-reference`,Yb),Z.set(`uri-template`,Zb),Z.set(`uri`,ax),Z.set(`url`,sx),Z.set(`uuid`,lx)}fx();function px(e,t,n,r){return dx(n.format,r)}function mx(e,t,n,r,i,a){return px(e,t,i,a)||t.AddError({keyword:`format`,schemaPath:n,instancePath:r,params:{format:i.format}})}function hx(e,t,n,r){let i=ly(n)?n.then:!0,a=jv(n)?n.else:!0;return Q(e,t,n.if,r)?Q(e,t,i,r):Q(e,t,a,r)}function gx(e,t,n,r,i,a){let o=ly(i)?i.then:!0,s=jv(i)?i.else:!0,c=new gy,l=OS(e,c,`${n}/if`,r,i.if,a)?OS(e,c,`${n}/then`,r,o,a)||t.AddError({keyword:`if`,schemaPath:n,instancePath:r,params:{failingKeyword:`then`}}):OS(e,t,`${n}/else`,r,s,a)||t.AddError({keyword:`if`,schemaPath:n,instancePath:r,params:{failingKeyword:`else`}});return l&&t.Merge([c]),l}function _x(e,t,n,r){return y(n.items,0,(n,i)=>he(r.length,i)||ES(e,t,n,r[i])&&t.AddIndex(i))}function vx(e,t,n,r,i,a){return Ce(i.items,0,(i,o)=>{let s=`${n}/items/${o}`,c=`${r}/${o}`;return he(a.length,o)||DS(e,t,s,c,i,a[o])&&t.AddIndex(o)})}function yx(e,t,n,r){return y(r,ty(n)?n.prefixItems.length:0,(r,i)=>ES(e,t,n.items,r)&&t.AddIndex(i))}function bx(e,t,n,r,i,a){return Ce(a,ty(i)?i.prefixItems.length:0,(a,o)=>DS(e,t,`${n}/items`,`${r}/${o}`,i.items,a)&&t.AddIndex(o))}function xx(e,t,n,r){return zv(n)?_x(e,t,n,r):yx(e,t,n,r)}function Sx(e,t,n,r,i,a){return zv(i)?vx(e,t,n,r,i,a):bx(e,t,n,r,i,a)}function Cx(e){return wv(e)}function wx(e,t,n,r){return Cx(n)?he(r.reduce((r,i)=>Q(e,t,n.contains,i)?++r:r,0),n.maxContains):!0}function Tx(e,t,n,r,i,a){let o=Kv(i)?i.minContains:1;return wx(e,t,i,a)||t.AddError({keyword:`contains`,schemaPath:n,instancePath:r,params:{minContains:o,maxContains:i.maxContains}})}function Ex(e,t,n,r){return he(r,n.maximum)}function Dx(e,t,n,r,i,a){return Ex(e,t,i,a)||t.AddError({keyword:`maximum`,schemaPath:n,instancePath:r,params:{comparison:`<=`,limit:i.maximum}})}function Ox(e,t,n,r){return he(r.length,n.maxItems)}function kx(e,t,n,r,i,a){return Ox(e,t,i,a)||t.AddError({keyword:`maxItems`,schemaPath:n,instancePath:r,params:{limit:i.maxItems}})}function Ax(e,t,n,r){return xe(r,n.maxLength)}function jx(e,t,n,r,i,a){return Ax(e,t,i,a)||t.AddError({keyword:`maxLength`,schemaPath:n,instancePath:r,params:{limit:i.maxLength}})}function Mx(e,t,n,r){return he(S(r).length,n.maxProperties)}function Nx(e,t,n,r,i,a){return Mx(e,t,i,a)||t.AddError({keyword:`maxProperties`,schemaPath:n,instancePath:r,params:{limit:i.maxProperties}})}function Px(e){return wv(e)}function Fx(e,t,n,r){return Px(n)?ge(r.reduce((r,i)=>Q(e,t,n.contains,i)?++r:r,0),n.minContains):!0}function Ix(e,t,n,r,i,a){return Fx(e,t,i,a)||t.AddError({keyword:`contains`,schemaPath:n,instancePath:r,params:{minContains:i.minContains}})}function Lx(e,t,n,r){return ge(r,n.minimum)}function Rx(e,t,n,r,i,a){return Lx(e,t,i,a)||t.AddError({keyword:`minimum`,schemaPath:n,instancePath:r,params:{comparison:`>=`,limit:i.minimum}})}function zx(e,t,n,r){return ge(r.length,n.minItems)}function Bx(e,t,n,r,i,a){return zx(e,t,i,a)||t.AddError({keyword:`minItems`,schemaPath:n,instancePath:r,params:{limit:i.minItems}})}function Vx(e,t,n,r){return Se(r,n.minLength)}function Hx(e,t,n,r,i,a){return Vx(e,t,i,a)||t.AddError({keyword:`minLength`,schemaPath:n,instancePath:r,params:{limit:i.minLength}})}function Ux(e,t,n,r){return ge(S(r).length,n.minProperties)}function Wx(e,t,n,r,i,a){return Ux(e,t,i,a)||t.AddError({keyword:`minProperties`,schemaPath:n,instancePath:r,params:{limit:i.minProperties}})}function Gx(e,t,n,r){return _e(r,n.multipleOf)}function Kx(e,t,n,r,i,a){return Gx(e,t,i,a)||t.AddError({keyword:`multipleOf`,schemaPath:n,instancePath:r,params:{multipleOf:i.multipleOf}})}function qx(e,t,n,r){let i=new my;return!Q(e,i,n.not,r)&&t.Merge([i])}function Jx(e,t,n,r,i,a){return qx(e,t,i,a)||t.AddError({keyword:`not`,schemaPath:n,instancePath:r,params:{}})}function Yx(e,t,n,r){let i=n.oneOf.reduce((t,n)=>{let i=new my;return Q(e,i,n,r)?[...t,i]:t},[]);return v(i.length,1)&&t.Merge(i)}function Xx(e,t,n,r,i,a){let o=[],s=[],c=i.oneOf.reduce((t,i,c)=>{let l=new gy,u=OS(e,l,`${n}/oneOf/${c}`,r,i,a);return u&&s.push(c),u||o.push(l),u?[...t,l]:t},[]),l=v(c.length,1)&&t.Merge(c);return!l&&v(s.length,0)&&o.forEach(e=>e.GetErrors().forEach(e=>t.AddError(e))),l||t.AddError({keyword:`oneOf`,schemaPath:n,instancePath:r,params:{passingSchemas:s}})}function Zx(e,t,n,r){return(g(n.pattern)?new RegExp(n.pattern,`u`):n.pattern).test(r)}function Qx(e,t,n,r,i,a){return Zx(e,t,i,a)||t.AddError({keyword:`pattern`,schemaPath:n,instancePath:r,params:{pattern:i.pattern}})}function $x(e,t,n,r){return y(Ee(n.patternProperties),0,([n,i])=>{let a=new RegExp(n,`u`);return y(Ee(r),0,([n,r])=>!a.test(n)||ES(e,t,i,r)&&t.AddKey(n))})}function eS(e,t,n,r,i,a){return Ce(Ee(i.patternProperties),0,([i,o])=>{let s=`${n}/patternProperties/${i}`,c=new RegExp(i,`u`);return Ce(Ee(a),0,([n,i])=>{let a=`${r}/${n}`;return!c.test(n)||DS(e,t,s,a,o,i)&&t.AddKey(n)})})}function tS(e,t,n,r){return v(r.length,0)||y(n.prefixItems,0,(n,i)=>he(r.length,i)||ES(e,t,n,r[i])&&t.AddIndex(i))}function nS(e,t,n,r,i,a){return v(a.length,0)||Ce(i.prefixItems,0,(i,o)=>{let s=`${n}/prefixItems/${o}`,c=`${r}/${o}`;return he(a.length,o)||DS(e,t,s,c,i,a[o])&&t.AddIndex(o)})}function rS(e,t){return e.includes(t)||et().exactOptionalPropertyTypes}function iS(e,t){return _(e[t])}function aS(e,t,n,r){let i=cy(n)?n.required:[];return y(Ee(n.properties),0,([n,a])=>{let o=!x(r,n)||ES(e,t,a,r[n])&&t.AddKey(n);return rS(i,n)?o:iS(r,n)||o})}function oS(e,t,n,r,i,a){let o=cy(i)?i.required:[];return Ce(Ee(i.properties),0,([i,s])=>{let c=`${n}/properties/${i}`,l=`${r}/${i}`,u=()=>!x(a,i)||DS(e,t,c,l,s,a[i])&&t.AddKey(i);return rS(o,i)?u():iS(a,i)||u()})}function sS(e,t,n,r){return y(S(r),0,(r,i)=>Q(e,t,n.propertyNames,r))}function cS(e,t,n,r,i,a){let o=[];return Ce(S(a),0,(t,a)=>{let s=`${r}/${t}`,c=`${n}/propertyNames`,l=OS(e,new gy,c,s,i.propertyNames,t);return l||o.push(t),l})||t.AddError({keyword:`propertyNames`,schemaPath:n,instancePath:r,params:{propertyNames:o}})}function lS(e,t,n,r){let i=e.RecursiveRef(n)??!1;return X(i)&&Q(e,t,i,r)}function uS(e,t,n,r,i,a){let o=e.RecursiveRef(i)??!1;return X(o)&&OS(e,t,`#`,r,o,a)}function dS(e,t,n,r){let i=e.Ref(n)??!1,a=new my,o=X(i)&&Q(e,a,i,r);return o&&t.Merge([a]),o}function fS(e,t,n,r,i,a){let o=e.Ref(i)??!1,s=new gy,c=X(o)&&OS(e,s,`#`,r,o,a);return c&&t.Merge([s]),c||s.GetErrors().forEach(e=>t.AddError(e)),c}function pS(e,t,n,r){return y(n.required,0,e=>x(r,e))}function mS(e,t,n,r,i,a){let o=[];return Ce(i.required,0,e=>{let t=x(a,e);return t||o.push(e),t})||t.AddError({keyword:`required`,schemaPath:n,instancePath:r,params:{requiredProperties:o}})}function hS(e,t,n,r,i){return v(n,`object`)?de(i):v(n,`array`)?d(i):v(n,`boolean`)?p(i):v(n,`integer`)?le(i):v(n,`number`)?m(i):v(n,`null`)?ue(i):v(n,`string`)?g(i):v(n,`bigint`)?f(i):v(n,`constructor`)?se(i):v(n,`function`)?ce(i):v(n,`symbol`)?fe(i):v(n,`undefined`)||v(n,`void`)?_(i):!0}function gS(e,t,n,r,i){return n.some(n=>hS(e,t,n,r,i))}function _S(e,t,n,r){return d(n.type)?gS(e,t,n.type,n,r):hS(e,t,n.type,n,r)}function vS(e,t,n,r,i,a){return(d(i.type)?gS(e,t,i.type,i,a):hS(e,t,i.type,i,a))||t.AddError({keyword:`type`,schemaPath:n,instancePath:r,params:{type:i.type}})}function yS(e,t,n,r){let i=t.GetIndices();return y(r,0,(r,a)=>(i.has(a)||Q(e,t,n.unevaluatedItems,r))&&t.AddIndex(a))}function bS(e,t,n,r,i,a){let o=t.GetIndices(),s=[];return Ce(a,0,(a,c)=>{let l=new gy,u=(o.has(c)||OS(e,l,n,r,i.unevaluatedItems,a))&&t.AddIndex(c);return u||s.push(c),u})||t.AddError({keyword:`unevaluatedItems`,schemaPath:n,instancePath:r,params:{unevaluatedItems:s}})}function xS(e,t,n,r){let i=t.GetKeys();return y(Ee(r),0,([r,a])=>i.has(r)||Q(e,t,n.unevaluatedProperties,a)&&t.AddKey(r))}function SS(e,t,n,r,i,a){let o=t.GetKeys(),s=[];return Ce(Ee(a),0,([a,c])=>{let l=new gy,u=o.has(a)||OS(e,l,n,r,i.unevaluatedProperties,c)&&t.AddKey(a);return u||s.push(a),u})||t.AddError({keyword:`unevaluatedProperties`,schemaPath:n,instancePath:r,params:{unevaluatedProperties:s}})}function CS(e){return!v(e.uniqueItems,!1)}function wS(e,t,n,r){if(!CS(n))return!0;let i=new Set(r.map(kn)).size,a=r.length;return v(i,a)}function TS(e,t,n,r,i,a){if(!CS(i))return!0;let o=new Set,s=a.reduce((e,t,n)=>{let r=kn(t);return o.has(r)?[...e,n]:(o.add(r),e)},[]);return v(s.length,0)||t.AddError({keyword:`uniqueItems`,schemaPath:n,instancePath:r,params:{duplicateItems:s}})}function ES(e,t,n,r){return t.Push()&&Q(e,t,n,r)&&t.Pop()}function Q(e,t,n,r){e.Push(n);let i=_v(n)?Ay(e,t,n,r):(!uy(n)||_S(e,t,n,r))&&(!(h(r)&&!d(r))||(!cy(n)||pS(e,t,n,r))&&(!yv(n)||wy(e,t,n,r))&&(!Ev(n)||Ly(e,t,n,r))&&(!Dv(n)||zy(e,t,n,r))&&(!Ov(n)||Vy(e,t,n,r))&&(!ey(n)||$x(e,t,n,r))&&(!ny(n)||aS(e,t,n,r))&&(!ry(n)||sS(e,t,n,r))&&(!Yv(n)||Ux(e,t,n,r))&&(!Wv(n)||Mx(e,t,n,r)))&&(!d(r)||(!vv(n)||by(e,t,n,r))&&(!wv(n)||Fy(e,t,n,r))&&(!Rv(n)||xx(e,t,n,r))&&(!Vv(n)||wx(e,t,n,r))&&(!Hv(n)||Ox(e,t,n,r))&&(!Kv(n)||Fx(e,t,n,r))&&(!qv(n)||zx(e,t,n,r))&&(!ty(n)||tS(e,t,n,r))&&(!dy(n)||wS(e,t,n,r)))&&(!g(r)||(!Uv(n)||Ax(e,t,n,r))&&(!Jv(n)||Vx(e,t,n,r))&&(!Fv(n)||px(e,t,n,r))&&(!$v(n)||Zx(e,t,n,r)))&&(!(m(r)||f(r))||(!Nv(n)||qy(e,t,n,r))&&(!Pv(n)||Yy(e,t,n,r))&&(!Bv(n)||Ex(e,t,n,r))&&(!Gv(n)||Lx(e,t,n,r))&&(!Xv(n)||Gx(e,t,n,r)))&&(!sy(n)||dS(e,t,n,r))&&(!oy(n)||lS(e,t,n,r))&&(!Av(n)||Uy(e,t,n,r))&&(!Cv(n)||My(e,t,n,r))&&(!Mv(n)||Gy(e,t,n,r))&&(!Lv(n)||hx(e,t,n,r))&&(!Zv(n)||qx(e,t,n,r))&&(!bv(n)||Ey(e,t,n,r))&&(!Sv(n)||Oy(e,t,n,r))&&(!Qv(n)||Yx(e,t,n,r))&&(!fy(n)||!d(r)||yS(e,t,n,r))&&(!py(n)||!h(r)||xS(e,t,n,r))&&(!hv(n)||_y(e,t,n,r));return e.Pop(n),i}function DS(e,t,n,r,i,a){return t.Push()&&OS(e,t,n,r,i,a)&&t.Pop()}function OS(e,t,n,r,i,a){e.Push(i);let o=_v(i)?jy(e,t,n,r,i,a):!!((!uy(i)||vS(e,t,n,r,i,a))&+(!(h(a)&&!d(a))||!!((!cy(i)||mS(e,t,n,r,i,a))&+(!yv(i)||Ty(e,t,n,r,i,a))&(!Ev(i)||Ry(e,t,n,r,i,a))&(!Dv(i)||By(e,t,n,r,i,a))&(!Ov(i)||Hy(e,t,n,r,i,a))&(!ey(i)||eS(e,t,n,r,i,a))&(!ny(i)||oS(e,t,n,r,i,a))&(!ry(i)||cS(e,t,n,r,i,a))&(!Yv(i)||Wx(e,t,n,r,i,a))&(!Wv(i)||Nx(e,t,n,r,i,a))))&(!d(a)||!!((!vv(i)||xy(e,t,n,r,i,a))&+(!wv(i)||Iy(e,t,n,r,i,a))&(!Rv(i)||Sx(e,t,n,r,i,a))&(!Vv(i)||Tx(e,t,n,r,i,a))&(!Hv(i)||kx(e,t,n,r,i,a))&(!Kv(i)||Ix(e,t,n,r,i,a))&(!qv(i)||Bx(e,t,n,r,i,a))&(!ty(i)||nS(e,t,n,r,i,a))&(!dy(i)||TS(e,t,n,r,i,a))))&(!g(a)||!!((!Uv(i)||jx(e,t,n,r,i,a))&+(!Jv(i)||Hx(e,t,n,r,i,a))&(!Fv(i)||mx(e,t,n,r,i,a))&(!$v(i)||Qx(e,t,n,r,i,a))))&(!(m(a)||f(a))||!!((!Nv(i)||Jy(e,t,n,r,i,a))&+(!Pv(i)||Xy(e,t,n,r,i,a))&(!Bv(i)||Dx(e,t,n,r,i,a))&(!Gv(i)||Rx(e,t,n,r,i,a))&(!Xv(i)||Kx(e,t,n,r,i,a))))&(!sy(i)||fS(e,t,n,r,i,a))&(!oy(i)||uS(e,t,n,r,i,a))&(!Av(i)||Wy(e,t,n,r,i,a))&(!Cv(i)||Ny(e,t,n,r,i,a))&(!Mv(i)||Ky(e,t,n,r,i,a))&(!Lv(i)||gx(e,t,n,r,i,a))&(!Zv(i)||Jx(e,t,n,r,i,a))&(!bv(i)||Dy(e,t,n,r,i,a))&(!Sv(i)||ky(e,t,n,r,i,a))&(!Qv(i)||Xx(e,t,n,r,i,a))&(!fy(i)||!d(a)||bS(e,t,n,r,i,a))&(!py(i)||!h(a)||SS(e,t,n,r,i,a)))&&(!hv(i)||vy(e,t,n,r,i,a));return e.Pop(i),o}function kS(e,t){return h(t)&&!we(e)?t[e]:void 0}function AS(e,t){return e.reduce((e,t)=>kS(t,e),t)}function jS(e){if(v(e.length,0))return[];let t=e.split(`/`).map(e=>e.replace(/~1/g,`/`).replace(/~0/g,`~`));return t.length>0&&t[0]===``?t.slice(1):t}function MS(e,t){return AS(jS(t),e)}function NS(e,t,n){if(e.$id===n.hash)return e;let r=new URL(e.$id,t.href),i=new URL(n.href,t.href);if(v(r.pathname,i.pathname))return n.hash.startsWith(`#`)?IS(e,t,n):e}function PS(e,t,n){let r=new URL(`#${e.$anchor}`,t.href),i=new URL(n.href,t.href);return v(r.href,i.href)?e:void 0}function FS(e,t,n){let r=new URL(`#${e.$dynamicAnchor}`,t.href),i=new URL(n.href,t.href);return v(r.href,i.href)?e:void 0}function IS(e,t,n){if(n.href.endsWith(`#`))return e;if(!n.hash.startsWith(`#`))return;let r=decodeURIComponent(n.hash.slice(1));if(r.startsWith(`/`))return MS(e,r)}function LS(e,t,n){if(Iv(e)){let r=NS(e,t,n);if(!_(r))return r}if(xv(e)){let r=PS(e,t,n);if(!_(r))return r}if(kv(e)){let r=FS(e,t,n);if(!_(r))return r}return IS(e,t,n)}function RS(e,t,n){return e.reduce((e,r)=>{let i=BS(r,t,n);return _(i)?e:i},void 0)}function zS(e,t,n){return S(e).reduce((r,i)=>{let a=BS(e[i],t,n);return _(a)?r:a},void 0)}function BS(e,t,n){let r=gv(e)&&Iv(e)?new URL(e.$id,t.href):t;if(gv(e)){let t=LS(e,r,n);if(!_(t))return t}if(d(e))return RS(e,r,n);if(h(e))return zS(e,r,n)}function VS(e,t){let n=new URL(`http://unknown/`),r=Iv(e)?new URL(e.$id,n.href):n;return BS(e,r,new URL(t,r.href))}function HS(e,t,n,r){let i=n.$dynamicRef.startsWith(`#`)?VS(t,n.$dynamicRef):VS(e,n.$dynamicRef);if(!_(i))return!gv(i)||!kv(i)||new URL(n.$dynamicRef,`http://unknown/`).hash.startsWith(`#/`)?i:r.find(e=>e.$dynamicAnchor===i.$dynamicAnchor)??i}var US=function(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)},WS,GS,KS,qS,JS,YS=class{constructor(e,t){WS.add(this),this.context=e,this.schema=t,this.ids=[],this.anchors=[],this.recursiveAnchors=[],this.dynamicAnchors=[]}BaseURL(){return this.ids.reduce((e,t)=>new URL(t.$id,e),new URL(`http://unknown`))}Base(){return this.ids[this.ids.length-1]??this.schema}Push(e){gv(e)&&(Iv(e)&&(this.ids.push(e),US(this,WS,`m`,GS).call(this,e)),xv(e)&&this.anchors.push(e),ay(e)&&this.recursiveAnchors.push(e),kv(e)&&this.dynamicAnchors.push(e))}Pop(e){gv(e)&&(Iv(e)&&(this.ids.pop(),US(this,WS,`m`,KS).call(this,e)),xv(e)&&this.anchors.pop(),ay(e)&&this.recursiveAnchors.pop(),kv(e)&&this.dynamicAnchors.pop())}Ref(e){return US(this,WS,`m`,qS).call(this,e)??US(this,WS,`m`,JS).call(this,e)}RecursiveRef(e){return ay(this.Base())?VS(this.recursiveAnchors[0],e.$recursiveRef):VS(this.Base(),e.$recursiveRef)}DynamicRef(e){let t=this.schema;return HS(t,this.Base(),e,this.dynamicAnchors)}};WS=new WeakSet,GS=function e(t,n=!0){if(!gv(t))return;let r=t;if(!(!n&&Iv(r))){!n&&kv(r)&&this.dynamicAnchors.push(r);for(let t of S(r))US(this,WS,`m`,e).call(this,r[t],!1)}},KS=function e(t,n=!0){if(!gv(t))return;let r=t;if(!(!n&&Iv(r))){!n&&kv(r)&&this.dynamicAnchors.pop();for(let t of S(r))US(this,WS,`m`,e).call(this,r[t],!1)}},qS=function(e){return x(this.context,e.$ref)?this.context[e.$ref]:void 0},JS=function(e){let t=this.schema;return e.$ref.startsWith(`#`)?VS(this.Base(),e.$ref):VS(t,e.$ref)};function XS(...e){let[t,n,r]=Ht(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]}),i=et(),a=Mn(),o=[];return[OS(new YS(t,n),new hy(e=>{if(!ge(o.length,i.maxErrors))return o.push({...e,message:a(e)})}),`#`,``,n,r),o]}function ZS(...e){let[t,n,r]=Ht(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]});return Q(new YS(t,n),new my,n,r)}function QS(...e){let[t,n,r]=Ht(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]});return ZS(t,n,r)}function $S(...e){let[t,n,r]=Ht(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]}),[i,a]=XS(t,n,r);return a}var eC=class extends Error{constructor(e,t,n){super(e),Object.defineProperty(this,"cause",{value:{source:e,errors:n,value:t},writable:!1,configurable:!1,enumerable:!1})}};function tC(e,t,n){return d(n)?n.map(n=>fC(e,t.items,n)):n}function nC(e,t,n){return fC({...e,...t.$defs},bt(t.$ref),n)}function rC(e,t){let n=x(t,`unevaluatedProperties`)?{additionalProperties:t.unevaluatedProperties}:{},r=sv(ev(e,t));return k(r)?H_(r,n):r}function iC(e,t,n){return fC(e,rC(e,t),n)}function aC(e){return x(e,`additionalProperties`)?e.additionalProperties:void 0}function oC(e,t,n){if(!h(n)||d(n))return n;let r=aC(t);for(let i of S(n)){if(x(t.properties,i)){n[i]=fC(e,t.properties[i],n[i]);continue}if(p(r)&&v(r,!0)||it(r)&&QS(e,r,n[i])){n[i]=fC(e,r,n[i]);continue}delete n[i]}return n}function sC(e,t,n){if(!h(n))return n;let r=aC(t),[i,a]=[new RegExp(Zi(t)),$i(t)];for(let t of S(n)){if(i.test(t)){n[t]=fC(e,a,n[t]);continue}if(p(r)&&v(r,!0)||it(r)&&QS(e,r,n[t])){n[t]=fC(e,r,n[t]);continue}delete n[t]}return n}function cC(e,t,n){return x(e,t.$ref)?fC(e,e[t.$ref],n):n}function lC(e,t,n){if(!d(n))return n;let r=Math.min(n.length,t.items.length);for(let i=0;i_C(e))}function _C(e){return pC(e,D(e)?ft(_C(e.items),pt(e)):A(e)?Qt(gC(e.allOf)):F(e)?P(hC(e.anyOf)):k(e)?O(mC(e.properties)):ea(e)?Ji(Qi(e),_C($i(e))):I(e)?Ur(gC(e.items)):e)}function vC(e){return _C(e)}function yC(...e){let[t,n,r]=Ht(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]});return fC(t,et().unionPrioritySort?vC(n):n,r)}function bC(e){return h(e)&&x(e,`value`)}function $(e){return{value:e}}function xC(e){return d(e)?$(e):$([e])}function SC(e){return v(e,!0)?$(BigInt(1)):$(BigInt(0))}const CC=/^-?(0|[1-9]\d*)n$/,wC=/^-?(0|[1-9]\d*)\.\d+$/,TC=/^-?(0|[1-9]\d*)$/;function EC(e){return CC.test(e)}function DC(e){return wC.test(e)}function OC(e){return TC.test(e)}function kC(e){let t=e.toLowerCase();return EC(e)?$(BigInt(e.slice(0,e.length-1))):DC(e)?$(BigInt(e.split(`.`)[0])):OC(e)?$(BigInt(e)):v(t,`false`)?$(BigInt(0)):v(t,`true`)?$(BigInt(1)):void 0}function AC(e){return f(e)?$(e):p(e)?SC(e):m(e)?$(BigInt(Math.trunc(e))):ue(e)?$(BigInt(0)):g(e)?kC(e):_(e)?$(BigInt(0)):void 0}function jC(e){return v(e,BigInt(0))?$(!1):v(e,BigInt(1))?$(!0):void 0}function MC(e){return v(e,0)?$(!1):v(e,1)?$(!0):void 0}function NC(e){return v(e.toLowerCase(),`false`)?$(!1):v(e.toLowerCase(),`true`)?$(!0):v(e,`0`)?$(!1):v(e,`1`)?$(!0):void 0}function PC(e){return f(e)?jC(e):p(e)?$(e):m(e)?MC(e):ue(e)?$(!1):g(e)?NC(e):_(e)?$(!1):void 0}function FC(e){return v(e,BigInt(0))?$(null):void 0}function IC(e){return v(e,!1)?$(null):void 0}function LC(e){return v(e,0)?$(null):void 0}function RC(e){let t=e.toLowerCase();return v(t,`undefined`)||v(t,`null`)||v(e,``)||v(e,`0`)?$(null):void 0}function zC(e){return f(e)?FC(e):p(e)?IC(e):m(e)?LC(e):ue(e)?$(null):g(e)?RC(e):_(e)?$(null):void 0}const BC=BigInt(2**53-1),VC=BigInt(-(2**53-1));function HC(e){return e<=BC&&e>=VC?$(Number(e)):void 0}function UC(e){return $(+!!e)}function WC(e){let t=+e;if(m(t))return $(t);let n=e.toLowerCase();if(v(n,`false`))return $(0);if(v(n,`true`))return $(1);let r=AC(e);if(bC(r))return r.value<=BC&&r.value>=VC?$(Number(r.value)):void 0}function GC(e){return f(e)?HC(e):p(e)?UC(e):m(e)?$(e):ue(e)?$(0):g(e)?WC(e):_(e)?$(0):void 0}function KC(e){return f(e)||p(e)||m(e)?$(e.toString()):ue(e)?$(`null`):g(e)?$(e):_(e)?$(``):void 0}function qC(e){return v(e,BigInt(0))?$(void 0):void 0}function JC(e){return v(e,!1)?$(void 0):void 0}function YC(e){return v(e,0)?$(void 0):void 0}function XC(e){let t=e.toLowerCase();return v(t,`undefined`)||v(t,`null`)||v(e,``)||v(e,`0`)?$(void 0):void 0}function ZC(e){return f(e)?qC(e):p(e)?JC(e):m(e)?YC(e):ue(e)?$(void 0):g(e)?XC(e):_(e)?$(e):void 0}function QC(e,t,n){return xC(n).value.map(n=>Tw(e,t.items,n))}function $C(e,t,n){let r=AC(n);return bC(r)?r.value:n}function ew(e,t,n){let r=PC(n);return bC(r)?r.value:n}function tw(e,t,n){return Tw({...e,...t.$defs},bt(t.$ref),n)}function nw(e,t,n){return Tw(e,sv(t),n)}function rw(e,t,n){let r=GC(n);return bC(r)?Math.trunc(r.value):n}function iw(e,t,n){return Tw(e,sv(ev(e,t)),n)}function aw(e,t,n){let r=AC(n);return bC(r)&&v(t.const,r.value)?r.value:n}function ow(e,t,n){let r=PC(n);return bC(r)&&v(t.const,r.value)?r.value:n}function sw(e,t,n){let r=GC(n);return bC(r)&&v(t.const,r.value)?r.value:n}function cw(e,t,n){let r=KC(n);return bC(r)&&v(t.const,r.value)?r.value:n}function lw(e,t,n){return v(t.const,n)?n:sr(t)?aw(e,t,n):cr(t)?ow(e,t,n):lr(t)?sw(e,t,n):ur(t)?cw(e,t,n):en()}function uw(e,t,n){let r=zC(n);return bC(r)?r.value:n}function dw(e,t,n){let r=GC(n);return bC(r)?r.value:n}function fw(e,t,n,r){let i=S(r);for(let[a,o]of t)for(let t of i)a.test(t)||(r[t]=Tw(e,n,r[t]));return r}function pw(e,t,n){return jt(e)&&_(n[t])}function mw(e,t,n){let r=Te(t.properties),i=S(n);for(let[t,a]of r)for(let r of i)!t.test(r)||pw(a,r,n)||(n[r]=Tw(e,a,n[r]));return x(t,`additionalProperties`)&&h(t.additionalProperties)?fw(e,r,t.additionalProperties,n):n}function hw(e,t,n){return de(n)?mw(e,t,n):n}function gw(e,t,n){let r=Te(t.patternProperties),i=S(n);for(let[t,a]of r)for(let r of i)t.test(r)&&(n[r]=Tw(e,a,n[r]));return x(t,`additionalProperties`)&&h(t.additionalProperties)?fw(e,r,t.additionalProperties,n):n}function _w(e,t,n){return de(n)?gw(e,t,n):n}function vw(e,t,n){return x(e,t.$ref)?Tw(e,e[t.$ref],n):n}function yw(e,t,n){let r=KC(n);return bC(r)?r.value:n}function bw(e,t,n){return Tw(e,sv(t),n)}function xw(e,t,n){if(!d(n))return n;for(let r=0;rQS(e,t,n)))return n;let r=t.anyOf.map(t=>Tw(e,t,uC(n))).find(n=>QS(e,t,n));return _(r)?n:r}function ww(e,t,n){return bC(ZC(n))?void 0:n}function Tw(e,t,n){return D(t)?QC(e,t,n):Xn(t)?$C(e,t,n):Qn(t)?ew(e,t,n):zt(t)?tw(e,t,n):Zt(t)?nw(e,t,n):rr(t)?rw(e,t,n):A(t)?iw(e,t,n):N(t)?lw(e,t,n):fr(t)?uw(e,t,n):hr(t)?dw(e,t,n):k(t)?hw(e,t,n):ea(t)?_w(e,t,n):xt(t)?vw(e,t,n):xr(t)?yw(e,t,n):Sd(t)?bw(e,t,n):I(t)?xw(e,t,n):oa(t)?Sw(e,t,n):F(t)?Cw(e,t,n):ca(t)?ww(e,t,n):n}function Ew(...e){let[t,n,r]=Ht(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]});return Tw(t,n,r)}function Dw(e,t,n){if(!d(n))return n;for(let r=0;r[e,t,n],2:(e,t)=>[{},e,t]});return Iw(t,n,r)}function Rw(e){return(...t)=>{let[n,r,i]=Ht(t,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]});return e.reduce((e,t)=>t(n,r,e),i)}}function zw(e,t,n){return t[`~codec`].decode(n)}function Bw(e,t,n){return t[`~codec`].encode(n)}function Vw(e,t,n,r){return Rn(n)?v(e,`Decode`)?zw(t,n,r):Bw(t,n,r):r}function Hw(e,t,n,r){if(!d(r))return r;for(let i=0;i({...e,...t}),{})}function qw(e,t){for(let n of t)if(!je(e,n))return n;return e}function Jw(e,t,n,r){if(v(n.allOf.length,0))return Vw(e,t,n,r);let i=n.allOf.map(n=>dT(e,t,n,yC(n,uC(r))));return Vw(e,t,n,i.every(e=>h(e))?Kw(i):qw(r,i))}function Yw(e,t,n,r){if(v(n.allOf.length,0))return Vw(e,t,n,r);let i=Vw(e,t,n,r),a=n.allOf.map(n=>dT(e,t,n,yC(n,uC(i))));return a.every(e=>h(e))?Kw(a):qw(i,a)}function Xw(e,t,n,r){return v(e,`Decode`)?Jw(e,t,n,r):Yw(e,t,n,r)}function Zw(e,t,n,r){if(!de(r))return r;for(let i of S(n.properties))!x(r,i)||pw(n.properties[i],i,r)||(r[i]=dT(e,t,n.properties[i],r[i]));return Vw(e,t,n,r)}function Qw(e,t,n,r){let i=Vw(e,t,n,r);if(!de(i))return i;for(let r of S(n.properties))!x(i,r)||pw(n.properties[r],r,i)||(i[r]=dT(e,t,n.properties[r],i[r]));return i}function $w(e,t,n,r){return v(e,`Decode`)?Zw(e,t,n,r):Qw(e,t,n,r)}function eT(e,t,n,r){if(!de(r))return r;let i=new RegExp(Zi(n));for(let a of S(r))i.test(a)&&(r[a]=dT(e,t,$i(n),r[a]));return Vw(e,t,n,r)}function tT(e,t,n,r){let i=Vw(e,t,n,r);if(!de(i))return i;let a=new RegExp(Zi(n));for(let r of S(i))a.test(r)&&(i[r]=dT(e,t,$i(n),i[r]));return i}function nT(e,t,n,r){return v(e,`Decode`)?eT(e,t,n,r):tT(e,t,n,r)}function rT(e,t,n,r){return x(t,n.$ref)?dT(e,t,t[n.$ref],r):r}function iT(e,t,n,r){return v(e,`Decode`)?Vw(e,t,n,rT(e,t,n,r)):rT(e,t,n,Vw(e,t,n,r))}function aT(e,t,n,r){if(!d(r))return r;for(let i=0;iuC(n),(e,t,n)=>Lw(e,t,n),(e,t,n)=>Ew(e,t,n),(e,t,n)=>yC(e,t,n),(e,t,n)=>pT(e,t,n)]);function hT(...e){let[t,n,r]=Ht(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]});if(QS(t,n,r))return r;if(et().correctiveParse)return mT(t,n,r);throw new fT(r,$S(t,n,r))}P([O({type:M(`insert`),path:br(),value:It()}),Object({type:M(`update`),path:br(),value:It()}),O({type:M(`delete`),path:br()})]);const gT=Y.Refine(Y.Unsafe({}),e=>e instanceof Date),_T=Y.Object({id:Y.Number(),created:gT,title:Y.String({minLength:1,maxLength:100}),type:Y.Enum([`jpg`,`png`]),size:Y.Number(),url:Y.String({format:`url`})}),vT=Y.Object({id:Y.Number(),stars:Y.Number({minimum:1,maximum:5}),title:Y.String({minLength:1,maxLength:100}),text:Y.String({minLength:1,maxLength:1e3}),images:Y.Array(_T)});hT(Y.Object({id:Y.Number(),created:gT,title:Y.String({minLength:1,maxLength:100}),brand:Y.String({minLength:1,maxLength:30}),description:Y.String({minLength:1,maxLength:500}),price:Y.Number({minimum:1,maximum:1e4}),discount:Y.Union([Y.Number({minimum:1,maximum:100}),Y.Null()]),quantity:Y.Number({minimum:1,maximum:10}),tags:Y.Array(Y.String({minLength:1,maxLength:30})),images:Y.Array(_T),ratings:Y.Array(vT)}),{}); \ No newline at end of file diff --git a/schemas/libraries/typebox/download_compiled/namespace + compile/minified.js b/schemas/libraries/typebox/download_compiled/namespace + compile/minified.js index 3159e37f..7b3a81f2 100644 --- a/schemas/libraries/typebox/download_compiled/namespace + compile/minified.js +++ b/schemas/libraries/typebox/download_compiled/namespace + compile/minified.js @@ -1,4 +1,4 @@ -var e=Object.defineProperty,t=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r};const n={assign:0,create:0,clone:0,discard:0,update:0};function r(e,t){return n.assign+=1,{...e,...t}}function i(e,t,n){return e>=t&&e<=n}function a(e){return i(e,127462,127487)}function o(e){return i(e,65024,65039)}function s(e){return i(e,768,879)||i(e,6832,6911)||i(e,7616,7679)||i(e,65056,65071)}function c(e){return e>65535?2:1}function l(e,t){for(;t=t)return!0;return!1}function re(e,t){let n=0,r=0;for(;rt)return!1;return!0}function ie(e,t){if(t===0)return!0;let n=0;for(;n=t)return!0}return!1}function ae(e,t){let n=0;for(;nt)return!1}return!0}var oe=t({Entries:()=>S,EntriesRegExp:()=>De,Every:()=>y,EveryAll:()=>Te,GraphemeCount:()=>Se,HasPropertyKey:()=>x,IsArray:()=>d,IsAsyncIterator:()=>se,IsBigInt:()=>f,IsBoolean:()=>p,IsClassInstance:()=>be,IsConstructor:()=>ce,IsDeepEqual:()=>Me,IsEqual:()=>v,IsFunction:()=>le,IsGreaterEqualThan:()=>ve,IsGreaterThan:()=>he,IsInteger:()=>ue,IsIterator:()=>de,IsLessEqualThan:()=>_e,IsLessThan:()=>ge,IsMaxLength:()=>Ce,IsMinLength:()=>we,IsMultipleOf:()=>ye,IsNull:()=>fe,IsNumber:()=>m,IsObject:()=>h,IsObjectNotArray:()=>pe,IsString:()=>g,IsSymbol:()=>me,IsUndefined:()=>_,IsUnsafePropertyKey:()=>Ee,IsValueLike:()=>xe,Keys:()=>C,ShiftLeft:()=>b,Symbols:()=>Oe,Values:()=>ke});function d(e){return Array.isArray(e)}function se(e){return h(e)&&Symbol.asyncIterator in e}function f(e){return v(typeof e,`bigint`)}function p(e){return v(typeof e,`boolean`)}function ce(e){if(_(e)||!le(e))return!1;let t=Function.prototype.toString.call(e);return!!(/^class\s/.test(t)||/\[native code\]/.test(t))}function le(e){return v(typeof e,`function`)}function ue(e){return Number.isInteger(e)}function de(e){return h(e)&&Symbol.iterator in e}function fe(e){return v(e,null)}function m(e){return Number.isFinite(e)}function pe(e){return h(e)&&!d(e)}function h(e){return v(typeof e,`object`)&&!fe(e)}function g(e){return v(typeof e,`string`)}function me(e){return v(typeof e,`symbol`)}function _(e){return v(e,void 0)}function v(e,t){return e===t}function he(e,t){return e>t}function ge(e,t){return e=t}function ye(e,t){if(f(e)||f(t))return BigInt(e)%BigInt(t)===0n;if(!m(e)||ue(e)&&1/t%1==0)return!0;let n=e%t;return Math.min(Math.abs(n),Math.abs(n-t))<1e-10}function be(e){if(!h(e))return!1;let t=globalThis.Object.getPrototypeOf(e);return fe(t)?!1:v(typeof t.constructor,`function`)&&!(v(t.constructor,globalThis.Object)||v(t.constructor.name,`Object`))}function xe(e){return f(e)||p(e)||fe(e)||m(e)||g(e)||_(e)}function Se(e){return te(e)}function Ce(e,t){return ae(e,t)}function we(e,t){return ie(e,t)}function y(e,t,n){for(let r=t;r[RegExp(`^${t}$`),e[t]])}function S(e){return Object.entries(e)}function C(e){return Object.getOwnPropertyNames(e)}function Oe(e){return Object.getOwnPropertySymbols(e)}function ke(e){return Object.values(e)}function Ae(e,t){if(!h(t))return!1;let n=C(e);return v(n.length,C(t).length)&&n.every(n=>Me(e[n],t[n]))}function je(e,t){return d(t)&&v(e.length,t.length)&&e.every((n,r)=>Me(e[r],t[r]))}function Me(e,t){return d(e)?je(e,t):h(e)?Ae(e,t):v(e,t)}const Ne=/^[\p{ID_Start}_$][\p{ID_Continue}_$\u200C\u200D]*$/u;function Pe(e){return Ne.test(e)}function Fe(e,t){return`(${e} && ${t})`}function w(e,t){return`(${e} || ${t})`}function Ie(e){return`!(${e})`}function Le(e){return`Array.isArray(${e})`}function Re(e){return`Guard.IsAsyncIterator(${e})`}function ze(e){return`typeof ${e} === "bigint"`}function Be(e){return`typeof ${e} === "boolean"`}function Ve(e){return`Number.isInteger(${e})`}function He(e){return`Guard.IsIterator(${e})`}function Ue(e){return`${e} === null`}function We(e){return`Number.isFinite(${e})`}function Ge(e){return Fe(Ke(e),Ie(Le(e)))}function Ke(e){return`typeof ${e} === "object" && ${e} !== null`}function qe(e){return`typeof ${e} === "string"`}function Je(e){return`typeof ${e} === "symbol"`}function Ye(e){return`${e} === undefined`}function Xe(e){return`typeof ${e} === "function"`}function Ze(e){return`Guard.IsConstructor(${e})`}function Qe(e,t){return`${e} === ${t}`}function $e(e,t){return`${e} > ${t}`}function et(e,t){return`${e} < ${t}`}function tt(e,t){return`${e} <= ${t}`}function nt(e,t){return`${e} >= ${t}`}function rt(e,t){return`Guard.IsMinLength(${e}, ${t})`}function it(e,t){return`Guard.IsMaxLength(${e}, ${t})`}function at(e,t,n,r){return v(t,`0`)?`${e}.every((${n[0]}, ${n[1]}) => ${r})`:`((value, callback) => { for(let index = ${t}; index < value.length; index++) if (!callback(value[index], index)) return false; return true })(${e}, (${n[0]}, ${n[1]}) => ${r})`}function ot(e){return`Object.entries(${e})`}function st(e){return`Object.getOwnPropertyNames(${e})`}function ct(e,t){return v(t,`"__proto__"`)||v(t,`"constructor"`)?`Object.prototype.hasOwnProperty.call(${e}, ${t})`:`${t} in ${e}`}function lt(e,t){return`Guard.IsDeepEqual(${e}, ${t})`}function ut(e){return`[${e.join(`, `)}]`}function dt(e,t){return`((${e.join(`, `)}) => ${t})`}function T(e,t){return`${e}(${t.join(`, `)})`}function ft(e,t){return`new ${e}(${t.join(`, `)})`}function E(e,t){return`${e}${Pe(t)?`.${t}`:`[${D(t)}]`}`}function D(e){return g(e)?JSON.stringify(e):`${e}`}function pt(e,t,n){return`(${e} ? ${t} : ${n})`}function mt(e){return`{ ${e.join(`; `)}; }`}function ht(e,t){return`const ${e} = ${t}`}function gt(e,t){return`if(${e}) { ${t} }`}function _t(e){return`return ${e}`}function vt(e){return v(e.length,0)?`true`:e.reduce((e,t)=>Fe(e,t))}function yt(e){return v(e.length,0)?`false`:e.reduce((e,t)=>w(e,t))}function bt(e){return`++${e}`}function xt(e,t){return`Guard.IsMultipleOf(${e}, ${t})`}function St(e){return e instanceof Boolean}function Ct(e){return e instanceof Number}function wt(e){return e instanceof String}function Tt(e){return globalThis.ArrayBuffer.isView(e)}function Et(e){return e instanceof globalThis.RegExp}function Dt(e){return e instanceof globalThis.Date}function Ot(e){return e instanceof globalThis.Set}function kt(e){return e instanceof globalThis.Map}var At=oe;function jt(e){return h(e)&&x(e,`~guard`)}function Mt(e){return e}function Nt(e){return e.map(e=>Lt(e))}function Pt(e){let t={},n=Object.getOwnPropertyDescriptors(e);for(let e of Object.keys(n)){let r=n[e];x(r,`value`)&&Object.defineProperty(t,e,{...r,value:Lt(r.value)})}return t}function Ft(e){return new RegExp(e.source,e.flags)}function It(e){return e}function Lt(e){return e instanceof RegExp?Ft(e):jt(e)?Mt(e):d(e)?Nt(e):h(e)?Pt(e):It(e)}function Rt(e){return n.clone+=1,Lt(e)}const zt={immutableTypes:!1,maxErrors:8,useAcceleration:!0,exactOptionalPropertyTypes:!1,enumerableKind:!1,correctiveParse:!1,unionPrioritySort:!0};function Bt(){return zt}function Vt(e,t){for(let n of Object.keys(t))Object.defineProperty(e,n,{configurable:!0,writable:!0,enumerable:!1,value:t[n]});return e}function Ht(e,t){return{...e,...t}}function O(e,t,r={}){n.create+=1;let i=Bt(),a=Ht(t,r),o=i.enumerableKind?Ht(a,e):Vt(a,e);return i.immutableTypes?Object.freeze(o):o}function Ut(e,t){n.discard+=1;let r={},i=Object.getOwnPropertyDescriptors(Rt(e)),a=new Set(t);for(let e of Object.keys(i))a.has(e)||Object.defineProperty(r,e,i[e]);return r}function k(e,t,r){n.update+=1;let i=Bt(),a=Rt(e);for(let e of Object.keys(t))Object.defineProperty(a,e,{configurable:!0,writable:!0,enumerable:i.enumerableKind,value:t[e]});for(let e of Object.keys(r))Object.defineProperty(a,e,{configurable:!0,enumerable:!0,writable:!0,value:r[e]});return a}function A(e,t){return h(e)&&x(e,`~kind`)&&v(e[`~kind`],t)}function Wt(e){return h(e)}function j(e,t,n){return O({"~kind":`Deferred`},{type:`deferred`,action:e,parameters:t,options:n},{})}function Gt(e){return A(e,`Deferred`)}function Kt(e){return{enumerable:Bt().enumerableKind,writable:!1,configurable:!1,value:e}}var qt=class{constructor(){globalThis.Object.defineProperty(this,`~kind`,Kt(`Base`)),globalThis.Object.defineProperty(this,`~guard`,Kt({check:e=>this.Check(e),errors:e=>this.Errors(e)}))}Check(e){return!0}Errors(e){return[]}Convert(e){return e}Clean(e){return e}Default(e){return e}Create(){throw Error(`Create not implemented`)}Clone(){throw Error(`Clone not implemented`)}};function Jt(e){return A(e,`Base`)}function Yt(e,t){return O({"~kind":`Array`},{type:`array`,items:e},t)}function M(e){return A(e,`Array`)}function Xt(e){return Ut(e,[`~kind`,`type`,`items`])}function Zt(e,t){return O({"~kind":`AsyncIterator`},{type:`asyncIterator`,iteratorItems:e},t)}function Qt(e){return A(e,`AsyncIterator`)}function $t(e){return Ut(e,[`~kind`,`type`,`iteratorItems`])}function en(e,t,n={}){return O({"~kind":`Constructor`},{type:`constructor`,parameters:e,instanceType:t},n)}function tn(e){return A(e,`Constructor`)}function nn(e){return Ut(e,[`~kind`,`type`,`parameters`,`instanceType`])}function rn(e,t,n={}){return O({"~kind":`Function`},{type:`function`,parameters:e,returnType:t},n)}function an(e){return A(e,`Function`)}function on(e){return Ut(e,[`~kind`,`type`,`parameters`,`returnType`])}function sn(e,t){return O({"~kind":`Ref`},{$ref:e},t)}function cn(e){return A(e,`Ref`)}function ln(e,t){return O({"~kind":`Generic`},{type:`generic`,parameters:e,expression:t})}function un(e){return A(e,`Generic`)}function dn(e){return O({"~kind":`Any`},{},e)}function fn(e){return A(e,`Any`)}function pn(e){return O({"~kind":`Never`},{not:{}},e)}function mn(e){return A(e,`Never`)}function hn(e){return k(e,{"~optional":!0},{})}function gn(e,t){return k(hn(e),{},t)}function _n(e,t,n,r){return gn(J(e,t,n),r)}function vn(e,t={}){return gn(e,t)}function yn(e){return vn(e)}function bn(e){return Wt(e)&&x(e,`~optional`)}function xn(e){return C(e).filter(t=>!bn(e[t]))}function Sn(e){return C(e)}function Cn(e){return ke(e)}function N(e,t={}){let n=xn(e);return O({"~kind":`Object`},{type:`object`,...n.length>0?{required:n}:{},properties:e},t)}function P(e){return A(e,`Object`)}function wn(e){return Ut(e,[`~kind`,`type`,`properties`,`required`])}function Tn(e){return O({"~kind":`Unknown`},{},e)}function En(e){return A(e,`Unknown`)}function Dn(e,t,n){return O({"~kind":`Cyclic`},{$defs:C(e).reduce((t,n)=>({...t,[n]:k(e[n],{},{$id:n})}),{}),$ref:t},n)}function On(e){return A(e,`Cyclic`)}function kn(e){return k(e,{"~unsafe":null},{})}function An(e){return pe(e)&&x(e,`~unsafe`)&&fe(e[`~unsafe`])}function jn(e,t){return t[e.length]?.(...e)??(()=>{throw Error(`Invalid Arguments`)})()}function Mn(e){return A(e,`Infer`)}function Nn(e,t,n,r={}){return O({"~kind":`Dependent`},{if:e,then:t,else:n},r)}function Pn(e){return A(e,`Dependent`)}function Fn(e){return Ut(e,[`~kind`,`if`,`then`,`else`])}function In(e){return pe(e)}function Ln(e){return C(e).filter(e=>isNaN(e)).reduce((t,n)=>[...t,e[n]],[])}function Rn(e,t){return O({"~kind":`Enum`},{enum:In(e)?Ln(e):e},t)}function zn(e){return A(e,`Enum`)}function Bn(e,t={}){return O({"~kind":`Intersect`},{allOf:e},t)}function F(e){return A(e,`Intersect`)}function Vn(e){return Ut(e,[`~kind`,`allOf`])}let Hn;function Un(){try{return Gn(`null`)(),!0}catch{return!1}}function Wn(){return _(Hn)&&(Hn=Un()),Hn&&Bt().useAcceleration}function Gn(...e){return new globalThis.Function(...e)}function Kn(){throw Error(`Unreachable`)}var qn=t({Hash:()=>xr,HashCode:()=>br});function Jn(e){let t=new Set,n=e;for(;n&&n!==Object.prototype;){for(let e of Reflect.ownKeys(n))e!==`constructor`&&typeof e!=`symbol`&&t.add(e);n=Object.getPrototypeOf(n)}return[...t]}function Yn(e){return typeof e==`number`}var Xn;(function(e){e[e.Array=0]=`Array`,e[e.BigInt=1]=`BigInt`,e[e.Boolean=2]=`Boolean`,e[e.Date=3]=`Date`,e[e.Constructor=4]=`Constructor`,e[e.Function=5]=`Function`,e[e.Null=6]=`Null`,e[e.Number=7]=`Number`,e[e.Object=8]=`Object`,e[e.RegExp=9]=`RegExp`,e[e.String=10]=`String`,e[e.Symbol=11]=`Symbol`,e[e.TypeArray=12]=`TypeArray`,e[e.Undefined=13]=`Undefined`})(Xn||={});let Zn=BigInt(`14695981039346656037`);const[Qn,$n]=[BigInt(`1099511628211`),BigInt(`18446744073709551616`)],er=Array.from({length:256}).map((e,t)=>BigInt(t)),tr=new Float64Array(1),nr=new DataView(tr.buffer),rr=new Uint8Array(tr.buffer);function I(e){Zn^=er[e],Zn=Zn*Qn%$n}function ir(e){I(Xn.Array);for(let t of e)yr(t)}function ar(e){I(Xn.BigInt),nr.setBigInt64(0,e);for(let e of rr)I(e)}function or(e){I(Xn.Boolean),I(+!!e)}function sr(e){I(Xn.Constructor),yr(e.toString())}function cr(e){I(Xn.Date),yr(e.getTime())}function lr(e){I(Xn.Function),yr(e.toString())}function ur(e){I(Xn.Null)}function dr(e){I(Xn.Number),nr.setFloat64(0,e,!0);for(let e of rr)I(e)}function fr(e){I(Xn.Object);for(let t of Jn(e).sort())yr(t),yr(e[t])}function pr(e){I(Xn.RegExp),hr(e.toString())}const mr=new TextEncoder;function hr(e){I(Xn.String);for(let t of mr.encode(e))I(t)}function gr(e){I(Xn.Symbol),yr(e.toString())}function _r(e){I(Xn.TypeArray);let t=new Uint8Array(e.buffer);for(let e=0;e[e,t,n],2:(e,t)=>[e,t,()=>`Refine Error`]});return Pr(t,{check:n,error:g(r)?()=>r:r})}function Ir(e){return pe(e)&&x(e,`check`)&&x(e,`error`)&&le(e.check)&&le(e.error)}function Lr(e){return Wt(e)&&x(e,`~refine`)&&d(e[`~refine`])&&y(e[`~refine`],0,e=>Ir(e))}function Rr(e){return O({"~kind":`BigInt`},{type:`bigint`},e)}function zr(e){return A(e,`BigInt`)}function Br(e){return A(e,`Boolean`)}const Vr=`-?(?:0|[1-9][0-9]*)`;function Hr(e){return O({"~kind":`Integer`},{type:`integer`},e)}function Ur(e){return A(e,`Integer`)}function Wr(e,t){return O({"~kind":`Iterator`},{type:`iterator`,iteratorItems:e},t)}function Gr(e){return A(e,`Iterator`)}function Kr(e){return Ut(e,[`~kind`,`type`,`iteratorItems`])}var qr=class extends Error{constructor(e){super(`Invalid Literal value`),Object.defineProperty(this,"cause",{value:{value:e},writable:!1,configurable:!1,enumerable:!1})}};function Jr(e){return f(e)?`bigint`:p(e)?`boolean`:m(e)?`number`:g(e)?`string`:(()=>{throw new qr(e)})()}function L(e,t){return O({"~kind":`Literal`},{type:Jr(e),const:e},t)}function Yr(e){return f(e)||p(e)||m(e)||g(e)}function Xr(e){return R(e)&&f(e.const)}function Zr(e){return R(e)&&p(e.const)}function Qr(e){return R(e)&&m(e.const)}function $r(e){return R(e)&&g(e.const)}function R(e){return A(e,`Literal`)}function ei(e){return O({"~kind":`Null`},{type:`null`},e)}function ti(e){return A(e,`Null`)}const ni=`-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?`;function ri(e){return O({"~kind":`Number`},{type:`number`},e)}function ii(e){return A(e,`Number`)}function ai(e){return O({"~kind":`Symbol`},{type:`symbol`},e)}function oi(e){return A(e,`Symbol`)}function si(e,t){return O({"~kind":`Promise`},{type:`promise`,item:e},t)}function ci(e){return A(e,`Promise`)}function li(e){return Ut(e,[`~kind`,`type`,`item`])}function ui(e){return O({"~kind":`String`},{type:`string`},e)}function di(e){return A(e,`String`)}function z(e,t={}){return O({"~kind":`Union`},{anyOf:e},t)}function B(e){return A(e,`Union`)}function fi(e){return Ut(e,[`~kind`,`anyOf`])}function pi(e){let t=Lo(e);return v(t.length,2)?t[0]:[]}function mi(e){return!0}function hi(e){return b(e,(e,t)=>_i(e)?hi(t):!1,()=>!0)}function gi(e){return v(e.length,0)?!1:hi(e)}function _i(e){return B(e)?gi(e.anyOf):R(e)?mi(e.const):!1}function vi(e){return gi(e)}function yi(e){return O({"~kind":`TemplateLiteral`},{type:`string`,pattern:e},{})}function bi(e,t,n=[]){return b(e,(e,r)=>bi(r,t,[...n,`${e}${t}`]),()=>n)}function xi(e,t){return v(e.length,0)?[`${t}`]:bi(e,t)}function Si(e,t,n=[]){return b(t,(t,r)=>Si(e,r,[...n,...Ci(e,t)]),()=>n)}function Ci(e,t){return B(t)?Si(e,t.anyOf):R(t)?xi(e,t.const):Kn()}function wi(e,t){return b(t,(t,n)=>wi(Ci(e,t),n),()=>e)}function Ti(e){return e.map(e=>L(e))}function Ei(e){return z(Ti(wi([],e)))}function Di(e){return v(e.length,0)?Kn():v(e.length,1)&&R(e[0])?e[0]:Ei(e)}function Oi(e){let t=pi(e);return v(t.length,0)?ui():vi(t)?Di(t):yi(e)}function ki(e){let t=Oi(e);return is(t)?ui():t}function Ai(e,t){return O({"~kind":`Record`},{type:`object`,patternProperties:{[e]:t}})}function ji(e){return Ai(Pa,e)}function Mi(e){return N({true:e,false:e})}function Ni(e,t={}){let[n,r,i]=[e,e.length,!1];return O({"~kind":`Tuple`},{type:`array`,additionalItems:i,items:n,minItems:r},t)}function V(e){return A(e,`Tuple`)}function Pi(e){return Ut(e,[`~kind`,`type`,`items`,`minItems`,`additionalItems`])}function Fi(e){return Ut(e,[`~readonly`])}function Ii(e,t){return k(Fi(e),{},t)}function Li(e,t,n,r){return Ii(J(e,t,n),r)}function Ri(e,t={}){return Ii(e,t)}function zi(e){return Ut(e,[`~optional`])}function Bi(e,t){return k(zi(e),{},t)}function Vi(e,t,n,r){return Bi(J(e,t,n),r)}function Hi(e,t={}){return Bi(e,t)}function Ui(e){return e.reduceRight((e,t,n)=>({[n]:t,...e}),{})}function Wi(e){return N(Ui(e.items))}function Gi(e,t){return Nr(e)?!!Nr(t):!1}function Ki(e,t){return bn(e)?!!bn(t):!1}function qi(e,t){let n=Gi(e,t),r=Ki(e,t),i=Ri(Hi(ua([e,t])));return n&&r?jr(vn(i)):n&&!r?jr(i):!n&&r?vn(i):i}function Ji(e,t,n){return n in e?n in t?qi(e[n],t[n]):e[n]:n in t?t[n]:pn()}function Yi(e,t){return[...new Set([...C(t),...C(e)])].reduce((n,r)=>({...n,[r]:Ji(e,t,r)}),{})}function Xi(e){return P(e)?e.properties:V(e)?Ui(e.items):Kn()}function Zi(e,t){return N(Yi(Xi(e),Xi(t)))}function Qi(e,t){let n=sl(e,t);return v(n,`left-inside`)?e:v(n,`right-inside`)||v(n,`equal`)?t:pn()}function $i(e){return P(e)||V(e)}function ea(e,t){let n=B(e),r=B(t);return n||r}function ta(e,t){let n=pa(e),r=pa(t),i=ea(n,r),a=$i(n),o=$i(r);return i?ua([n,r]):a&&o?Zi(n,r):a&&!o?n:!a&&o?r:Qi(n,r)}function na(e,t,n=[]){return b(t,(t,r)=>na(e,r,[...n,ta(e,t)]),()=>v(n.length,0)?[e]:n)}function ra(e,t,n=[]){return b(e,(e,r)=>ra(r,t,[...n,...ia([e],t)]),()=>n)}function ia(e,t=[]){return b(e,(e,n)=>B(e)?ia(n,ra(e.anyOf,t)):ia(n,na(e,t)),()=>t)}function aa(e,t){return ls(ol({},e,t))?[]:[e]}function oa(e,t){return e.reduce((e,n)=>[...e,...aa(n,t)],[])}function sa(e,t){let n=pa(e);return fa(oa(B(n)?n.anyOf:[n],t))}function ca(e,t,n){return fa([Bn([e,t]),sa(n,e)])}function la(e){return fa(e.map(e=>L(e)))}function ua(e){return ma(fl(ia(e)))}function da(e){return pa(ki(e))}function fa(e){return ma(fl(e))}function pa(e){return Pn(e)?ca(e.if,e.then,e.else):zn(e)?la(e.enum):F(e)?ua(e.allOf):is(e)?da(e.pattern):B(e)?fa(e.anyOf):e}function ma(e){return v(e.length,1)?e[0]:v(e.length,0)?pn():z(e)}function ha(e,t){return ka(la(e),t)}function ga(e,t){return Ai(Ma,t)}function _a(e,t){return ka(ua(e),t)}function va(e,t){return g(e)||m(e)?N({[e]:t}):v(e,!1)?N({false:t}):v(e,!0)?N({true:t}):N({})}function ya(e,t){return Ai(Na,t)}function ba(e,t){return x(e,`pattern`)&&(g(e.pattern)||e.pattern instanceof RegExp)?Ai(e.pattern.toString(),t):Ai(Pa,t)}function xa(e,t){return vi(pi(e))?ka(da(e),t):Ai(e,t)}function Sa(e){return B(e)?Ca(e.anyOf):[e]}function Ca(e){return e.reduce((e,t)=>[...e,...Sa(t)],[])}function wa(e){return e.some(e=>di(e)||ii(e)||Ur(e))}function Ta(e,t){return v(wa(e),!0)?Ai(Pa,t):void 0}function Ea(e,t){return e.reduce((e,n)=>R(n)&&(g(n.const)||m(n.const))?{...e,[n.const]:t}:e,{})}function Da(e,t){return N(Ea(e,t))}function Oa(e,t){let n=Ca(e),r=Ta(n,t);return Wt(r)?r:Da(n,t)}function ka(e,t){return fn(e)?ji(t):Br(e)?Mi(t):zn(e)?ha(e.enum,t):Ur(e)?ga(e,t):F(e)?_a(e.allOf,t):R(e)?va(e.const,t):ii(e)?ya(e,t):B(e)?Oa(e.anyOf,t):di(e)?ba(e,t):is(e)?xa(e.pattern,t):N({})}function Aa(e,t,n){return q([e])?k(ka(e,t),{},n):Fa(e,t,n)}function ja(e,t,n,r,i){return Aa(J(e,t,n),J(e,t,r),i)}const Ma=`^${Vr}$`,Na=`^${ni}$`,Pa=`^.*$`;function Fa(e,t,n={}){return j(`Record`,[e,t],n)}function Ia(e,t,n={}){return Aa(e,t,n)}function La(e,t){return Ai(e,t)}function Ra(e){return v(e,Pa)?ui():v(e,Ma)?Hr():v(e,Na)?ri():Oi(e)}function za(e){return C(e.patternProperties)[0]}function Ba(e){return Ra(za(e))}function Va(e){return e.patternProperties[za(e)]}function Ha(e){return A(e,`Record`)}function Ua(e){return O({"~kind":`Rest`},{type:`rest`,items:e},{})}function Wa(e){return A(e,`Rest`)}function Ga(e){return A(e,`This`)}function Ka(e){return O({"~kind":`Undefined`},{type:`undefined`},e)}function qa(e){return A(e,`Undefined`)}function Ja(e){return A(e,`Void`)}function Ya(e){return Rr()}function Xa(e){return ui()}function Za(e){return ri()}function Qa(e){return Hr()}function $a(e){return pn()}function eo(e){return L(e)}function to(e){return e}function no(e){return z(e[1])}function ro(e){return e.length===3?[...e[0],...e[2]]:e.length===1?[...e[0]]:[]}function io(e){return[e[0],...e[1]]}function ao(e){return e}function oo(e){return e[1]}function so(e){return v(e.length,2)}function co(e,t,n){return so(e)?t(e[0],e[1]):n()}function lo(e,t){return v(t.indexOf(e),0)?[e,t.slice(e.length)]:[]}function uo(e,t){for(let n=0;nString.fromCharCode(e+n))}const po=[...fo(97,122),...fo(65,90)],mo=[`0`,...fo(49,57)];function ho(e){let t=e.indexOf(`*/`);return v(t,-1)?``:e.slice(t+2)}function go(e){let t=e.indexOf(` -`);return v(t,-1)?``:e.slice(t)}function _o(e){return e.replace(/^[ \t\r\f\v]+/,``)}function vo(e){let t=_o(e);return t.startsWith(`/*`)?vo(ho(t.slice(2))):t.startsWith(`//`)?vo(go(t.slice(2))):t}function yo(e){let t=e.trimStart();return t.startsWith(`/*`)?yo(ho(t.slice(2))):t.startsWith(`//`)?yo(go(t.slice(2))):t}[...mo];function bo(e,t){return uo([e],t)}function xo(e,t){return v(e,``)?[``,t]:e.startsWith(` -`)?bo(e,vo(t)):e.startsWith(` `)?bo(e,t):bo(e,yo(t))}[...po,...mo],[...mo];function So(e){return v(e,``)?[]:[e.slice(0,1),e.slice(1)]}function Co(e,t){return b(e,(e,n)=>t.startsWith(e)?!0:Co(n,t),()=>!1)}function wo(e,t,n=``){return co(So(t),(r,i)=>Co(e,t)?[n,t]:wo(e,i,`${n}${r}`),()=>[])}function To(e,t){return co(wo(e,t),(e,t)=>v(e,``)?[]:[e,t],()=>[])}const H=(e,t,n=()=>[])=>e.length===2?t(e):n(),Eo=e=>H(xo(`-?(?:0|[1-9][0-9]*)n`,e),([e,t])=>[Ya(e),t]),Do=e=>H(xo(`.*`,e),([e,t])=>[Xa(e),t]),Oo=e=>H(xo(`-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?`,e),([e,t])=>[Za(e),t]),ko=e=>H(xo(`-?(?:0|[1-9][0-9]*)`,e),([e,t])=>[Qa(e),t]),Ao=e=>H(xo(`(?!)`,e),([e,t])=>[$a(e),t]),jo=e=>H(To([`-?(?:0|[1-9][0-9]*)n`,`.*`,`-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?`,`-?(?:0|[1-9][0-9]*)`,`(?!)`,`(`,`)`,`$`,`|`],e),([e,t])=>[eo(e),t]),Mo=e=>H(H(Eo(e),([e,t])=>[e,t],()=>H(Do(e),([e,t])=>[e,t],()=>H(Oo(e),([e,t])=>[e,t],()=>H(ko(e),([e,t])=>[e,t],()=>H(Ao(e),([e,t])=>[e,t],()=>H(No(e),([e,t])=>[e,t],()=>H(jo(e),([e,t])=>[e,t],()=>[]))))))),([e,t])=>[to(e),t]),No=e=>H(H(xo(`(`,e),([e,t])=>H(Io(t),([t,n])=>H(xo(`)`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[no(e),t]),Po=e=>H(H(H(Fo(e),([e,t])=>H(xo(`|`,t),([t,n])=>H(Po(n),([n,r])=>[[e,t,n],r]))),([e,t])=>[e,t],()=>H(H(Fo(e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>H([[],e],([e,t])=>[e,t],()=>[]))),([e,t])=>[ro(e),t]),Fo=e=>H(H(Mo(e),([e,t])=>H(Io(t),([t,n])=>[[e,t],n])),([e,t])=>[io(e),t]),Io=e=>H(H(Po(e),([e,t])=>[e,t],()=>H(Fo(e),([e,t])=>[e,t],()=>[])),([e,t])=>[ao(e),t]),Lo=e=>H(H(xo(`^`,e),([e,t])=>H(Io(t),([t,n])=>H(xo(`$`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[oo(e),t]);function Ro(e){return e.join(`|`)}function zo(e){return e.slice(1,e.length-1)}function Bo(e,t,n){return Zo(t,`${n}${e}`)}function Vo(e,t){return Zo(e,`${t}-?(?:0|[1-9][0-9]*)n`)}function Ho(e,t){return Zo(e,`${t}${Vr}`)}function Uo(e,t){return Zo(e,`${t}${ni}`)}function Wo(e,t){return Xo(z([L(`false`),L(`true`)]),e,t)}function Go(e,t){return Zo(e,`${t}.*`)}function Ko(e,t,n){return Zo(t,`${n}${zo(e)}`)}function qo(e,t,n){return Xo(es(e,{}),t,n)}function Jo(e,t,n){return Xo(la(e),t,n)}function Yo(e,t,n,r=[]){return b(e,(e,i)=>Yo(i,t,n,[...r,Xo(e,[],``)]),()=>Zo(t,`${n}(${Ro(r)})`))}function Xo(e,t,n){return zn(e)?Jo(e.enum,t,n):Ur(e)?Ho(t,n):R(e)?Bo(e.const,t,n):zr(e)?Vo(t,n):Br(e)?Wo(t,n):ii(e)?Uo(t,n):di(e)?Go(t,n):is(e)?Ko(e.pattern,t,n):rs(e)?qo(e.parameters[0],t,n):B(e)?Yo(e.anyOf,t,n):`(?!)`}function Zo(e,t){return b(e,(e,n)=>Xo(e,n,t),()=>t)}function Qo(e){return`^${Zo(e,``)}$`}function $o(e){return yi(Qo(e))}function es(e,t){return q(e)?k($o(e),{},t):ns(e,t)}function ts(e,t,n,r){return es(hp(e,t,n),r)}function ns(e,t={}){return j(`TemplateLiteral`,[e],t)}function rs(e){return Wt(e)&&x(e,`action`)&&v(e.action,`TemplateLiteral`)}function is(e){return A(e,`TemplateLiteral`)}function as(e){return O({"~kind":`ExtendsUnion`},{inferred:e})}function os(e){return h(e)&&x(e,`~kind`)&&x(e,`inferred`)&&v(e[`~kind`],`ExtendsUnion`)&&h(e.inferred)}function U(e){return O({"~kind":`ExtendsTrue`},{inferred:e})}function ss(e){return h(e)&&x(e,`~kind`)&&x(e,`inferred`)&&v(e[`~kind`],`ExtendsTrue`)&&h(e.inferred)}function W(){return O({"~kind":`ExtendsFalse`},{})}function cs(e){return h(e)&&x(e,`~kind`)&&v(e[`~kind`],`ExtendsFalse`)}function ls(e){return os(e)||ss(e)}function us(e,t,n){return ls(e)?t(e.inferred):n()}function ds(e,t,n,i){return us(K(e,n,i),i=>U(r(r(e,i),{[t]:n})),()=>W())}function fs(e,t){return U(e)}function ps(e,t,n,r,i){return us(K(e,t,n),e=>us(K(e,t,r),e=>U(e),()=>W()),()=>us(K(e,t,i),e=>U(e),()=>W()))}function ms(e,t,n){return K(e,t,la(n))}function hs(e,t,n){return b(n,(n,r)=>us(K(e,t,n),e=>hs(e,t,r),()=>W()),()=>U(e))}function gs(e,t,n){return K(e,t,da(n))}function _s(e,t,n){return b(n,(n,r)=>us(K(e,t,n),e=>U(e),()=>_s(e,t,r)),()=>W())}function G(e,t,n){return fn(n)?fs(e,t):Pn(n)?ps(e,t,n.if,n.then,n.else):zn(n)?ms(e,t,n.enum):Mn(n)?ds(e,n.name,t,n.extends):F(n)?hs(e,t,n.allOf):is(n)?gs(e,t,n.pattern):B(n)?_s(e,t,n.anyOf):En(n)?U(e):W()}function vs(e,t,n){return Mn(n)?G(e,t,n):fn(n)||En(n)?U(e):as(e)}function ys(e,t){let n=Dr(e),r=Dr(t);return n&&r||!n&&r?!0:!(n&&!r)}function bs(e,t,n,r){return M(r)?ys(t,r)?K(e,n,r.items):W():G(e,t,r)}function xs(e,t,n){return Qt(n)?K(e,t,n.iteratorItems):G(e,Zt(t),n)}function Ss(e,t,n){return zr(n)?U(e):G(e,t,n)}function Cs(e,t,n){return Br(n)?U(e):G(e,t,n)}function ws(e,t,n,r,i){let a=Mn(r)?t:r,o=Mn(r)?r:t,s=bn(t),c=bn(r);return!s&&c?W():us(K(e,a,o),e=>Ds(e,n,i),()=>W())}function Ts(e,t,n,r){return b(r,(r,i)=>ws(e,t,n,r,i),()=>bn(t)?U(e):W())}function Es(e,t,n){return b(t,(t,r)=>Ts(e,t,r,n),()=>U(e))}function Ds(e,t,n){return Es(e,t,n)}function Os(e,t,n){return Ja(n)?U(e):K(e,t,n)}function ks(e,t,n,r){return fn(r)||En(r)?U(e):tn(r)?us(Ds(e,t,r.parameters),e=>Os(e,n,r.instanceType),()=>W()):W()}function As(e,t,n,r,i){return us(K(e,t,i),()=>K(e,n,i),()=>K(e,r,i))}function js(e,t,n){return K(e,la(t),n)}function Ms(e,t,n,r){return fn(r)||En(r)?U(e):an(r)?us(Ds(e,t,r.parameters),e=>Os(e,n,r.returnType),()=>W()):W()}function Ns(e,t,n){return Ur(n)||ii(n)?U(e):G(e,t,n)}function Ps(e,t,n){return K(e,ua(t),n)}function Fs(e,t,n){return Gr(n)?K(e,t,n.iteratorItems):G(e,Wr(t),n)}function Is(e,t,n){return t===n?U(e):W()}function Ls(e,t,n){return R(n)?Is(e,t,n.const):zr(n)?U(e):G(e,L(t),n)}function Rs(e,t,n){return R(n)?Is(e,t,n.const):Br(n)?U(e):G(e,L(t),n)}function zs(e,t,n){return R(n)?Is(e,t,n.const):ii(n)?U(e):G(e,L(t),n)}function Bs(e,t,n){return R(n)?Is(e,t,n.const):di(n)?U(e):G(e,L(t),n)}function Vs(e,t,n){return f(t.const)?Ls(e,t.const,n):p(t.const)?Rs(e,t.const,n):m(t.const)?zs(e,t.const,n):g(t.const)?Bs(e,t.const,n):Kn()}function Hs(e,t,n){return Mn(n)?G(e,t,n):U(e)}function Us(e,t,n){return ti(n)?U(e):G(e,t,n)}function Ws(e,t,n){return ii(n)?U(e):G(e,t,n)}function Gs(e,t,n){return bn(t)?bn(n)?U(e):W():U(e)}function Ks(e,t,n){return Mn(n)&&mn(n.extends)?W():us(K(e,t,n),e=>Gs(e,t,n),()=>W())}function qs(e,t){return e.reduce((e,n)=>n in t&&ls(t[n])?{...e,...t[n].inferred}:Kn(),{})}function Js(e,t,n){let i={};for(let a of C(n))i[a]=a in t?Ks({},t[a],n[a]):bn(n[a])?Mn(n[a])?U(r(e,{[n[a].name]:n[a].extends})):U(e):W();let a=ke(i).every(e=>ls(e)),o=a?qs(C(i),i):{};return a?U(o):W()}function Ys(e,t,n){let i=Js(e,t,n);return ls(i)?U(r(e,i.inferred)):W()}function Xs(e,t,n){return Ys(e,t,n)}function Zs(e,t){return C(t).reduce((n,r)=>({...n,[r]:x(e,r)?B(n[r])?z([...n[r].anyOf,t[r]]):z([e[r],t[r]]):t[r]}),e)}function Qs(e,t,n,r){return b(t,(t,i)=>us(K({},e[t],n),t=>Qs(e,i,n,Zs(r,t)),()=>W()),()=>U(r))}function $s(e,t,n,r){return Qs(t,C(t),r,e)}function ec(e,t,n){return Ha(n)?$s(e,t,za(n),Va(n)):P(n)?Xs(e,t,n.properties):G(e,N(t),n)}function tc(e,t,n){return ci(n)?K(e,t,n.item):G(e,si(t),n)}function nc(e,t){return v(C(t).length,0)?U(e):W()}function rc(e,t,n,r,i){return K(e,n,i)}function ic(e,t,n,r){return Ha(r)?rc(e,Ra(t),n,Ra(za(r)),Va(r)):P(r)?nc(e,r.properties):fn(r)||En(r)?U(e):W()}function ac(e,t,n){return di(n)?U(e):G(e,t,n)}function oc(e,t,n){return oi(n)?U(e):G(e,t,n)}function sc(e,t,n){return K(e,da(t),n)}function cc(e,t){return O({"~kind":`Inferrable`},{name:e,type:t},{})}function lc(e){return h(e)&&x(e,`~kind`)&&x(e,`name`)&&x(e,`type`)&&v(e[`~kind`],`Inferrable`)&&g(e.name)&&h(e.type)}function uc(e){return Wa(e)?Mn(e.items)?M(e.items.extends)?cc(e.items.name,e.items.extends.items):En(e.items.extends)?cc(e.items.name,e.items.extends):void 0:Kn():void 0}function dc(e){return Mn(e)?cc(e.name,e.extends):void 0}function fc(e,t,n=[]){return b(e,(e,r)=>us(K({},e,t),()=>fc(r,t,[...n,e]),()=>void 0),()=>n)}function pc(e,t,n,i){let a=fc(n,i);return d(a)?U(r(e,{[t]:Ni(a)})):W()}function mc(e,t,n,i){let a=fc(n,i);return d(a)?U(r(e,{[t]:z(a)})):W()}function hc(e){return[...e].reverse()}function gc(e,t){return t?hc(e):e}function _c(e){let t=e.length>0?e[0]:void 0;return Wt(Wt(t)?uc(t):void 0)}function vc(e,t,n,r,i,a){return us(K(e,n,i),e=>xc(e,t,r,a),()=>W())}function yc(e,t,n,r,i){let a=uc(r);return lc(a)?pc(e,a.name,gc(n,t),a.type):b(n,(n,a)=>vc(e,t,n,a,r,i),()=>W())}function bc(e,t,n,r){return b(r,(r,i)=>yc(e,t,n,r,i),()=>v(n.length,0)?U(e):W())}function xc(e,t,n,r){return bc(e,t,n,r)}function Sc(e,t,n){let r=mp(e,fp([],[]),n),i=_c(r);return xc(e,i,gc(t,i),gc(r,i))}function Cc(e,t,n){let r=dc(n);return lc(r)?mc(e,r.name,t,r.type):b(t,(t,r)=>us(K(e,t,n),e=>Cc(e,r,n),()=>W()),()=>U(e))}function wc(e,t,n){let r=mp(e,fp([],[]),t);return V(n)?Sc(e,r,n.items):M(n)?Cc(e,r,n.items):G(e,Ni(r),n)}function Tc(e,t,n){return Ja(n)||qa(n)?U(e):G(e,t,n)}function Ec(e,t,n){return b(n,(n,r)=>us(K(e,t,n),e=>U(e),()=>Ec(e,t,r)),()=>W())}function Dc(e,t,n){return b(t,(t,r)=>us(Ec(e,t,n),e=>Dc(e,r,n),()=>W()),()=>U(e))}function Oc(e,t,n){let r=dc(n);return lc(r)?mc(e,r.name,t,r.type):B(n)?Dc(e,t,n.anyOf):Dc(e,t,[n])}function kc(e,t,n){return Mn(n)?G(e,t,n):fn(n)||En(n)?U(e):W()}function Ac(e,t,n){return Ja(n)?U(e):G(e,t,n)}function K(e,t,n){return fn(t)?vs(e,t,n):M(t)?bs(e,t,t.items,n):Qt(t)?xs(e,t.iteratorItems,n):zr(t)?Ss(e,t,n):Br(t)?Cs(e,t,n):tn(t)?ks(e,t.parameters,t.instanceType,n):Pn(t)?As(e,t.if,t.then,t.else,n):zn(t)?js(e,t.enum,n):an(t)?Ms(e,t.parameters,t.returnType,n):Ur(t)?Ns(e,t,n):F(t)?Ps(e,t.allOf,n):Gr(t)?Fs(e,t.iteratorItems,n):R(t)?Vs(e,t,n):mn(t)?Hs(e,t,n):ti(t)?Us(e,t,n):ii(t)?Ws(e,t,n):P(t)?ec(e,t.properties,n):ci(t)?tc(e,t.item,n):Ha(t)?ic(e,za(t),Va(t),n):di(t)?ac(e,t,n):oi(t)?oc(e,t,n):is(t)?sc(e,t.pattern,n):V(t)?wc(e,t.items,n):qa(t)?Tc(e,t,n):B(t)?Oc(e,t.anyOf,n):En(t)?kc(e,t,n):Ja(t)?Ac(e,t,n):W()}function jc(e,t){return ua([...e,N(t)])}function Mc(e,t,n){return q(e)?k(jc(e,t),{},n):Pc(e,t,n)}function Nc(e,t,n,r,i){return Mc(hp(e,t,n),pp(e,t,r),i)}function Pc(e,t,n={}){return j(`Interface`,[e,t],n)}function Fc(e){return Wt(e)&&x(e,`action`)&&v(e.action,`Interface`)}function Ic(e,t,n){return e.includes(n)?!0:zc([...e,n],t,t[n])}function Lc(e,t,n){return Rc(e,t,Cn(n))}function Rc(e,t,n){return b(n,(n,r)=>zc(e,t,n)?!0:Rc(e,t,r),()=>!1)}function zc(e,t,n){return cn(n)?Ic(e,t,n.$ref):M(n)?zc(e,t,n.items):Qt(n)?zc(e,t,n.iteratorItems):tn(n)?Rc(e,t,[...n.parameters,n.instanceType]):an(n)?Rc(e,t,[...n.parameters,n.returnType]):Fc(n)?Lc(e,t,n.parameters[1]):F(n)?Rc(e,t,n.allOf):Gr(n)?zc(e,t,n.iteratorItems):P(n)?Lc(e,t,n.properties):ci(n)?zc(e,t,n.item):B(n)?Rc(e,t,n.anyOf):V(n)?Rc(e,t,n.items):Ha(n)?zc(e,t,Va(n)):!1}function Bc(e,t,n){return zc(e,t,n)}function Vc(e,t){return t.reduce((t,n)=>Bc([n],e,e[n])?[...t,n]:t,[])}function Hc(e){return Vc(e,Sn(e))}function Uc(e,t,n){return n.includes(t)?n:t in e?Kc(e,e[t],[...n,t]):Kn()}function Wc(e,t,n){return Gc(e,Cn(t),n)}function Gc(e,t,n){return t.reduce((t,n)=>Kc(e,n,t),n)}function Kc(e,t,n){return cn(t)?Uc(e,t.$ref,n):M(t)?Kc(e,t.items,n):Qt(t)?Kc(e,t.iteratorItems,n):tn(t)?Gc(e,[...t.parameters,t.instanceType],n):an(t)?Gc(e,[...t.parameters,t.returnType],n):Fc(t)?Wc(e,t.parameters[1],n):F(t)?Gc(e,t.allOf,n):Gr(t)?Kc(e,t.iteratorItems,n):P(t)?Wc(e,t.properties,n):ci(t)?Kc(e,t.item,n):B(t)?Gc(e,t.anyOf,n):V(t)?Gc(e,t.items,n):Ha(t)?Kc(e,Va(t),n):n}function qc(e,t,n){return Kc(e,n,[t])}function Jc(e){return dn()}function Yc(e){return C(e).reduce((t,n)=>({...t,[n]:Zc(e[n])}),{})}function Xc(e){return e.reduce((e,t)=>[...e,Zc(t)],[])}function Zc(e){return cn(e)?Jc(e.$ref):M(e)?Yt(Zc(e.items),Xt(e)):Qt(e)?Zt(Zc(e.iteratorItems)):tn(e)?en(Xc(e.parameters),Zc(e.instanceType)):an(e)?rn(Xc(e.parameters),Zc(e.returnType)):F(e)?Bn(Xc(e.allOf)):Gr(e)?Wr(Zc(e.iteratorItems)):P(e)?N(Yc(e.properties)):ci(e)?si(Zc(e.item)):Ha(e)?Ia(Ba(e),Zc(Va(e))):B(e)?z(Xc(e.anyOf)):V(e)?Ni(Xc(e.items)):e}function Qc(e,t){return t in e?Zc(e[t]):Tn()}function $c(e){return Qc(e.$defs,e.$ref)}function el(e,t,n){let r=hp(e,fp([],[]),t),i=pp({},fp([],[]),n);return ua([...r,N(i)])}function tl(e,t){return C(e).filter(e=>t.includes(e)).reduce((t,n)=>{let r=e[n],i=Fc(r)?el(e,r.parameters[0],r.parameters[1]):r;return{...t,[n]:i}},{})}function nl(e,t,n){return Dn(tl(e,qc(e,t,n)),t)}function rl(e,t){return t in e?cn(e[t])?rl(e,e[t].$ref):e[t]:pn()}function il(e,t){return rl(e,t)}function al(e){return On(e)?$c(e):An(e)?Tn():e}function ol(e,t,n){return K(e,al(t),al(n))}function sl(e,t){let n=[En(e)?W():ol({},e,t),En(e)?U({}):ol({},t,e)];return ls(n[0])&&ls(n[1])?`equal`:ls(n[0])&&cs(n[1])?`left-inside`:cs(n[0])&&ls(n[1])?`right-inside`:`disjoint`}function cl(e,t){return t.filter(t=>sl(e,t)!==`right-inside`)}function ll(e,t){return v(t.some(t=>{let n=sl(e,t);return v(n,`left-inside`)||v(n,`equal`)}),!1)}function ul(e,t){let n=pa(e);return fn(n)?[n]:ll(n,t)?[...cl(n,t),n]:t}function dl(e){return e.reduce((e,t)=>P(t)?[...e,t]:mn(t)?e:ul(t,e),[])}function fl(e){return Ca(dl(e))}function pl(e,t){return k(pa(e),{},t)}function ml(e,t,n,r){return pl(J(e,t,n),r)}function hl(e,t=[]){return Gt(e)&&v(e.action,`Conditional`)?cn(e.parameters[0])?hl(e.parameters[2],hl(e.parameters[3],[...t,e.parameters[0].$ref])):hl(e.parameters[2],hl(e.parameters[3],t)):Gt(e)&&v(e.action,`Mapped`)&&Gt(e.parameters[1])&&v(e.parameters[1].action,`KeyOf`)&&cn(e.parameters[1].parameters[0])?[...t,e.parameters[1].parameters[0].$ref]:t}function gl(e,t){return e.reduce((e,n)=>[...e,t.includes(n.name)],[])}function _l(e,t,n=[]){return b(e,(e,r)=>b(t,(t,i)=>_l(r,i,[...n,[t,e]]),()=>n),()=>n)}function vl(e){return B(e)?[...e.anyOf]:[e]}function yl(e,t){return e.reduce((e,n)=>[...e,[...n,t]],[])}function bl(e,t){return t.reduce((t,n)=>[...t,...yl(e,n)],[])}function xl(e){return e.reduce((e,t)=>v(t[0],!0)?bl(e,vl(t[1])):bl(e,[t[1]]),[[]])}function Sl(e,t,n){let r=_l(t,gl(e,hl(n)));return Gt(n)&&v(n.action,`Conditional`)||Gt(n)&&v(n.action,`Mapped`)?xl(r):[t]}function Cl(){return[`(not-resolvable)`,pn()]}function wl(){return[`(not-generic)`,pn()]}function Tl(e,t,n){return[e,ln(t,n)]}function El(e,t,n){return t in e?Dl(e,t,e[t],n):Cl()}function Dl(e,t,n,r){return un(n)?Tl(t,n.parameters,n.expression):cn(n)?El(e,n.$ref,r):wl()}function Ol(e,t,n){return Dl(e,`(anonymous)`,t,n)}function kl(e,t,n){if(Mn(t)||Vl(t)||ls(ol({},t,n)))return;let r={parameter:e,expect:n,actual:t};throw Error(`Argument for parameter ${e} does not satisfy constraint`,{cause:r})}function Al(e,t,n,i,a){let o=J(e,t,a);return kl(n,o,i),r(e,{[n]:o})}function jl(e,t,n,r,i){let a=J(e,t,n.extends),o=J(e,t,n.equals);return b(i,(i,o)=>Ml(Al(e,t,n.name,a,i),t,r,o),()=>Ml(Al(e,t,n.name,a,o),t,r,[]))}function Ml(e,t,n,r){return b(n,(n,i)=>jl(e,t,n,i,r),()=>e)}function Nl(e,t,n,r){return Ml(e,t,n,r)}function Pl(e){return he(e.callstack.length,0)?e.callstack[e.callstack.length-1]:``}function Fl(e,t){return v(Pl(e),t)}function Il(e,t,n,r,i,a){let o=Nl(e,t,r,a),s=J(o,fp([...t.callstack,n.$ref],t.visited),i);return J(o,fp([],[]),s)}function Ll(e,t,n,r,i,a){return a.reduce((a,o)=>[...a,Il(e,t,n,r,i,o)],[])}function Rl(e,t,n,r,i,a){let o=Ll(e,t,n,r,i,Sl(r,a,i));return v(o.length,1)?o[0]:fa(o)}function zl(e,t,n,r){let i=hp(e,t,r),a=Ol(e,n,r),o=a[0],s=a[1];return un(s)?Fl(t,o)?Bl(sn(o),i):Rl(e,t,sn(o),s.parameters,s.expression,i):Bl(n,i)}function Bl(e,t){return O({"~kind":`Call`},{type:`call`,target:e,arguments:t},{})}function Vl(e){return A(e,`Call`)}function Hl(e){return Ut(e,[`~immutable`])}function Ul(e,t){return k(Hl(e),{},t)}function Wl(e,t,n,r){return Ul(J(e,t,n),r)}function Gl(e,t={}){return j(`Awaited`,[e],t)}function Kl(e){return ci(e)?Kl(e.item):e}function ql(e,t){return q([e])?k(Kl(e),{},t):Gl(e,t)}function Jl(e,t,n,r){return ql(J(e,t,n),r)}function Yl(e,t){return e(t)}function Xl(e,t){return g(t)?L(Yl(e,t)):L(t)}function Zl(e,t){return $l(e,da(t))}function Ql(e,t){return z(t.map(t=>$l(e,t)))}function $l(e,t){return R(t)?Xl(e,t.const):is(t)?Zl(e,t.pattern):B(t)?Ql(e,t.anyOf):t}function eu(e,t={}){return j(`Capitalize`,[e],t)}function tu(e,t={}){return j(`Lowercase`,[e],t)}function nu(e,t={}){return j(`Uncapitalize`,[e],t)}function ru(e,t={}){return j(`Uppercase`,[e],t)}const iu=e=>e[0].toUpperCase()+e.slice(1),au=e=>e.toLowerCase(),ou=e=>e[0].toLowerCase()+e.slice(1),su=e=>e.toUpperCase();function cu(e,t){return q([e])?k($l(iu,e),{},t):eu(e,t)}function lu(e,t){return q([e])?k($l(au,e),{},t):tu(e,t)}function uu(e,t){return q([e])?k($l(ou,e),{},t):nu(e,t)}function du(e,t){return q([e])?k($l(su,e),{},t):ru(e,t)}function fu(e,t,n,r){return cu(J(e,t,n),r)}function pu(e,t,n,r){return lu(J(e,t,n),r)}function mu(e,t,n,r){return uu(J(e,t,n),r)}function hu(e,t,n,r){return du(J(e,t,n),r)}function gu(e,t,n,r,i={}){return j(`Conditional`,[e,t,n,r],i)}function _u(e,t,n,r,i,a){let o=ol(e,n,r);return os(o)?z([J(o.inferred,t,i),J(e,t,a)]):ss(o)?J(o.inferred,t,i):J(e,t,a)}function vu(e,t,n,r,i,a,o){return q([n,r])?k(_u(e,t,n,r,i,a),{},o):gu(n,r,i,a,o)}function yu(e,t,n,r,i,a,o){return vu(e,t,J(e,t,n),J(e,t,r),i,a,o)}function bu(e,t={}){return j(`ConstructorParameters`,[e],t)}function xu(e){let t=tn(e)?e.parameters:[];return Ni(mp({},fp([],[]),t))}function Su(e,t){return q([e])?k(xu(e),{},t):bu(e,t)}function Cu(e,t,n,r){return Su(J(e,t,n),r)}function wu(e,t,n={}){return j(`Exclude`,[e,t],n)}function Tu(e,t,n){return q([e,t])?k(sa(e,t),{},n):wu(e,t,n)}function Eu(e,t,n,r,i){return Tu(J(e,t,n),J(e,t,r),i)}function Du(e,t,n={}){return j(`Extract`,[e,t],n)}function Ou(e,t){return ls(ol({},e,t))?[e]:[]}function ku(e,t){return e.reduce((e,n)=>[...e,...Ou(n,t)],[])}function Au(e,t){let n=pa(e);return fa(ku(B(n)?n.anyOf:[n],t))}function ju(e,t,n){return q([e,t])?k(Au(e,t),{},n):Du(e,t,n)}function Mu(e,t,n,r,i){return ju(J(e,t,n),J(e,t,r),i)}function Nu(e,t,n={}){return j(`Index`,[e,t],n)}function Pu(e,t){return Uu(il(e,t))}function Fu(e,t,n){return Uu(ca(e,t,n))}function Iu(e,t){let n=C(e).filter(e=>!x(t,e)),i=C(t).filter(t=>!x(e,t)),a=C(e).filter(e=>x(t,e)),o=n.reduce((t,n)=>({...t,[n]:e[n]}),{}),s=i.reduce((e,n)=>({...e,[n]:t[n]}),{}),c=a.reduce((n,r)=>({...n,[r]:ua([e[r],t[r]])}),{});return r(r(o,s),c)}function Lu(e){return e.reduce((e,t)=>Iu(e,Uu(t)),{})}function Ru(e){return e}function zu(e){return Uu(Wi(Ni(e)))}function Bu(e,t){return C(e).filter(e=>e in t).reduce((n,r)=>({...n,[r]:fa([e[r],t[r]])}),{})}function Vu(e,t){return b(e,(e,n)=>Vu(n,Bu(t,Uu(e))),()=>t)}function Hu(e){return b(e,(e,t)=>Vu(t,Uu(e)),()=>Kn())}function Uu(e){return On(e)?Pu(e.$defs,e.$ref):Pn(e)?Fu(e.if,e.then,e.else):F(e)?Lu(e.allOf):B(e)?Hu(e.anyOf):V(e)?zu(e.items):P(e)?Ru(e.properties):{}}function Wu(e){return N(Uu(e))}const Gu=RegExp(`^(?:0|[1-9][0-9]*)$`);function Ku(e){let t=`${e}`;return Gu.test(t)?parseInt(t):e}function qu(e){return L(Ku(e))}function Ju(e){return e.map(e=>Yu(e))}function Yu(e){return F(e)?Bn(Ju(e.allOf)):B(e)?z(Ju(e.anyOf)):R(e)?qu(e.const):e}function Xu(e,t){return ls(ol({},Yu(t),ri()))?e:R(t)&&v(t.const,`length`)?ri():pn()}function Zu(e,t){return id(il(e,t))}function Qu(e,t,n){return id(ca(e,t,n))}function $u(e){return id(la(e))}function ed(e){return id(ua(e))}function td(e){return[`${e}`]}function nd(e){return id(da(e))}function rd(e){return e.reduce((e,t)=>[...e,...id(t)],[])}function id(e){return On(e)?Zu(e.$defs,e.$ref):Pn(e)?Qu(e.if,e.then,e.else):zn(e)?$u(e.enum):F(e)?ed(e.allOf):R(e)?td(e.const):is(e)?nd(e.pattern):B(e)?rd(e.anyOf):[]}function ad(e){return id(e)}function od(e,t){return t.map(t=>sd(e,t))}function sd(e,t){return M(t)?Yt(sd(e,t.items)):Qt(t)?Zt(sd(e,t.iteratorItems)):tn(t)?en(od(e,t.parameters),sd(e,t.instanceType)):an(t)?rn(od(e,t.parameters),sd(e,t.returnType)):Gr(t)?Wr(sd(e,t.iteratorItems)):ci(t)?si(sd(e,t.item)):V(t)?Ni(od(e,t.items)):B(t)?z(od(e,t.anyOf)):F(t)?Bn(od(e,t.allOf)):Ga(t)?N(e):t}function cd(e,t){return sd(e,t)}function ld(e,t){return cd(e,t in e?e[t]:pn())}function ud(e,t){return t.reduce((t,n)=>[...t,ld(e,n)],[])}function dd(e,t){return fa(ud(e,ad(t)))}const fd=new RegExp(Ma);function pd(e){return e.filter(e=>fd.test(e))}function md(e){return fa(ud(e,pd(Sn(e))))}function hd(e,t){return ii(t)?md(e):dd(e,t)}function gd(e){return L(Ku(e))}function _d(e){return e.map(e=>vd(e))}function vd(e){return F(e)?Bn(_d(e.allOf)):B(e)?z(_d(e.anyOf)):R(e)?gd(e.const):e}function yd(e,t){return e.reduceRight((e,n,r)=>ls(ol({},L(r),t))?[n,...e]:e,[])}function bd(e,t){return ma(yd(e,vd(t)))}function xd(e){return ma(e)}function Sd(e,t){return R(t)&&v(t.const,`length`)?L(e.length):ii(t)||Ur(t)?xd(e):bd(e,t)}function Cd(e,t){return M(e)?Xu(e.items,t):P(e)?hd(e.properties,t):V(e)?Sd(e.items,t):pn()}function wd(e){return On(e)||Pn(e)||F(e)||B(e)?Wu(e):e}function Td(e,t,n){return q([e,t])?k(Cd(wd(e),t),{},n):Nu(e,t,n)}function Ed(e,t,n,r,i){return Td(J(e,t,n),J(e,t,r),i)}function Dd(e,t={}){return j(`InstanceType`,[e],t)}function Od(e){return tn(e)?e.instanceType:pn()}function kd(e,t){return q([e])?k(Od(e),{},t):Dd(e,t)}function Ad(e,t,n,r={}){return kd(J(e,t,n),r)}function jd(e,t={}){return j(`KeyOf`,[e],t)}function Md(){return z([ri(),ui(),ai()])}function Nd(e){return ri()}function Pd(e){return e.reduce((e,t)=>Yr(t)?[...e,L(Ku(t))]:Kn(),[])}function Fd(e){return ma(Pd(C(e)))}function Id(e){return Ba(e)}function Ld(e){return ma(e.map((e,t)=>L(t)))}function Rd(e){return fn(e)?Md():M(e)?Nd(e.items):P(e)?Fd(e.properties):Ha(e)?Id(e):V(e)?Ld(e.items):pn()}function zd(e){return On(e)||Pn(e)||F(e)||B(e)?Wu(e):e}function Bd(e,t){return q([e])?k(Rd(zd(e)),{},t):jd(e,t)}function Vd(e,t,n,r){return Bd(J(e,t,n),r)}function Hd(e,t,n,r,i={}){return j(`Mapped`,[e,t,n,r],i)}function Ud(e){return qd(da(e))}function Wd(e){return e.reduce((e,t)=>[...e,...qd(t)],[])}function Gd(e){return qd(la(e))}function Kd(e){return m(e)?[L(`${e}`)]:[L(e)]}function qd(e){return zn(e)?Gd(e.enum):R(e)?Kd(e.const):is(e)?Ud(e.pattern):B(e)?Wd(e.anyOf):[e]}function Jd(e){return qd(e)}function Yd(e){return is(e)?da(e.pattern):e}function Xd(e,t,n,i,a,o){let s=r(e,{[n.name]:i}),c=Yd(J(s,t,a)),l=J(s,t,o);return Qr(c)||$r(c)?{[c.const]:l}:{}}function Zd(e,t,n,r,i,a){return r.reduce((r,o)=>[...r,Xd(e,t,n,o,i,a)],[])}function Qd(e){return e.reduce((e,t)=>[...e,N(t)],[])}function $d(e,t,n,r,i,a){return ua(Qd(Zd(e,t,n,Jd(r),i,a)))}function ef(e,t,n,r,i,a,o){return q([r])?k($d(e,t,n,r,i,a),{},o):Hd(n,r,i,a,o)}function tf(e,t,n,r,i,a,o){return ef(e,t,n,J(e,t,r),i,a,o)}function nf(e,t,n){let i=r(e,t);return C(t).filter(e=>n.includes(e)).reduce((e,n)=>({...e,[n]:nl(i,n,t[n])}),{})}function rf(e,t,n){let i=r(e,t);return C(t).filter(e=>!n.includes(e)).reduce((e,n)=>({...e,[n]:J(i,fp([],[]),t[n])}),{})}function af(e,t,n){let r=Hc(t),i=nf(e,t,r),a=rf(e,t,r);return k({...i,...a},{},n)}function of(e,t,n,r){return af(e,n,r)}function sf(e,t={}){return j(`NonNullable`,[e],t)}function cf(e){return Tu(e,z([ei(),Ka()]),{})}function lf(e,t){return q([e])?k(cf(e),{},t):sf(e,t)}function uf(e,t,n,r){return lf(J(e,t,n),r)}function df(e,t,n={}){return j(`Omit`,[e,t],n)}function ff(e){let t=Wu(e);return P(t)?t.properties:Kn()}function pf(e,t){return C(e).reduce((n,r)=>t.includes(r)?n:{...n,[r]:e[r]},{})}function mf(e,t){return N(pf(ff(e),ad(t)))}function hf(e,t,n){return q([e,t])?k(mf(e,t),{},n):df(e,t,n)}function gf(e,t,n,r,i){return hf(J(e,t,n),J(e,t,r),i)}function _f(e,t={}){return j(`Parameters`,[e],t)}function vf(e){let t=an(e)?e.parameters:[];return Ni(mp({},fp([],[]),t))}function yf(e,t){return q([e])?k(vf(e),{},t):_f(e,t)}function bf(e,t,n,r){return yf(J(e,t,n),r)}function xf(e,t={}){return j(`Partial`,[e],t)}function Sf(e,t){let n=Df(il(e,t));return Dn(r(e,{[t]:n}),t)}function Cf(e,t,n){return Df(ca(e,t,n))}function wf(e){return Df(ua(e))}function Tf(e){return z(e.map(e=>Df(e)))}function Ef(e){return N(C(e).reduce((t,n)=>({...t,[n]:vn(e[n])}),{}))}function Df(e){return On(e)?Sf(e.$defs,e.$ref):Pn(e)?Cf(e.if,e.then,e.else):F(e)?wf(e.allOf):B(e)?Tf(e.anyOf):P(e)?Ef(e.properties):N({})}function Of(e,t){return q([e])?k(Df(e),{},t):xf(e,t)}function kf(e,t,n,r){return Of(J(e,t,n),r)}function Af(e,t,n={}){return j(`Pick`,[e,t],n)}function jf(e,t){return C(e).reduce((n,i)=>t.includes(i)?r(n,{[i]:e[i]}):n,{})}function Mf(e,t){return N(jf(ff(e),ad(t)))}function Nf(e,t,n){return q([e,t])?k(Mf(e,t),{},n):Af(e,t,n)}function Pf(e,t,n,r,i){return Nf(J(e,t,n),J(e,t,r),i)}function Ff(e,t={}){return j(`ReadonlyObject`,[e],t)}function If(e){return Cp(Yt(e))}function Lf(e,t){let n=Uf(il(e,t));return Dn(r(e,{[t]:n}),t)}function Rf(e,t,n){return Uf(ca(e,t,n))}function zf(e){return Uf(ua(e))}function Bf(e){return N(C(e).reduce((t,n)=>({...t,[n]:jr(e[n])}),{}))}function Vf(e){return Cp(Ni(e))}function Hf(e){return z(e.map(e=>Uf(e)))}function Uf(e){return M(e)?If(e.items):On(e)?Lf(e.$defs,e.$ref):Pn(e)?Rf(e.if,e.then,e.else):F(e)?zf(e.allOf):P(e)?Bf(e.properties):V(e)?Vf(e.items):B(e)?Hf(e.anyOf):e}function Wf(e,t){return q([e])?k(Uf(e),{},t):Ff(e)}function Gf(e,t,n,r){return Wf(J(e,t,n),r)}function Kf(e,t,n,r){return t.visited.includes(r)?n:r in e?J(e,fp(t.callstack,[...t.visited,r]),e[r]):n}function qf(e,t){let n=Qf(il(e,t));return Dn(r(e,{[t]:n}),t)}function Jf(e,t,n){return Qf(ca(e,t,n))}function Yf(e){return Qf(ua(e))}function Xf(e){return z(e.map(e=>Qf(e)))}function Zf(e){return N(C(e).reduce((t,n)=>({...t,[n]:Hi(e[n])}),{}))}function Qf(e){return On(e)?qf(e.$defs,e.$ref):Pn(e)?Jf(e.if,e.then,e.else):F(e)?Yf(e.allOf):B(e)?Xf(e.anyOf):P(e)?Zf(e.properties):N({})}function $f(e,t={}){return j(`Required`,[e],t)}function ep(e,t){return q([e])?k(Qf(e),{},t):$f(e,t)}function tp(e,t,n,r){return ep(J(e,t,n),r)}function np(e,t={}){return j(`ReturnType`,[e],t)}function rp(e){return an(e)?e.returnType:pn()}function ip(e,t){return q([e])?k(rp(e),{},t):np(e,t)}function ap(e,t,n,r={}){return ip(J(e,t,n),r)}function op(e,t){return j(`With`,[e,t],{})}function sp(e,t){return cp(e,t)}function cp(e,t){return q([e])?k(e,{},t):op(e,t)}function lp(e,t,n,r){return cp(J(e,t,n),r)}function up(e){return Wa(e)?V(e.items)?dp(e.items.items):Mn(e.items)||cn(e.items)?[e]:[pn()]:[e]}function dp(e){return e.reduce((e,t)=>[...e,...up(t)],[])}function fp(e,t){return{callstack:e,visited:t}}function q(e){return b(e,(e,t)=>cn(e)?!1:q(t),()=>!0)}function pp(e,t,n){return C(n).reduce((r,i)=>({...r,[i]:J(e,t,n[i])}),{})}function mp(e,t,n){return dp(hp(e,t,n))}function hp(e,t,n){return n.map(n=>J(e,t,n))}function gp(e,t,n,r,i){return v(n,`AddImmutable`)?Sp(e,t,r[0],i):v(n,`RemoveImmutable`)?Wl(e,t,r[0],i):v(n,`AddReadonly`)?Ar(e,t,r[0],i):v(n,`RemoveReadonly`)?Li(e,t,r[0],i):v(n,`AddOptional`)?_n(e,t,r[0],i):v(n,`RemoveOptional`)?Vi(e,t,r[0],i):v(n,`Awaited`)?Jl(e,t,r[0],i):v(n,`Capitalize`)?fu(e,t,r[0],i):v(n,`Conditional`)?yu(e,t,r[0],r[1],r[2],r[3],i):v(n,`ConstructorParameters`)?Cu(e,t,r[0],i):v(n,`Evaluate`)?ml(e,t,r[0],i):v(n,`Exclude`)?Eu(e,t,r[0],r[1],i):v(n,`Extract`)?Mu(e,t,r[0],r[1],i):v(n,`Index`)?Ed(e,t,r[0],r[1],i):v(n,`InstanceType`)?Ad(e,t,r[0],i):v(n,`Interface`)?Nc(e,t,r[0],r[1],i):v(n,`KeyOf`)?Vd(e,t,r[0],i):v(n,`Lowercase`)?pu(e,t,r[0],i):v(n,`Mapped`)?tf(e,t,r[0],r[1],r[2],r[3],i):v(n,`Module`)?of(e,t,r[0],i):v(n,`NonNullable`)?uf(e,t,r[0],i):v(n,`Pick`)?Pf(e,t,r[0],r[1],i):v(n,`Parameters`)?bf(e,t,r[0],i):v(n,`Partial`)?kf(e,t,r[0],i):v(n,`Omit`)?gf(e,t,r[0],r[1],i):v(n,`ReadonlyObject`)?Gf(e,t,r[0],i):v(n,`Record`)?ja(e,t,r[0],r[1],i):v(n,`Required`)?tp(e,t,r[0],i):v(n,`ReturnType`)?ap(e,t,r[0],i):v(n,`TemplateLiteral`)?ts(e,t,r[0],i):v(n,`Uncapitalize`)?mu(e,t,r[0],i):v(n,`Uppercase`)?hu(e,t,r[0],i):v(n,`With`)?lp(e,t,r[0],r[1]):j(n,r,i)}function _p(e,t,n){return n=Jt(n)?n.Clone():n,cn(n)?Kf(e,t,n,n.$ref):M(n)?Yt(J(e,t,n.items),Xt(n)):Qt(n)?Zt(J(e,t,n.iteratorItems),$t(n)):Vl(n)?zl(e,t,n.target,n.arguments):tn(n)?en(hp(e,t,n.parameters),J(e,t,n.instanceType),nn(n)):Gt(n)?gp(e,t,n.action,n.parameters,n.options):an(n)?rn(hp(e,t,n.parameters),J(e,t,n.returnType),on(n)):Pn(n)?Nn(J(e,t,n.if),J(e,t,n.then),J(e,t,n.else),Fn(n)):F(n)?Bn(hp(e,t,n.allOf),Vn(n)):Gr(n)?Wr(J(e,t,n.iteratorItems),Kr(n)):P(n)?N(pp(e,t,n.properties),wn(n)):ci(n)?si(J(e,t,n.item),li(n)):Ha(n)?La(za(n),J(e,t,Va(n))):Wa(n)?Ua(J(e,t,n.items)):V(n)?Ni(mp(e,t,n.items),Pi(n)):B(n)?z(hp(e,t,n.anyOf),fi(n)):n}function vp(e,t){let n=Dr(e)?Er(t):t,r=Nr(e)?Mr(n):n;return bn(e)?yn(r):r}function J(e,t,n){let r=_p(e,t,n);return Gt(n)?r:vp(n,r)}function yp(e,t){return J(e,fp([],[]),t)}function bp(e){return k(e,{"~immutable":!0},{})}function xp(e,t){return k(bp(e),{},t)}function Sp(e,t,n,r){return xp(J(e,t,n),r)}function Cp(e,t={}){return xp(e,t)}function wp(e,t={}){return pl(e,t)}function Tp(e,t){let n=sl(e,t);return v(n,`right-inside`)?1:+!!v(n,`disjoint`)}function Ep(e,t,n=[]){return b(t,(r,i)=>v(Tp(e,r),1)?Ep(e,i,[...n,r]):[...n,e,...t],()=>[...n,e])}function Dp(e,t=[]){return b(e,(e,n)=>Dp(n,Ep(e,t)),()=>t)}function Op(e){return Dp(e)}function kp(e){return h(e)&&x(e,`check`)&&x(e,`errors`)&&le(e.check)&&le(e.errors)}function Ap(e){return x(e,`~guard`)&&kp(e[`~guard`])}function jp(e){return x(e,`~refine`)&&d(e[`~refine`])&&y(e[`~refine`],0,e=>h(e)&&x(e,`check`)&&x(e,`error`)&&le(e.check)&&le(e.error))}function Mp(e){return h(e)&&!d(e)}function Np(e){return p(e)}function Y(e){return Mp(e)||Np(e)}function Pp(e){return x(e,`additionalItems`)&&Y(e.additionalItems)}function Fp(e){return x(e,`additionalProperties`)&&Y(e.additionalProperties)}function Ip(e){return x(e,`allOf`)&&d(e.allOf)&&e.allOf.every(e=>Y(e))}function Lp(e){return x(e,`$anchor`)&&g(e.$anchor)}function Rp(e){return x(e,`anyOf`)&&d(e.anyOf)&&e.anyOf.every(e=>Y(e))}function zp(e){return x(e,`const`)}function Bp(e){return x(e,`contains`)&&Y(e.contains)}function Vp(e){return x(e,`default`)}function Hp(e){return x(e,`dependencies`)&&h(e.dependencies)&&Object.values(e.dependencies).every(e=>Y(e)||d(e)&&e.every(e=>g(e)))}function Up(e){return x(e,`dependentRequired`)&&h(e.dependentRequired)&&Object.values(e.dependentRequired).every(e=>d(e)&&e.every(e=>g(e)))}function Wp(e){return x(e,`dependentSchemas`)&&h(e.dependentSchemas)&&Object.values(e.dependentSchemas).every(e=>Y(e))}function Gp(e){return x(e,`$dynamicAnchor`)&&g(e.$dynamicAnchor)}function Kp(e){return x(e,`$dynamicRef`)&&g(e.$dynamicRef)}function qp(e){return x(e,`else`)&&Y(e.else)}function Jp(e){return x(e,`enum`)&&d(e.enum)}function Yp(e){return x(e,`exclusiveMaximum`)&&(m(e.exclusiveMaximum)||f(e.exclusiveMaximum))}function Xp(e){return x(e,`exclusiveMinimum`)&&(m(e.exclusiveMinimum)||f(e.exclusiveMinimum))}function Zp(e){return x(e,`format`)&&g(e.format)}function Qp(e){return x(e,`$id`)&&g(e.$id)}function $p(e){return x(e,`if`)&&Y(e.if)}function em(e){return x(e,`items`)&&(Y(e.items)||d(e.items)&&e.items.every(e=>Y(e)))}function tm(e){return em(e)&&d(e.items)}function nm(e){return x(e,`maximum`)&&(m(e.maximum)||f(e.maximum))}function rm(e){return x(e,`maxContains`)&&m(e.maxContains)}function im(e){return x(e,`maxItems`)&&m(e.maxItems)}function am(e){return x(e,`maxLength`)&&m(e.maxLength)}function om(e){return x(e,`maxProperties`)&&m(e.maxProperties)}function sm(e){return x(e,`minimum`)&&(m(e.minimum)||f(e.minimum))}function cm(e){return x(e,`minContains`)&&m(e.minContains)}function lm(e){return x(e,`minItems`)&&m(e.minItems)}function um(e){return x(e,`minLength`)&&m(e.minLength)}function dm(e){return x(e,`minProperties`)&&m(e.minProperties)}function fm(e){return x(e,`multipleOf`)&&(m(e.multipleOf)||f(e.multipleOf))}function pm(e){return x(e,`not`)&&Y(e.not)}function mm(e){return x(e,`oneOf`)&&d(e.oneOf)&&e.oneOf.every(e=>Y(e))}function hm(e){return x(e,`pattern`)&&(g(e.pattern)||e.pattern instanceof RegExp)}function gm(e){return x(e,`patternProperties`)&&h(e.patternProperties)&&Object.values(e.patternProperties).every(e=>Y(e))}function _m(e){return x(e,`prefixItems`)&&d(e.prefixItems)&&e.prefixItems.every(e=>Y(e))}function vm(e){return x(e,`properties`)&&h(e.properties)&&Object.values(e.properties).every(e=>Y(e))}function ym(e){return x(e,`propertyNames`)&&(h(e.propertyNames)||Y(e.propertyNames))}function bm(e){return x(e,`$recursiveAnchor`)&&p(e.$recursiveAnchor)}function xm(e){return bm(e)&&v(e.$recursiveAnchor,!0)}function Sm(e){return x(e,`$recursiveRef`)&&g(e.$recursiveRef)}function Cm(e){return x(e,`$ref`)&&g(e.$ref)}function wm(e){return x(e,`required`)&&d(e.required)&&e.required.every(e=>g(e))}function Tm(e){return x(e,`then`)&&Y(e.then)}function Em(e){return x(e,`type`)&&(g(e.type)||d(e.type)&&e.type.every(e=>g(e)))}function Dm(e){return x(e,`uniqueItems`)&&p(e.uniqueItems)}function Om(e){return x(e,`unevaluatedItems`)&&Y(e.unevaluatedItems)}function km(e){return x(e,`unevaluatedProperties`)&&Y(e.unevaluatedProperties)}function Am(e){return Om(e)||km(e)||C(e).some(t=>Mm(e[t]))}function jm(e){return e.some(e=>Mm(e))}function Mm(e){return d(e)?jm(e):h(e)?Am(e):!1}function Nm(e,t){return Mm(t)||C(e).some(t=>Mm(e[t]))}var Pm=class{constructor(e){this.hasUnevaluated=e}UseUnevaluated(){return this.hasUnevaluated}Push(){return T(E(`context`,`Push`),[])}Pop(){return T(E(`context`,`Pop`),[])}AddIndex(e){return T(E(`context`,`AddIndex`),[e])}AddKey(e){return T(E(`context`,`AddKey`),[e])}Merge(e){return T(E(`context`,`Merge`),[e])}},Fm=class{constructor(){let e=new Set,t=new Set;this.stack=[{indices:e,keys:t}]}Push(){let e=new Set,t=new Set;return this.stack.push({indices:e,keys:t}),!0}Pop(){return this.stack.pop(),!0}AddIndex(e){return this.GetIndices().add(e),!0}AddKey(e){return this.GetKeys().add(e),!0}GetIndices(){return this.stack[this.stack.length-1].indices}GetKeys(){return this.stack[this.stack.length-1].keys}Merge(e){for(let t of e)t.GetIndices().forEach(e=>this.GetIndices().add(e)),t.GetKeys().forEach(e=>this.GetKeys().add(e));return!0}},Im=class extends Fm{constructor(e){super(),this.callback=e}AddError(e){return this.callback(e),!1}},Lm=class extends Im{constructor(){super(e=>this.errors.push(e)),this.errors=[]}AddError(e){return this.errors.push(e),!1}GetErrors(){return this.errors}};const Rm={identifier:`External`,variables:[]};function zm(e){let t=`External[${Rm.variables.length}]`;return Rm.variables.push(e),t}function Bm(){Rm.variables=[]}function Vm(){return{...Rm}}function Hm(e,t,n,r){return T(E(E(zm(n),`~guard`),`check`),[r])}function Um(e,t,n,r){return n[`~guard`].check(r)}function Wm(e,t,n,r,i,a){return i[`~guard`].check(a)||t.AddError({keyword:`~guard`,schemaPath:n,instancePath:r,params:{errors:i[`~guard`].errors(a)}})}function Gm(e,t,n,r){return at(zm(n[`~refine`].map(e=>e)),D(0),[`refinement`,`_`],T(E(`refinement`,`check`),[r]))}function Km(e,t,n,r){return y(n[`~refine`],0,(e,t)=>e.check(r))}function qm(e,t,n,r,i,a){return Te(i[`~refine`],0,(e,i)=>e.check(a)||t.AddError({keyword:`~refine`,schemaPath:n,instancePath:r,params:{index:i,message:e.error(a)}}))}let Jm=0;function Ym(){return`var_${Jm++}`}function Xm(e){return em(e)&&d(e.items)}function Zm(e,t,n,r){if(!Xm(n))return D(!0);let[i,a]=[Ym(),Ym()],o=wy(e,t,n.additionalItems,i),s=et(a,D(n.items.length)),c=t.AddIndex(a),l=t.UseUnevaluated()?w(s,Fe(o,c)):w(s,o);return T(E(r,`every`),[dt([i,a],l)])}function Qm(e,t,n,r){return Xm(n)?r.every((r,i)=>ge(i,n.items.length)||Ty(e,t,n.additionalItems,r)&&t.AddIndex(i)):!0}function $m(e,t,n,r,i,a){return Xm(i)?a.every((a,o)=>{let s=`${n}/additionalItems`,c=`${r}/${o}`;return ge(o,i.items.length)||Ey(e,t,s,c,i.additionalItems,a)&&t.AddIndex(o)}):!0}function eh(e){return`^${e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}$`}function th(e){let t=[];return gm(e)&&t.push(...C(e.patternProperties)),vm(e)&&t.push(...C(e.properties).map(eh)),v(t.length,0)?`(?!)`:`(${t.join(`|`)})`}function nh(e,t,n){return wm(t)&&vm(t)&&!gm(t)&&v(t.additionalProperties,!1)&&v(C(t.properties).length,t.required.length)}function rh(e,t,n){return Qe(E(T(E(`Object`,`getOwnPropertyNames`),[n]),`length`),D(t.required.length))}function ih(e,t,n,r){let[i,a]=[Ym(),Ym()],o=zm(new RegExp(th(n))),s=wy(e,t,n.additionalProperties,`${r}[${i}]`),c=T(E(o,`test`),[i]),l=t.AddKey(i),u=t.UseUnevaluated()?w(c,Fe(s,l)):w(c,s);return at(st(r),D(0),[i,a],u)}function ah(e,t,n,r){return nh(t,n,r)?rh(t,n,r):ih(e,t,n,r)}function oh(e,t,n,r){let i=new RegExp(th(n));return y(C(r),0,(a,o)=>i.test(a)||Ty(e,t,n.additionalProperties,r[a])&&t.AddKey(a))}function sh(e,t,n,r,i,a){let o=new RegExp(th(i)),s=[];return Te(C(a),0,(c,l)=>{let u=`${n}/additionalProperties`,ee=`${r}/${c}`,te=new Lm,ne=o.test(c)||Ey(e,te,u,ee,i.additionalProperties,a[c])&&t.AddKey(c);return ne||s.push(c),ne})||t.AddError({keyword:`additionalProperties`,schemaPath:n,instancePath:r,params:{additionalProperties:s}})}function ch(e,t,n,r,i){let a=ht(`results`,`[]`),o=n.map((e,t)=>ht(`context_${t}`,ft(`CheckContext`,[]))),s=n.map((n,i)=>ht(`condition_${i}`,T(dt([`context`],Z(e,t,n,r)),[`context_${i}`]))),c=n.map((e,t)=>gt(`condition_${t}`,T(E(`results`,`push`),[`context_${t}`]))),l=_t(Fe(i,t.Merge(`results`)));return T(dt([],mt([a,...o,...s,...c,l])),[])}function lh(e,t,n,r){return ch(e,t,n.allOf,r,Qe(E(`results`,`length`),D(n.allOf.length)))}function uh(e,t,n,r){return vt(n.allOf.map(n=>Z(e,t,n,r)))}function dh(e,t,n,r){return t.UseUnevaluated()?lh(e,t,n,r):uh(e,t,n,r)}function fh(e,t,n,r){let i=n.allOf.reduce((t,n)=>{let i=new Fm;return Q(e,i,n,r)?[...t,i]:t},[]);return v(i.length,n.allOf.length)&&t.Merge(i)}function ph(e,t,n,r,i,a){let o=[],s=i.allOf.reduce((t,i,s)=>{let c=`${n}/allOf/${s}`,l=new Lm,u=Dy(e,l,c,r,i,a);return u||o.push(l),u?[...t,l]:t},[]),c=v(s.length,i.allOf.length)&&t.Merge(s);return c||o.forEach(e=>e.GetErrors().forEach(e=>t.AddError(e))),c}function mh(e,t,n,r){return ch(e,t,n.anyOf,r,$e(E(`results`,`length`),D(0)))}function hh(e,t,n,r){return yt(n.anyOf.map(n=>Z(e,t,n,r)))}function gh(e,t,n,r){return t.UseUnevaluated()?mh(e,t,n,r):hh(e,t,n,r)}function _h(e,t,n,r){let i=n.anyOf.reduce((t,n)=>{let i=new Fm;return Q(e,i,n,r)?[...t,i]:t},[]);return he(i.length,0)&&t.Merge(i)}function vh(e,t,n,r,i,a){let o=[],s=i.anyOf.reduce((t,i,s)=>{let c=new Lm,l=Dy(e,c,`${n}/anyOf/${s}`,r,i,a);return l||o.push(c),l?[...t,c]:t},[]),c=he(s.length,0)&&t.Merge(s);return c||o.forEach(e=>e.GetErrors().forEach(e=>t.AddError(e))),c||t.AddError({keyword:`anyOf`,schemaPath:n,instancePath:r,params:{}})}function yh(e,t,n,r){return D(!!n)}function bh(e,t,n,r){return n}function xh(e,t,n,r,i,a){return bh(e,t,i,a)||t.AddError({keyword:`boolean`,schemaPath:n,instancePath:r,params:{}})}function Sh(e,t,n,r){return xe(n.const)?Qe(r,D(n.const)):lt(r,zm(n.const))}function Ch(e,t,n,r){return xe(n.const)?v(r,n.const):Me(r,n.const)}function wh(e,t,n,r,i,a){return Ch(e,t,i,a)||t.AddError({keyword:`const`,schemaPath:n,instancePath:r,params:{allowedValue:i.const}})}function Th(e){return!(cm(e)&&v(e.minContains,0))}function Eh(e,t,n,r){if(!Th(n))return D(!0);let i=Ym();return Fe(Ie(Qe(E(r,`length`),D(0))),T(E(r,`some`),[dt([i],Z(e,t,n.contains,i))]))}function Dh(e,t,n,r){return Th(n)?!v(r.length,0)&&r.some(r=>Q(e,t,n.contains,r)):!0}function Oh(e,t,n,r,i,a){return Dh(e,t,i,a)||t.AddError({keyword:`contains`,schemaPath:n,instancePath:r,params:{minContains:1}})}function kh(e,t,n,r){return w(Qe(E(st(r),`length`),D(0)),vt(S(n.dependencies).map(([n,i])=>{let a=Ie(ct(r,D(n))),o=Z(e,t,i,r);return w(a,d(i)?(e=>vt(e.map(e=>ct(r,D(e)))))(i):o)})))}function Ah(e,t,n,r){let i=v(C(r).length,0),a=y(S(n.dependencies),0,([n,i])=>!x(r,n)||(d(i)?i.every(e=>x(r,e)):Q(e,t,i,r)));return i||a}function jh(e,t,n,r,i,a){let o=v(C(a).length,0),s=Te(S(i.dependencies),0,([i,o])=>{let s=`${n}/dependencies/${i}`;return!x(a,i)||(d(o)?o.every(e=>x(a,e)||t.AddError({keyword:`dependencies`,schemaPath:n,instancePath:r,params:{property:i,dependencies:o}})):Dy(e,t,s,r,o,a))});return o||s}function Mh(e,t,n,r){return w(Qe(E(st(r),`length`),D(0)),vt(S(n.dependentRequired).map(([e,t])=>w(Ie(ct(r,D(e))),vt(t.map(e=>ct(r,D(e))))))))}function Nh(e,t,n,r){let i=v(C(r).length,0),a=y(S(n.dependentRequired),0,([e,t])=>!x(r,e)||t.every(e=>x(r,e)));return i||a}function Ph(e,t,n,r,i,a){let o=v(C(a).length,0),s=Te(S(i.dependentRequired),0,([e,i])=>!x(a,e)||Te(i,0,o=>x(a,o)||t.AddError({keyword:`dependentRequired`,schemaPath:n,instancePath:r,params:{property:e,dependencies:i}})));return o||s}function Fh(e,t,n,r){return w(Qe(E(st(r),`length`),D(0)),vt(S(n.dependentSchemas).map(([n,i])=>w(Ie(ct(r,D(n))),Z(e,t,i,r)))))}function Ih(e,t,n,r){let i=v(C(r).length,0),a=y(S(n.dependentSchemas),0,([n,i])=>!x(r,n)||Q(e,t,i,r));return i||a}function Lh(e,t,n,r,i,a){let o=v(C(a).length,0),s=Te(S(i.dependentSchemas),0,([i,o])=>{let s=`${n}/dependentSchemas/${i}`;return!x(a,i)||Dy(e,t,s,r,o,a)});return o||s}function Rh(e,t,n,r){return Ny(e,t,e.DynamicRef(n)??!1,r)}function zh(e,t,n,r){let i=e.DynamicRef(n)??!1;return Y(i)&&Q(e,t,i,r)}function Bh(e,t,n,r,i,a){let o=e.DynamicRef(i)??!1;return Y(o)&&Dy(e,t,`#`,r,o,a)}function Vh(e,t,n,r){return yt(n.enum.map(e=>xe(e)?Qe(r,D(e)):lt(r,zm(e))))}function Hh(e,t,n,r){return n.enum.some(e=>xe(e)?v(r,e):Me(r,e))}function Uh(e,t,n,r,i,a){return Hh(e,t,i,a)||t.AddError({keyword:`enum`,schemaPath:n,instancePath:r,params:{allowedValues:i.enum}})}function Wh(e,t,n,r){return et(r,D(n.exclusiveMaximum))}function Gh(e,t,n,r){return ge(r,n.exclusiveMaximum)}function Kh(e,t,n,r,i,a){return Gh(e,t,i,a)||t.AddError({keyword:`exclusiveMaximum`,schemaPath:n,instancePath:r,params:{comparison:`<`,limit:i.exclusiveMaximum}})}function qh(e,t,n,r){return $e(r,D(n.exclusiveMinimum))}function Jh(e,t,n,r){return he(r,n.exclusiveMinimum)}function Yh(e,t,n,r,i,a){return Jh(e,t,i,a)||t.AddError({keyword:`exclusiveMinimum`,schemaPath:n,instancePath:r,params:{comparison:`>`,limit:i.exclusiveMinimum}})}const Xh=[0,31,28,31,30,31,30,31,31,30,31,30,31],Zh=/^(\d\d\d\d)-(\d\d)-(\d\d)$/;function Qh(e){return e%4==0&&(e%100!=0||e%400==0)}function $h(e){let t=Zh.exec(e);if(!t)return!1;let n=+t[1],r=+t[2],i=+t[3];return r>=1&&r<=12&&i>=1&&i<=(r===2&&Qh(n)?29:Xh[r])}const eg=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(?:Z|([+-])(\d\d):(\d\d))?$/i;function tg(e,t=!0){let n=eg.exec(e);if(!n)return!1;let r=+n[1],i=+n[2],a=+n[3],o=n[4]===`-`?-1:1,s=+(n[5]||0),c=+(n[6]||0);if(s>23||c>59||t&&!n[4]&&e.toLowerCase().indexOf(`z`)===-1)return!1;if(r<=23&&i<=59&&a<60)return!0;let l=i-c*o,u=r-s*o-+(l<0);return(u===23||u===-1)&&(l===59||l===-1)&&a<61}function ng(e,t=!0){let n=e.split(/T/i);return n.length===2&&$h(n[0])&&tg(n[1],t)}const rg=/^P((\d+Y(\d+M(\d+D)?)?|\d+M(\d+D)?|\d+D)(T(\d+H(\d+M(\d+S)?)?|\d+M(\d+S)?|\d+S))?|T(\d+H(\d+M(\d+S)?)?|\d+M(\d+S)?|\d+S)|\d+W)$/;function ig(e){return rg.test(e)}const ag=/^(?!.*\.\.)[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i;function og(e){return ag.test(e)}function sg(e,t,n){e=n?Math.floor(e/700):e>>1,e+=Math.floor(e/t);let r=0;for(;e>455;)e=Math.floor(e/35),r+=36;return r+Math.floor(36*e/(e+38))}function cg(e){let t=[],n=128,r=0,i=72,a=e.lastIndexOf(`-`);if(a>0)for(let n=0;n=128)throw Error(`Invalid punycode: non-basic before delimiter`);t.push(r)}let o=a<0?0:a+1;for(;o=e.length)throw Error(`Invalid punycode: unexpected end of input`);let t=e.charCodeAt(o++),n;if(t>=97&&t<=122)n=t-97;else if(t>=48&&t<=57)n=t-48+26;else if(t>=65&&t<=90)n=t-65;else throw Error(`Invalid punycode: bad digit character`);r+=n*s;let a=c<=i?1:c>=i+26?26:c-i;if(n=1632&&e<=1641}function xg(e){return e>=1776&&e<=1785}function Sg(e){return mg.has(e)}function Cg(e){if(e.length===0)return!1;let t=[...e].map(e=>e.codePointAt(0)),n=t.length;if(t[0]===45||t[n-1]===45||n>=4&&t[2]===45&&t[3]===45||fg(t[0]))return!1;let r=!1,i=!1,a=!1;for(let e=0;e=4&&e.charCodeAt(2)===45&&e.charCodeAt(3)===45)return!1;for(let t=0;t=97&&n<=122||n>=65&&n<=90||n>=48&&n<=57||n===45))return!1}return!0}function Tg(e){return e.toLowerCase().startsWith(`xn--`)}function Eg(e){try{return Cg(cg(e.slice(4)))}catch{return!1}}function Dg(e){return e.length===0||e.length>63?!1:Tg(e)?Eg(e):Cg(e)}function Og(e){return e.length===0||e.length>63?!1:Tg(e)?Eg(e):wg(e)}function kg(e){if(e.length===0||e.length>253||e.charCodeAt(e.length-1)===46)return!1;for(let t of e.split(`.`))if(!Og(t))return!1;return!0}const Ag=/^(?!.*\.\.)[\p{L}\p{N}!#$%&'*+/=?^_`{|}~-]+(?:\.[\p{L}\p{N}!#$%&'*+/=?^_`{|}~-]+)*@[\p{L}\p{N}](?:[\p{L}\p{N}-]{0,61}[\p{L}\p{N}])?(?:\.[\p{L}\p{N}](?:[\p{L}\p{N}-]{0,61}[\p{L}\p{N}])?)*$/iu;function jg(e){return Ag.test(e)}function Mg(e){if(e.length===0||e.includes(` `))return!1;let t=e.normalize(`NFC`).replace(/[\u002E\u3002\uFF0E\uFF61]/g,`.`);if(t.length>253)return!1;for(let e of t.split(`.`))if(!Dg(e))return!1;return!0}function Ng(e,t,n){let r=0,i=0,a=0,o=0;for(let s=t;s255||o===48&&a>1)return!1;r++,i=0,a=0,o=0}else if(t>=48&&t<=57)a===0&&(o=t),i=i*10+(t-48),a++;else return!1}return r===3&&a>0&&i<=255&&!(o===48&&a>1)}function Pg(e){return Ng(e,0,e.length)}function Fg(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Ig(e){let t=e.length;if(t===0)return!1;let n=0,r=!1,i=0;if(e.charCodeAt(0)===58&&e.charCodeAt(1)===58){if(t===2)return!0;r=!0,i=2}for(;i4)return!1;if(n++,i===t)break;if(s!==58)return!1;if(i++,e.charCodeAt(i)===58){if(r||e.charCodeAt(i+1)===58)return!1;if(r=!0,i++,i===t)break}}return r?n<=7:n===8}function Lg(e){try{return new URL(e,`http://example.com`),!0}catch{return!1}}function Rg(e){if(e.includes(` `)||e.includes(`\\`)||/[\x00-\x1F\x7F]/.test(e)||/%(?![0-9a-fA-F]{2})/.test(e))return!1;if(e===``)return!0;let t=e.indexOf(`:`);return t>0&&/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(e.substring(0,t))?Lg(e):e.match(/^([a-zA-Z][a-zA-Z0-9+\-.]*)(\/\/)/)&&t===-1?!1:Lg(e)}function zg(e){try{return new URL(e),!0}catch{return!1}}const Bg=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i;function Vg(e){return Bg.test(e)}const Hg=/^(?:\/(?:[^~/]|~0|~1)*)*$/;function Ug(e){return Hg.test(e)}function Wg(e){if(e.length===0)return!1;try{return new RegExp(e),!0}catch{return!1}}const Gg=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;function Kg(e){return Gg.test(e)}const qg=/^(?!.*[^\x00-\x7F])(?!.*\\)(?:(?:[a-z][a-z0-9+\-.]*:)?(?:\/\/[^\s[\]{}<>^`|]*)?|[^\s[\]{}<>^`|]*)(?:\?[^\s[\]{}<>^`|]*)?(?:#[^\s[\]{}<>^`|]*)?$/i;function Jg(e){return qg.test(e)}const Yg=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i;function Xg(e){return Yg.test(e)}function Zg(e){return e>=97&&e<=122||e>=65&&e<=90}function Qg(e){return Zg(e)||e>=48&&e<=57}function $g(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function e_(e){return Qg(e)||e===43||e===45||e===46}function t_(e){return Qg(e)||e===45||e===46||e===95||e===126}function n_(e){return e===33||e===36||e===38||e===39||e===40||e===41||e===42||e===43||e===44||e===59||e===61}function r_(e){return t_(e)||n_(e)||e===58||e===64}function i_(e){let t=e.length;if(t===0||!Zg(e.charCodeAt(0)))return!1;let n=1;for(;n=i||!$g(e.charCodeAt(t+1))||!$g(e.charCodeAt(t+2)))return!1;t+=2}else if(!t_(n)&&!n_(n)&&n!==58)return!1}n=i+1}if(e.charCodeAt(n)===91){for(n++;n57)return!1;n++}}for(;n=t||!$g(e.charCodeAt(n+1))||!$g(e.charCodeAt(n+2)))return!1;n+=2}else if(r>127)return!1;else if(!(r_(r)||r===47||r===63||r===35))return!1;n++}return!0}const a_=/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu;function o_(e){return a_.test(e)}const s_=/^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;function c_(e){return s_.test(e)}const X=new Map;function l_(){X.clear()}function u_(){return[...X.entries()]}function d_(e,t){X.set(e,t)}function f_(e){return X.has(e)}function p_(e){return X.get(e)}function m_(e,t){return X.get(e)?.(t)??!0}function h_(){l_(),X.set(`date-time`,ng),X.set(`date`,$h),X.set(`duration`,ig),X.set(`email`,og),X.set(`hostname`,kg),X.set(`idn-email`,jg),X.set(`idn-hostname`,Mg),X.set(`ipv4`,Pg),X.set(`ipv6`,Ig),X.set(`iri-reference`,Rg),X.set(`iri`,zg),X.set(`json-pointer-uri-fragment`,Vg),X.set(`json-pointer`,Ug),X.set(`regex`,Wg),X.set(`relative-json-pointer`,Kg),X.set(`time`,tg),X.set(`uri-reference`,Jg),X.set(`uri-template`,Xg),X.set(`uri`,i_),X.set(`url`,o_),X.set(`uuid`,c_)}h_();var g_=t({Clear:()=>l_,Entries:()=>u_,Get:()=>p_,Has:()=>f_,IsDate:()=>$h,IsDateTime:()=>ng,IsDuration:()=>ig,IsEmail:()=>og,IsHostname:()=>kg,IsIPv4:()=>Pg,IsIPv6:()=>Ig,IsIdnEmail:()=>jg,IsIdnHostname:()=>Mg,IsIri:()=>zg,IsIriReference:()=>Rg,IsJsonPointer:()=>Ug,IsJsonPointerUriFragment:()=>Vg,IsRegex:()=>Wg,IsRelativeJsonPointer:()=>Kg,IsTime:()=>tg,IsUri:()=>i_,IsUriReference:()=>Jg,IsUriTemplate:()=>Xg,IsUrl:()=>o_,IsUuid:()=>c_,Reset:()=>h_,Set:()=>d_,Test:()=>m_});function __(e,t,n,r){return T(E(`Format`,`Test`),[D(n.format),r])}function v_(e,t,n,r){return m_(n.format,r)}function y_(e,t,n,r,i,a){return v_(e,t,i,a)||t.AddError({keyword:`format`,schemaPath:n,instancePath:r,params:{format:i.format}})}function b_(e,t,n,r){let i=Tm(n)?n.then:!0,a=qp(n)?n.else:!0;return pt(Z(e,t,n.if,r),Z(e,t,i,r),Z(e,t,a,r))}function x_(e,t,n,r){let i=Tm(n)?n.then:!0,a=qp(n)?n.else:!0;return Q(e,t,n.if,r)?Q(e,t,i,r):Q(e,t,a,r)}function S_(e,t,n,r,i,a){let o=Tm(i)?i.then:!0,s=qp(i)?i.else:!0,c=new Lm,l=Dy(e,c,`${n}/if`,r,i.if,a)?Dy(e,c,`${n}/then`,r,o,a)||t.AddError({keyword:`if`,schemaPath:n,instancePath:r,params:{failingKeyword:`then`}}):Dy(e,t,`${n}/else`,r,s,a)||t.AddError({keyword:`if`,schemaPath:n,instancePath:r,params:{failingKeyword:`else`}});return l&&t.Merge([c]),l}function C_(e,t,n,r){return vt(n.items.map((n,i)=>{let a=tt(E(r,`length`),D(i)),o=wy(e,t,n,`${r}[${i}]`),s=t.AddIndex(D(i));return w(a,t.UseUnevaluated()?Fe(o,s):o)}))}function w_(e,t,n,r){return y(n.items,0,(n,i)=>_e(r.length,i)||Ty(e,t,n,r[i])&&t.AddIndex(i))}function T_(e,t,n,r,i,a){return Te(i.items,0,(i,o)=>{let s=`${n}/items/${o}`,c=`${r}/${o}`;return _e(a.length,o)||Ey(e,t,s,c,i,a[o])&&t.AddIndex(o)})}function E_(e,t,n,r){let i=_m(n)?n.prefixItems.length:0,a=wy(e,t,n.items,`element`),o=t.AddIndex(`index`),s=t.UseUnevaluated()?Fe(a,o):a;return at(r,D(i),[`element`,`index`],s)}function D_(e,t,n,r){return y(r,_m(n)?n.prefixItems.length:0,(r,i)=>Ty(e,t,n.items,r)&&t.AddIndex(i))}function O_(e,t,n,r,i,a){return Te(a,_m(i)?i.prefixItems.length:0,(a,o)=>Ey(e,t,`${n}/items`,`${r}/${o}`,i.items,a)&&t.AddIndex(o))}function k_(e,t,n,r){return tm(n)?C_(e,t,n,r):E_(e,t,n,r)}function A_(e,t,n,r){return tm(n)?w_(e,t,n,r):D_(e,t,n,r)}function j_(e,t,n,r,i,a){return tm(i)?T_(e,t,n,r,i,a):O_(e,t,n,r,i,a)}function M_(e){return Bp(e)}function N_(e,t,n,r){if(!M_(n))return D(!0);let[i,a]=[Ym(),Ym()];return tt(T(E(r,`reduce`),[dt([i,a],pt(Z(e,t,n.contains,a),bt(i),i)),D(0)]),D(n.maxContains))}function P_(e,t,n,r){return M_(n)?_e(r.reduce((r,i)=>Q(e,t,n.contains,i)?++r:r,0),n.maxContains):!0}function F_(e,t,n,r,i,a){let o=cm(i)?i.minContains:1;return P_(e,t,i,a)||t.AddError({keyword:`contains`,schemaPath:n,instancePath:r,params:{minContains:o,maxContains:i.maxContains}})}function I_(e,t,n,r){return tt(r,D(n.maximum))}function L_(e,t,n,r){return _e(r,n.maximum)}function R_(e,t,n,r,i,a){return L_(e,t,i,a)||t.AddError({keyword:`maximum`,schemaPath:n,instancePath:r,params:{comparison:`<=`,limit:i.maximum}})}function z_(e,t,n,r){return tt(E(r,`length`),D(n.maxItems))}function B_(e,t,n,r){return _e(r.length,n.maxItems)}function V_(e,t,n,r,i,a){return B_(e,t,i,a)||t.AddError({keyword:`maxItems`,schemaPath:n,instancePath:r,params:{limit:i.maxItems}})}function H_(e,t,n,r){return it(r,D(n.maxLength))}function U_(e,t,n,r){return Ce(r,n.maxLength)}function W_(e,t,n,r,i,a){return U_(e,t,i,a)||t.AddError({keyword:`maxLength`,schemaPath:n,instancePath:r,params:{limit:i.maxLength}})}function G_(e,t,n,r){return tt(E(st(r),`length`),D(n.maxProperties))}function K_(e,t,n,r){return _e(C(r).length,n.maxProperties)}function q_(e,t,n,r,i,a){return K_(e,t,i,a)||t.AddError({keyword:`maxProperties`,schemaPath:n,instancePath:r,params:{limit:i.maxProperties}})}function J_(e){return Bp(e)}function Y_(e,t,n,r){if(!J_(n))return D(!0);let[i,a]=[Ym(),Ym()];return nt(T(E(r,`reduce`),[dt([i,a],pt(Z(e,t,n.contains,a),bt(i),i)),D(0)]),D(n.minContains))}function X_(e,t,n,r){return J_(n)?ve(r.reduce((r,i)=>Q(e,t,n.contains,i)?++r:r,0),n.minContains):!0}function Z_(e,t,n,r,i,a){return X_(e,t,i,a)||t.AddError({keyword:`contains`,schemaPath:n,instancePath:r,params:{minContains:i.minContains}})}function Q_(e,t,n,r){return nt(r,D(n.minimum))}function $_(e,t,n,r){return ve(r,n.minimum)}function ev(e,t,n,r,i,a){return $_(e,t,i,a)||t.AddError({keyword:`minimum`,schemaPath:n,instancePath:r,params:{comparison:`>=`,limit:i.minimum}})}function tv(e,t,n,r){return nt(E(r,`length`),D(n.minItems))}function nv(e,t,n,r){return ve(r.length,n.minItems)}function rv(e,t,n,r,i,a){return nv(e,t,i,a)||t.AddError({keyword:`minItems`,schemaPath:n,instancePath:r,params:{limit:i.minItems}})}function iv(e,t,n,r){return rt(r,D(n.minLength))}function av(e,t,n,r){return we(r,n.minLength)}function ov(e,t,n,r,i,a){return av(e,t,i,a)||t.AddError({keyword:`minLength`,schemaPath:n,instancePath:r,params:{limit:i.minLength}})}function sv(e,t,n,r){return nt(E(st(r),`length`),D(n.minProperties))}function cv(e,t,n,r){return ve(C(r).length,n.minProperties)}function lv(e,t,n,r,i,a){return cv(e,t,i,a)||t.AddError({keyword:`minProperties`,schemaPath:n,instancePath:r,params:{limit:i.minProperties}})}function uv(e,t,n,r){return xt(r,D(n.multipleOf))}function dv(e,t,n,r){return ye(r,n.multipleOf)}function fv(e,t,n,r,i,a){return dv(e,t,i,a)||t.AddError({keyword:`multipleOf`,schemaPath:n,instancePath:r,params:{multipleOf:i.multipleOf}})}function pv(e,t,n,r){return ch(e,t,[n.not],r,Ie(Qe(E(`results`,`length`),D(1))))}function mv(e,t,n,r){return Ie(Z(e,t,n.not,r))}function hv(e,t,n,r){return t.UseUnevaluated()?pv(e,t,n,r):mv(e,t,n,r)}function gv(e,t,n,r){let i=new Fm;return!Q(e,i,n.not,r)&&t.Merge([i])}function _v(e,t,n,r,i,a){return gv(e,t,i,a)||t.AddError({keyword:`not`,schemaPath:n,instancePath:r,params:{}})}function vv(e,t,n,r){return ch(e,t,n.oneOf,r,Qe(E(`results`,`length`),D(1)))}function yv(e,t,n,r){return Qe(T(E(ut(n.oneOf.map(n=>Z(e,t,n,r))),`reduce`),[dt([`count`,`result`],pt(Qe(`result`,D(!0)),bt(`count`),`count`)),D(0)]),D(1))}function bv(e,t,n,r){return t.UseUnevaluated()?vv(e,t,n,r):yv(e,t,n,r)}function xv(e,t,n,r){let i=n.oneOf.reduce((t,n)=>{let i=new Fm;return Q(e,i,n,r)?[...t,i]:t},[]);return v(i.length,1)&&t.Merge(i)}function Sv(e,t,n,r,i,a){let o=[],s=[],c=i.oneOf.reduce((t,i,c)=>{let l=new Lm,u=Dy(e,l,`${n}/oneOf/${c}`,r,i,a);return u&&s.push(c),u||o.push(l),u?[...t,l]:t},[]),l=v(c.length,1)&&t.Merge(c);return!l&&v(s.length,0)&&o.forEach(e=>e.GetErrors().forEach(e=>t.AddError(e))),l||t.AddError({keyword:`oneOf`,schemaPath:n,instancePath:r,params:{passingSchemas:s}})}function Cv(e,t,n,r){return T(E(zm(g(n.pattern)?new RegExp(n.pattern,`u`):n.pattern),`test`),[r])}function wv(e,t,n,r){return(g(n.pattern)?new RegExp(n.pattern,`u`):n.pattern).test(r)}function Tv(e,t,n,r,i,a){return wv(e,t,i,a)||t.AddError({keyword:`pattern`,schemaPath:n,instancePath:r,params:{pattern:i.pattern}})}function Ev(e,t,n,r){return vt(S(n.patternProperties).map(([n,i])=>{let[a,o]=[Ym(),Ym()],s=Ie(T(E(zm(new RegExp(n,`u`)),`test`),[a])),c=wy(e,t,i,o),l=t.AddKey(a),u=t.UseUnevaluated()?w(s,Fe(c,l)):w(s,c);return at(ot(r),D(0),[`[${a}, ${o}]`,`_`],u)}))}function Dv(e,t,n,r){return y(S(n.patternProperties),0,([n,i])=>{let a=new RegExp(n,`u`);return y(S(r),0,([n,r])=>!a.test(n)||Ty(e,t,i,r)&&t.AddKey(n))})}function Ov(e,t,n,r,i,a){return Te(S(i.patternProperties),0,([i,o])=>{let s=`${n}/patternProperties/${i}`,c=new RegExp(i,`u`);return Te(S(a),0,([n,i])=>{let a=`${r}/${n}`;return!c.test(n)||Ey(e,t,s,a,o,i)&&t.AddKey(n)})})}function kv(e,t,n,r){return vt(n.prefixItems.map((n,i)=>{let a=tt(E(r,`length`),D(i)),o=wy(e,t,n,`${r}[${i}]`),s=t.AddIndex(D(i));return w(a,t.UseUnevaluated()?Fe(o,s):o)}))}function Av(e,t,n,r){return v(r.length,0)||y(n.prefixItems,0,(n,i)=>_e(r.length,i)||Ty(e,t,n,r[i])&&t.AddIndex(i))}function jv(e,t,n,r,i,a){return v(a.length,0)||Te(i.prefixItems,0,(i,o)=>{let s=`${n}/prefixItems/${o}`,c=`${r}/${o}`;return _e(a.length,o)||Ey(e,t,s,c,i,a[o])&&t.AddIndex(o)})}function Mv(e,t){return e.includes(t)||Bt().exactOptionalPropertyTypes}function Nv(e,t){return Ye(E(e,t))}function Pv(e,t){return _(e[t])}function Fv(e,t,n,r){let i=wm(n)?n.required:[];return vt(S(n.properties).map(([n,a])=>{let o=Ie(ct(r,D(n))),s=wy(e,t,a,E(r,n)),c=t.AddKey(D(n)),l=t.UseUnevaluated()?Fe(s,c):s,u=i.includes(n)?l:w(o,l);return Mv(i,n)?u:w(Nv(r,n),u)}))}function Iv(e,t,n,r){let i=wm(n)?n.required:[];return y(S(n.properties),0,([n,a])=>{let o=!x(r,n)||Ty(e,t,a,r[n])&&t.AddKey(n);return Mv(i,n)?o:Pv(r,n)||o})}function Lv(e,t,n,r,i,a){let o=wm(i)?i.required:[];return Te(S(i.properties),0,([i,s])=>{let c=`${n}/properties/${i}`,l=`${r}/${i}`,u=()=>!x(a,i)||Ey(e,t,c,l,s,a[i])&&t.AddKey(i);return Mv(o,i)?u():Pv(a,i)||u()})}function Rv(e,t,n,r){let[i,a]=[Ym(),Ym()];return at(st(r),D(0),[i,a],Z(e,t,n.propertyNames,i))}function zv(e,t,n,r){return y(C(r),0,(r,i)=>Q(e,t,n.propertyNames,r))}function Bv(e,t,n,r,i,a){let o=[];return Te(C(a),0,(t,a)=>{let s=`${r}/${t}`,c=`${n}/propertyNames`,l=Dy(e,new Lm,c,s,i.propertyNames,t);return l||o.push(t),l})||t.AddError({keyword:`propertyNames`,schemaPath:n,instancePath:r,params:{propertyNames:o}})}function Vv(e,t,n,r){return Ny(e,t,e.RecursiveRef(n)??!1,r)}function Hv(e,t,n,r){let i=e.RecursiveRef(n)??!1;return Y(i)&&Q(e,t,i,r)}function Uv(e,t,n,r,i,a){let o=e.RecursiveRef(i)??!1;return Y(o)&&Dy(e,t,`#`,r,o,a)}function Wv(e,t,n,r){let i=dt([`context`,`value`],Ny(e,t,n,`value`));return T(dt([`context`,`value`],mt([ht(`nextContext`,ft(`CheckContext`,[])),ht(`result`,T(i,[`nextContext`,`value`])),gt(`result`,t.Merge(`[nextContext]`)),_t(`result`)])),[`context`,r])}function Gv(e,t,n,r){return Ny(e,t,n,r)}function Kv(e,t,n,r){let i=e.Ref(n)??!1;return t.UseUnevaluated()?Wv(e,t,i,r):Gv(e,t,i,r)}function qv(e,t,n,r){let i=e.Ref(n)??!1,a=new Fm,o=Y(i)&&Q(e,a,i,r);return o&&t.Merge([a]),o}function Jv(e,t,n,r,i,a){let o=e.Ref(i)??!1,s=new Lm,c=Y(o)&&Dy(e,s,`#`,r,o,a);return c&&t.Merge([s]),c||s.GetErrors().forEach(e=>t.AddError(e)),c}function Yv(e,t,n,r){return vt(n.required.map(e=>ct(r,D(e))))}function Xv(e,t,n,r){return y(n.required,0,e=>x(r,e))}function Zv(e,t,n,r,i,a){let o=[];return Te(i.required,0,e=>{let t=x(a,e);return t||o.push(e),t})||t.AddError({keyword:`required`,schemaPath:n,instancePath:r,params:{requiredProperties:o}})}function Qv(e,t,n,r){return v(n,`object`)?Ge(r):v(n,`array`)?Le(r):v(n,`boolean`)?Be(r):v(n,`integer`)?Ve(r):v(n,`number`)?We(r):v(n,`null`)?Ue(r):v(n,`string`)?qe(r):v(n,`asyncIterator`)?Re(r):v(n,`bigint`)?ze(r):v(n,`constructor`)?Ze(r):v(n,`function`)?Xe(r):v(n,`iterator`)?He(r):v(n,`symbol`)?Je(r):v(n,`undefined`)||v(n,`void`)?Ye(r):D(!0)}function $v(e,t,n,r,i){return v(n,`object`)?pe(i):v(n,`array`)?d(i):v(n,`boolean`)?p(i):v(n,`integer`)?ue(i):v(n,`number`)?m(i):v(n,`null`)?fe(i):v(n,`string`)?g(i):v(n,`asyncIterator`)?se(i):v(n,`bigint`)?f(i):v(n,`constructor`)?ce(i):v(n,`function`)?le(i):v(n,`iterator`)?de(i):v(n,`symbol`)?me(i):v(n,`undefined`)||v(n,`void`)?_(i):!0}function ey(e,t,n,r){return yt(n.map(n=>Qv(e,t,n,r)))}function ty(e,t,n,r,i){return n.some(n=>$v(e,t,n,r,i))}function ny(e,t,n,r){return d(n.type)?ey(e,t,n.type,r):Qv(e,t,n.type,r)}function ry(e,t,n,r){return d(n.type)?ty(e,t,n.type,n,r):$v(e,t,n.type,n,r)}function iy(e,t,n,r,i,a){return(d(i.type)?ty(e,t,i.type,i,a):$v(e,t,i.type,i,a))||t.AddError({keyword:`type`,schemaPath:n,instancePath:r,params:{type:i.type}})}function ay(e,t,n,r){let[i,a]=[Ym(),Ym()],o=T(E(`context`,`GetIndices`),[]),s=T(E(`indices`,`has`),[i]),c=Z(e,t,n.unevaluatedItems,a),l=T(E(`context`,`AddIndex`),[i]),u=at(r,D(0),[a,i],Fe(w(s,c),l));return T(dt([`context`],mt([ht(`indices`,o),_t(u)])),[`context`])}function oy(e,t,n,r){let i=t.GetIndices();return y(r,0,(r,a)=>(i.has(a)||Q(e,t,n.unevaluatedItems,r))&&t.AddIndex(a))}function sy(e,t,n,r,i,a){let o=t.GetIndices(),s=[];return Te(a,0,(a,c)=>{let l=new Lm,u=(o.has(c)||Dy(e,l,n,r,i.unevaluatedItems,a))&&t.AddIndex(c);return u||s.push(c),u})||t.AddError({keyword:`unevaluatedItems`,schemaPath:n,instancePath:r,params:{unevaluatedItems:s}})}function cy(e,t,n,r){let[i,a]=[Ym(),Ym()],o=T(E(`context`,`GetKeys`),[]),s=T(E(`keys`,`has`),[i]),c=T(E(`context`,`AddKey`),[i]),l=Z(e,t,n.unevaluatedProperties,a),u=at(ot(r),D(0),[`[${i}, ${a}]`,`_`],w(s,Fe(l,c)));return T(dt([`context`],mt([ht(`keys`,o),_t(u)])),[`context`])}function ly(e,t,n,r){let i=t.GetKeys();return y(S(r),0,([r,a])=>i.has(r)||Q(e,t,n.unevaluatedProperties,a)&&t.AddKey(r))}function uy(e,t,n,r,i,a){let o=t.GetKeys(),s=[];return Te(S(a),0,([a,c])=>{let l=new Lm,u=o.has(a)||Dy(e,l,n,r,i.unevaluatedProperties,c)&&t.AddKey(a);return u||s.push(a),u})||t.AddError({keyword:`unevaluatedProperties`,schemaPath:n,instancePath:r,params:{unevaluatedProperties:s}})}function dy(e){return!v(e.uniqueItems,!1)}function fy(e,t,n,r){return dy(n)?Qe(E(ft(`Set`,[T(E(r,`map`),[E(`Hashing`,`Hash`)])]),`size`),E(r,`length`)):D(!0)}function py(e,t,n,r){if(!dy(n))return!0;let i=new Set(r.map(xr)).size,a=r.length;return v(i,a)}function my(e,t,n,r,i,a){if(!dy(i))return!0;let o=new Set,s=a.reduce((e,t,n)=>{let r=xr(t);return o.has(r)?[...e,n]:(o.add(r),e)},[]);return v(s.length,0)||t.AddError({keyword:`uniqueItems`,schemaPath:n,instancePath:r,params:{duplicateItems:s}})}function hy(e,t){return Em(e)&&(d(e.type)&&e.type.includes(t)||v(e.type,t))}function gy(e){return hy(e,`object`)}function _y(e){return Mp(e)&&(Fp(e)||Hp(e)||Up(e)||Wp(e)||vm(e)||gm(e)||ym(e)||dm(e)||om(e)||wm(e)||km(e))}function vy(e){return hy(e,`array`)}function yy(e){return Mp(e)&&(Pp(e)||em(e)||Bp(e)||rm(e)||im(e)||cm(e)||lm(e)||_m(e)||Om(e)||Dm(e))}function by(e){return hy(e,`string`)}function xy(e){return Mp(e)&&(um(e)||am(e)||Zp(e)||hm(e))}function Sy(e){return hy(e,`number`)||hy(e,`bigint`)}function Cy(e){return Mp(e)&&(sm(e)||nm(e)||Yp(e)||Xp(e)||fm(e))}function wy(e,t,n,r){return t.UseUnevaluated()?Fe(Fe(t.Push(),Z(e,t,n,r)),t.Pop()):Z(e,t,n,r)}function Z(e,t,n,r){e.Push(n);let i=[];if(Np(n))return yh(e,t,n,r);if(Em(n)&&i.push(ny(e,t,n,r)),_y(n)){let a=[];wm(n)&&a.push(Yv(e,t,n,r)),Fp(n)&&a.push(ah(e,t,n,r)),Hp(n)&&a.push(kh(e,t,n,r)),Up(n)&&a.push(Mh(e,t,n,r)),Wp(n)&&a.push(Fh(e,t,n,r)),gm(n)&&a.push(Ev(e,t,n,r)),vm(n)&&a.push(Fv(e,t,n,r)),ym(n)&&a.push(Rv(e,t,n,r)),dm(n)&&a.push(sv(e,t,n,r)),om(n)&&a.push(G_(e,t,n,r));let o=vt(a),s=w(Ie(Ge(r)),o);i.push(gy(n)?o:s)}if(yy(n)){let a=[];Pp(n)&&a.push(Zm(e,t,n,r)),Bp(n)&&a.push(Eh(e,t,n,r)),em(n)&&a.push(k_(e,t,n,r)),rm(n)&&a.push(N_(e,t,n,r)),im(n)&&a.push(z_(e,t,n,r)),cm(n)&&a.push(Y_(e,t,n,r)),lm(n)&&a.push(tv(e,t,n,r)),_m(n)&&a.push(kv(e,t,n,r)),Dm(n)&&a.push(fy(e,t,n,r));let o=vt(a),s=w(Ie(Le(r)),o);i.push(vy(n)?o:s)}if(xy(n)){let a=[];am(n)&&a.push(H_(e,t,n,r)),um(n)&&a.push(iv(e,t,n,r)),Zp(n)&&a.push(__(e,t,n,r)),hm(n)&&a.push(Cv(e,t,n,r));let o=vt(a),s=w(Ie(qe(r)),o);i.push(by(n)?o:s)}if(Cy(n)){let a=[];Yp(n)&&a.push(Wh(e,t,n,r)),Xp(n)&&a.push(qh(e,t,n,r)),nm(n)&&a.push(I_(e,t,n,r)),sm(n)&&a.push(Q_(e,t,n,r)),fm(n)&&a.push(uv(e,t,n,r));let o=vt(a),s=w(Ie(w(We(r),ze(r))),o);i.push(Sy(n)?o:s)}Cm(n)&&i.push(Kv(e,t,n,r)),Sm(n)&&i.push(Vv(e,t,n,r)),Kp(n)&&i.push(Rh(e,t,n,r)),Ap(n)&&i.push(Hm(e,t,n,r)),zp(n)&&i.push(Sh(e,t,n,r)),Jp(n)&&i.push(Vh(e,t,n,r)),$p(n)&&i.push(b_(e,t,n,r)),pm(n)&&i.push(hv(e,t,n,r)),Ip(n)&&i.push(dh(e,t,n,r)),Rp(n)&&i.push(gh(e,t,n,r)),mm(n)&&i.push(bv(e,t,n,r)),Om(n)&&i.push(w(Ie(Le(r)),ay(e,t,n,r))),km(n)&&i.push(w(Ie(Ke(r)),cy(e,t,n,r))),jp(n)&&i.push(Gm(e,t,n,r));let a=vt(i);return e.Pop(n),a}function Ty(e,t,n,r){return t.Push()&&Q(e,t,n,r)&&t.Pop()}function Q(e,t,n,r){e.Push(n);let i=Np(n)?bh(e,t,n,r):(!Em(n)||ry(e,t,n,r))&&(!(h(r)&&!d(r))||(!wm(n)||Xv(e,t,n,r))&&(!Fp(n)||oh(e,t,n,r))&&(!Hp(n)||Ah(e,t,n,r))&&(!Up(n)||Nh(e,t,n,r))&&(!Wp(n)||Ih(e,t,n,r))&&(!gm(n)||Dv(e,t,n,r))&&(!vm(n)||Iv(e,t,n,r))&&(!ym(n)||zv(e,t,n,r))&&(!dm(n)||cv(e,t,n,r))&&(!om(n)||K_(e,t,n,r)))&&(!d(r)||(!Pp(n)||Qm(e,t,n,r))&&(!Bp(n)||Dh(e,t,n,r))&&(!em(n)||A_(e,t,n,r))&&(!rm(n)||P_(e,t,n,r))&&(!im(n)||B_(e,t,n,r))&&(!cm(n)||X_(e,t,n,r))&&(!lm(n)||nv(e,t,n,r))&&(!_m(n)||Av(e,t,n,r))&&(!Dm(n)||py(e,t,n,r)))&&(!g(r)||(!am(n)||U_(e,t,n,r))&&(!um(n)||av(e,t,n,r))&&(!Zp(n)||v_(e,t,n,r))&&(!hm(n)||wv(e,t,n,r)))&&(!(m(r)||f(r))||(!Yp(n)||Gh(e,t,n,r))&&(!Xp(n)||Jh(e,t,n,r))&&(!nm(n)||L_(e,t,n,r))&&(!sm(n)||$_(e,t,n,r))&&(!fm(n)||dv(e,t,n,r)))&&(!Cm(n)||qv(e,t,n,r))&&(!Sm(n)||Hv(e,t,n,r))&&(!Kp(n)||zh(e,t,n,r))&&(!Ap(n)||Um(e,t,n,r))&&(!zp(n)||Ch(e,t,n,r))&&(!Jp(n)||Hh(e,t,n,r))&&(!$p(n)||x_(e,t,n,r))&&(!pm(n)||gv(e,t,n,r))&&(!Ip(n)||fh(e,t,n,r))&&(!Rp(n)||_h(e,t,n,r))&&(!mm(n)||xv(e,t,n,r))&&(!Om(n)||!d(r)||oy(e,t,n,r))&&(!km(n)||!h(r)||ly(e,t,n,r))&&(!jp(n)||Km(e,t,n,r));return e.Pop(n),i}function Ey(e,t,n,r,i,a){return t.Push()&&Dy(e,t,n,r,i,a)&&t.Pop()}function Dy(e,t,n,r,i,a){e.Push(i);let o=Np(i)?xh(e,t,n,r,i,a):!!((!Em(i)||iy(e,t,n,r,i,a))&+(!(h(a)&&!d(a))||!!((!wm(i)||Zv(e,t,n,r,i,a))&+(!Fp(i)||sh(e,t,n,r,i,a))&(!Hp(i)||jh(e,t,n,r,i,a))&(!Up(i)||Ph(e,t,n,r,i,a))&(!Wp(i)||Lh(e,t,n,r,i,a))&(!gm(i)||Ov(e,t,n,r,i,a))&(!vm(i)||Lv(e,t,n,r,i,a))&(!ym(i)||Bv(e,t,n,r,i,a))&(!dm(i)||lv(e,t,n,r,i,a))&(!om(i)||q_(e,t,n,r,i,a))))&(!d(a)||!!((!Pp(i)||$m(e,t,n,r,i,a))&+(!Bp(i)||Oh(e,t,n,r,i,a))&(!em(i)||j_(e,t,n,r,i,a))&(!rm(i)||F_(e,t,n,r,i,a))&(!im(i)||V_(e,t,n,r,i,a))&(!cm(i)||Z_(e,t,n,r,i,a))&(!lm(i)||rv(e,t,n,r,i,a))&(!_m(i)||jv(e,t,n,r,i,a))&(!Dm(i)||my(e,t,n,r,i,a))))&(!g(a)||!!((!am(i)||W_(e,t,n,r,i,a))&+(!um(i)||ov(e,t,n,r,i,a))&(!Zp(i)||y_(e,t,n,r,i,a))&(!hm(i)||Tv(e,t,n,r,i,a))))&(!(m(a)||f(a))||!!((!Yp(i)||Kh(e,t,n,r,i,a))&+(!Xp(i)||Yh(e,t,n,r,i,a))&(!nm(i)||R_(e,t,n,r,i,a))&(!sm(i)||ev(e,t,n,r,i,a))&(!fm(i)||fv(e,t,n,r,i,a))))&(!Cm(i)||Jv(e,t,n,r,i,a))&(!Sm(i)||Uv(e,t,n,r,i,a))&(!Kp(i)||Bh(e,t,n,r,i,a))&(!Ap(i)||Wm(e,t,n,r,i,a))&(!zp(i)||wh(e,t,n,r,i,a))&(!Jp(i)||Uh(e,t,n,r,i,a))&(!$p(i)||S_(e,t,n,r,i,a))&(!pm(i)||_v(e,t,n,r,i,a))&(!Ip(i)||ph(e,t,n,r,i,a))&(!Rp(i)||vh(e,t,n,r,i,a))&(!mm(i)||Sv(e,t,n,r,i,a))&(!Om(i)||!d(a)||sy(e,t,n,r,i,a))&(!km(i)||!h(a)||uy(e,t,n,r,i,a)))&&(!jp(i)||qm(e,t,n,r,i,a));return e.Pop(i),o}const Oy=new Map;function ky(e,t,n,r){return e.UseUnevaluated()?T(`check_${n}`,[`context`,r]):T(`check_${n}`,[r])}function Ay(e,t,n,r){let i=Z(e,t,n,`value`);return t.UseUnevaluated()?ht(`check_${r}`,dt([`context`,`value`],i)):ht(`check_${r}`,dt([`value`],i))}function jy(){Oy.clear()}function My(){return[...Oy.values()]}function Ny(e,t,n,r){let i=Mp(n)?xr({__baseURL:e.BaseURL().href,...n}):xr(n),a=ky(t,n,i,r);return Oy.has(i)?a:(Oy.set(i,``),Oy.set(i,Ay(e,t,n,i)),a)}function Py(e,t){return h(t)&&!Ee(e)?t[e]:void 0}function Fy(e,t){return e.reduce((e,t)=>Py(t,e),t)}function Iy(e){if(v(e.length,0))return[];let t=e.split(`/`).map(e=>e.replace(/~1/g,`/`).replace(/~0/g,`~`));return t.length>0&&t[0]===``?t.slice(1):t}function Ly(e,t){return Fy(Iy(t),e)}function Ry(e,t,n){if(e.$id===n.hash)return e;let r=new URL(e.$id,t.href),i=new URL(n.href,t.href);if(v(r.pathname,i.pathname))return n.hash.startsWith(`#`)?Vy(e,t,n):e}function zy(e,t,n){let r=new URL(`#${e.$anchor}`,t.href),i=new URL(n.href,t.href);return v(r.href,i.href)?e:void 0}function By(e,t,n){let r=new URL(`#${e.$dynamicAnchor}`,t.href),i=new URL(n.href,t.href);return v(r.href,i.href)?e:void 0}function Vy(e,t,n){if(n.href.endsWith(`#`))return e;if(!n.hash.startsWith(`#`))return;let r=decodeURIComponent(n.hash.slice(1));if(r.startsWith(`/`))return Ly(e,r)}function Hy(e,t,n){if(Qp(e)){let r=Ry(e,t,n);if(!_(r))return r}if(Lp(e)){let r=zy(e,t,n);if(!_(r))return r}if(Gp(e)){let r=By(e,t,n);if(!_(r))return r}return Vy(e,t,n)}function Uy(e,t,n){return e.reduce((e,r)=>{let i=Gy(r,t,n);return _(i)?e:i},void 0)}function Wy(e,t,n){return C(e).reduce((r,i)=>{let a=Gy(e[i],t,n);return _(a)?r:a},void 0)}function Gy(e,t,n){let r=Mp(e)&&Qp(e)?new URL(e.$id,t.href):t;if(Mp(e)){let t=Hy(e,r,n);if(!_(t))return t}if(d(e))return Uy(e,r,n);if(h(e))return Wy(e,r,n)}function Ky(e,t){let n=new URL(`http://unknown/`),r=Qp(e)?new URL(e.$id,n.href):n;return Gy(e,r,new URL(t,r.href))}function qy(e,t,n,r){let i=n.$dynamicRef.startsWith(`#`)?Ky(t,n.$dynamicRef):Ky(e,n.$dynamicRef);if(!_(i))return!Mp(i)||!Gp(i)||new URL(n.$dynamicRef,`http://unknown/`).hash.startsWith(`#/`)?i:r.find(e=>e.$dynamicAnchor===i.$dynamicAnchor)??i}var Jy=function(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)},Yy,Xy,Zy,Qy,$y,eb=class{constructor(e,t){Yy.add(this),this.context=e,this.schema=t,this.ids=[],this.anchors=[],this.recursiveAnchors=[],this.dynamicAnchors=[]}BaseURL(){return this.ids.reduce((e,t)=>new URL(t.$id,e),new URL(`http://unknown`))}Base(){return this.ids[this.ids.length-1]??this.schema}Push(e){Mp(e)&&(Qp(e)&&(this.ids.push(e),Jy(this,Yy,`m`,Xy).call(this,e)),Lp(e)&&this.anchors.push(e),xm(e)&&this.recursiveAnchors.push(e),Gp(e)&&this.dynamicAnchors.push(e))}Pop(e){Mp(e)&&(Qp(e)&&(this.ids.pop(),Jy(this,Yy,`m`,Zy).call(this,e)),Lp(e)&&this.anchors.pop(),xm(e)&&this.recursiveAnchors.pop(),Gp(e)&&this.dynamicAnchors.pop())}Ref(e){return Jy(this,Yy,`m`,Qy).call(this,e)??Jy(this,Yy,`m`,$y).call(this,e)}RecursiveRef(e){return xm(this.Base())?Ky(this.recursiveAnchors[0],e.$recursiveRef):Ky(this.Base(),e.$recursiveRef)}DynamicRef(e){let t=this.schema;return qy(t,this.Base(),e,this.dynamicAnchors)}};Yy=new WeakSet,Xy=function e(t,n=!0){if(!Mp(t))return;let r=t;if(!(!n&&Qp(r))){!n&&Gp(r)&&this.dynamicAnchors.push(r);for(let t of C(r))Jy(this,Yy,`m`,e).call(this,r[t],!1)}},Zy=function e(t,n=!0){if(!Mp(t))return;let r=t;if(!(!n&&Qp(r))){!n&&Gp(r)&&this.dynamicAnchors.pop();for(let t of C(r))Jy(this,Yy,`m`,e).call(this,r[t],!1)}},Qy=function(e){return x(this.context,e.$ref)?this.context[e.$ref]:void 0},$y=function(e){let t=this.schema;return e.$ref.startsWith(`#`)?Ky(this.Base(),e.$ref):Ky(t,e.$ref)};function tb(e){return`${e.Functions().join(`; -`)}; return (value) => { ${(e.UseUnevaluated()?[`const context = new CheckContext({}, {})`,`return ${e.Entry()}`]:[`return ${e.Entry()}`]).join(`; `)} }`}function nb(e,t){return Gn(`CheckContext`,`Guard`,`Format`,`Hashing`,e.External().identifier,t)(Fm,oe,g_,qn,e.External().variables)}function rb(e){let t=new eb(e.Context(),e.Schema()),n=new Fm;return r=>Q(t,n,e.Schema(),r)}function ib(e,t){return Wn()?nb(e,t):rb(e)}var ab=class{constructor(e,t,n){this.isAccelerated=e,this.code=t,this.check=n}IsAccelerated(){return this.isAccelerated}Code(){return this.code}Check(e){return this.check(e)}},ob=class{constructor(e,t,n,r,i,a){this.context=e,this.schema=t,this.external=n,this.functions=r,this.entry=i,this.useUnevaluated=a}Context(){return this.context}Schema(){return this.schema}UseUnevaluated(){return this.useUnevaluated}External(){return this.external}Functions(){return this.functions}Entry(){return this.entry}Evaluate(){let e=tb(this),t=ib(this,e);return new ab(Wn(),e,t)}};function sb(...e){let[t,n]=jn(e,{2:(e,t)=>[e,t],1:e=>[{},e]});Bm(),jy();let r=new eb(t,n),i=new Pm(Nm(t,n)),a=Ny(r,i,n,`value`),o=My();return new ob(t,n,Vm(),o,a,i.UseUnevaluated())}function cb(...e){let[t,n,r]=jn(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]}),i=Bt(),a=wr(),o=[];return[Dy(new eb(t,n),new Im(e=>{if(!ve(o.length,i.maxErrors))return o.push({...e,message:a(e)})}),`#`,``,n,r),o]}function lb(...e){let[t,n,r]=jn(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]});return Q(new eb(t,n),new Fm,n,r)}function ub(...e){let[t,n,r]=jn(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]});return lb(t,n,r)}function db(...e){let[t,n,r]=jn(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]}),[i,a]=cb(t,n,r);return a}var fb=class extends Error{constructor(e,t,n){super(e),Object.defineProperty(this,"cause",{value:{source:e,errors:n,value:t},writable:!1,configurable:!1,enumerable:!1})}};function pb(e,t,n){return d(n)?n.map(n=>Fb(e,t.items,n)):n}function mb(e,t,n){return t.Clean(n)}function hb(e,t,n){return Fb({...e,...t.$defs},sn(t.$ref),n)}function gb(e,t){let n=x(t,`unevaluatedProperties`)?{additionalProperties:t.unevaluatedProperties}:{},r=wp(yp(e,t));return P(r)?sp(r,n):r}function _b(e,t,n){return Fb(e,gb(e,t),n)}function vb(e){return x(e,`additionalProperties`)?e.additionalProperties:void 0}function yb(e,t,n){if(!h(n)||d(n))return n;let r=vb(t);for(let i of C(n)){if(x(t.properties,i)){n[i]=Fb(e,t.properties[i],n[i]);continue}if(p(r)&&v(r,!0)||Wt(r)&&ub(e,r,n[i])){n[i]=Fb(e,r,n[i]);continue}delete n[i]}return n}function bb(e,t,n){if(!h(n))return n;let r=vb(t),[i,a]=[new RegExp(za(t)),Va(t)];for(let t of C(n)){if(i.test(t)){n[t]=Fb(e,a,n[t]);continue}if(p(r)&&v(r,!0)||Wt(r)&&ub(e,r,n[t])){n[t]=Fb(e,r,n[t]);continue}delete n[t]}return n}function xb(e,t,n){return x(e,t.$ref)?Fb(e,e[t.$ref],n):n}function Sb(e,t,n){if(!d(n))return n;let r=Math.min(n.length,t.items.length);for(let i=0;iNb(e))}function kb(e){return e.slice()}function Ab(e){return new Map(Nb([...e.entries()]))}function jb(e){return new Set(Nb([...e.values()]))}function Mb(e){return e}function Nb(e){return Tt(e)?kb(e):kt(e)?Ab(e):Ot(e)?jb(e):d(e)?Ob(e):h(e)?Db(e):Mb(e)}function Pb(e,t,n){for(let r of t.anyOf){let t=Fb(e,r,Nb(n));if(ub(e,r,t))return t}return n}function Fb(e,t,n){return M(t)?pb(e,t,n):Jt(t)?mb(e,t,n):On(t)?hb(e,t,n):F(t)?_b(e,t,n):P(t)?yb(e,t,n):Ha(t)?bb(e,t,n):cn(t)?xb(e,t,n):V(t)?Sb(e,t,n):B(t)?Pb(e,t,n):n}function Ib(e,t){for(let n of At.Keys(e))At.HasPropertyKey(t,n)||(t[n]=e[n]);return t}function Lb(e){let t={};for(let n of At.Keys(e))t[n]=Bb(e[n]);return t}function Rb(e){return zb(Op(e))}function zb(e){return e.map(e=>Bb(e))}function Bb(e){return Ib(e,M(e)?Yt(Bb(e.items),Xt(e)):F(e)?Bn(zb(e.allOf)):B(e)?z(Rb(e.anyOf)):P(e)?N(Lb(e.properties)):Ha(e)?Ia(Ba(e),Bb(Va(e))):V(e)?Ni(zb(e.items)):e)}function Vb(e){return Bb(e)}function Hb(...e){let[t,n,r]=jn(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]});return Fb(t,Bt().unionPrioritySort?Vb(n):n,r)}function Ub(e){return h(e)&&x(e,`value`)}function $(e){return{value:e}}function Wb(e){return d(e)?$(e):$([e])}function Gb(e){return v(e,!0)?$(BigInt(1)):$(BigInt(0))}const Kb=/^-?(0|[1-9]\d*)n$/,qb=/^-?(0|[1-9]\d*)\.\d+$/,Jb=/^-?(0|[1-9]\d*)$/;function Yb(e){return Kb.test(e)}function Xb(e){return qb.test(e)}function Zb(e){return Jb.test(e)}function Qb(e){let t=e.toLowerCase();return Yb(e)?$(BigInt(e.slice(0,e.length-1))):Xb(e)?$(BigInt(e.split(`.`)[0])):Zb(e)?$(BigInt(e)):v(t,`false`)?$(BigInt(0)):v(t,`true`)?$(BigInt(1)):void 0}function $b(e){return f(e)?$(e):p(e)?Gb(e):m(e)?$(BigInt(Math.trunc(e))):fe(e)?$(BigInt(0)):g(e)?Qb(e):_(e)?$(BigInt(0)):void 0}function ex(e){return v(e,BigInt(0))?$(!1):v(e,BigInt(1))?$(!0):void 0}function tx(e){return v(e,0)?$(!1):v(e,1)?$(!0):void 0}function nx(e){return v(e.toLowerCase(),`false`)?$(!1):v(e.toLowerCase(),`true`)?$(!0):v(e,`0`)?$(!1):v(e,`1`)?$(!0):void 0}function rx(e){return f(e)?ex(e):p(e)?$(e):m(e)?tx(e):fe(e)?$(!1):g(e)?nx(e):_(e)?$(!1):void 0}function ix(e){return v(e,BigInt(0))?$(null):void 0}function ax(e){return v(e,!1)?$(null):void 0}function ox(e){return v(e,0)?$(null):void 0}function sx(e){let t=e.toLowerCase();return v(t,`undefined`)||v(t,`null`)||v(e,``)||v(e,`0`)?$(null):void 0}function cx(e){return f(e)?ix(e):p(e)?ax(e):m(e)?ox(e):fe(e)?$(null):g(e)?sx(e):_(e)?$(null):void 0}const lx=BigInt(2**53-1),ux=BigInt(-(2**53-1));function dx(e){return e<=lx&&e>=ux?$(Number(e)):void 0}function fx(e){return $(+!!e)}function px(e){let t=+e;if(m(t))return $(t);let n=e.toLowerCase();if(v(n,`false`))return $(0);if(v(n,`true`))return $(1);let r=$b(e);if(Ub(r))return r.value<=lx&&r.value>=ux?$(Number(r.value)):void 0}function mx(e){return f(e)?dx(e):p(e)?fx(e):m(e)?$(e):fe(e)?$(0):g(e)?px(e):_(e)?$(0):void 0}function hx(e){return f(e)||p(e)||m(e)?$(e.toString()):fe(e)?$(`null`):g(e)?$(e):_(e)?$(``):void 0}function gx(e){return v(e,BigInt(0))?$(void 0):void 0}function _x(e){return v(e,!1)?$(void 0):void 0}function vx(e){return v(e,0)?$(void 0):void 0}function yx(e){let t=e.toLowerCase();return v(t,`undefined`)||v(t,`null`)||v(e,``)||v(e,`0`)?$(void 0):void 0}function bx(e){return f(e)?gx(e):p(e)?_x(e):m(e)?vx(e):fe(e)?$(void 0):g(e)?yx(e):_(e)?$(e):void 0}function xx(e,t,n){return Wb(n).value.map(n=>Yx(e,t.items,n))}function Sx(e,t,n){return t.Convert(n)}function Cx(e,t,n){let r=$b(n);return Ub(r)?r.value:n}function wx(e,t,n){let r=rx(n);return Ub(r)?r.value:n}function Tx(e,t,n){return Yx({...e,...t.$defs},sn(t.$ref),n)}function Ex(e,t,n){return Yx(e,wp(t),n)}function Dx(e,t,n){let r=mx(n);return Ub(r)?Math.trunc(r.value):n}function Ox(e,t,n){return Yx(e,wp(yp(e,t)),n)}function kx(e,t,n){let r=$b(n);return Ub(r)&&v(t.const,r.value)?r.value:n}function Ax(e,t,n){let r=rx(n);return Ub(r)&&v(t.const,r.value)?r.value:n}function jx(e,t,n){let r=mx(n);return Ub(r)&&v(t.const,r.value)?r.value:n}function Mx(e,t,n){let r=hx(n);return Ub(r)&&v(t.const,r.value)?r.value:n}function Nx(e,t,n){return v(t.const,n)?n:Xr(t)?kx(e,t,n):Zr(t)?Ax(e,t,n):Qr(t)?jx(e,t,n):$r(t)?Mx(e,t,n):Kn()}function Px(e,t,n){let r=cx(n);return Ub(r)?r.value:n}function Fx(e,t,n){let r=mx(n);return Ub(r)?r.value:n}function Ix(e,t,n,r){let i=C(r);for(let[a,o]of t)for(let t of i)a.test(t)||(r[t]=Yx(e,n,r[t]));return r}function Lx(e,t,n){return bn(e)&&_(n[t])}function Rx(e,t,n){let r=De(t.properties),i=C(n);for(let[t,a]of r)for(let r of i)!t.test(r)||Lx(a,r,n)||(n[r]=Yx(e,a,n[r]));return x(t,`additionalProperties`)&&h(t.additionalProperties)?Ix(e,r,t.additionalProperties,n):n}function zx(e,t,n){return pe(n)?Rx(e,t,n):n}function Bx(e,t,n){let r=De(t.patternProperties),i=C(n);for(let[t,a]of r)for(let r of i)t.test(r)&&(n[r]=Yx(e,a,n[r]));return x(t,`additionalProperties`)&&h(t.additionalProperties)?Ix(e,r,t.additionalProperties,n):n}function Vx(e,t,n){return pe(n)?Bx(e,t,n):n}function Hx(e,t,n){return x(e,t.$ref)?Yx(e,e[t.$ref],n):n}function Ux(e,t,n){let r=hx(n);return Ub(r)?r.value:n}function Wx(e,t,n){return Yx(e,wp(t),n)}function Gx(e,t,n){if(!d(n))return n;for(let r=0;rub(e,t,n)))return n;let r=t.anyOf.map(t=>Yx(e,t,Nb(n))).find(n=>ub(e,t,n));return _(r)?n:r}function Jx(e,t,n){return Ub(bx(n))?void 0:n}function Yx(e,t,n){return M(t)?xx(e,t,n):Jt(t)?Sx(e,t,n):zr(t)?Cx(e,t,n):Br(t)?wx(e,t,n):On(t)?Tx(e,t,n):zn(t)?Ex(e,t,n):Ur(t)?Dx(e,t,n):F(t)?Ox(e,t,n):R(t)?Nx(e,t,n):ti(t)?Px(e,t,n):ii(t)?Fx(e,t,n):P(t)?zx(e,t,n):Ha(t)?Vx(e,t,n):cn(t)?Hx(e,t,n):di(t)?Ux(e,t,n):is(t)?Wx(e,t,n):V(t)?Gx(e,t,n):qa(t)?Kx(e,t,n):B(t)?qx(e,t,n):Ja(t)?Jx(e,t,n):n}function Xx(...e){let[t,n,r]=jn(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]});return Yx(t,n,r)}function Zx(e,t,n){if(!d(n))return n;for(let r=0;r[e,t,n],2:(e,t)=>[{},e,t]});return sS(t,n,r)}function lS(e){return(...t)=>{let[n,r,i]=jn(t,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]});return e.reduce((e,t)=>t(n,r,e),i)}}function uS(e,t,n){return t[`~codec`].decode(n)}function dS(e,t,n){return t[`~codec`].encode(n)}function fS(e,t,n,r){return Tr(n)?v(e,`Decode`)?uS(t,n,r):dS(t,n,r):r}function pS(e,t,n,r){if(!d(r))return r;for(let i=0;i({...e,...t}),{})}function vS(e,t){for(let n of t)if(!Me(e,n))return n;return e}function yS(e,t,n,r){if(v(n.allOf.length,0))return fS(e,t,n,r);let i=n.allOf.map(n=>IS(e,t,n,Hb(n,Nb(r))));return fS(e,t,n,i.every(e=>h(e))?_S(i):vS(r,i))}function bS(e,t,n,r){if(v(n.allOf.length,0))return fS(e,t,n,r);let i=fS(e,t,n,r),a=n.allOf.map(n=>IS(e,t,n,Hb(n,Nb(i))));return a.every(e=>h(e))?_S(a):vS(i,a)}function xS(e,t,n,r){return v(e,`Decode`)?yS(e,t,n,r):bS(e,t,n,r)}function SS(e,t,n,r){if(!pe(r))return r;for(let i of C(n.properties))!x(r,i)||Lx(n.properties[i],i,r)||(r[i]=IS(e,t,n.properties[i],r[i]));return fS(e,t,n,r)}function CS(e,t,n,r){let i=fS(e,t,n,r);if(!pe(i))return i;for(let r of C(n.properties))!x(i,r)||Lx(n.properties[r],r,i)||(i[r]=IS(e,t,n.properties[r],i[r]));return i}function wS(e,t,n,r){return v(e,`Decode`)?SS(e,t,n,r):CS(e,t,n,r)}function TS(e,t,n,r){if(!pe(r))return r;let i=new RegExp(za(n));for(let a of C(r))i.test(a)&&(r[a]=IS(e,t,Va(n),r[a]));return fS(e,t,n,r)}function ES(e,t,n,r){let i=fS(e,t,n,r);if(!pe(i))return i;let a=new RegExp(za(n));for(let r of C(i))a.test(r)&&(i[r]=IS(e,t,Va(n),i[r]));return i}function DS(e,t,n,r){return v(e,`Decode`)?TS(e,t,n,r):ES(e,t,n,r)}function OS(e,t,n,r){return x(t,n.$ref)?IS(e,t,t[n.$ref],r):r}function kS(e,t,n,r){return v(e,`Decode`)?fS(e,t,n,OS(e,t,n,r)):OS(e,t,n,fS(e,t,n,r))}function AS(e,t,n,r){if(!d(r))return r;for(let i=0;iNb(n),(e,t,n)=>cS(e,t,n),(e,t,n)=>Xx(e,t,n),(e,t,n)=>Hb(e,t,n),(e,t,n)=>RS(e,t,n),(e,t,n)=>zS(e,t,n)]);function VS(...e){let[t,n,r]=jn(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]});return BS(t,n,r)}var HS=class extends fb{constructor(e,t){super(`Encode`,e,t)}};function US(e,t,n){if(!ub(e,t,n))throw new HS(n,db(e,t,n));return n}function WS(e,t,n){return IS(`Encode`,e,Bt().unionPrioritySort?Vb(t):t,n)}const GS=lS([(e,t,n)=>Nb(n),(e,t,n)=>WS(e,t,n),(e,t,n)=>cS(e,t,n),(e,t,n)=>Xx(e,t,n),(e,t,n)=>Hb(e,t,n),(e,t,n)=>US(e,t,n)]);function KS(...e){let[t,n,r]=jn(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]});return GS(t,n,r)}function qS(e,t){return Tr(t)||tC(e,t.items)}function JS(e,t){return Tr(t)||QS({...e,...t.$defs},sn(t.$ref))}function YS(e,t){return Tr(t)||t.allOf.some(t=>tC(e,t))}function XS(e,t){return Tr(t)||C(t.properties).some(n=>tC(e,t.properties[n]))}function ZS(e,t){return Tr(t)||tC(e,Va(t))}function QS(e,t){return nC.has(t.$ref)?!1:(nC.add(t.$ref),Tr(t)||x(e,t.$ref)&&tC(e,e[t.$ref]))}function $S(e,t){return Tr(t)||t.items.some(t=>tC(e,t))}function eC(e,t){return Tr(t)||t.anyOf.some(t=>tC(e,t))}function tC(e,t){return M(t)?qS(e,t):On(t)?JS(e,t):F(t)?YS(e,t):P(t)?XS(e,t):Ha(t)?ZS(e,t):cn(t)?QS(e,t):V(t)?$S(e,t):B(t)?eC(e,t):Tr(t)}const nC=new Set;function rC(...e){let[t,n]=jn(e,{2:(e,t)=>[e,t],1:e=>[{},e]});return nC.clear(),tC(t,n)}var iC=class extends Error{constructor(e,t){super(t),this.type=e}};function aC(e,t){return le(t.default)?t.default(t):h(t.default)?Nb(t.default):t.default}function oC(e,t){if(Dm(t)&&!Vp(t))throw new iC(t,`Arrays with uniqueItems constraints must specify a default annotation`);let n=lm(t)?t.minItems:0;return Array.from({length:n},()=>NC(e,t.items))}async function*sC(){}function cC(e,t){return sC()}function lC(e,t){return t.Create()}function uC(e,t){return Xp(t)?BigInt(t.exclusiveMinimum)+BigInt(1):sm(t)?BigInt(t.minimum):BigInt(0)}function dC(e,t){return!1}function fC(e,t){let n=NC(e,t.instanceType);return class{constructor(){Object.assign(this,n)}}}function pC(e,t){return NC({...e,...t.$defs},sn(t.$ref))}function mC(e,t){return NC(e,wp(t))}function hC(e,t){let n=NC(e,t.returnType);return()=>n}function gC(e,t){return Xp(t)&&m(t.exclusiveMinimum)?t.exclusiveMinimum+1:sm(t)?t.minimum:0}function _C(e,t){return NC(e,wp(yp(e,t)))}function*vC(){}function yC(e,t){return vC()}function bC(e,t){return t.const}function xC(e,t){throw new iC(t,`Cannot create TNever types`)}function SC(e,t){return null}function CC(e,t){return Xp(t)&&m(t.exclusiveMinimum)?t.exclusiveMinimum+1:sm(t)?t.minimum:0}function wC(e,t){return(_(t.required)?[]:t.required).reduce((n,r)=>({...n,[r]:NC(e,t.properties[r])}),{})}function TC(e,t){return Promise.resolve(NC(e,t.item))}function EC(e,t){if(dm(t)&&!Vp(t))throw new iC(t,`Record with the minProperties constraint must have a default annotation`);return{}}function DC(e,t){return x(e,t.$ref)?NC(e,e[t.$ref]):(()=>{throw new iC(t,`Unable to deref Ref`)})()}function OC(e,t){if((hm(t)||Zp(t))&&!Vp(t))throw Error(`Strings with format or pattern constraints must specify default`);let n=um(t)?t.minLength:0;return``.padEnd(n)}function kC(e,t){return Symbol()}function AC(e,t){let n=ki(t.pattern);if(di(n))throw new iC(t,`Unable to create TemplateLiteral due to infinite type expansion`);return NC(e,n)}function jC(e,t){return Array.from({length:t.minItems},(n,r)=>NC(e,t.items[r]))}function MC(e,t){if(v(t.anyOf.length,0))throw Error(`Unable to create Union with no variants`);return NC(e,t.anyOf[0])}function NC(e,t){return Vp(t)?aC(e,t):M(t)?oC(e,t):Qt(t)?cC(e,t):Jt(t)?lC(e,t):zr(t)?uC(e,t):Br(t)?dC(e,t):tn(t)?fC(e,t):On(t)?pC(e,t):zn(t)?mC(e,t):an(t)?hC(e,t):Ur(t)?gC(e,t):F(t)?_C(e,t):Gr(t)?yC(e,t):R(t)?bC(e,t):mn(t)?xC(e,t):ti(t)?SC(e,t):ii(t)?CC(e,t):P(t)?wC(e,t):ci(t)?TC(e,t):Ha(t)?EC(e,t):cn(t)?DC(e,t):di(t)?OC(e,t):oi(t)?kC(e,t):is(t)?AC(e,t):V(t)?jC(e,t):qa(t)?void 0:B(t)?MC(e,t):(Ja(t),void 0)}function PC(...e){let[t,n]=jn(e,{2:(e,t)=>[e,t],1:e=>[{},e]});return NC(t,n)}var FC=class extends fb{constructor(e,t){super(`Parse`,e,t)}};function IC(e,t,n){if(!ub(e,t,n))throw new FC(n,db(e,t,n));return n}const LC=lS([(e,t,n)=>Nb(n),(e,t,n)=>cS(e,t,n),(e,t,n)=>Xx(e,t,n),(e,t,n)=>Hb(e,t,n),(e,t,n)=>IC(e,t,n)]);z([N({type:L(`insert`),path:ui(),value:Tn()}),Object({type:L(`update`),path:ui(),value:Tn()}),N({type:L(`delete`),path:ui()})]);var RC=class e extends qt{constructor(...e){super();let t=jn(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[e,t]});if(t.length===3&&t[1]instanceof ob&&t[2]instanceof ab){let[e,n,r]=t;this.hasCodec=e,this.buildResult=n,this.evaluateResult=r}else{let[e,n]=t;this.hasCodec=rC(e,n),this.buildResult=sb(e,n),this.evaluateResult=this.buildResult.Evaluate()}}IsAccelerated(){return this.evaluateResult.IsAccelerated()}Context(){return this.buildResult.Context()}Type(){return this.buildResult.Schema()}Code(){return this.evaluateResult.Code()}Check(e){return this.evaluateResult.Check(e)}Parse(e){if(this.Check(e))return e;if(Bt().correctiveParse)return LC(this.Context(),this.Type(),e);throw new FC(e,this.Errors(e))}Errors(e){return this.IsAccelerated()&&this.Check(e)?[]:db(this.Context(),this.Type(),e)}Clean(e){return Hb(this.Context(),this.Type(),e)}Convert(e){return Xx(this.Context(),this.Type(),e)}Create(){return PC(this.Context(),this.Type())}Default(e){return cS(this.Context(),this.Type(),e)}Decode(e){return this.hasCodec?VS(this.Context(),this.Type(),e):this.Parse(e)}Encode(e){return this.hasCodec?KS(this.Context(),this.Type(),e):this.Parse(e)}Clone(){return new e(this.hasCodec,this.buildResult,this.evaluateResult)}};function zC(...e){let[t,n]=jn(e,{2:(e,t)=>[e,t],1:e=>[{},e]});return new RC(t,n)}var BC=zC;const VC=Fr(kn({}),e=>e instanceof Date),HC=N({id:ri(),created:VC,title:ui({minLength:1,maxLength:100}),type:Rn([`jpg`,`png`]),size:ri(),url:ui({format:`url`})}),UC=N({id:ri(),stars:ri({minimum:1,maximum:5}),title:ui({minLength:1,maxLength:100}),text:ui({minLength:1,maxLength:1e3}),images:Yt(HC)});BC(N({id:ri(),created:VC,title:ui({minLength:1,maxLength:100}),brand:ui({minLength:1,maxLength:30}),description:ui({minLength:1,maxLength:500}),price:ri({minimum:1,maximum:1e4}),discount:z([ri({minimum:1,maximum:100}),ei()]),quantity:ri({minimum:1,maximum:10}),tags:Yt(ui({minLength:1,maxLength:30})),images:Yt(HC),ratings:Yt(UC)})).Parse({}); \ No newline at end of file +var e=Object.defineProperty,t=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r};const n={assign:0,create:0,clone:0,discard:0,update:0};function r(e,t){return n.assign+=1,{...e,...t}}function i(e,t,n){return e>=t&&e<=n}function a(e){return i(e,127462,127487)}function o(e){return i(e,65024,65039)}function s(e){return i(e,768,879)||i(e,6832,6911)||i(e,7616,7679)||i(e,65056,65071)}function c(e){return e>65535?2:1}function l(e,t){for(;t=t)return!0;return!1}function re(e,t){let n=0,r=0;for(;rt)return!1;return!0}function ie(e,t){if(t===0)return!0;let n=0;for(;n=t)return!0}return!1}function ae(e,t){let n=0;for(;nt)return!1}return!0}var oe=t({Entries:()=>S,EntriesRegExp:()=>Te,Every:()=>y,EveryAll:()=>Ce,GraphemeCount:()=>be,HasPropertyKey:()=>x,IsArray:()=>d,IsBigInt:()=>f,IsBoolean:()=>p,IsClassInstance:()=>ve,IsConstructor:()=>se,IsDeepEqual:()=>Ae,IsEqual:()=>v,IsFunction:()=>ce,IsGreaterEqualThan:()=>ge,IsGreaterThan:()=>pe,IsInteger:()=>le,IsLessEqualThan:()=>he,IsLessThan:()=>me,IsMaxLength:()=>xe,IsMinLength:()=>Se,IsMultipleOf:()=>_e,IsNull:()=>ue,IsNumber:()=>m,IsObject:()=>h,IsObjectNotArray:()=>de,IsString:()=>g,IsSymbol:()=>fe,IsUndefined:()=>_,IsUnsafePropertyKey:()=>we,IsValueLike:()=>ye,Keys:()=>C,ShiftLeft:()=>b,Symbols:()=>Ee,Values:()=>De});function d(e){return Array.isArray(e)}function f(e){return v(typeof e,`bigint`)}function p(e){return v(typeof e,`boolean`)}function se(e){if(_(e)||!ce(e))return!1;let t=Function.prototype.toString.call(e);return!!(/^class\s/.test(t)||/\[native code\]/.test(t))}function ce(e){return v(typeof e,`function`)}function le(e){return Number.isInteger(e)}function ue(e){return v(e,null)}function m(e){return Number.isFinite(e)}function de(e){return h(e)&&!d(e)}function h(e){return v(typeof e,`object`)&&!ue(e)}function g(e){return v(typeof e,`string`)}function fe(e){return v(typeof e,`symbol`)}function _(e){return v(e,void 0)}function v(e,t){return e===t}function pe(e,t){return e>t}function me(e,t){return e=t}function _e(e,t){if(f(e)||f(t))return BigInt(e)%BigInt(t)===0n;if(!m(e)||le(e)&&1/t%1==0)return!0;let n=e%t;return Math.min(Math.abs(n),Math.abs(n-t))<1e-10}function ve(e){if(!h(e))return!1;let t=globalThis.Object.getPrototypeOf(e);return ue(t)?!1:v(typeof t.constructor,`function`)&&!(v(t.constructor,globalThis.Object)||v(t.constructor.name,`Object`))}function ye(e){return f(e)||p(e)||ue(e)||m(e)||g(e)||_(e)}function be(e){return te(e)}function xe(e,t){return ae(e,t)}function Se(e,t){return ie(e,t)}function y(e,t,n){for(let r=t;r[RegExp(`^${t}$`),e[t]])}function S(e){return Object.entries(e)}function C(e){return Object.getOwnPropertyNames(e)}function Ee(e){return Object.getOwnPropertySymbols(e)}function De(e){return Object.values(e)}function Oe(e,t){if(!h(t))return!1;let n=C(e);return v(n.length,C(t).length)&&n.every(n=>Ae(e[n],t[n]))}function ke(e,t){return d(t)&&v(e.length,t.length)&&e.every((n,r)=>Ae(e[r],t[r]))}function Ae(e,t){return d(e)?ke(e,t):h(e)?Oe(e,t):v(e,t)}const je=/^[\p{ID_Start}_$][\p{ID_Continue}_$\u200C\u200D]*$/u;function Me(e){return je.test(e)}function Ne(e,t){return`(${e} && ${t})`}function w(e,t){return`(${e} || ${t})`}function Pe(e){return`!(${e})`}function Fe(e){return`Array.isArray(${e})`}function Ie(e){return`typeof ${e} === "bigint"`}function Le(e){return`typeof ${e} === "boolean"`}function Re(e){return`Number.isInteger(${e})`}function ze(e){return`${e} === null`}function Be(e){return`Number.isFinite(${e})`}function Ve(e){return Ne(He(e),Pe(Fe(e)))}function He(e){return`typeof ${e} === "object" && ${e} !== null`}function Ue(e){return`typeof ${e} === "string"`}function We(e){return`typeof ${e} === "symbol"`}function Ge(e){return`${e} === undefined`}function Ke(e){return`typeof ${e} === "function"`}function qe(e){return`Guard.IsConstructor(${e})`}function Je(e,t){return`${e} === ${t}`}function Ye(e,t){return`${e} > ${t}`}function Xe(e,t){return`${e} < ${t}`}function Ze(e,t){return`${e} <= ${t}`}function Qe(e,t){return`${e} >= ${t}`}function $e(e,t){return`Guard.IsMinLength(${e}, ${t})`}function et(e,t){return`Guard.IsMaxLength(${e}, ${t})`}function tt(e,t,n,r){return v(t,`0`)?`${e}.every((${n[0]}, ${n[1]}) => ${r})`:`((value, callback) => { for(let index = ${t}; index < value.length; index++) if (!callback(value[index], index)) return false; return true })(${e}, (${n[0]}, ${n[1]}) => ${r})`}function nt(e){return`Object.entries(${e})`}function rt(e){return`Object.getOwnPropertyNames(${e})`}function it(e,t){return v(t,`"__proto__"`)||v(t,`"constructor"`)?`Object.prototype.hasOwnProperty.call(${e}, ${t})`:`${t} in ${e}`}function at(e,t){return`Guard.IsDeepEqual(${e}, ${t})`}function ot(e){return`[${e.join(`, `)}]`}function st(e,t){return`((${e.join(`, `)}) => ${t})`}function T(e,t){return`${e}(${t.join(`, `)})`}function ct(e,t){return`new ${e}(${t.join(`, `)})`}function E(e,t){return`${e}${Me(t)?`.${t}`:`[${D(t)}]`}`}function D(e){return g(e)?JSON.stringify(e):`${e}`}function lt(e,t,n){return`(${e} ? ${t} : ${n})`}function ut(e){return`{ ${e.join(`; `)}; }`}function dt(e,t){return`const ${e} = ${t}`}function ft(e,t){return`if(${e}) { ${t} }`}function pt(e){return`return ${e}`}function mt(e){return v(e.length,0)?`true`:e.reduce((e,t)=>Ne(e,t))}function ht(e){return v(e.length,0)?`false`:e.reduce((e,t)=>w(e,t))}function gt(e){return`++${e}`}function _t(e,t){return`Guard.IsMultipleOf(${e}, ${t})`}function vt(e){return e instanceof Boolean}function yt(e){return e instanceof Number}function bt(e){return e instanceof String}function xt(e){return globalThis.ArrayBuffer.isView(e)}function St(e){return e instanceof globalThis.RegExp}function Ct(e){return e instanceof globalThis.Date}function wt(e){return e instanceof globalThis.Set}function Tt(e){return e instanceof globalThis.Map}var Et=oe;function Dt(e){return e}function Ot(e){return x(e,`~kind`)}function kt(e){let t={},n=Object.getOwnPropertyDescriptors(e);for(let e of Object.keys(n)){if(we(e))continue;let r=n[e];x(r,`value`)&&Object.defineProperty(t,e,{...r,value:Lt(r.value)})}return t}function At(e){let t={};for(let n of C(e))we(n)||(t[n]=Lt(e[n]));for(let n of Ee(e))t[n]=Lt(e[n]);return t}function jt(e){return ve(e)?Dt(e):Ot(e)?kt(e):At(e)}function Mt(e){return e.map(e=>Lt(e))}function Nt(e){return e.slice()}function Pt(e){return new RegExp(e.source,e.flags)}function Ft(e){return new Map(Lt([...e.entries()]))}function It(e){return new Set(Lt([...e.values()]))}function Lt(e){return xt(e)?Nt(e):St(e)?Pt(e):Tt(e)?Ft(e):wt(e)?It(e):d(e)?Mt(e):h(e)?jt(e):e}function Rt(e){return n.clone+=1,Lt(e)}const zt={immutableTypes:!1,maxErrors:8,useAcceleration:!0,exactOptionalPropertyTypes:!1,enumerableKind:!1,correctiveParse:!1,unionPrioritySort:!0};function Bt(){return zt}function Vt(e,t){for(let n of Object.keys(t))Object.defineProperty(e,n,{configurable:!0,writable:!0,enumerable:!1,value:t[n]});return e}function Ht(e,t){return{...e,...t}}function O(e,t,r={}){n.create+=1;let i=Bt(),a=Ht(t,r),o=i.enumerableKind?Ht(a,e):Vt(a,e);return i.immutableTypes?Object.freeze(o):o}function Ut(e,t){n.discard+=1;let r={},i=Object.getOwnPropertyDescriptors(Rt(e)),a=new Set(t);for(let e of Object.keys(i))a.has(e)||Object.defineProperty(r,e,i[e]);return r}function k(e,t,r){n.update+=1;let i=Bt(),a=Rt(e);for(let e of Object.keys(t))Object.defineProperty(a,e,{configurable:!0,writable:!0,enumerable:i.enumerableKind,value:t[e]});for(let e of Object.keys(r))Object.defineProperty(a,e,{configurable:!0,enumerable:!0,writable:!0,value:r[e]});return a}function A(e,t){return h(e)&&x(e,`~kind`)&&v(e[`~kind`],t)}function Wt(e){return h(e)}function j(e,t,n){return O({"~kind":`Deferred`},{type:`deferred`,action:e,parameters:t,options:n},{})}function Gt(e){return A(e,`Deferred`)}function Kt(e){return k(e,{"~readonly":!0},{})}function qt(e,t){return k(Kt(e),{},t)}function Jt(e,t,n,r){return qt(J(e,t,n),r)}function Yt(e){return k(e,{"~optional":!0},{})}function Xt(e,t){return k(Yt(e),{},t)}function Zt(e,t,n,r){return Xt(J(e,t,n),r)}function Qt(e,t){return O({"~kind":`Array`},{type:`array`,items:e},t)}function M(e){return A(e,`Array`)}function $t(e){return Ut(e,[`~kind`,`type`,`items`])}function en(e,t,n={}){return O({"~kind":`Constructor`},{type:`constructor`,parameters:e,instanceType:t},n)}function tn(e){return A(e,`Constructor`)}function nn(e){return Ut(e,[`~kind`,`type`,`parameters`,`instanceType`])}function rn(e,t,n={}){return O({"~kind":`Function`},{type:`function`,parameters:e,returnType:t},n)}function an(e){return A(e,`Function`)}function on(e){return Ut(e,[`~kind`,`type`,`parameters`,`returnType`])}function sn(e,t){return O({"~kind":`Ref`},{$ref:e},t)}function cn(e){return A(e,`Ref`)}function ln(e,t){return O({"~kind":`Generic`},{type:`generic`,parameters:e,expression:t})}function un(e){return A(e,`Generic`)}function dn(e){return O({"~kind":`Any`},{},e)}function fn(e){return A(e,`Any`)}function pn(e){return O({"~kind":`Never`},{not:{}},e)}function mn(e){return A(e,`Never`)}function hn(e,t={}){return Xt(e,t)}function gn(e){return Wt(e)&&x(e,`~optional`)}function _n(e){return C(e).filter(t=>!gn(e[t]))}function vn(e){return C(e)}function yn(e){return De(e)}function N(e,t={}){let n=_n(e);return O({"~kind":`Object`},{type:`object`,...n.length>0?{required:n}:{},properties:e},t)}function P(e){return A(e,`Object`)}function bn(e){return Ut(e,[`~kind`,`type`,`properties`,`required`])}function xn(e){return O({"~kind":`Unknown`},{},e)}function Sn(e){return A(e,`Unknown`)}function Cn(e,t,n){return O({"~kind":`Cyclic`},{$defs:C(e).reduce((t,n)=>({...t,[n]:k(e[n],{},{$id:n})}),{}),$ref:t},n)}function wn(e){return A(e,`Cyclic`)}function Tn(e){return k(e,{"~unsafe":null},{})}function En(e){return de(e)&&x(e,`~unsafe`)&&ue(e[`~unsafe`])}function Dn(e,t){return t[e.length]?.(...e)??(()=>{throw Error(`Invalid Arguments`)})()}function On(e){return A(e,`Infer`)}function kn(e,t,n,r={}){return O({"~kind":`Dependent`},{if:e,then:t,else:n},r)}function An(e){return A(e,`Dependent`)}function jn(e){return Ut(e,[`~kind`,`if`,`then`,`else`])}function Mn(e){return de(e)}function Nn(e){return C(e).filter(e=>isNaN(e)).reduce((t,n)=>[...t,e[n]],[])}function Pn(e,t){return O({"~kind":`Enum`},{enum:Mn(e)?Nn(e):e},t)}function Fn(e){return A(e,`Enum`)}function In(e,t={}){return O({"~kind":`Intersect`},{allOf:e},t)}function F(e){return A(e,`Intersect`)}function Ln(e){return Ut(e,[`~kind`,`allOf`])}let Rn;function zn(){try{return Vn(`null`)(),!0}catch{return!1}}function Bn(){return _(Rn)&&(Rn=zn()),Rn&&Bt().useAcceleration}function Vn(...e){return new globalThis.Function(...e)}function Hn(){throw Error(`Unreachable`)}var Un=t({Hash:()=>_r,HashCode:()=>gr});function Wn(e){let t=new Set,n=e;for(;n&&n!==Object.prototype;){for(let e of Reflect.ownKeys(n))e!==`constructor`&&typeof e!=`symbol`&&t.add(e);n=Object.getPrototypeOf(n)}return[...t]}function Gn(e){return typeof e==`number`}var Kn;(function(e){e[e.Array=0]=`Array`,e[e.BigInt=1]=`BigInt`,e[e.Boolean=2]=`Boolean`,e[e.Date=3]=`Date`,e[e.Constructor=4]=`Constructor`,e[e.Function=5]=`Function`,e[e.Null=6]=`Null`,e[e.Number=7]=`Number`,e[e.Object=8]=`Object`,e[e.RegExp=9]=`RegExp`,e[e.String=10]=`String`,e[e.Symbol=11]=`Symbol`,e[e.TypeArray=12]=`TypeArray`,e[e.Undefined=13]=`Undefined`})(Kn||={});let qn=BigInt(`14695981039346656037`);const[Jn,Yn]=[BigInt(`1099511628211`),BigInt(`18446744073709551616`)],Xn=Array.from({length:256}).map((e,t)=>BigInt(t)),Zn=new Float64Array(1),Qn=new DataView(Zn.buffer),$n=new Uint8Array(Zn.buffer);function I(e){qn^=Xn[e],qn=qn*Jn%Yn}function er(e){I(Kn.Array);for(let t of e)hr(t)}function tr(e){I(Kn.BigInt),Qn.setBigInt64(0,e);for(let e of $n)I(e)}function nr(e){I(Kn.Boolean),I(+!!e)}function rr(e){I(Kn.Constructor),hr(e.toString())}function ir(e){I(Kn.Date),hr(e.getTime())}function ar(e){I(Kn.Function),hr(e.toString())}function or(e){I(Kn.Null)}function sr(e){I(Kn.Number),Qn.setFloat64(0,e,!0);for(let e of $n)I(e)}function cr(e){I(Kn.Object);for(let t of Wn(e).sort())hr(t),hr(e[t])}function lr(e){I(Kn.RegExp),dr(e.toString())}const ur=new TextEncoder;function dr(e){I(Kn.String);for(let t of ur.encode(e))I(t)}function fr(e){I(Kn.Symbol),hr(e.toString())}function pr(e){I(Kn.TypeArray);let t=new Uint8Array(e.buffer);for(let e=0;e[e,t,n],2:(e,t)=>[e,t,()=>`Refine Error`]});return Tr(t,{check:n,error:r})}function Dr(e){return de(e)&&x(e,`check`)&&x(e,`error`)&&ce(e.check)&&ce(e.error)}function Or(e){return Wt(e)&&x(e,`~refine`)&&d(e[`~refine`])&&y(e[`~refine`],0,e=>Dr(e))}function kr(e){return O({"~kind":`BigInt`},{type:`bigint`},e)}function Ar(e){return A(e,`BigInt`)}function jr(e){return A(e,`Boolean`)}const Mr=`-?(?:0|[1-9][0-9]*)`;function Nr(e){return O({"~kind":`Integer`},{type:`integer`},e)}function Pr(e){return A(e,`Integer`)}var Fr=class extends Error{constructor(e){super(`Invalid Literal value`),Object.defineProperty(this,"cause",{value:{value:e},writable:!1,configurable:!1,enumerable:!1})}};function Ir(e){return f(e)?`bigint`:p(e)?`boolean`:m(e)?`number`:g(e)?`string`:(()=>{throw new Fr(e)})()}function L(e,t){return O({"~kind":`Literal`},{type:Ir(e),const:e},t)}function Lr(e){return f(e)||p(e)||m(e)||g(e)}function Rr(e){return R(e)&&f(e.const)}function zr(e){return R(e)&&p(e.const)}function Br(e){return R(e)&&m(e.const)}function Vr(e){return R(e)&&g(e.const)}function R(e){return A(e,`Literal`)}function Hr(e){return O({"~kind":`Null`},{type:`null`},e)}function Ur(e){return A(e,`Null`)}const Wr=`-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?`;function Gr(e){return O({"~kind":`Number`},{type:`number`},e)}function Kr(e){return A(e,`Number`)}function qr(e){return O({"~kind":`Symbol`},{type:`symbol`},e)}function Jr(e){return A(e,`Symbol`)}function Yr(e){return O({"~kind":`String`},{type:`string`},e)}function Xr(e){return A(e,`String`)}function z(e,t={}){return O({"~kind":`Union`},{anyOf:e},t)}function B(e){return A(e,`Union`)}function Zr(e){return Ut(e,[`~kind`,`anyOf`])}function Qr(e){let t=So(e);return v(t.length,2)?t[0]:[]}function $r(e){return!0}function ei(e){return b(e,(e,t)=>ni(e)?ei(t):!1,()=>!0)}function ti(e){return v(e.length,0)?!1:ei(e)}function ni(e){return B(e)?ti(e.anyOf):R(e)?$r(e.const):!1}function ri(e){return ti(e)}function ii(e){return O({"~kind":`TemplateLiteral`},{type:`string`,pattern:e},{})}function ai(e,t,n=[]){return b(e,(e,r)=>ai(r,t,[...n,`${e}${t}`]),()=>n)}function oi(e,t){return v(e.length,0)?[`${t}`]:ai(e,t)}function si(e,t,n=[]){return b(t,(t,r)=>si(e,r,[...n,...ci(e,t)]),()=>n)}function ci(e,t){return B(t)?si(e,t.anyOf):R(t)?oi(e,t.const):Hn()}function li(e,t){return b(t,(t,n)=>li(ci(e,t),n),()=>e)}function ui(e){return e.map(e=>L(e))}function di(e){return z(ui(li([],e)))}function fi(e){return v(e.length,0)?Hn():v(e.length,1)&&R(e[0])?e[0]:di(e)}function pi(e){let t=Qr(e);return v(t.length,0)?Yr():ri(t)?fi(t):ii(e)}function mi(e){let t=pi(e);return Uo(t)?Yr():t}function hi(e,t){return O({"~kind":`Record`},{type:`object`,patternProperties:{[e]:t}})}function gi(e){return hi(ya,e)}function _i(e){return N({true:e,false:e})}function vi(e,t={}){let[n,r,i]=[e,e.length,!1];return O({"~kind":`Tuple`},{type:`array`,additionalItems:i,items:n,minItems:r},t)}function V(e){return A(e,`Tuple`)}function yi(e){return Ut(e,[`~kind`,`type`,`items`,`minItems`,`additionalItems`])}function bi(e){return Ut(e,[`~readonly`])}function xi(e,t){return k(bi(e),{},t)}function Si(e,t,n,r){return xi(J(e,t,n),r)}function Ci(e,t={}){return xi(e,t)}function wi(e){return Ut(e,[`~optional`])}function Ti(e,t){return k(wi(e),{},t)}function Ei(e,t,n,r){return Ti(J(e,t,n),r)}function Di(e,t={}){return Ti(e,t)}function Oi(e){return e.reduceRight((e,t,n)=>({[n]:t,...e}),{})}function ki(e){return N(Oi(e.items))}function Ai(e,t){return wr(e)?!!wr(t):!1}function ji(e,t){return gn(e)?!!gn(t):!1}function Mi(e,t){let n=Ai(e,t),r=ji(e,t),i=Ci(Di(Yi([e,t])));return n&&r?Cr(hn(i)):n&&!r?Cr(i):!n&&r?hn(i):i}function Ni(e,t,n){return n in e?n in t?Mi(e[n],t[n]):e[n]:n in t?t[n]:pn()}function Pi(e,t){return[...new Set([...C(t),...C(e)])].reduce((n,r)=>({...n,[r]:Ni(e,t,r)}),{})}function Fi(e){return P(e)?e.properties:V(e)?Oi(e.items):Hn()}function Ii(e,t){return N(Pi(Fi(e),Fi(t)))}function Li(e,t){let n=Uc(e,t);return v(n,`left-inside`)?e:v(n,`right-inside`)||v(n,`equal`)?t:pn()}function Ri(e){return P(e)||V(e)}function zi(e,t){let n=B(e),r=B(t);return n||r}function Bi(e,t){let n=Qi(e),r=Qi(t),i=zi(n,r),a=Ri(n),o=Ri(r);return i?Yi([n,r]):a&&o?Ii(n,r):a&&!o?n:!a&&o?r:Li(n,r)}function Vi(e,t,n=[]){return b(t,(t,r)=>Vi(e,r,[...n,Bi(e,t)]),()=>v(n.length,0)?[e]:n)}function Hi(e,t,n=[]){return b(e,(e,r)=>Hi(r,t,[...n,...Ui([e],t)]),()=>n)}function Ui(e,t=[]){return b(e,(e,n)=>B(e)?Ui(n,Hi(e.anyOf,t)):Ui(n,Vi(e,t)),()=>t)}function Wi(e,t){return Jo(Hc({},e,t))?[]:[e]}function Gi(e,t){return e.reduce((e,n)=>[...e,...Wi(n,t)],[])}function Ki(e,t){let n=Qi(e);return Zi(Gi(B(n)?n.anyOf:[n],t))}function qi(e,t,n){return Zi([In([e,t]),Ki(n,e)])}function Ji(e){return Zi(e.map(e=>L(e)))}function Yi(e){return $i(Jc(Ui(e)))}function Xi(e){return Qi(mi(e))}function Zi(e){return $i(Jc(e))}function Qi(e){return An(e)?qi(e.if,e.then,e.else):Fn(e)?Ji(e.enum):F(e)?Yi(e.allOf):Uo(e)?Xi(e.pattern):B(e)?Zi(e.anyOf):e}function $i(e){return v(e.length,1)?e[0]:v(e.length,0)?pn():z(e)}function ea(e,t){return ma(Ji(e),t)}function ta(e,t){return hi(_a,t)}function na(e,t){return ma(Yi(e),t)}function ra(e,t){return g(e)||m(e)?N({[e]:t}):v(e,!1)?N({false:t}):v(e,!0)?N({true:t}):N({})}function ia(e,t){return hi(va,t)}function aa(e,t){return x(e,`pattern`)&&(g(e.pattern)||e.pattern instanceof RegExp)?hi(e.pattern.toString(),t):hi(ya,t)}function oa(e,t){return ri(Qr(e))?ma(Xi(e),t):hi(e,t)}function sa(e){return B(e)?ca(e.anyOf):[e]}function ca(e){return e.reduce((e,t)=>[...e,...sa(t)],[])}function la(e){return e.some(e=>Xr(e)||Kr(e)||Pr(e))}function ua(e,t){return v(la(e),!0)?hi(ya,t):void 0}function da(e,t){return e.reduce((e,n)=>R(n)&&(g(n.const)||m(n.const))?{...e,[n.const]:t}:e,{})}function fa(e,t){return N(da(e,t))}function pa(e,t){let n=ca(e),r=ua(n,t);return Wt(r)?r:fa(n,t)}function ma(e,t){return fn(e)?gi(t):jr(e)?_i(t):Fn(e)?ea(e.enum,t):Pr(e)?ta(e,t):F(e)?na(e.allOf,t):R(e)?ra(e.const,t):Kr(e)?ia(e,t):B(e)?pa(e.anyOf,t):Xr(e)?aa(e,t):Uo(e)?oa(e.pattern,t):N({})}function ha(e,t,n){return q([e])?k(ma(e,t),{},n):ba(e,t,n)}function ga(e,t,n,r,i){return ha(J(e,t,n),J(e,t,r),i)}const _a=`^${Mr}$`,va=`^${Wr}$`,ya=`^.*$`;function ba(e,t,n={}){return j(`Record`,[e,t],n)}function xa(e,t,n={}){return ha(e,t,n)}function Sa(e,t){return hi(e,t)}function Ca(e){return v(e,ya)?Yr():v(e,_a)?Nr():v(e,va)?Gr():pi(e)}function wa(e){return C(e.patternProperties)[0]}function Ta(e){return Ca(wa(e))}function Ea(e){return e.patternProperties[wa(e)]}function Da(e){return A(e,`Record`)}function Oa(e){return O({"~kind":`Rest`},{type:`rest`,items:e},{})}function ka(e){return A(e,`Rest`)}function Aa(e){return A(e,`This`)}function ja(e){return O({"~kind":`Undefined`},{type:`undefined`},e)}function Ma(e){return A(e,`Undefined`)}function Na(e){return A(e,`Void`)}function Pa(e){return kr()}function Fa(e){return Yr()}function Ia(e){return Gr()}function La(e){return Nr()}function Ra(e){return pn()}function za(e){return L(e)}function Ba(e){return e}function Va(e){return z(e[1])}function Ha(e){return e.length===3?[...e[0],...e[2]]:e.length===1?[...e[0]]:[]}function Ua(e){return[e[0],...e[1]]}function Wa(e){return e}function Ga(e){return e[1]}function Ka(e){return v(e.length,2)}function qa(e,t,n){return Ka(e)?t(e[0],e[1]):n()}function Ja(e,t){return v(t.indexOf(e),0)?[e,t.slice(e.length)]:[]}function Ya(e,t){for(let n=0;nString.fromCharCode(e+n))}const Za=[...Xa(97,122),...Xa(65,90)],Qa=[`0`,...Xa(49,57)];function $a(e){let t=e.indexOf(`*/`);return v(t,-1)?``:e.slice(t+2)}function eo(e){let t=e.indexOf(` +`);return v(t,-1)?``:e.slice(t)}function to(e){return e.replace(/^[ \t\r\f\v]+/,``)}function no(e){let t=to(e);return t.startsWith(`/*`)?no($a(t.slice(2))):t.startsWith(`//`)?no(eo(t.slice(2))):t}function ro(e){let t=e.trimStart();return t.startsWith(`/*`)?ro($a(t.slice(2))):t.startsWith(`//`)?ro(eo(t.slice(2))):t}[...Qa];function io(e,t){return Ya([e],t)}function ao(e,t){return v(e,``)?[``,t]:e.startsWith(` +`)?io(e,no(t)):e.startsWith(` `)?io(e,t):io(e,ro(t))}[...Za,...Qa],[...Qa];function oo(e){return v(e,``)?[]:[e.slice(0,1),e.slice(1)]}function so(e,t){return b(e,(e,n)=>t.startsWith(e)?!0:so(n,t),()=>!1)}function co(e,t,n=``){return qa(oo(t),(r,i)=>so(e,t)?[n,t]:co(e,i,`${n}${r}`),()=>[])}function lo(e,t){return qa(co(e,t),(e,t)=>v(e,``)?[]:[e,t],()=>[])}const H=(e,t,n=()=>[])=>e.length===2?t(e):n(),uo=e=>H(ao(`-?(?:0|[1-9][0-9]*)n`,e),([e,t])=>[Pa(e),t]),fo=e=>H(ao(`.*`,e),([e,t])=>[Fa(e),t]),po=e=>H(ao(`-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?`,e),([e,t])=>[Ia(e),t]),mo=e=>H(ao(`-?(?:0|[1-9][0-9]*)`,e),([e,t])=>[La(e),t]),ho=e=>H(ao(`(?!)`,e),([e,t])=>[Ra(e),t]),go=e=>H(lo([`-?(?:0|[1-9][0-9]*)n`,`.*`,`-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?`,`-?(?:0|[1-9][0-9]*)`,`(?!)`,`(`,`)`,`$`,`|`],e),([e,t])=>[za(e),t]),_o=e=>H(H(uo(e),([e,t])=>[e,t],()=>H(fo(e),([e,t])=>[e,t],()=>H(po(e),([e,t])=>[e,t],()=>H(mo(e),([e,t])=>[e,t],()=>H(ho(e),([e,t])=>[e,t],()=>H(vo(e),([e,t])=>[e,t],()=>H(go(e),([e,t])=>[e,t],()=>[]))))))),([e,t])=>[Ba(e),t]),vo=e=>H(H(ao(`(`,e),([e,t])=>H(xo(t),([t,n])=>H(ao(`)`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[Va(e),t]),yo=e=>H(H(H(bo(e),([e,t])=>H(ao(`|`,t),([t,n])=>H(yo(n),([n,r])=>[[e,t,n],r]))),([e,t])=>[e,t],()=>H(H(bo(e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>H([[],e],([e,t])=>[e,t],()=>[]))),([e,t])=>[Ha(e),t]),bo=e=>H(H(_o(e),([e,t])=>H(xo(t),([t,n])=>[[e,t],n])),([e,t])=>[Ua(e),t]),xo=e=>H(H(yo(e),([e,t])=>[e,t],()=>H(bo(e),([e,t])=>[e,t],()=>[])),([e,t])=>[Wa(e),t]),So=e=>H(H(ao(`^`,e),([e,t])=>H(xo(t),([t,n])=>H(ao(`$`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[Ga(e),t]);function Co(e){return e.join(`|`)}function wo(e){return e.slice(1,e.length-1)}function To(e,t,n){return Io(t,`${n}${e}`)}function Eo(e,t){return Io(e,`${t}-?(?:0|[1-9][0-9]*)n`)}function Do(e,t){return Io(e,`${t}${Mr}`)}function Oo(e,t){return Io(e,`${t}${Wr}`)}function ko(e,t){return Fo(z([L(`false`),L(`true`)]),e,t)}function Ao(e,t){return Io(e,`${t}.*`)}function jo(e,t,n){return Io(t,`${n}${wo(e)}`)}function Mo(e,t,n){return Fo(zo(e,{}),t,n)}function No(e,t,n){return Fo(Ji(e),t,n)}function Po(e,t,n,r=[]){return b(e,(e,i)=>Po(i,t,n,[...r,Fo(e,[],``)]),()=>Io(t,`${n}(${Co(r)})`))}function Fo(e,t,n){return Fn(e)?No(e.enum,t,n):Pr(e)?Do(t,n):R(e)?To(e.const,t,n):Ar(e)?Eo(t,n):jr(e)?ko(t,n):Kr(e)?Oo(t,n):Xr(e)?Ao(t,n):Uo(e)?jo(e.pattern,t,n):Ho(e)?Mo(e.parameters[0],t,n):B(e)?Po(e.anyOf,t,n):`(?!)`}function Io(e,t){return b(e,(e,n)=>Fo(e,n,t),()=>t)}function Lo(e){return`^${Io(e,``)}$`}function Ro(e){return ii(Lo(e))}function zo(e,t){return q(e)?k(Ro(e),{},t):Vo(e,t)}function Bo(e,t,n,r){return zo(qf(e,t,n),r)}function Vo(e,t={}){return j(`TemplateLiteral`,[e],t)}function Ho(e){return Wt(e)&&x(e,`action`)&&v(e.action,`TemplateLiteral`)}function Uo(e){return A(e,`TemplateLiteral`)}function Wo(e){return O({"~kind":`ExtendsUnion`},{inferred:e})}function Go(e){return h(e)&&x(e,`~kind`)&&x(e,`inferred`)&&v(e[`~kind`],`ExtendsUnion`)&&h(e.inferred)}function U(e){return O({"~kind":`ExtendsTrue`},{inferred:e})}function Ko(e){return h(e)&&x(e,`~kind`)&&x(e,`inferred`)&&v(e[`~kind`],`ExtendsTrue`)&&h(e.inferred)}function W(){return O({"~kind":`ExtendsFalse`},{})}function qo(e){return h(e)&&x(e,`~kind`)&&v(e[`~kind`],`ExtendsFalse`)}function Jo(e){return Go(e)||Ko(e)}function Yo(e,t,n){return Jo(e)?t(e.inferred):n()}function Xo(e,t,n,i){return Yo(K(e,n,i),i=>U(r(r(e,i),{[t]:n})),()=>W())}function Zo(e,t){return U(e)}function Qo(e,t,n,r,i){return Yo(K(e,t,n),e=>Yo(K(e,t,r),e=>U(e),()=>W()),()=>Yo(K(e,t,i),e=>U(e),()=>W()))}function $o(e,t,n){return K(e,t,Ji(n))}function es(e,t,n){return b(n,(n,r)=>Yo(K(e,t,n),e=>es(e,t,r),()=>W()),()=>U(e))}function ts(e,t,n){return K(e,t,Xi(n))}function ns(e,t,n){return b(n,(n,r)=>Yo(K(e,t,n),e=>U(e),()=>ns(e,t,r)),()=>W())}function G(e,t,n){return fn(n)?Zo(e,t):An(n)?Qo(e,t,n.if,n.then,n.else):Fn(n)?$o(e,t,n.enum):On(n)?Xo(e,n.name,t,n.extends):F(n)?es(e,t,n.allOf):Uo(n)?ts(e,t,n.pattern):B(n)?ns(e,t,n.anyOf):Sn(n)?U(e):W()}function rs(e,t,n){return On(n)?G(e,t,n):fn(n)||Sn(n)?U(e):Wo(e)}function is(e,t){let n=Sr(e),r=Sr(t);return n&&r||!n&&r?!0:!(n&&!r)}function as(e,t,n,r){return M(r)?is(t,r)?K(e,n,r.items):W():G(e,t,r)}function os(e,t,n){return Ar(n)?U(e):G(e,t,n)}function ss(e,t,n){return jr(n)?U(e):G(e,t,n)}function cs(e,t,n,r,i){let a=On(r)?t:r,o=On(r)?r:t,s=gn(t),c=gn(r);return!s&&c?W():Yo(K(e,a,o),e=>ds(e,n,i),()=>W())}function ls(e,t,n,r){return b(r,(r,i)=>cs(e,t,n,r,i),()=>gn(t)?U(e):W())}function us(e,t,n){return b(t,(t,r)=>ls(e,t,r,n),()=>U(e))}function ds(e,t,n){return us(e,t,n)}function fs(e,t,n){return Na(n)?U(e):K(e,t,n)}function ps(e,t,n,r){return fn(r)||Sn(r)?U(e):tn(r)?Yo(ds(e,t,r.parameters),e=>fs(e,n,r.instanceType),()=>W()):W()}function ms(e,t,n,r,i){return Yo(K(e,t,i),()=>K(e,n,i),()=>K(e,r,i))}function hs(e,t,n){return K(e,Ji(t),n)}function gs(e,t,n,r){return fn(r)||Sn(r)?U(e):an(r)?Yo(ds(e,t,r.parameters),e=>fs(e,n,r.returnType),()=>W()):W()}function _s(e,t,n){return Pr(n)||Kr(n)?U(e):G(e,t,n)}function vs(e,t,n){return K(e,Yi(t),n)}function ys(e,t,n){return t===n?U(e):W()}function bs(e,t,n){return R(n)?ys(e,t,n.const):Ar(n)?U(e):G(e,L(t),n)}function xs(e,t,n){return R(n)?ys(e,t,n.const):jr(n)?U(e):G(e,L(t),n)}function Ss(e,t,n){return R(n)?ys(e,t,n.const):Kr(n)?U(e):G(e,L(t),n)}function Cs(e,t,n){return R(n)?ys(e,t,n.const):Xr(n)?U(e):G(e,L(t),n)}function ws(e,t,n){return f(t.const)?bs(e,t.const,n):p(t.const)?xs(e,t.const,n):m(t.const)?Ss(e,t.const,n):g(t.const)?Cs(e,t.const,n):Hn()}function Ts(e,t,n){return On(n)?G(e,t,n):U(e)}function Es(e,t,n){return Ur(n)?U(e):G(e,t,n)}function Ds(e,t,n){return Kr(n)?U(e):G(e,t,n)}function Os(e,t,n){return gn(t)?gn(n)?U(e):W():U(e)}function ks(e,t,n){return On(n)&&mn(n.extends)?W():Yo(K(e,t,n),e=>Os(e,t,n),()=>W())}function As(e,t){return e.reduce((e,n)=>n in t&&Jo(t[n])?{...e,...t[n].inferred}:Hn(),{})}function js(e,t,n){let i={};for(let a of C(n))i[a]=a in t?ks({},t[a],n[a]):gn(n[a])?On(n[a])?U(r(e,{[n[a].name]:n[a].extends})):U(e):W();let a=De(i).every(e=>Jo(e)),o=a?As(C(i),i):{};return a?U(o):W()}function Ms(e,t,n){let i=js(e,t,n);return Jo(i)?U(r(e,i.inferred)):W()}function Ns(e,t,n){return Ms(e,t,n)}function Ps(e,t){return C(t).reduce((n,r)=>({...n,[r]:x(e,r)?B(n[r])?z([...n[r].anyOf,t[r]]):z([e[r],t[r]]):t[r]}),e)}function Fs(e,t,n,r){return b(t,(t,i)=>Yo(K({},e[t],n),t=>Fs(e,i,n,Ps(r,t)),()=>W()),()=>U(r))}function Is(e,t,n,r){return Fs(t,C(t),r,e)}function Ls(e,t,n){return Da(n)?Is(e,t,wa(n),Ea(n)):P(n)?Ns(e,t,n.properties):G(e,N(t),n)}function Rs(e,t){return v(C(t).length,0)?U(e):W()}function zs(e,t,n,r,i){return K(e,n,i)}function Bs(e,t,n,r){return Da(r)?zs(e,Ca(t),n,Ca(wa(r)),Ea(r)):P(r)?Rs(e,r.properties):fn(r)||Sn(r)?U(e):W()}function Vs(e,t,n){return Xr(n)?U(e):G(e,t,n)}function Hs(e,t,n){return Jr(n)?U(e):G(e,t,n)}function Us(e,t,n){return K(e,Xi(t),n)}function Ws(e,t){return O({"~kind":`Inferrable`},{name:e,type:t},{})}function Gs(e){return h(e)&&x(e,`~kind`)&&x(e,`name`)&&x(e,`type`)&&v(e[`~kind`],`Inferrable`)&&g(e.name)&&h(e.type)}function Ks(e){return ka(e)?On(e.items)?M(e.items.extends)?Ws(e.items.name,e.items.extends.items):Sn(e.items.extends)?Ws(e.items.name,e.items.extends):void 0:Hn():void 0}function qs(e){return On(e)?Ws(e.name,e.extends):void 0}function Js(e,t,n=[]){return b(e,(e,r)=>Yo(K({},e,t),()=>Js(r,t,[...n,e]),()=>void 0),()=>n)}function Ys(e,t,n,i){let a=Js(n,i);return d(a)?U(r(e,{[t]:vi(a)})):W()}function Xs(e,t,n,i){let a=Js(n,i);return d(a)?U(r(e,{[t]:z(a)})):W()}function Zs(e){return[...e].reverse()}function Qs(e,t){return t?Zs(e):e}function $s(e){let t=e.length>0?e[0]:void 0;return Wt(Wt(t)?Ks(t):void 0)}function ec(e,t,n,r,i,a){return Yo(K(e,n,i),e=>rc(e,t,r,a),()=>W())}function tc(e,t,n,r,i){let a=Ks(r);return Gs(a)?Ys(e,a.name,Qs(n,t),a.type):b(n,(n,a)=>ec(e,t,n,a,r,i),()=>W())}function nc(e,t,n,r){return b(r,(r,i)=>tc(e,t,n,r,i),()=>v(n.length,0)?U(e):W())}function rc(e,t,n,r){return nc(e,t,n,r)}function ic(e,t,n){let r=Kf(e,Wf([],[]),n),i=$s(r);return rc(e,i,Qs(t,i),Qs(r,i))}function ac(e,t,n){let r=qs(n);return Gs(r)?Xs(e,r.name,t,r.type):b(t,(t,r)=>Yo(K(e,t,n),e=>ac(e,r,n),()=>W()),()=>U(e))}function oc(e,t,n){let r=Kf(e,Wf([],[]),t);return V(n)?ic(e,r,n.items):M(n)?ac(e,r,n.items):G(e,vi(r),n)}function sc(e,t,n){return Na(n)||Ma(n)?U(e):G(e,t,n)}function cc(e,t,n){return b(n,(n,r)=>Yo(K(e,t,n),e=>U(e),()=>cc(e,t,r)),()=>W())}function lc(e,t,n){return b(t,(t,r)=>Yo(cc(e,t,n),e=>lc(e,r,n),()=>W()),()=>U(e))}function uc(e,t,n){let r=qs(n);return Gs(r)?Xs(e,r.name,t,r.type):B(n)?lc(e,t,n.anyOf):lc(e,t,[n])}function dc(e,t,n){return On(n)?G(e,t,n):fn(n)||Sn(n)?U(e):W()}function fc(e,t,n){return Na(n)?U(e):G(e,t,n)}function K(e,t,n){return fn(t)?rs(e,t,n):M(t)?as(e,t,t.items,n):Ar(t)?os(e,t,n):jr(t)?ss(e,t,n):tn(t)?ps(e,t.parameters,t.instanceType,n):An(t)?ms(e,t.if,t.then,t.else,n):Fn(t)?hs(e,t.enum,n):an(t)?gs(e,t.parameters,t.returnType,n):Pr(t)?_s(e,t,n):F(t)?vs(e,t.allOf,n):R(t)?ws(e,t,n):mn(t)?Ts(e,t,n):Ur(t)?Es(e,t,n):Kr(t)?Ds(e,t,n):P(t)?Ls(e,t.properties,n):Da(t)?Bs(e,wa(t),Ea(t),n):Xr(t)?Vs(e,t,n):Jr(t)?Hs(e,t,n):Uo(t)?Us(e,t.pattern,n):V(t)?oc(e,t.items,n):Ma(t)?sc(e,t,n):B(t)?uc(e,t.anyOf,n):Sn(t)?dc(e,t,n):Na(t)?fc(e,t,n):W()}function pc(e,t){return Yi([...e,N(t)])}function mc(e,t,n){return q(e)?k(pc(e,t),{},n):gc(e,t,n)}function hc(e,t,n,r,i){return mc(qf(e,t,n),Gf(e,t,r),i)}function gc(e,t,n={}){return j(`Interface`,[e,t],n)}function _c(e){return Wt(e)&&x(e,`action`)&&v(e.action,`Interface`)}function vc(e,t,n){return e.includes(n)?!0:xc([...e,n],t,t[n])}function yc(e,t,n){return bc(e,t,yn(n))}function bc(e,t,n){return b(n,(n,r)=>xc(e,t,n)?!0:bc(e,t,r),()=>!1)}function xc(e,t,n){return cn(n)?vc(e,t,n.$ref):M(n)?xc(e,t,n.items):tn(n)?bc(e,t,[...n.parameters,n.instanceType]):an(n)?bc(e,t,[...n.parameters,n.returnType]):_c(n)?yc(e,t,n.parameters[1]):F(n)?bc(e,t,n.allOf):P(n)?yc(e,t,n.properties):B(n)?bc(e,t,n.anyOf):V(n)?bc(e,t,n.items):Da(n)?xc(e,t,Ea(n)):!1}function Sc(e,t,n){return xc(e,t,n)}function Cc(e,t){return t.reduce((t,n)=>Sc([n],e,e[n])?[...t,n]:t,[])}function wc(e){return Cc(e,vn(e))}function Tc(e,t,n){return n.includes(t)?n:t in e?Oc(e,e[t],[...n,t]):Hn()}function Ec(e,t,n){return Dc(e,yn(t),n)}function Dc(e,t,n){return t.reduce((t,n)=>Oc(e,n,t),n)}function Oc(e,t,n){return cn(t)?Tc(e,t.$ref,n):M(t)?Oc(e,t.items,n):tn(t)?Dc(e,[...t.parameters,t.instanceType],n):an(t)?Dc(e,[...t.parameters,t.returnType],n):_c(t)?Ec(e,t.parameters[1],n):F(t)?Dc(e,t.allOf,n):P(t)?Ec(e,t.properties,n):B(t)?Dc(e,t.anyOf,n):V(t)?Dc(e,t.items,n):Da(t)?Oc(e,Ea(t),n):n}function kc(e,t,n){return Oc(e,n,[t])}function Ac(e){return dn()}function jc(e){return C(e).reduce((t,n)=>({...t,[n]:Nc(e[n])}),{})}function Mc(e){return e.reduce((e,t)=>[...e,Nc(t)],[])}function Nc(e){return cn(e)?Ac(e.$ref):M(e)?Qt(Nc(e.items),$t(e)):tn(e)?en(Mc(e.parameters),Nc(e.instanceType)):an(e)?rn(Mc(e.parameters),Nc(e.returnType)):F(e)?In(Mc(e.allOf)):P(e)?N(jc(e.properties)):Da(e)?xa(Ta(e),Nc(Ea(e))):B(e)?z(Mc(e.anyOf)):V(e)?vi(Mc(e.items)):e}function Pc(e,t){return t in e?Nc(e[t]):xn()}function Fc(e){return Pc(e.$defs,e.$ref)}function Ic(e,t,n){let r=qf(e,Wf([],[]),t),i=Gf({},Wf([],[]),n);return Yi([...r,N(i)])}function Lc(e,t){return C(e).filter(e=>t.includes(e)).reduce((t,n)=>{let r=e[n],i=_c(r)?Ic(e,r.parameters[0],r.parameters[1]):r;return{...t,[n]:i}},{})}function Rc(e,t,n){return Cn(Lc(e,kc(e,t,n)),t)}function zc(e,t){return t in e?cn(e[t])?zc(e,e[t].$ref):e[t]:pn()}function Bc(e,t){return zc(e,t)}function Vc(e){return wn(e)?Fc(e):En(e)?xn():e}function Hc(e,t,n){return K(e,Vc(t),Vc(n))}function Uc(e,t){let n=[Sn(e)?W():Hc({},e,t),Sn(e)?U({}):Hc({},t,e)];return Jo(n[0])&&Jo(n[1])?`equal`:Jo(n[0])&&qo(n[1])?`left-inside`:qo(n[0])&&Jo(n[1])?`right-inside`:`disjoint`}function Wc(e,t){return t.filter(t=>Uc(e,t)!==`right-inside`)}function Gc(e,t){return v(t.some(t=>{let n=Uc(e,t);return v(n,`left-inside`)||v(n,`equal`)}),!1)}function Kc(e,t){let n=Qi(e);return fn(n)?[n]:Gc(n,t)?[...Wc(n,t),n]:t}function qc(e){return e.reduce((e,t)=>P(t)?[...e,t]:mn(t)?e:Kc(t,e),[])}function Jc(e){return ca(qc(e))}function Yc(e,t){return k(Qi(e),{},t)}function Xc(e,t,n,r){return Yc(J(e,t,n),r)}function Zc(e,t=[]){return Gt(e)&&v(e.action,`Conditional`)?cn(e.parameters[0])?Zc(e.parameters[2],Zc(e.parameters[3],[...t,e.parameters[0].$ref])):Zc(e.parameters[2],Zc(e.parameters[3],t)):Gt(e)&&v(e.action,`Mapped`)&&Gt(e.parameters[1])&&v(e.parameters[1].action,`KeyOf`)&&cn(e.parameters[1].parameters[0])?[...t,e.parameters[1].parameters[0].$ref]:t}function Qc(e,t){return e.reduce((e,n)=>[...e,t.includes(n.name)],[])}function $c(e,t,n=[]){return b(e,(e,r)=>b(t,(t,i)=>$c(r,i,[...n,[t,e]]),()=>n),()=>n)}function el(e){return B(e)?[...e.anyOf]:[e]}function tl(e,t){return e.reduce((e,n)=>[...e,[...n,t]],[])}function nl(e,t){return t.reduce((t,n)=>[...t,...tl(e,n)],[])}function rl(e){return e.reduce((e,t)=>v(t[0],!0)?nl(e,el(t[1])):nl(e,[t[1]]),[[]])}function il(e,t,n){let r=$c(t,Qc(e,Zc(n)));return Gt(n)&&v(n.action,`Conditional`)||Gt(n)&&v(n.action,`Mapped`)?rl(r):[t]}function al(){return[`(not-resolvable)`,pn()]}function ol(){return[`(not-generic)`,pn()]}function sl(e,t,n){return[e,ln(t,n)]}function cl(e,t,n){return t in e?ll(e,t,e[t],n):al()}function ll(e,t,n,r){return un(n)?sl(t,n.parameters,n.expression):cn(n)?cl(e,n.$ref,r):ol()}function ul(e,t,n){return ll(e,`(anonymous)`,t,n)}function dl(e,t,n){if(On(t)||Cl(t)||Jo(Hc({},t,n)))return;let r={parameter:e,expect:n,actual:t};throw Error(`Argument for parameter ${e} does not satisfy constraint`,{cause:r})}function fl(e,t,n,i,a){let o=J(e,t,a);return dl(n,o,i),r(e,{[n]:o})}function pl(e,t,n,r,i){let a=J(e,t,n.extends),o=J(e,t,n.equals);return b(i,(i,o)=>ml(fl(e,t,n.name,a,i),t,r,o),()=>ml(fl(e,t,n.name,a,o),t,r,[]))}function ml(e,t,n,r){return b(n,(n,i)=>pl(e,t,n,i,r),()=>e)}function hl(e,t,n,r){return ml(e,t,n,r)}function gl(e){return pe(e.callstack.length,0)?e.callstack[e.callstack.length-1]:``}function _l(e,t){return v(gl(e),t)}function vl(e,t,n,r,i,a){let o=hl(e,t,r,a),s=J(o,Wf([...t.callstack,n.$ref],t.visited),i);return J(o,Wf([],[]),s)}function yl(e,t,n,r,i,a){return a.reduce((a,o)=>[...a,vl(e,t,n,r,i,o)],[])}function bl(e,t,n,r,i,a){let o=yl(e,t,n,r,i,il(r,a,i));return v(o.length,1)?o[0]:Zi(o)}function xl(e,t,n,r){let i=qf(e,t,r),a=ul(e,n,r),o=a[0],s=a[1];return un(s)?_l(t,o)?Sl(sn(o),i):bl(e,t,sn(o),s.parameters,s.expression,i):Sl(n,i)}function Sl(e,t){return O({"~kind":`Call`},{type:`call`,target:e,arguments:t},{})}function Cl(e){return A(e,`Call`)}function wl(e){return Ut(e,[`~immutable`])}function Tl(e,t){return k(wl(e),{},t)}function El(e,t,n,r){return Tl(J(e,t,n),r)}function Dl(e,t){return e(t)}function Ol(e,t){return g(t)?L(Dl(e,t)):L(t)}function kl(e,t){return jl(e,Xi(t))}function Al(e,t){return z(t.map(t=>jl(e,t)))}function jl(e,t){return R(t)?Ol(e,t.const):Uo(t)?kl(e,t.pattern):B(t)?Al(e,t.anyOf):t}function Ml(e,t={}){return j(`Capitalize`,[e],t)}function Nl(e,t={}){return j(`Lowercase`,[e],t)}function Pl(e,t={}){return j(`Uncapitalize`,[e],t)}function Fl(e,t={}){return j(`Uppercase`,[e],t)}const Il=e=>e[0].toUpperCase()+e.slice(1),Ll=e=>e.toLowerCase(),Rl=e=>e[0].toLowerCase()+e.slice(1),zl=e=>e.toUpperCase();function Bl(e,t){return q([e])?k(jl(Il,e),{},t):Ml(e,t)}function Vl(e,t){return q([e])?k(jl(Ll,e),{},t):Nl(e,t)}function Hl(e,t){return q([e])?k(jl(Rl,e),{},t):Pl(e,t)}function Ul(e,t){return q([e])?k(jl(zl,e),{},t):Fl(e,t)}function Wl(e,t,n,r){return Bl(J(e,t,n),r)}function Gl(e,t,n,r){return Vl(J(e,t,n),r)}function Kl(e,t,n,r){return Hl(J(e,t,n),r)}function ql(e,t,n,r){return Ul(J(e,t,n),r)}function Jl(e,t,n,r,i={}){return j(`Conditional`,[e,t,n,r],i)}function Yl(e,t,n,r,i,a){let o=Hc(e,n,r);return Go(o)?z([J(o.inferred,t,i),J(e,t,a)]):Ko(o)?J(o.inferred,t,i):J(e,t,a)}function Xl(e,t,n,r,i,a,o){return q([n,r])?k(Yl(e,t,n,r,i,a),{},o):Jl(n,r,i,a,o)}function Zl(e,t,n,r,i,a,o){return Xl(e,t,J(e,t,n),J(e,t,r),i,a,o)}function Ql(e,t={}){return j(`ConstructorParameters`,[e],t)}function $l(e){let t=tn(e)?e.parameters:[];return vi(Kf({},Wf([],[]),t))}function eu(e,t){return q([e])?k($l(e),{},t):Ql(e,t)}function tu(e,t,n,r){return eu(J(e,t,n),r)}function nu(e,t,n={}){return j(`Exclude`,[e,t],n)}function ru(e,t,n){return q([e,t])?k(Ki(e,t),{},n):nu(e,t,n)}function iu(e,t,n,r,i){return ru(J(e,t,n),J(e,t,r),i)}function au(e,t,n={}){return j(`Extract`,[e,t],n)}function ou(e,t){return Jo(Hc({},e,t))?[e]:[]}function su(e,t){return e.reduce((e,n)=>[...e,...ou(n,t)],[])}function cu(e,t){let n=Qi(e);return Zi(su(B(n)?n.anyOf:[n],t))}function lu(e,t,n){return q([e,t])?k(cu(e,t),{},n):au(e,t,n)}function uu(e,t,n,r,i){return lu(J(e,t,n),J(e,t,r),i)}function du(e,t,n={}){return j(`Index`,[e,t],n)}function fu(e,t){return xu(Bc(e,t))}function pu(e,t,n){return xu(qi(e,t,n))}function mu(e,t){let n=C(e).filter(e=>!x(t,e)),i=C(t).filter(t=>!x(e,t)),a=C(e).filter(e=>x(t,e)),o=n.reduce((t,n)=>({...t,[n]:e[n]}),{}),s=i.reduce((e,n)=>({...e,[n]:t[n]}),{}),c=a.reduce((n,r)=>({...n,[r]:Yi([e[r],t[r]])}),{});return r(r(o,s),c)}function hu(e){return e.reduce((e,t)=>mu(e,xu(t)),{})}function gu(e){return e}function _u(e){return xu(ki(vi(e)))}function vu(e,t){return C(e).filter(e=>e in t).reduce((n,r)=>({...n,[r]:Zi([e[r],t[r]])}),{})}function yu(e,t){return b(e,(e,n)=>yu(n,vu(t,xu(e))),()=>t)}function bu(e){return b(e,(e,t)=>yu(t,xu(e)),()=>Hn())}function xu(e){return wn(e)?fu(e.$defs,e.$ref):An(e)?pu(e.if,e.then,e.else):F(e)?hu(e.allOf):B(e)?bu(e.anyOf):V(e)?_u(e.items):P(e)?gu(e.properties):{}}function Su(e){return N(xu(e))}const Cu=RegExp(`^(?:0|[1-9][0-9]*)$`);function wu(e){let t=`${e}`;return Cu.test(t)?parseInt(t):e}function Tu(e){return L(wu(e))}function Eu(e){return e.map(e=>Du(e))}function Du(e){return F(e)?In(Eu(e.allOf)):B(e)?z(Eu(e.anyOf)):R(e)?Tu(e.const):e}function Ou(e,t){return Jo(Hc({},Du(t),Gr()))?e:R(t)&&v(t.const,`length`)?Gr():pn()}function ku(e,t){return Iu(Bc(e,t))}function Au(e,t,n){return Iu(qi(e,t,n))}function ju(e){return Iu(Ji(e))}function Mu(e){return Iu(Yi(e))}function Nu(e){return[`${e}`]}function Pu(e){return Iu(Xi(e))}function Fu(e){return e.reduce((e,t)=>[...e,...Iu(t)],[])}function Iu(e){return wn(e)?ku(e.$defs,e.$ref):An(e)?Au(e.if,e.then,e.else):Fn(e)?ju(e.enum):F(e)?Mu(e.allOf):R(e)?Nu(e.const):Uo(e)?Pu(e.pattern):B(e)?Fu(e.anyOf):[]}function Lu(e){return Iu(e)}function Ru(e,t){return t.map(t=>zu(e,t))}function zu(e,t){return M(t)?Qt(zu(e,t.items)):tn(t)?en(Ru(e,t.parameters),zu(e,t.instanceType)):an(t)?rn(Ru(e,t.parameters),zu(e,t.returnType)):V(t)?vi(Ru(e,t.items)):B(t)?z(Ru(e,t.anyOf)):F(t)?In(Ru(e,t.allOf)):Aa(t)?N(e):t}function Bu(e,t){return zu(e,t)}function Vu(e,t){return Bu(e,t in e?e[t]:pn())}function Hu(e,t){return t.reduce((t,n)=>[...t,Vu(e,n)],[])}function Uu(e,t){return Zi(Hu(e,Lu(t)))}const Wu=new RegExp(_a);function Gu(e){return e.filter(e=>Wu.test(e))}function Ku(e){return Zi(Hu(e,Gu(vn(e))))}function qu(e,t){return Kr(t)?Ku(e):Uu(e,t)}function Ju(e){return L(wu(e))}function Yu(e){return e.map(e=>Xu(e))}function Xu(e){return F(e)?In(Yu(e.allOf)):B(e)?z(Yu(e.anyOf)):R(e)?Ju(e.const):e}function Zu(e,t){return e.reduceRight((e,n,r)=>Jo(Hc({},L(r),t))?[n,...e]:e,[])}function Qu(e,t){return $i(Zu(e,Xu(t)))}function $u(e){return $i(e)}function ed(e,t){return R(t)&&v(t.const,`length`)?L(e.length):Kr(t)||Pr(t)?$u(e):Qu(e,t)}function td(e,t){return M(e)?Ou(e.items,t):P(e)?qu(e.properties,t):V(e)?ed(e.items,t):pn()}function nd(e){return wn(e)||An(e)||F(e)||B(e)?Su(e):e}function rd(e,t,n){return q([e,t])?k(td(nd(e),t),{},n):du(e,t,n)}function id(e,t,n,r,i){return rd(J(e,t,n),J(e,t,r),i)}function ad(e,t={}){return j(`InstanceType`,[e],t)}function od(e){return tn(e)?e.instanceType:pn()}function sd(e,t){return q([e])?k(od(e),{},t):ad(e,t)}function cd(e,t,n,r={}){return sd(J(e,t,n),r)}function ld(e,t={}){return j(`KeyOf`,[e],t)}function ud(){return z([Gr(),Yr(),qr()])}function dd(e){return Gr()}function fd(e){return e.reduce((e,t)=>Lr(t)?[...e,L(wu(t))]:Hn(),[])}function pd(e){return $i(fd(C(e)))}function md(e){return Ta(e)}function hd(e){return $i(e.map((e,t)=>L(t)))}function gd(e){return fn(e)?ud():M(e)?dd(e.items):P(e)?pd(e.properties):Da(e)?md(e):V(e)?hd(e.items):pn()}function _d(e){return wn(e)||An(e)||F(e)||B(e)?Su(e):e}function vd(e,t){return q([e])?k(gd(_d(e)),{},t):ld(e,t)}function yd(e,t,n,r){return vd(J(e,t,n),r)}function bd(e,t,n,r,i={}){return j(`Mapped`,[e,t,n,r],i)}function xd(e){return Td(Xi(e))}function Sd(e){return e.reduce((e,t)=>[...e,...Td(t)],[])}function Cd(e){return Td(Ji(e))}function wd(e){return m(e)?[L(`${e}`)]:[L(e)]}function Td(e){return Fn(e)?Cd(e.enum):R(e)?wd(e.const):Uo(e)?xd(e.pattern):B(e)?Sd(e.anyOf):[e]}function Ed(e){return Td(e)}function Dd(e){return Uo(e)?Xi(e.pattern):e}function Od(e,t,n,i,a,o){let s=r(e,{[n.name]:i}),c=Dd(J(s,t,a)),l=J(s,t,o);return Br(c)||Vr(c)?{[c.const]:l}:{}}function kd(e,t,n,r,i,a){return r.reduce((r,o)=>[...r,Od(e,t,n,o,i,a)],[])}function Ad(e){return e.reduce((e,t)=>[...e,N(t)],[])}function jd(e,t,n,r,i,a){return Yi(Ad(kd(e,t,n,Ed(r),i,a)))}function Md(e,t,n,r,i,a,o){return q([r])?k(jd(e,t,n,r,i,a),{},o):bd(n,r,i,a,o)}function Nd(e,t,n,r,i,a,o){return Md(e,t,n,J(e,t,r),i,a,o)}function Pd(e,t,n){let i=r(e,t);return C(t).filter(e=>n.includes(e)).reduce((e,n)=>({...e,[n]:Rc(i,n,t[n])}),{})}function Fd(e,t,n){let i=r(e,t);return C(t).filter(e=>!n.includes(e)).reduce((e,n)=>({...e,[n]:J(i,Wf([],[]),t[n])}),{})}function Id(e,t,n){let r=wc(t),i=Pd(e,t,r),a=Fd(e,t,r);return k({...i,...a},{},n)}function Ld(e,t,n,r){return Id(e,n,r)}function Rd(e,t={}){return j(`NonNullable`,[e],t)}function zd(e){return ru(e,z([Hr(),ja()]),{})}function Bd(e,t){return q([e])?k(zd(e),{},t):Rd(e,t)}function Vd(e,t,n,r){return Bd(J(e,t,n),r)}function Hd(e,t,n={}){return j(`Omit`,[e,t],n)}function Ud(e){let t=Su(e);return P(t)?t.properties:Hn()}function Wd(e,t){return C(e).reduce((n,r)=>t.includes(r)?n:{...n,[r]:e[r]},{})}function Gd(e,t){return N(Wd(Ud(e),Lu(t)))}function Kd(e,t,n){return q([e,t])?k(Gd(e,t),{},n):Hd(e,t,n)}function qd(e,t,n,r,i){return Kd(J(e,t,n),J(e,t,r),i)}function Jd(e,t={}){return j(`Parameters`,[e],t)}function Yd(e){let t=an(e)?e.parameters:[];return vi(Kf({},Wf([],[]),t))}function Xd(e,t){return q([e])?k(Yd(e),{},t):Jd(e,t)}function Zd(e,t,n,r){return Xd(J(e,t,n),r)}function Qd(e,t={}){return j(`Partial`,[e],t)}function $d(e,t){let n=af(Bc(e,t));return Cn(r(e,{[t]:n}),t)}function ef(e,t,n){return af(qi(e,t,n))}function tf(e){return af(Yi(e))}function nf(e){return z(e.map(e=>af(e)))}function rf(e){return N(C(e).reduce((t,n)=>({...t,[n]:hn(e[n])}),{}))}function af(e){return wn(e)?$d(e.$defs,e.$ref):An(e)?ef(e.if,e.then,e.else):F(e)?tf(e.allOf):B(e)?nf(e.anyOf):P(e)?rf(e.properties):N({})}function of(e,t){return q([e])?k(af(e),{},t):Qd(e,t)}function sf(e,t,n,r){return of(J(e,t,n),r)}function cf(e,t,n={}){return j(`Pick`,[e,t],n)}function lf(e,t){return C(e).reduce((n,i)=>t.includes(i)?r(n,{[i]:e[i]}):n,{})}function uf(e,t){return N(lf(Ud(e),Lu(t)))}function df(e,t,n){return q([e,t])?k(uf(e,t),{},n):cf(e,t,n)}function ff(e,t,n,r,i){return df(J(e,t,n),J(e,t,r),i)}function pf(e,t={}){return j(`ReadonlyObject`,[e],t)}function mf(e){return tp(Qt(e))}function hf(e,t){let n=xf(Bc(e,t));return Cn(r(e,{[t]:n}),t)}function gf(e,t,n){return xf(qi(e,t,n))}function _f(e){return xf(Yi(e))}function vf(e){return N(C(e).reduce((t,n)=>({...t,[n]:Cr(e[n])}),{}))}function yf(e){return tp(vi(e))}function bf(e){return z(e.map(e=>xf(e)))}function xf(e){return M(e)?mf(e.items):wn(e)?hf(e.$defs,e.$ref):An(e)?gf(e.if,e.then,e.else):F(e)?_f(e.allOf):P(e)?vf(e.properties):V(e)?yf(e.items):B(e)?bf(e.anyOf):e}function Sf(e,t){return q([e])?k(xf(e),{},t):pf(e)}function Cf(e,t,n,r){return Sf(J(e,t,n),r)}function wf(e,t,n,r){return t.visited.includes(r)?n:r in e?J(e,Wf(t.callstack,[...t.visited,r]),e[r]):n}function Tf(e,t){let n=Af(Bc(e,t));return Cn(r(e,{[t]:n}),t)}function Ef(e,t,n){return Af(qi(e,t,n))}function Df(e){return Af(Yi(e))}function Of(e){return z(e.map(e=>Af(e)))}function kf(e){return N(C(e).reduce((t,n)=>({...t,[n]:Di(e[n])}),{}))}function Af(e){return wn(e)?Tf(e.$defs,e.$ref):An(e)?Ef(e.if,e.then,e.else):F(e)?Df(e.allOf):B(e)?Of(e.anyOf):P(e)?kf(e.properties):N({})}function jf(e,t={}){return j(`Required`,[e],t)}function Mf(e,t){return q([e])?k(Af(e),{},t):jf(e,t)}function Nf(e,t,n,r){return Mf(J(e,t,n),r)}function Pf(e,t={}){return j(`ReturnType`,[e],t)}function Ff(e){return an(e)?e.returnType:pn()}function If(e,t){return q([e])?k(Ff(e),{},t):Pf(e,t)}function Lf(e,t,n,r={}){return If(J(e,t,n),r)}function Rf(e,t){return j(`With`,[e,t],{})}function zf(e,t){return Bf(e,t)}function Bf(e,t){return q([e])?k(e,{},t):Rf(e,t)}function Vf(e,t,n,r){return Bf(J(e,t,n),r)}function Hf(e){return ka(e)?V(e.items)?Uf(e.items.items):On(e.items)||cn(e.items)?[e]:[pn()]:[e]}function Uf(e){return e.reduce((e,t)=>[...e,...Hf(t)],[])}function Wf(e,t){return{callstack:e,visited:t}}function q(e){return b(e,(e,t)=>cn(e)?!1:q(t),()=>!0)}function Gf(e,t,n){return C(n).reduce((r,i)=>({...r,[i]:J(e,t,n[i])}),{})}function Kf(e,t,n){return Uf(qf(e,t,n))}function qf(e,t,n){return n.map(n=>J(e,t,n))}function Jf(e,t){let n=gn(e)?Xt(t,{}):t,r=wr(e)?qt(n,{}):n;return Sr(e)?$f(r,{}):r}function Yf(e,t,n,r,i){return v(n,`AddImmutable`)?ep(e,t,r[0],i):v(n,`RemoveImmutable`)?El(e,t,r[0],i):v(n,`AddReadonly`)?Jt(e,t,r[0],i):v(n,`RemoveReadonly`)?Si(e,t,r[0],i):v(n,`AddOptional`)?Zt(e,t,r[0],i):v(n,`RemoveOptional`)?Ei(e,t,r[0],i):v(n,`Capitalize`)?Wl(e,t,r[0],i):v(n,`Conditional`)?Zl(e,t,r[0],r[1],r[2],r[3],i):v(n,`ConstructorParameters`)?tu(e,t,r[0],i):v(n,`Evaluate`)?Xc(e,t,r[0],i):v(n,`Exclude`)?iu(e,t,r[0],r[1],i):v(n,`Extract`)?uu(e,t,r[0],r[1],i):v(n,`Index`)?id(e,t,r[0],r[1],i):v(n,`InstanceType`)?cd(e,t,r[0],i):v(n,`Interface`)?hc(e,t,r[0],r[1],i):v(n,`KeyOf`)?yd(e,t,r[0],i):v(n,`Lowercase`)?Gl(e,t,r[0],i):v(n,`Mapped`)?Nd(e,t,r[0],r[1],r[2],r[3],i):v(n,`Module`)?Ld(e,t,r[0],i):v(n,`NonNullable`)?Vd(e,t,r[0],i):v(n,`Pick`)?ff(e,t,r[0],r[1],i):v(n,`Parameters`)?Zd(e,t,r[0],i):v(n,`Partial`)?sf(e,t,r[0],i):v(n,`Omit`)?qd(e,t,r[0],r[1],i):v(n,`ReadonlyObject`)?Cf(e,t,r[0],i):v(n,`Record`)?ga(e,t,r[0],r[1],i):v(n,`Required`)?Nf(e,t,r[0],i):v(n,`ReturnType`)?Lf(e,t,r[0],i):v(n,`TemplateLiteral`)?Bo(e,t,r[0],i):v(n,`Uncapitalize`)?Kl(e,t,r[0],i):v(n,`Uppercase`)?ql(e,t,r[0],i):v(n,`With`)?Vf(e,t,r[0],r[1]):j(n,r,i)}function Xf(e,t,n){return Jf(n,cn(n)?wf(e,t,n,n.$ref):M(n)?Qt(J(e,t,n.items),$t(n)):Cl(n)?xl(e,t,n.target,n.arguments):tn(n)?en(qf(e,t,n.parameters),J(e,t,n.instanceType),nn(n)):an(n)?rn(qf(e,t,n.parameters),J(e,t,n.returnType),on(n)):An(n)?kn(J(e,t,n.if),J(e,t,n.then),J(e,t,n.else),jn(n)):F(n)?In(qf(e,t,n.allOf),Ln(n)):P(n)?N(Gf(e,t,n.properties),bn(n)):Da(n)?Sa(wa(n),J(e,t,Ea(n))):ka(n)?Oa(J(e,t,n.items)):V(n)?vi(Kf(e,t,n.items),yi(n)):B(n)?z(qf(e,t,n.anyOf),Zr(n)):n)}function J(e,t,n){return Gt(n)?Yf(e,t,n.action,n.parameters,n.options):Xf(e,t,n)}function Zf(e,t){return J(e,Wf([],[]),t)}function Qf(e){return k(e,{"~immutable":!0},{})}function $f(e,t){return k(Qf(e),{},t)}function ep(e,t,n,r){return $f(J(e,t,n),r)}function tp(e,t={}){return $f(e,t)}function np(e,t={}){return Yc(e,t)}function rp(e,t){let n=Uc(e,t);return v(n,`right-inside`)?1:+!!v(n,`disjoint`)}function ip(e,t,n=[]){return b(t,(r,i)=>v(rp(e,r),1)?ip(e,i,[...n,r]):[...n,e,...t],()=>[...n,e])}function ap(e,t=[]){return b(e,(e,n)=>ap(n,ip(e,t)),()=>t)}function op(e){return ap(e)}function sp(e){return x(e,`~refine`)&&d(e[`~refine`])&&y(e[`~refine`],0,e=>h(e)&&x(e,`check`)&&x(e,`error`)&&ce(e.check)&&ce(e.error))}function cp(e){return h(e)&&!d(e)}function lp(e){return p(e)}function Y(e){return cp(e)||lp(e)}function up(e){return x(e,`additionalItems`)&&Y(e.additionalItems)}function dp(e){return x(e,`additionalProperties`)&&Y(e.additionalProperties)}function fp(e){return x(e,`allOf`)&&d(e.allOf)&&e.allOf.every(e=>Y(e))}function pp(e){return x(e,`$anchor`)&&g(e.$anchor)}function mp(e){return x(e,`anyOf`)&&d(e.anyOf)&&e.anyOf.every(e=>Y(e))}function hp(e){return x(e,`const`)}function gp(e){return x(e,`contains`)&&Y(e.contains)}function _p(e){return x(e,`default`)}function vp(e){return x(e,`dependencies`)&&h(e.dependencies)&&Object.values(e.dependencies).every(e=>Y(e)||d(e)&&e.every(e=>g(e)))}function yp(e){return x(e,`dependentRequired`)&&h(e.dependentRequired)&&Object.values(e.dependentRequired).every(e=>d(e)&&e.every(e=>g(e)))}function bp(e){return x(e,`dependentSchemas`)&&h(e.dependentSchemas)&&Object.values(e.dependentSchemas).every(e=>Y(e))}function xp(e){return x(e,`$dynamicAnchor`)&&g(e.$dynamicAnchor)}function Sp(e){return x(e,`$dynamicRef`)&&g(e.$dynamicRef)}function Cp(e){return x(e,`else`)&&Y(e.else)}function wp(e){return x(e,`enum`)&&d(e.enum)}function Tp(e){return x(e,`exclusiveMaximum`)&&(m(e.exclusiveMaximum)||f(e.exclusiveMaximum))}function Ep(e){return x(e,`exclusiveMinimum`)&&(m(e.exclusiveMinimum)||f(e.exclusiveMinimum))}function Dp(e){return x(e,`format`)&&g(e.format)}function Op(e){return x(e,`$id`)&&g(e.$id)}function kp(e){return x(e,`if`)&&Y(e.if)}function Ap(e){return x(e,`items`)&&(Y(e.items)||d(e.items)&&e.items.every(e=>Y(e)))}function jp(e){return Ap(e)&&d(e.items)}function Mp(e){return x(e,`maximum`)&&(m(e.maximum)||f(e.maximum))}function Np(e){return x(e,`maxContains`)&&m(e.maxContains)}function Pp(e){return x(e,`maxItems`)&&m(e.maxItems)}function Fp(e){return x(e,`maxLength`)&&m(e.maxLength)}function Ip(e){return x(e,`maxProperties`)&&m(e.maxProperties)}function Lp(e){return x(e,`minimum`)&&(m(e.minimum)||f(e.minimum))}function Rp(e){return x(e,`minContains`)&&m(e.minContains)}function zp(e){return x(e,`minItems`)&&m(e.minItems)}function Bp(e){return x(e,`minLength`)&&m(e.minLength)}function Vp(e){return x(e,`minProperties`)&&m(e.minProperties)}function Hp(e){return x(e,`multipleOf`)&&(m(e.multipleOf)||f(e.multipleOf))}function Up(e){return x(e,`not`)&&Y(e.not)}function Wp(e){return x(e,`oneOf`)&&d(e.oneOf)&&e.oneOf.every(e=>Y(e))}function Gp(e){return x(e,`pattern`)&&(g(e.pattern)||e.pattern instanceof RegExp)}function Kp(e){return x(e,`patternProperties`)&&h(e.patternProperties)&&Object.values(e.patternProperties).every(e=>Y(e))}function qp(e){return x(e,`prefixItems`)&&d(e.prefixItems)&&e.prefixItems.every(e=>Y(e))}function Jp(e){return x(e,`properties`)&&h(e.properties)&&Object.values(e.properties).every(e=>Y(e))}function Yp(e){return x(e,`propertyNames`)&&(h(e.propertyNames)||Y(e.propertyNames))}function Xp(e){return x(e,`$recursiveAnchor`)&&p(e.$recursiveAnchor)}function Zp(e){return Xp(e)&&v(e.$recursiveAnchor,!0)}function Qp(e){return x(e,`$recursiveRef`)&&g(e.$recursiveRef)}function $p(e){return x(e,`$ref`)&&g(e.$ref)}function em(e){return x(e,`required`)&&d(e.required)&&e.required.every(e=>g(e))}function tm(e){return x(e,`then`)&&Y(e.then)}function nm(e){return x(e,`type`)&&(g(e.type)||d(e.type)&&e.type.every(e=>g(e)))}function rm(e){return x(e,`uniqueItems`)&&p(e.uniqueItems)}function im(e){return x(e,`unevaluatedItems`)&&Y(e.unevaluatedItems)}function am(e){return x(e,`unevaluatedProperties`)&&Y(e.unevaluatedProperties)}function om(e){return im(e)||am(e)||C(e).some(t=>cm(e[t]))}function sm(e){return e.some(e=>cm(e))}function cm(e){return d(e)?sm(e):h(e)?om(e):!1}function lm(e,t){return cm(t)||C(e).some(t=>cm(e[t]))}var um=class{constructor(e){this.hasUnevaluated=e}UseUnevaluated(){return this.hasUnevaluated}Push(){return T(E(`context`,`Push`),[])}Pop(){return T(E(`context`,`Pop`),[])}AddIndex(e){return T(E(`context`,`AddIndex`),[e])}AddKey(e){return T(E(`context`,`AddKey`),[e])}Merge(e){return T(E(`context`,`Merge`),[e])}},dm=class{constructor(){let e=new Set,t=new Set;this.stack=[{indices:e,keys:t}]}Push(){let e=new Set,t=new Set;return this.stack.push({indices:e,keys:t}),!0}Pop(){return this.stack.pop(),!0}AddIndex(e){return this.GetIndices().add(e),!0}AddKey(e){return this.GetKeys().add(e),!0}GetIndices(){return this.stack[this.stack.length-1].indices}GetKeys(){return this.stack[this.stack.length-1].keys}Merge(e){for(let t of e)t.GetIndices().forEach(e=>this.GetIndices().add(e)),t.GetKeys().forEach(e=>this.GetKeys().add(e));return!0}},fm=class extends dm{constructor(e){super(),this.callback=e}AddError(e){return this.callback(e),!1}},pm=class extends fm{constructor(){super(e=>this.errors.push(e)),this.errors=[]}AddError(e){return this.errors.push(e),!1}GetErrors(){return this.errors}};const mm={identifier:`External`,variables:[]};function hm(e){let t=`External[${mm.variables.length}]`;return mm.variables.push(e),t}function gm(){mm.variables=[]}function _m(){return{...mm}}function vm(e,t,n,r){return tt(hm(n[`~refine`].map(e=>e)),D(0),[`refinement`,`_`],T(E(`refinement`,`check`),[r]))}function ym(e,t,n,r){return y(n[`~refine`],0,(e,t)=>e.check(r))}function bm(e,t,n,r,i,a){return Ce(i[`~refine`],0,(e,i)=>e.check(a)||t.AddError({keyword:`~refine`,schemaPath:n,instancePath:r,params:{index:i,message:e.error(a)}}))}let xm=0;function Sm(){return`var_${xm++}`}function Cm(e){return Ap(e)&&d(e.items)}function wm(e,t,n,r){if(!Cm(n))return D(!0);let[i,a]=[Sm(),Sm()],o=Zv(e,t,n.additionalItems,i),s=Xe(a,D(n.items.length)),c=t.AddIndex(a),l=t.UseUnevaluated()?w(s,Ne(o,c)):w(s,o);return T(E(r,`every`),[st([i,a],l)])}function Tm(e,t,n,r){return Cm(n)?r.every((r,i)=>me(i,n.items.length)||Qv(e,t,n.additionalItems,r)&&t.AddIndex(i)):!0}function Em(e,t,n,r,i,a){return Cm(i)?a.every((a,o)=>{let s=`${n}/additionalItems`,c=`${r}/${o}`;return me(o,i.items.length)||$v(e,t,s,c,i.additionalItems,a)&&t.AddIndex(o)}):!0}function Dm(e){return`^${e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}$`}function Om(e){let t=[];return Kp(e)&&t.push(...C(e.patternProperties)),Jp(e)&&t.push(...C(e.properties).map(Dm)),v(t.length,0)?`(?!)`:`(${t.join(`|`)})`}function km(e,t,n){return em(t)&&Jp(t)&&!Kp(t)&&v(t.additionalProperties,!1)&&v(C(t.properties).length,t.required.length)}function Am(e,t,n){return Je(E(T(E(`Object`,`getOwnPropertyNames`),[n]),`length`),D(t.required.length))}function jm(e,t,n,r){let[i,a]=[Sm(),Sm()],o=hm(new RegExp(Om(n))),s=Zv(e,t,n.additionalProperties,`${r}[${i}]`),c=T(E(o,`test`),[i]),l=t.AddKey(i),u=t.UseUnevaluated()?w(c,Ne(s,l)):w(c,s);return tt(rt(r),D(0),[i,a],u)}function Mm(e,t,n,r){return km(t,n,r)?Am(t,n,r):jm(e,t,n,r)}function Nm(e,t,n,r){let i=new RegExp(Om(n));return y(C(r),0,(a,o)=>i.test(a)||Qv(e,t,n.additionalProperties,r[a])&&t.AddKey(a))}function Pm(e,t,n,r,i,a){let o=new RegExp(Om(i)),s=[];return Ce(C(a),0,(c,l)=>{let u=`${n}/additionalProperties`,ee=`${r}/${c}`,te=new pm,ne=o.test(c)||$v(e,te,u,ee,i.additionalProperties,a[c])&&t.AddKey(c);return ne||s.push(c),ne})||t.AddError({keyword:`additionalProperties`,schemaPath:n,instancePath:r,params:{additionalProperties:s}})}function Fm(e,t,n,r,i){let a=dt(`results`,`[]`),o=n.map((e,t)=>dt(`context_${t}`,ct(`CheckContext`,[]))),s=n.map((n,i)=>dt(`condition_${i}`,T(st([`context`],Z(e,t,n,r)),[`context_${i}`]))),c=n.map((e,t)=>ft(`condition_${t}`,T(E(`results`,`push`),[`context_${t}`]))),l=pt(Ne(i,t.Merge(`results`)));return T(st([],ut([a,...o,...s,...c,l])),[])}function Im(e,t,n,r){return Fm(e,t,n.allOf,r,Je(E(`results`,`length`),D(n.allOf.length)))}function Lm(e,t,n,r){return mt(n.allOf.map(n=>Z(e,t,n,r)))}function Rm(e,t,n,r){return t.UseUnevaluated()?Im(e,t,n,r):Lm(e,t,n,r)}function zm(e,t,n,r){let i=n.allOf.reduce((t,n)=>{let i=new dm;return Q(e,i,n,r)?[...t,i]:t},[]);return v(i.length,n.allOf.length)&&t.Merge(i)}function Bm(e,t,n,r,i,a){let o=[],s=i.allOf.reduce((t,i,s)=>{let c=`${n}/allOf/${s}`,l=new pm,u=ey(e,l,c,r,i,a);return u||o.push(l),u?[...t,l]:t},[]),c=v(s.length,i.allOf.length)&&t.Merge(s);return c||o.forEach(e=>e.GetErrors().forEach(e=>t.AddError(e))),c}function Vm(e,t,n,r){return Fm(e,t,n.anyOf,r,Ye(E(`results`,`length`),D(0)))}function Hm(e,t,n,r){return ht(n.anyOf.map(n=>Z(e,t,n,r)))}function Um(e,t,n,r){return t.UseUnevaluated()?Vm(e,t,n,r):Hm(e,t,n,r)}function Wm(e,t,n,r){let i=n.anyOf.reduce((t,n)=>{let i=new dm;return Q(e,i,n,r)?[...t,i]:t},[]);return pe(i.length,0)&&t.Merge(i)}function Gm(e,t,n,r,i,a){let o=[],s=i.anyOf.reduce((t,i,s)=>{let c=new pm,l=ey(e,c,`${n}/anyOf/${s}`,r,i,a);return l||o.push(c),l?[...t,c]:t},[]),c=pe(s.length,0)&&t.Merge(s);return c||o.forEach(e=>e.GetErrors().forEach(e=>t.AddError(e))),c||t.AddError({keyword:`anyOf`,schemaPath:n,instancePath:r,params:{}})}function Km(e,t,n,r){return D(!!n)}function qm(e,t,n,r){return n}function Jm(e,t,n,r,i,a){return qm(e,t,i,a)||t.AddError({keyword:`boolean`,schemaPath:n,instancePath:r,params:{}})}function Ym(e,t,n,r){return ye(n.const)?Je(r,D(n.const)):at(r,hm(n.const))}function Xm(e,t,n,r){return ye(n.const)?v(r,n.const):Ae(r,n.const)}function Zm(e,t,n,r,i,a){return Xm(e,t,i,a)||t.AddError({keyword:`const`,schemaPath:n,instancePath:r,params:{allowedValue:i.const}})}function Qm(e){return!(Rp(e)&&v(e.minContains,0))}function $m(e,t,n,r){if(!Qm(n))return D(!0);let i=Sm();return Ne(Pe(Je(E(r,`length`),D(0))),T(E(r,`some`),[st([i],Z(e,t,n.contains,i))]))}function eh(e,t,n,r){return Qm(n)?!v(r.length,0)&&r.some(r=>Q(e,t,n.contains,r)):!0}function th(e,t,n,r,i,a){return eh(e,t,i,a)||t.AddError({keyword:`contains`,schemaPath:n,instancePath:r,params:{minContains:1}})}function nh(e,t,n,r){return w(Je(E(rt(r),`length`),D(0)),mt(S(n.dependencies).map(([n,i])=>{let a=Pe(it(r,D(n))),o=Z(e,t,i,r);return w(a,d(i)?(e=>mt(e.map(e=>it(r,D(e)))))(i):o)})))}function rh(e,t,n,r){let i=v(C(r).length,0),a=y(S(n.dependencies),0,([n,i])=>!x(r,n)||(d(i)?i.every(e=>x(r,e)):Q(e,t,i,r)));return i||a}function ih(e,t,n,r,i,a){let o=v(C(a).length,0),s=Ce(S(i.dependencies),0,([i,o])=>{let s=`${n}/dependencies/${i}`;return!x(a,i)||(d(o)?o.every(e=>x(a,e)||t.AddError({keyword:`dependencies`,schemaPath:n,instancePath:r,params:{property:i,dependencies:o}})):ey(e,t,s,r,o,a))});return o||s}function ah(e,t,n,r){return w(Je(E(rt(r),`length`),D(0)),mt(S(n.dependentRequired).map(([e,t])=>w(Pe(it(r,D(e))),mt(t.map(e=>it(r,D(e))))))))}function oh(e,t,n,r){let i=v(C(r).length,0),a=y(S(n.dependentRequired),0,([e,t])=>!x(r,e)||t.every(e=>x(r,e)));return i||a}function sh(e,t,n,r,i,a){let o=v(C(a).length,0),s=Ce(S(i.dependentRequired),0,([e,i])=>!x(a,e)||Ce(i,0,o=>x(a,o)||t.AddError({keyword:`dependentRequired`,schemaPath:n,instancePath:r,params:{property:e,dependencies:i}})));return o||s}function ch(e,t,n,r){return w(Je(E(rt(r),`length`),D(0)),mt(S(n.dependentSchemas).map(([n,i])=>w(Pe(it(r,D(n))),Z(e,t,i,r)))))}function lh(e,t,n,r){let i=v(C(r).length,0),a=y(S(n.dependentSchemas),0,([n,i])=>!x(r,n)||Q(e,t,i,r));return i||a}function uh(e,t,n,r,i,a){let o=v(C(a).length,0),s=Ce(S(i.dependentSchemas),0,([i,o])=>{let s=`${n}/dependentSchemas/${i}`;return!x(a,i)||ey(e,t,s,r,o,a)});return o||s}function dh(e,t,n,r){return oy(e,t,e.DynamicRef(n)??!1,r)}function fh(e,t,n,r){let i=e.DynamicRef(n)??!1;return Y(i)&&Q(e,t,i,r)}function ph(e,t,n,r,i,a){let o=e.DynamicRef(i)??!1;return Y(o)&&ey(e,t,`#`,r,o,a)}function mh(e,t,n,r){return ht(n.enum.map(e=>ye(e)?Je(r,D(e)):at(r,hm(e))))}function hh(e,t,n,r){return n.enum.some(e=>ye(e)?v(r,e):Ae(r,e))}function gh(e,t,n,r,i,a){return hh(e,t,i,a)||t.AddError({keyword:`enum`,schemaPath:n,instancePath:r,params:{allowedValues:i.enum}})}function _h(e,t,n,r){return Xe(r,D(n.exclusiveMaximum))}function vh(e,t,n,r){return me(r,n.exclusiveMaximum)}function yh(e,t,n,r,i,a){return vh(e,t,i,a)||t.AddError({keyword:`exclusiveMaximum`,schemaPath:n,instancePath:r,params:{comparison:`<`,limit:i.exclusiveMaximum}})}function bh(e,t,n,r){return Ye(r,D(n.exclusiveMinimum))}function xh(e,t,n,r){return pe(r,n.exclusiveMinimum)}function Sh(e,t,n,r,i,a){return xh(e,t,i,a)||t.AddError({keyword:`exclusiveMinimum`,schemaPath:n,instancePath:r,params:{comparison:`>`,limit:i.exclusiveMinimum}})}const Ch=[0,31,28,31,30,31,30,31,31,30,31,30,31],wh=/^(\d\d\d\d)-(\d\d)-(\d\d)$/;function Th(e){return e%4==0&&(e%100!=0||e%400==0)}function Eh(e){let t=wh.exec(e);if(!t)return!1;let n=+t[1],r=+t[2],i=+t[3];return r>=1&&r<=12&&i>=1&&i<=(r===2&&Th(n)?29:Ch[r])}const Dh=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(?:Z|([+-])(\d\d):(\d\d))?$/i;function Oh(e,t=!0){let n=Dh.exec(e);if(!n)return!1;let r=+n[1],i=+n[2],a=+n[3],o=n[4]===`-`?-1:1,s=+(n[5]||0),c=+(n[6]||0);if(s>23||c>59||t&&!n[4]&&e.toLowerCase().indexOf(`z`)===-1)return!1;if(r<=23&&i<=59&&a<60)return!0;let l=i-c*o,u=r-s*o-+(l<0);return(u===23||u===-1)&&(l===59||l===-1)&&a<61}function kh(e,t=!0){let n=e.split(/T/i);return n.length===2&&Eh(n[0])&&Oh(n[1],t)}const Ah=/^P((\d+Y(\d+M(\d+D)?)?|\d+M(\d+D)?|\d+D)(T(\d+H(\d+M(\d+S)?)?|\d+M(\d+S)?|\d+S))?|T(\d+H(\d+M(\d+S)?)?|\d+M(\d+S)?|\d+S)|\d+W)$/;function jh(e){return Ah.test(e)}const Mh=/^(?!.*\.\.)[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i;function Nh(e){return Mh.test(e)}function Ph(e,t,n){e=n?Math.floor(e/700):e>>1,e+=Math.floor(e/t);let r=0;for(;e>455;)e=Math.floor(e/35),r+=36;return r+Math.floor(36*e/(e+38))}function Fh(e){let t=[],n=128,r=0,i=72,a=e.lastIndexOf(`-`);if(a>0)for(let n=0;n=128)throw Error(`Invalid punycode: non-basic before delimiter`);t.push(r)}let o=a<0?0:a+1;for(;o=e.length)throw Error(`Invalid punycode: unexpected end of input`);let t=e.charCodeAt(o++),n;if(t>=97&&t<=122)n=t-97;else if(t>=48&&t<=57)n=t-48+26;else if(t>=65&&t<=90)n=t-65;else throw Error(`Invalid punycode: bad digit character`);r+=n*s;let a=c<=i?1:c>=i+26?26:c-i;if(n=1632&&e<=1641}function Jh(e){return e>=1776&&e<=1785}function Yh(e){return Vh.has(e)}function Xh(e){if(e.length===0)return!1;let t=[...e].map(e=>e.codePointAt(0)),n=t.length;if(t[0]===45||t[n-1]===45||n>=4&&t[2]===45&&t[3]===45||zh(t[0]))return!1;let r=!1,i=!1,a=!1;for(let e=0;e=4&&e.charCodeAt(2)===45&&e.charCodeAt(3)===45)return!1;for(let t=0;t=97&&n<=122||n>=65&&n<=90||n>=48&&n<=57||n===45))return!1}return!0}function Qh(e){return e.toLowerCase().startsWith(`xn--`)}function $h(e){try{let t=e.slice(4).toLowerCase();if(t.lastIndexOf(`-`)===0)return!1;let n=Fh(t);return n?Xh(n):!1}catch{return!1}}function eg(e){return e.length===0||e.length>63?!1:Qh(e)?$h(e):Xh(e)}function tg(e){return e.length===0||e.length>63?!1:Qh(e)?$h(e):Zh(e)}function ng(e){if(e.length===0||e.length>253||e.charCodeAt(e.length-1)===46)return!1;for(let t of e.split(`.`))if(!tg(t))return!1;return!0}const rg=/^(?!.*\.\.)[\p{L}\p{N}!#$%&'*+/=?^_`{|}~-]+(?:\.[\p{L}\p{N}!#$%&'*+/=?^_`{|}~-]+)*@[\p{L}\p{N}](?:[\p{L}\p{N}-]{0,61}[\p{L}\p{N}])?(?:\.[\p{L}\p{N}](?:[\p{L}\p{N}-]{0,61}[\p{L}\p{N}])?)*$/iu;function ig(e){return rg.test(e)}function ag(e){if(e.length===0||e.includes(` `))return!1;let t=e.normalize(`NFC`).replace(/[\u002E\u3002\uFF0E\uFF61]/g,`.`);if(t.length>253)return!1;for(let e of t.split(`.`))if(!eg(e))return!1;return!0}function og(e,t,n){let r=0,i=0,a=0,o=0;for(let s=t;s255||o===48&&a>1)return!1;r++,i=0,a=0,o=0}else if(t>=48&&t<=57)a===0&&(o=t),i=i*10+(t-48),a++;else return!1}return r===3&&a>0&&i<=255&&!(o===48&&a>1)}function sg(e){return og(e,0,e.length)}function cg(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function lg(e){let t=e.length;if(t===0)return!1;let n=0,r=!1,i=0;if(e.charCodeAt(0)===58&&e.charCodeAt(1)===58){if(t===2)return!0;r=!0,i=2}for(;i4)return!1;if(n++,i===t)break;if(s!==58)return!1;if(i++,e.charCodeAt(i)===58){if(r||e.charCodeAt(i+1)===58)return!1;if(r=!0,i++,i===t)break}}return r?n<=7:n===8}function ug(e){try{return new URL(e,`http://example.com`),!0}catch{return!1}}function dg(e){if(e.includes(` `)||e.includes(`\\`)||/[\x00-\x1F\x7F]/.test(e)||/%(?![0-9a-fA-F]{2})/.test(e))return!1;if(e===``)return!0;let t=e.indexOf(`:`);return t>0&&/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(e.substring(0,t))?ug(e):e.match(/^([a-zA-Z][a-zA-Z0-9+\-.]*)(\/\/)/)&&t===-1?!1:ug(e)}function fg(e){try{return new URL(e),!0}catch{return!1}}const pg=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i;function mg(e){return pg.test(e)}const hg=/^(?:\/(?:[^~/]|~0|~1)*)*$/;function gg(e){return hg.test(e)}function _g(e){if(e.length===0)return!1;try{return new RegExp(e),!0}catch{return!1}}const vg=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;function yg(e){return vg.test(e)}const bg=/^(?!.*[^\x00-\x7F])(?!.*\\)(?:(?:[a-z][a-z0-9+\-.]*:)?(?:\/\/[^\s[\]{}<>^`|]*)?|[^\s[\]{}<>^`|]*)(?:\?[^\s[\]{}<>^`|]*)?(?:#[^\s[\]{}<>^`|]*)?$/i;function xg(e){return bg.test(e)}const Sg=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i;function Cg(e){return Sg.test(e)}function wg(e){return e>=97&&e<=122||e>=65&&e<=90}function Tg(e){return wg(e)||e>=48&&e<=57}function Eg(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Dg(e){return Tg(e)||e===43||e===45||e===46}function Og(e){return Tg(e)||e===45||e===46||e===95||e===126}function kg(e){return e===33||e===36||e===38||e===39||e===40||e===41||e===42||e===43||e===44||e===59||e===61}function Ag(e){return Og(e)||kg(e)||e===58||e===64}function jg(e){let t=e.length;if(t===0||!wg(e.charCodeAt(0)))return!1;let n=1;for(;n=i||!Eg(e.charCodeAt(t+1))||!Eg(e.charCodeAt(t+2)))return!1;t+=2}else if(!Og(n)&&!kg(n)&&n!==58)return!1}n=i+1}if(e.charCodeAt(n)===91){for(n++;n57)return!1;n++}}for(;n=t||!Eg(e.charCodeAt(n+1))||!Eg(e.charCodeAt(n+2)))return!1;n+=2}else if(r>127)return!1;else if(!(Ag(r)||r===47||r===63||r===35))return!1;n++}return!0}const Mg=/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu;function Ng(e){return Mg.test(e)}const Pg=/^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;function Fg(e){return Pg.test(e)}const X=new Map;function Ig(){X.clear()}function Lg(){return[...X.entries()]}function Rg(e,t){X.set(e,t)}function zg(e){return X.has(e)}function Bg(e){return X.get(e)}function Vg(e,t){return X.get(e)?.(t)??!0}function Hg(){Ig(),X.set(`date-time`,kh),X.set(`date`,Eh),X.set(`duration`,jh),X.set(`email`,Nh),X.set(`hostname`,ng),X.set(`idn-email`,ig),X.set(`idn-hostname`,ag),X.set(`ipv4`,sg),X.set(`ipv6`,lg),X.set(`iri-reference`,dg),X.set(`iri`,fg),X.set(`json-pointer-uri-fragment`,mg),X.set(`json-pointer`,gg),X.set(`regex`,_g),X.set(`relative-json-pointer`,yg),X.set(`time`,Oh),X.set(`uri-reference`,xg),X.set(`uri-template`,Cg),X.set(`uri`,jg),X.set(`url`,Ng),X.set(`uuid`,Fg)}Hg();var Ug=t({Clear:()=>Ig,Entries:()=>Lg,Get:()=>Bg,Has:()=>zg,IsDate:()=>Eh,IsDateTime:()=>kh,IsDuration:()=>jh,IsEmail:()=>Nh,IsHostname:()=>ng,IsIPv4:()=>sg,IsIPv6:()=>lg,IsIdnEmail:()=>ig,IsIdnHostname:()=>ag,IsIri:()=>fg,IsIriReference:()=>dg,IsJsonPointer:()=>gg,IsJsonPointerUriFragment:()=>mg,IsRegex:()=>_g,IsRelativeJsonPointer:()=>yg,IsTime:()=>Oh,IsUri:()=>jg,IsUriReference:()=>xg,IsUriTemplate:()=>Cg,IsUrl:()=>Ng,IsUuid:()=>Fg,Reset:()=>Hg,Set:()=>Rg,Test:()=>Vg});function Wg(e,t,n,r){return T(E(`Format`,`Test`),[D(n.format),r])}function Gg(e,t,n,r){return Vg(n.format,r)}function Kg(e,t,n,r,i,a){return Gg(e,t,i,a)||t.AddError({keyword:`format`,schemaPath:n,instancePath:r,params:{format:i.format}})}function qg(e,t,n,r){let i=tm(n)?n.then:!0,a=Cp(n)?n.else:!0;return lt(Z(e,t,n.if,r),Z(e,t,i,r),Z(e,t,a,r))}function Jg(e,t,n,r){let i=tm(n)?n.then:!0,a=Cp(n)?n.else:!0;return Q(e,t,n.if,r)?Q(e,t,i,r):Q(e,t,a,r)}function Yg(e,t,n,r,i,a){let o=tm(i)?i.then:!0,s=Cp(i)?i.else:!0,c=new pm,l=ey(e,c,`${n}/if`,r,i.if,a)?ey(e,c,`${n}/then`,r,o,a)||t.AddError({keyword:`if`,schemaPath:n,instancePath:r,params:{failingKeyword:`then`}}):ey(e,t,`${n}/else`,r,s,a)||t.AddError({keyword:`if`,schemaPath:n,instancePath:r,params:{failingKeyword:`else`}});return l&&t.Merge([c]),l}function Xg(e,t,n,r){return mt(n.items.map((n,i)=>{let a=Ze(E(r,`length`),D(i)),o=Zv(e,t,n,`${r}[${i}]`),s=t.AddIndex(D(i));return w(a,t.UseUnevaluated()?Ne(o,s):o)}))}function Zg(e,t,n,r){return y(n.items,0,(n,i)=>he(r.length,i)||Qv(e,t,n,r[i])&&t.AddIndex(i))}function Qg(e,t,n,r,i,a){return Ce(i.items,0,(i,o)=>{let s=`${n}/items/${o}`,c=`${r}/${o}`;return he(a.length,o)||$v(e,t,s,c,i,a[o])&&t.AddIndex(o)})}function $g(e,t,n,r){let i=qp(n)?n.prefixItems.length:0,a=Zv(e,t,n.items,`element`),o=t.AddIndex(`index`),s=t.UseUnevaluated()?Ne(a,o):a;return tt(r,D(i),[`element`,`index`],s)}function e_(e,t,n,r){return y(r,qp(n)?n.prefixItems.length:0,(r,i)=>Qv(e,t,n.items,r)&&t.AddIndex(i))}function t_(e,t,n,r,i,a){return Ce(a,qp(i)?i.prefixItems.length:0,(a,o)=>$v(e,t,`${n}/items`,`${r}/${o}`,i.items,a)&&t.AddIndex(o))}function n_(e,t,n,r){return jp(n)?Xg(e,t,n,r):$g(e,t,n,r)}function r_(e,t,n,r){return jp(n)?Zg(e,t,n,r):e_(e,t,n,r)}function i_(e,t,n,r,i,a){return jp(i)?Qg(e,t,n,r,i,a):t_(e,t,n,r,i,a)}function a_(e){return gp(e)}function o_(e,t,n,r){if(!a_(n))return D(!0);let[i,a]=[Sm(),Sm()];return Ze(T(E(r,`reduce`),[st([i,a],lt(Z(e,t,n.contains,a),gt(i),i)),D(0)]),D(n.maxContains))}function s_(e,t,n,r){return a_(n)?he(r.reduce((r,i)=>Q(e,t,n.contains,i)?++r:r,0),n.maxContains):!0}function c_(e,t,n,r,i,a){let o=Rp(i)?i.minContains:1;return s_(e,t,i,a)||t.AddError({keyword:`contains`,schemaPath:n,instancePath:r,params:{minContains:o,maxContains:i.maxContains}})}function l_(e,t,n,r){return Ze(r,D(n.maximum))}function u_(e,t,n,r){return he(r,n.maximum)}function d_(e,t,n,r,i,a){return u_(e,t,i,a)||t.AddError({keyword:`maximum`,schemaPath:n,instancePath:r,params:{comparison:`<=`,limit:i.maximum}})}function f_(e,t,n,r){return Ze(E(r,`length`),D(n.maxItems))}function p_(e,t,n,r){return he(r.length,n.maxItems)}function m_(e,t,n,r,i,a){return p_(e,t,i,a)||t.AddError({keyword:`maxItems`,schemaPath:n,instancePath:r,params:{limit:i.maxItems}})}function h_(e,t,n,r){return et(r,D(n.maxLength))}function g_(e,t,n,r){return xe(r,n.maxLength)}function __(e,t,n,r,i,a){return g_(e,t,i,a)||t.AddError({keyword:`maxLength`,schemaPath:n,instancePath:r,params:{limit:i.maxLength}})}function v_(e,t,n,r){return Ze(E(rt(r),`length`),D(n.maxProperties))}function y_(e,t,n,r){return he(C(r).length,n.maxProperties)}function b_(e,t,n,r,i,a){return y_(e,t,i,a)||t.AddError({keyword:`maxProperties`,schemaPath:n,instancePath:r,params:{limit:i.maxProperties}})}function x_(e){return gp(e)}function S_(e,t,n,r){if(!x_(n))return D(!0);let[i,a]=[Sm(),Sm()];return Qe(T(E(r,`reduce`),[st([i,a],lt(Z(e,t,n.contains,a),gt(i),i)),D(0)]),D(n.minContains))}function C_(e,t,n,r){return x_(n)?ge(r.reduce((r,i)=>Q(e,t,n.contains,i)?++r:r,0),n.minContains):!0}function w_(e,t,n,r,i,a){return C_(e,t,i,a)||t.AddError({keyword:`contains`,schemaPath:n,instancePath:r,params:{minContains:i.minContains}})}function T_(e,t,n,r){return Qe(r,D(n.minimum))}function E_(e,t,n,r){return ge(r,n.minimum)}function D_(e,t,n,r,i,a){return E_(e,t,i,a)||t.AddError({keyword:`minimum`,schemaPath:n,instancePath:r,params:{comparison:`>=`,limit:i.minimum}})}function O_(e,t,n,r){return Qe(E(r,`length`),D(n.minItems))}function k_(e,t,n,r){return ge(r.length,n.minItems)}function A_(e,t,n,r,i,a){return k_(e,t,i,a)||t.AddError({keyword:`minItems`,schemaPath:n,instancePath:r,params:{limit:i.minItems}})}function j_(e,t,n,r){return $e(r,D(n.minLength))}function M_(e,t,n,r){return Se(r,n.minLength)}function N_(e,t,n,r,i,a){return M_(e,t,i,a)||t.AddError({keyword:`minLength`,schemaPath:n,instancePath:r,params:{limit:i.minLength}})}function P_(e,t,n,r){return Qe(E(rt(r),`length`),D(n.minProperties))}function F_(e,t,n,r){return ge(C(r).length,n.minProperties)}function I_(e,t,n,r,i,a){return F_(e,t,i,a)||t.AddError({keyword:`minProperties`,schemaPath:n,instancePath:r,params:{limit:i.minProperties}})}function L_(e,t,n,r){return _t(r,D(n.multipleOf))}function R_(e,t,n,r){return _e(r,n.multipleOf)}function z_(e,t,n,r,i,a){return R_(e,t,i,a)||t.AddError({keyword:`multipleOf`,schemaPath:n,instancePath:r,params:{multipleOf:i.multipleOf}})}function B_(e,t,n,r){return Fm(e,t,[n.not],r,Pe(Je(E(`results`,`length`),D(1))))}function V_(e,t,n,r){return Pe(Z(e,t,n.not,r))}function H_(e,t,n,r){return t.UseUnevaluated()?B_(e,t,n,r):V_(e,t,n,r)}function U_(e,t,n,r){let i=new dm;return!Q(e,i,n.not,r)&&t.Merge([i])}function W_(e,t,n,r,i,a){return U_(e,t,i,a)||t.AddError({keyword:`not`,schemaPath:n,instancePath:r,params:{}})}function G_(e,t,n,r){return Fm(e,t,n.oneOf,r,Je(E(`results`,`length`),D(1)))}function K_(e,t,n,r){return Je(T(E(ot(n.oneOf.map(n=>Z(e,t,n,r))),`reduce`),[st([`count`,`result`],lt(Je(`result`,D(!0)),gt(`count`),`count`)),D(0)]),D(1))}function q_(e,t,n,r){return t.UseUnevaluated()?G_(e,t,n,r):K_(e,t,n,r)}function J_(e,t,n,r){let i=n.oneOf.reduce((t,n)=>{let i=new dm;return Q(e,i,n,r)?[...t,i]:t},[]);return v(i.length,1)&&t.Merge(i)}function Y_(e,t,n,r,i,a){let o=[],s=[],c=i.oneOf.reduce((t,i,c)=>{let l=new pm,u=ey(e,l,`${n}/oneOf/${c}`,r,i,a);return u&&s.push(c),u||o.push(l),u?[...t,l]:t},[]),l=v(c.length,1)&&t.Merge(c);return!l&&v(s.length,0)&&o.forEach(e=>e.GetErrors().forEach(e=>t.AddError(e))),l||t.AddError({keyword:`oneOf`,schemaPath:n,instancePath:r,params:{passingSchemas:s}})}function X_(e,t,n,r){return T(E(hm(g(n.pattern)?new RegExp(n.pattern,`u`):n.pattern),`test`),[r])}function Z_(e,t,n,r){return(g(n.pattern)?new RegExp(n.pattern,`u`):n.pattern).test(r)}function Q_(e,t,n,r,i,a){return Z_(e,t,i,a)||t.AddError({keyword:`pattern`,schemaPath:n,instancePath:r,params:{pattern:i.pattern}})}function $_(e,t,n,r){return mt(S(n.patternProperties).map(([n,i])=>{let[a,o]=[Sm(),Sm()],s=Pe(T(E(hm(new RegExp(n,`u`)),`test`),[a])),c=Zv(e,t,i,o),l=t.AddKey(a),u=t.UseUnevaluated()?w(s,Ne(c,l)):w(s,c);return tt(nt(r),D(0),[`[${a}, ${o}]`,`_`],u)}))}function ev(e,t,n,r){return y(S(n.patternProperties),0,([n,i])=>{let a=new RegExp(n,`u`);return y(S(r),0,([n,r])=>!a.test(n)||Qv(e,t,i,r)&&t.AddKey(n))})}function tv(e,t,n,r,i,a){return Ce(S(i.patternProperties),0,([i,o])=>{let s=`${n}/patternProperties/${i}`,c=new RegExp(i,`u`);return Ce(S(a),0,([n,i])=>{let a=`${r}/${n}`;return!c.test(n)||$v(e,t,s,a,o,i)&&t.AddKey(n)})})}function nv(e,t,n,r){return mt(n.prefixItems.map((n,i)=>{let a=Ze(E(r,`length`),D(i)),o=Zv(e,t,n,`${r}[${i}]`),s=t.AddIndex(D(i));return w(a,t.UseUnevaluated()?Ne(o,s):o)}))}function rv(e,t,n,r){return v(r.length,0)||y(n.prefixItems,0,(n,i)=>he(r.length,i)||Qv(e,t,n,r[i])&&t.AddIndex(i))}function iv(e,t,n,r,i,a){return v(a.length,0)||Ce(i.prefixItems,0,(i,o)=>{let s=`${n}/prefixItems/${o}`,c=`${r}/${o}`;return he(a.length,o)||$v(e,t,s,c,i,a[o])&&t.AddIndex(o)})}function av(e,t){return e.includes(t)||Bt().exactOptionalPropertyTypes}function ov(e,t){return Ge(E(e,t))}function sv(e,t){return _(e[t])}function cv(e,t,n,r){let i=em(n)?n.required:[];return mt(S(n.properties).map(([n,a])=>{let o=Pe(it(r,D(n))),s=Zv(e,t,a,E(r,n)),c=t.AddKey(D(n)),l=t.UseUnevaluated()?Ne(s,c):s,u=i.includes(n)?l:w(o,l);return av(i,n)?u:w(ov(r,n),u)}))}function lv(e,t,n,r){let i=em(n)?n.required:[];return y(S(n.properties),0,([n,a])=>{let o=!x(r,n)||Qv(e,t,a,r[n])&&t.AddKey(n);return av(i,n)?o:sv(r,n)||o})}function uv(e,t,n,r,i,a){let o=em(i)?i.required:[];return Ce(S(i.properties),0,([i,s])=>{let c=`${n}/properties/${i}`,l=`${r}/${i}`,u=()=>!x(a,i)||$v(e,t,c,l,s,a[i])&&t.AddKey(i);return av(o,i)?u():sv(a,i)||u()})}function dv(e,t,n,r){let[i,a]=[Sm(),Sm()];return tt(rt(r),D(0),[i,a],Z(e,t,n.propertyNames,i))}function fv(e,t,n,r){return y(C(r),0,(r,i)=>Q(e,t,n.propertyNames,r))}function pv(e,t,n,r,i,a){let o=[];return Ce(C(a),0,(t,a)=>{let s=`${r}/${t}`,c=`${n}/propertyNames`,l=ey(e,new pm,c,s,i.propertyNames,t);return l||o.push(t),l})||t.AddError({keyword:`propertyNames`,schemaPath:n,instancePath:r,params:{propertyNames:o}})}function mv(e,t,n,r){return oy(e,t,e.RecursiveRef(n)??!1,r)}function hv(e,t,n,r){let i=e.RecursiveRef(n)??!1;return Y(i)&&Q(e,t,i,r)}function gv(e,t,n,r,i,a){let o=e.RecursiveRef(i)??!1;return Y(o)&&ey(e,t,`#`,r,o,a)}function _v(e,t,n,r){let i=st([`context`,`value`],oy(e,t,n,`value`));return T(st([`context`,`value`],ut([dt(`nextContext`,ct(`CheckContext`,[])),dt(`result`,T(i,[`nextContext`,`value`])),ft(`result`,t.Merge(`[nextContext]`)),pt(`result`)])),[`context`,r])}function vv(e,t,n,r){return oy(e,t,n,r)}function yv(e,t,n,r){let i=e.Ref(n)??!1;return t.UseUnevaluated()?_v(e,t,i,r):vv(e,t,i,r)}function bv(e,t,n,r){let i=e.Ref(n)??!1,a=new dm,o=Y(i)&&Q(e,a,i,r);return o&&t.Merge([a]),o}function xv(e,t,n,r,i,a){let o=e.Ref(i)??!1,s=new pm,c=Y(o)&&ey(e,s,`#`,r,o,a);return c&&t.Merge([s]),c||s.GetErrors().forEach(e=>t.AddError(e)),c}function Sv(e,t,n,r){return mt(n.required.map(e=>it(r,D(e))))}function Cv(e,t,n,r){return y(n.required,0,e=>x(r,e))}function wv(e,t,n,r,i,a){let o=[];return Ce(i.required,0,e=>{let t=x(a,e);return t||o.push(e),t})||t.AddError({keyword:`required`,schemaPath:n,instancePath:r,params:{requiredProperties:o}})}function Tv(e,t,n,r){return v(n,`object`)?Ve(r):v(n,`array`)?Fe(r):v(n,`boolean`)?Le(r):v(n,`integer`)?Re(r):v(n,`number`)?Be(r):v(n,`null`)?ze(r):v(n,`string`)?Ue(r):v(n,`bigint`)?Ie(r):v(n,`constructor`)?qe(r):v(n,`function`)?Ke(r):v(n,`symbol`)?We(r):v(n,`undefined`)||v(n,`void`)?Ge(r):D(!0)}function Ev(e,t,n,r,i){return v(n,`object`)?de(i):v(n,`array`)?d(i):v(n,`boolean`)?p(i):v(n,`integer`)?le(i):v(n,`number`)?m(i):v(n,`null`)?ue(i):v(n,`string`)?g(i):v(n,`bigint`)?f(i):v(n,`constructor`)?se(i):v(n,`function`)?ce(i):v(n,`symbol`)?fe(i):v(n,`undefined`)||v(n,`void`)?_(i):!0}function Dv(e,t,n,r){return ht(n.map(n=>Tv(e,t,n,r)))}function Ov(e,t,n,r,i){return n.some(n=>Ev(e,t,n,r,i))}function kv(e,t,n,r){return d(n.type)?Dv(e,t,n.type,r):Tv(e,t,n.type,r)}function Av(e,t,n,r){return d(n.type)?Ov(e,t,n.type,n,r):Ev(e,t,n.type,n,r)}function jv(e,t,n,r,i,a){return(d(i.type)?Ov(e,t,i.type,i,a):Ev(e,t,i.type,i,a))||t.AddError({keyword:`type`,schemaPath:n,instancePath:r,params:{type:i.type}})}function Mv(e,t,n,r){let[i,a]=[Sm(),Sm()],o=T(E(`context`,`GetIndices`),[]),s=T(E(`indices`,`has`),[i]),c=Z(e,t,n.unevaluatedItems,a),l=T(E(`context`,`AddIndex`),[i]),u=tt(r,D(0),[a,i],Ne(w(s,c),l));return T(st([`context`],ut([dt(`indices`,o),pt(u)])),[`context`])}function Nv(e,t,n,r){let i=t.GetIndices();return y(r,0,(r,a)=>(i.has(a)||Q(e,t,n.unevaluatedItems,r))&&t.AddIndex(a))}function Pv(e,t,n,r,i,a){let o=t.GetIndices(),s=[];return Ce(a,0,(a,c)=>{let l=new pm,u=(o.has(c)||ey(e,l,n,r,i.unevaluatedItems,a))&&t.AddIndex(c);return u||s.push(c),u})||t.AddError({keyword:`unevaluatedItems`,schemaPath:n,instancePath:r,params:{unevaluatedItems:s}})}function Fv(e,t,n,r){let[i,a]=[Sm(),Sm()],o=T(E(`context`,`GetKeys`),[]),s=T(E(`keys`,`has`),[i]),c=T(E(`context`,`AddKey`),[i]),l=Z(e,t,n.unevaluatedProperties,a),u=tt(nt(r),D(0),[`[${i}, ${a}]`,`_`],w(s,Ne(l,c)));return T(st([`context`],ut([dt(`keys`,o),pt(u)])),[`context`])}function Iv(e,t,n,r){let i=t.GetKeys();return y(S(r),0,([r,a])=>i.has(r)||Q(e,t,n.unevaluatedProperties,a)&&t.AddKey(r))}function Lv(e,t,n,r,i,a){let o=t.GetKeys(),s=[];return Ce(S(a),0,([a,c])=>{let l=new pm,u=o.has(a)||ey(e,l,n,r,i.unevaluatedProperties,c)&&t.AddKey(a);return u||s.push(a),u})||t.AddError({keyword:`unevaluatedProperties`,schemaPath:n,instancePath:r,params:{unevaluatedProperties:s}})}function Rv(e){return!v(e.uniqueItems,!1)}function zv(e,t,n,r){return Rv(n)?Je(E(ct(`Set`,[T(E(r,`map`),[E(`Hashing`,`Hash`)])]),`size`),E(r,`length`)):D(!0)}function Bv(e,t,n,r){if(!Rv(n))return!0;let i=new Set(r.map(_r)).size,a=r.length;return v(i,a)}function Vv(e,t,n,r,i,a){if(!Rv(i))return!0;let o=new Set,s=a.reduce((e,t,n)=>{let r=_r(t);return o.has(r)?[...e,n]:(o.add(r),e)},[]);return v(s.length,0)||t.AddError({keyword:`uniqueItems`,schemaPath:n,instancePath:r,params:{duplicateItems:s}})}function Hv(e,t){return nm(e)&&(d(e.type)&&e.type.includes(t)||v(e.type,t))}function Uv(e){return Hv(e,`object`)}function Wv(e){return cp(e)&&(dp(e)||vp(e)||yp(e)||bp(e)||Jp(e)||Kp(e)||Yp(e)||Vp(e)||Ip(e)||em(e)||am(e))}function Gv(e){return Hv(e,`array`)}function Kv(e){return cp(e)&&(up(e)||Ap(e)||gp(e)||Np(e)||Pp(e)||Rp(e)||zp(e)||qp(e)||im(e)||rm(e))}function qv(e){return Hv(e,`string`)}function Jv(e){return cp(e)&&(Bp(e)||Fp(e)||Dp(e)||Gp(e))}function Yv(e){return Hv(e,`number`)||Hv(e,`bigint`)}function Xv(e){return cp(e)&&(Lp(e)||Mp(e)||Tp(e)||Ep(e)||Hp(e))}function Zv(e,t,n,r){return t.UseUnevaluated()?Ne(Ne(t.Push(),Z(e,t,n,r)),t.Pop()):Z(e,t,n,r)}function Z(e,t,n,r){e.Push(n);let i=[];if(lp(n))return Km(e,t,n,r);if(nm(n)&&i.push(kv(e,t,n,r)),Wv(n)){let a=[];em(n)&&a.push(Sv(e,t,n,r)),dp(n)&&a.push(Mm(e,t,n,r)),vp(n)&&a.push(nh(e,t,n,r)),yp(n)&&a.push(ah(e,t,n,r)),bp(n)&&a.push(ch(e,t,n,r)),Kp(n)&&a.push($_(e,t,n,r)),Jp(n)&&a.push(cv(e,t,n,r)),Yp(n)&&a.push(dv(e,t,n,r)),Vp(n)&&a.push(P_(e,t,n,r)),Ip(n)&&a.push(v_(e,t,n,r));let o=mt(a),s=w(Pe(Ve(r)),o);i.push(Uv(n)?o:s)}if(Kv(n)){let a=[];up(n)&&a.push(wm(e,t,n,r)),gp(n)&&a.push($m(e,t,n,r)),Ap(n)&&a.push(n_(e,t,n,r)),Np(n)&&a.push(o_(e,t,n,r)),Pp(n)&&a.push(f_(e,t,n,r)),Rp(n)&&a.push(S_(e,t,n,r)),zp(n)&&a.push(O_(e,t,n,r)),qp(n)&&a.push(nv(e,t,n,r)),rm(n)&&a.push(zv(e,t,n,r));let o=mt(a),s=w(Pe(Fe(r)),o);i.push(Gv(n)?o:s)}if(Jv(n)){let a=[];Fp(n)&&a.push(h_(e,t,n,r)),Bp(n)&&a.push(j_(e,t,n,r)),Dp(n)&&a.push(Wg(e,t,n,r)),Gp(n)&&a.push(X_(e,t,n,r));let o=mt(a),s=w(Pe(Ue(r)),o);i.push(qv(n)?o:s)}if(Xv(n)){let a=[];Tp(n)&&a.push(_h(e,t,n,r)),Ep(n)&&a.push(bh(e,t,n,r)),Mp(n)&&a.push(l_(e,t,n,r)),Lp(n)&&a.push(T_(e,t,n,r)),Hp(n)&&a.push(L_(e,t,n,r));let o=mt(a),s=w(Pe(w(Be(r),Ie(r))),o);i.push(Yv(n)?o:s)}$p(n)&&i.push(yv(e,t,n,r)),Qp(n)&&i.push(mv(e,t,n,r)),Sp(n)&&i.push(dh(e,t,n,r)),hp(n)&&i.push(Ym(e,t,n,r)),wp(n)&&i.push(mh(e,t,n,r)),kp(n)&&i.push(qg(e,t,n,r)),Up(n)&&i.push(H_(e,t,n,r)),fp(n)&&i.push(Rm(e,t,n,r)),mp(n)&&i.push(Um(e,t,n,r)),Wp(n)&&i.push(q_(e,t,n,r)),im(n)&&i.push(w(Pe(Fe(r)),Mv(e,t,n,r))),am(n)&&i.push(w(Pe(He(r)),Fv(e,t,n,r))),sp(n)&&i.push(vm(e,t,n,r));let a=mt(i);return e.Pop(n),a}function Qv(e,t,n,r){return t.Push()&&Q(e,t,n,r)&&t.Pop()}function Q(e,t,n,r){e.Push(n);let i=lp(n)?qm(e,t,n,r):(!nm(n)||Av(e,t,n,r))&&(!(h(r)&&!d(r))||(!em(n)||Cv(e,t,n,r))&&(!dp(n)||Nm(e,t,n,r))&&(!vp(n)||rh(e,t,n,r))&&(!yp(n)||oh(e,t,n,r))&&(!bp(n)||lh(e,t,n,r))&&(!Kp(n)||ev(e,t,n,r))&&(!Jp(n)||lv(e,t,n,r))&&(!Yp(n)||fv(e,t,n,r))&&(!Vp(n)||F_(e,t,n,r))&&(!Ip(n)||y_(e,t,n,r)))&&(!d(r)||(!up(n)||Tm(e,t,n,r))&&(!gp(n)||eh(e,t,n,r))&&(!Ap(n)||r_(e,t,n,r))&&(!Np(n)||s_(e,t,n,r))&&(!Pp(n)||p_(e,t,n,r))&&(!Rp(n)||C_(e,t,n,r))&&(!zp(n)||k_(e,t,n,r))&&(!qp(n)||rv(e,t,n,r))&&(!rm(n)||Bv(e,t,n,r)))&&(!g(r)||(!Fp(n)||g_(e,t,n,r))&&(!Bp(n)||M_(e,t,n,r))&&(!Dp(n)||Gg(e,t,n,r))&&(!Gp(n)||Z_(e,t,n,r)))&&(!(m(r)||f(r))||(!Tp(n)||vh(e,t,n,r))&&(!Ep(n)||xh(e,t,n,r))&&(!Mp(n)||u_(e,t,n,r))&&(!Lp(n)||E_(e,t,n,r))&&(!Hp(n)||R_(e,t,n,r)))&&(!$p(n)||bv(e,t,n,r))&&(!Qp(n)||hv(e,t,n,r))&&(!Sp(n)||fh(e,t,n,r))&&(!hp(n)||Xm(e,t,n,r))&&(!wp(n)||hh(e,t,n,r))&&(!kp(n)||Jg(e,t,n,r))&&(!Up(n)||U_(e,t,n,r))&&(!fp(n)||zm(e,t,n,r))&&(!mp(n)||Wm(e,t,n,r))&&(!Wp(n)||J_(e,t,n,r))&&(!im(n)||!d(r)||Nv(e,t,n,r))&&(!am(n)||!h(r)||Iv(e,t,n,r))&&(!sp(n)||ym(e,t,n,r));return e.Pop(n),i}function $v(e,t,n,r,i,a){return t.Push()&&ey(e,t,n,r,i,a)&&t.Pop()}function ey(e,t,n,r,i,a){e.Push(i);let o=lp(i)?Jm(e,t,n,r,i,a):!!((!nm(i)||jv(e,t,n,r,i,a))&+(!(h(a)&&!d(a))||!!((!em(i)||wv(e,t,n,r,i,a))&+(!dp(i)||Pm(e,t,n,r,i,a))&(!vp(i)||ih(e,t,n,r,i,a))&(!yp(i)||sh(e,t,n,r,i,a))&(!bp(i)||uh(e,t,n,r,i,a))&(!Kp(i)||tv(e,t,n,r,i,a))&(!Jp(i)||uv(e,t,n,r,i,a))&(!Yp(i)||pv(e,t,n,r,i,a))&(!Vp(i)||I_(e,t,n,r,i,a))&(!Ip(i)||b_(e,t,n,r,i,a))))&(!d(a)||!!((!up(i)||Em(e,t,n,r,i,a))&+(!gp(i)||th(e,t,n,r,i,a))&(!Ap(i)||i_(e,t,n,r,i,a))&(!Np(i)||c_(e,t,n,r,i,a))&(!Pp(i)||m_(e,t,n,r,i,a))&(!Rp(i)||w_(e,t,n,r,i,a))&(!zp(i)||A_(e,t,n,r,i,a))&(!qp(i)||iv(e,t,n,r,i,a))&(!rm(i)||Vv(e,t,n,r,i,a))))&(!g(a)||!!((!Fp(i)||__(e,t,n,r,i,a))&+(!Bp(i)||N_(e,t,n,r,i,a))&(!Dp(i)||Kg(e,t,n,r,i,a))&(!Gp(i)||Q_(e,t,n,r,i,a))))&(!(m(a)||f(a))||!!((!Tp(i)||yh(e,t,n,r,i,a))&+(!Ep(i)||Sh(e,t,n,r,i,a))&(!Mp(i)||d_(e,t,n,r,i,a))&(!Lp(i)||D_(e,t,n,r,i,a))&(!Hp(i)||z_(e,t,n,r,i,a))))&(!$p(i)||xv(e,t,n,r,i,a))&(!Qp(i)||gv(e,t,n,r,i,a))&(!Sp(i)||ph(e,t,n,r,i,a))&(!hp(i)||Zm(e,t,n,r,i,a))&(!wp(i)||gh(e,t,n,r,i,a))&(!kp(i)||Yg(e,t,n,r,i,a))&(!Up(i)||W_(e,t,n,r,i,a))&(!fp(i)||Bm(e,t,n,r,i,a))&(!mp(i)||Gm(e,t,n,r,i,a))&(!Wp(i)||Y_(e,t,n,r,i,a))&(!im(i)||!d(a)||Pv(e,t,n,r,i,a))&(!am(i)||!h(a)||Lv(e,t,n,r,i,a)))&&(!sp(i)||bm(e,t,n,r,i,a));return e.Pop(i),o}const ty=new Map;function ny(e,t,n,r){return e.UseUnevaluated()?T(`check_${n}`,[`context`,r]):T(`check_${n}`,[r])}function ry(e,t,n,r){let i=Z(e,t,n,`value`);return t.UseUnevaluated()?dt(`check_${r}`,st([`context`,`value`],i)):dt(`check_${r}`,st([`value`],i))}function iy(){ty.clear()}function ay(){return[...ty.values()]}function oy(e,t,n,r){let i=cp(n)?_r({__baseURL:e.BaseURL().href,...n}):_r(n),a=ny(t,n,i,r);return ty.has(i)?a:(ty.set(i,``),ty.set(i,ry(e,t,n,i)),a)}function sy(e,t){return h(t)&&!we(e)?t[e]:void 0}function cy(e,t){return e.reduce((e,t)=>sy(t,e),t)}function ly(e){if(v(e.length,0))return[];let t=e.split(`/`).map(e=>e.replace(/~1/g,`/`).replace(/~0/g,`~`));return t.length>0&&t[0]===``?t.slice(1):t}function uy(e,t){return cy(ly(t),e)}function dy(e,t,n){if(e.$id===n.hash)return e;let r=new URL(e.$id,t.href),i=new URL(n.href,t.href);if(v(r.pathname,i.pathname))return n.hash.startsWith(`#`)?my(e,t,n):e}function fy(e,t,n){let r=new URL(`#${e.$anchor}`,t.href),i=new URL(n.href,t.href);return v(r.href,i.href)?e:void 0}function py(e,t,n){let r=new URL(`#${e.$dynamicAnchor}`,t.href),i=new URL(n.href,t.href);return v(r.href,i.href)?e:void 0}function my(e,t,n){if(n.href.endsWith(`#`))return e;if(!n.hash.startsWith(`#`))return;let r=decodeURIComponent(n.hash.slice(1));if(r.startsWith(`/`))return uy(e,r)}function hy(e,t,n){if(Op(e)){let r=dy(e,t,n);if(!_(r))return r}if(pp(e)){let r=fy(e,t,n);if(!_(r))return r}if(xp(e)){let r=py(e,t,n);if(!_(r))return r}return my(e,t,n)}function gy(e,t,n){return e.reduce((e,r)=>{let i=vy(r,t,n);return _(i)?e:i},void 0)}function _y(e,t,n){return C(e).reduce((r,i)=>{let a=vy(e[i],t,n);return _(a)?r:a},void 0)}function vy(e,t,n){let r=cp(e)&&Op(e)?new URL(e.$id,t.href):t;if(cp(e)){let t=hy(e,r,n);if(!_(t))return t}if(d(e))return gy(e,r,n);if(h(e))return _y(e,r,n)}function yy(e,t){let n=new URL(`http://unknown/`),r=Op(e)?new URL(e.$id,n.href):n;return vy(e,r,new URL(t,r.href))}function by(e,t,n,r){let i=n.$dynamicRef.startsWith(`#`)?yy(t,n.$dynamicRef):yy(e,n.$dynamicRef);if(!_(i))return!cp(i)||!xp(i)||new URL(n.$dynamicRef,`http://unknown/`).hash.startsWith(`#/`)?i:r.find(e=>e.$dynamicAnchor===i.$dynamicAnchor)??i}var xy=function(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)},Sy,Cy,wy,Ty,Ey,Dy=class{constructor(e,t){Sy.add(this),this.context=e,this.schema=t,this.ids=[],this.anchors=[],this.recursiveAnchors=[],this.dynamicAnchors=[]}BaseURL(){return this.ids.reduce((e,t)=>new URL(t.$id,e),new URL(`http://unknown`))}Base(){return this.ids[this.ids.length-1]??this.schema}Push(e){cp(e)&&(Op(e)&&(this.ids.push(e),xy(this,Sy,`m`,Cy).call(this,e)),pp(e)&&this.anchors.push(e),Zp(e)&&this.recursiveAnchors.push(e),xp(e)&&this.dynamicAnchors.push(e))}Pop(e){cp(e)&&(Op(e)&&(this.ids.pop(),xy(this,Sy,`m`,wy).call(this,e)),pp(e)&&this.anchors.pop(),Zp(e)&&this.recursiveAnchors.pop(),xp(e)&&this.dynamicAnchors.pop())}Ref(e){return xy(this,Sy,`m`,Ty).call(this,e)??xy(this,Sy,`m`,Ey).call(this,e)}RecursiveRef(e){return Zp(this.Base())?yy(this.recursiveAnchors[0],e.$recursiveRef):yy(this.Base(),e.$recursiveRef)}DynamicRef(e){let t=this.schema;return by(t,this.Base(),e,this.dynamicAnchors)}};Sy=new WeakSet,Cy=function e(t,n=!0){if(!cp(t))return;let r=t;if(!(!n&&Op(r))){!n&&xp(r)&&this.dynamicAnchors.push(r);for(let t of C(r))xy(this,Sy,`m`,e).call(this,r[t],!1)}},wy=function e(t,n=!0){if(!cp(t))return;let r=t;if(!(!n&&Op(r))){!n&&xp(r)&&this.dynamicAnchors.pop();for(let t of C(r))xy(this,Sy,`m`,e).call(this,r[t],!1)}},Ty=function(e){return x(this.context,e.$ref)?this.context[e.$ref]:void 0},Ey=function(e){let t=this.schema;return e.$ref.startsWith(`#`)?yy(this.Base(),e.$ref):yy(t,e.$ref)};function Oy(e){return`${e.Functions().join(`; +`)}; return (value) => { ${(e.UseUnevaluated()?[`const context = new CheckContext({}, {})`,`return ${e.Entry()}`]:[`return ${e.Entry()}`]).join(`; `)} }`}function ky(e,t){return Vn(`CheckContext`,`Guard`,`Format`,`Hashing`,e.External().identifier,t)(dm,oe,Ug,Un,e.External().variables)}function Ay(e){let t=new Dy(e.Context(),e.Schema()),n=new dm;return r=>Q(t,n,e.Schema(),r)}function jy(e,t){return Bn()?ky(e,t):Ay(e)}var My=class{constructor(e,t,n){this.isAccelerated=e,this.code=t,this.check=n}IsAccelerated(){return this.isAccelerated}Code(){return this.code}Check(e){return this.check(e)}},Ny=class{constructor(e,t,n,r,i,a){this.context=e,this.schema=t,this.external=n,this.functions=r,this.entry=i,this.useUnevaluated=a}Context(){return this.context}Schema(){return this.schema}UseUnevaluated(){return this.useUnevaluated}External(){return this.external}Functions(){return this.functions}Entry(){return this.entry}Evaluate(){let e=Oy(this),t=jy(this,e);return new My(Bn(),e,t)}};function Py(...e){let[t,n]=Dn(e,{2:(e,t)=>[e,t],1:e=>[{},e]});gm(),iy();let r=new Dy(t,n),i=new um(lm(t,n)),a=oy(r,i,n,`value`),o=ay();return new Ny(t,n,_m(),o,a,i.UseUnevaluated())}function Fy(...e){let[t,n,r]=Dn(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]}),i=Bt(),a=br(),o=[];return[ey(new Dy(t,n),new fm(e=>{if(!ge(o.length,i.maxErrors))return o.push({...e,message:a(e)})}),`#`,``,n,r),o]}function Iy(...e){let[t,n,r]=Dn(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]});return Q(new Dy(t,n),new dm,n,r)}function Ly(...e){let[t,n,r]=Dn(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]});return Iy(t,n,r)}function Ry(...e){let[t,n,r]=Dn(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]}),[i,a]=Fy(t,n,r);return a}var zy=class extends Error{constructor(e,t,n){super(e),Object.defineProperty(this,"cause",{value:{source:e,errors:n,value:t},writable:!1,configurable:!1,enumerable:!1})}};function By(e,t,n){return d(n)?n.map(n=>Zy(e,t.items,n)):n}function Vy(e,t,n){return Zy({...e,...t.$defs},sn(t.$ref),n)}function Hy(e,t){let n=x(t,`unevaluatedProperties`)?{additionalProperties:t.unevaluatedProperties}:{},r=np(Zf(e,t));return P(r)?zf(r,n):r}function Uy(e,t,n){return Zy(e,Hy(e,t),n)}function Wy(e){return x(e,`additionalProperties`)?e.additionalProperties:void 0}function Gy(e,t,n){if(!h(n)||d(n))return n;let r=Wy(t);for(let i of C(n)){if(x(t.properties,i)){n[i]=Zy(e,t.properties[i],n[i]);continue}if(p(r)&&v(r,!0)||Wt(r)&&Ly(e,r,n[i])){n[i]=Zy(e,r,n[i]);continue}delete n[i]}return n}function Ky(e,t,n){if(!h(n))return n;let r=Wy(t),[i,a]=[new RegExp(wa(t)),Ea(t)];for(let t of C(n)){if(i.test(t)){n[t]=Zy(e,a,n[t]);continue}if(p(r)&&v(r,!0)||Wt(r)&&Ly(e,r,n[t])){n[t]=Zy(e,r,n[t]);continue}delete n[t]}return n}function qy(e,t,n){return x(e,t.$ref)?Zy(e,e[t.$ref],n):n}function Jy(e,t,n){if(!d(n))return n;let r=Math.min(n.length,t.items.length);for(let i=0;inb(e))}function nb(e){return Qy(e,M(e)?Qt(nb(e.items),$t(e)):F(e)?In(tb(e.allOf)):B(e)?z(eb(e.anyOf)):P(e)?N($y(e.properties)):Da(e)?xa(Ta(e),nb(Ea(e))):V(e)?vi(tb(e.items)):e)}function rb(e){return nb(e)}function ib(...e){let[t,n,r]=Dn(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]});return Zy(t,Bt().unionPrioritySort?rb(n):n,r)}function ab(e){return h(e)&&x(e,`value`)}function $(e){return{value:e}}function ob(e){return d(e)?$(e):$([e])}function sb(e){return v(e,!0)?$(BigInt(1)):$(BigInt(0))}const cb=/^-?(0|[1-9]\d*)n$/,lb=/^-?(0|[1-9]\d*)\.\d+$/,ub=/^-?(0|[1-9]\d*)$/;function db(e){return cb.test(e)}function fb(e){return lb.test(e)}function pb(e){return ub.test(e)}function mb(e){let t=e.toLowerCase();return db(e)?$(BigInt(e.slice(0,e.length-1))):fb(e)?$(BigInt(e.split(`.`)[0])):pb(e)?$(BigInt(e)):v(t,`false`)?$(BigInt(0)):v(t,`true`)?$(BigInt(1)):void 0}function hb(e){return f(e)?$(e):p(e)?sb(e):m(e)?$(BigInt(Math.trunc(e))):ue(e)?$(BigInt(0)):g(e)?mb(e):_(e)?$(BigInt(0)):void 0}function gb(e){return v(e,BigInt(0))?$(!1):v(e,BigInt(1))?$(!0):void 0}function _b(e){return v(e,0)?$(!1):v(e,1)?$(!0):void 0}function vb(e){return v(e.toLowerCase(),`false`)?$(!1):v(e.toLowerCase(),`true`)?$(!0):v(e,`0`)?$(!1):v(e,`1`)?$(!0):void 0}function yb(e){return f(e)?gb(e):p(e)?$(e):m(e)?_b(e):ue(e)?$(!1):g(e)?vb(e):_(e)?$(!1):void 0}function bb(e){return v(e,BigInt(0))?$(null):void 0}function xb(e){return v(e,!1)?$(null):void 0}function Sb(e){return v(e,0)?$(null):void 0}function Cb(e){let t=e.toLowerCase();return v(t,`undefined`)||v(t,`null`)||v(e,``)||v(e,`0`)?$(null):void 0}function wb(e){return f(e)?bb(e):p(e)?xb(e):m(e)?Sb(e):ue(e)?$(null):g(e)?Cb(e):_(e)?$(null):void 0}const Tb=BigInt(2**53-1),Eb=BigInt(-(2**53-1));function Db(e){return e<=Tb&&e>=Eb?$(Number(e)):void 0}function Ob(e){return $(+!!e)}function kb(e){let t=+e;if(m(t))return $(t);let n=e.toLowerCase();if(v(n,`false`))return $(0);if(v(n,`true`))return $(1);let r=hb(e);if(ab(r))return r.value<=Tb&&r.value>=Eb?$(Number(r.value)):void 0}function Ab(e){return f(e)?Db(e):p(e)?Ob(e):m(e)?$(e):ue(e)?$(0):g(e)?kb(e):_(e)?$(0):void 0}function jb(e){return f(e)||p(e)||m(e)?$(e.toString()):ue(e)?$(`null`):g(e)?$(e):_(e)?$(``):void 0}function Mb(e){return v(e,BigInt(0))?$(void 0):void 0}function Nb(e){return v(e,!1)?$(void 0):void 0}function Pb(e){return v(e,0)?$(void 0):void 0}function Fb(e){let t=e.toLowerCase();return v(t,`undefined`)||v(t,`null`)||v(e,``)||v(e,`0`)?$(void 0):void 0}function Ib(e){return f(e)?Mb(e):p(e)?Nb(e):m(e)?Pb(e):ue(e)?$(void 0):g(e)?Fb(e):_(e)?$(e):void 0}function Lb(e,t,n){return ob(n).value.map(n=>ux(e,t.items,n))}function Rb(e,t,n){let r=hb(n);return ab(r)?r.value:n}function zb(e,t,n){let r=yb(n);return ab(r)?r.value:n}function Bb(e,t,n){return ux({...e,...t.$defs},sn(t.$ref),n)}function Vb(e,t,n){return ux(e,np(t),n)}function Hb(e,t,n){let r=Ab(n);return ab(r)?Math.trunc(r.value):n}function Ub(e,t,n){return ux(e,np(Zf(e,t)),n)}function Wb(e,t,n){let r=hb(n);return ab(r)&&v(t.const,r.value)?r.value:n}function Gb(e,t,n){let r=yb(n);return ab(r)&&v(t.const,r.value)?r.value:n}function Kb(e,t,n){let r=Ab(n);return ab(r)&&v(t.const,r.value)?r.value:n}function qb(e,t,n){let r=jb(n);return ab(r)&&v(t.const,r.value)?r.value:n}function Jb(e,t,n){return v(t.const,n)?n:Rr(t)?Wb(e,t,n):zr(t)?Gb(e,t,n):Br(t)?Kb(e,t,n):Vr(t)?qb(e,t,n):Hn()}function Yb(e,t,n){let r=wb(n);return ab(r)?r.value:n}function Xb(e,t,n){let r=Ab(n);return ab(r)?r.value:n}function Zb(e,t,n,r){let i=C(r);for(let[a,o]of t)for(let t of i)a.test(t)||(r[t]=ux(e,n,r[t]));return r}function Qb(e,t,n){return gn(e)&&_(n[t])}function $b(e,t,n){let r=Te(t.properties),i=C(n);for(let[t,a]of r)for(let r of i)!t.test(r)||Qb(a,r,n)||(n[r]=ux(e,a,n[r]));return x(t,`additionalProperties`)&&h(t.additionalProperties)?Zb(e,r,t.additionalProperties,n):n}function ex(e,t,n){return de(n)?$b(e,t,n):n}function tx(e,t,n){let r=Te(t.patternProperties),i=C(n);for(let[t,a]of r)for(let r of i)t.test(r)&&(n[r]=ux(e,a,n[r]));return x(t,`additionalProperties`)&&h(t.additionalProperties)?Zb(e,r,t.additionalProperties,n):n}function nx(e,t,n){return de(n)?tx(e,t,n):n}function rx(e,t,n){return x(e,t.$ref)?ux(e,e[t.$ref],n):n}function ix(e,t,n){let r=jb(n);return ab(r)?r.value:n}function ax(e,t,n){return ux(e,np(t),n)}function ox(e,t,n){if(!d(n))return n;for(let r=0;rLy(e,t,n)))return n;let r=t.anyOf.map(t=>ux(e,t,Yy(n))).find(n=>Ly(e,t,n));return _(r)?n:r}function lx(e,t,n){return ab(Ib(n))?void 0:n}function ux(e,t,n){return M(t)?Lb(e,t,n):Ar(t)?Rb(e,t,n):jr(t)?zb(e,t,n):wn(t)?Bb(e,t,n):Fn(t)?Vb(e,t,n):Pr(t)?Hb(e,t,n):F(t)?Ub(e,t,n):R(t)?Jb(e,t,n):Ur(t)?Yb(e,t,n):Kr(t)?Xb(e,t,n):P(t)?ex(e,t,n):Da(t)?nx(e,t,n):cn(t)?rx(e,t,n):Xr(t)?ix(e,t,n):Uo(t)?ax(e,t,n):V(t)?ox(e,t,n):Ma(t)?sx(e,t,n):B(t)?cx(e,t,n):Na(t)?lx(e,t,n):n}function dx(...e){let[t,n,r]=Dn(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]});return ux(t,n,r)}function fx(e,t,n){if(!d(n))return n;for(let r=0;r[e,t,n],2:(e,t)=>[{},e,t]});return xx(t,n,r)}function Cx(e){return(...t)=>{let[n,r,i]=Dn(t,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]});return e.reduce((e,t)=>t(n,r,e),i)}}function wx(e,t,n){return t[`~codec`].decode(n)}function Tx(e,t,n){return t[`~codec`].encode(n)}function Ex(e,t,n,r){return xr(n)?v(e,`Decode`)?wx(t,n,r):Tx(t,n,r):r}function Dx(e,t,n,r){if(!d(r))return r;for(let i=0;i({...e,...t}),{})}function Mx(e,t){for(let n of t)if(!Ae(e,n))return n;return e}function Nx(e,t,n,r){if(v(n.allOf.length,0))return Ex(e,t,n,r);let i=n.allOf.map(n=>Xx(e,t,n,ib(n,Yy(r))));return Ex(e,t,n,i.every(e=>h(e))?jx(i):Mx(r,i))}function Px(e,t,n,r){if(v(n.allOf.length,0))return Ex(e,t,n,r);let i=Ex(e,t,n,r),a=n.allOf.map(n=>Xx(e,t,n,ib(n,Yy(i))));return a.every(e=>h(e))?jx(a):Mx(i,a)}function Fx(e,t,n,r){return v(e,`Decode`)?Nx(e,t,n,r):Px(e,t,n,r)}function Ix(e,t,n,r){if(!de(r))return r;for(let i of C(n.properties))!x(r,i)||Qb(n.properties[i],i,r)||(r[i]=Xx(e,t,n.properties[i],r[i]));return Ex(e,t,n,r)}function Lx(e,t,n,r){let i=Ex(e,t,n,r);if(!de(i))return i;for(let r of C(n.properties))!x(i,r)||Qb(n.properties[r],r,i)||(i[r]=Xx(e,t,n.properties[r],i[r]));return i}function Rx(e,t,n,r){return v(e,`Decode`)?Ix(e,t,n,r):Lx(e,t,n,r)}function zx(e,t,n,r){if(!de(r))return r;let i=new RegExp(wa(n));for(let a of C(r))i.test(a)&&(r[a]=Xx(e,t,Ea(n),r[a]));return Ex(e,t,n,r)}function Bx(e,t,n,r){let i=Ex(e,t,n,r);if(!de(i))return i;let a=new RegExp(wa(n));for(let r of C(i))a.test(r)&&(i[r]=Xx(e,t,Ea(n),i[r]));return i}function Vx(e,t,n,r){return v(e,`Decode`)?zx(e,t,n,r):Bx(e,t,n,r)}function Hx(e,t,n,r){return x(t,n.$ref)?Xx(e,t,t[n.$ref],r):r}function Ux(e,t,n,r){return v(e,`Decode`)?Ex(e,t,n,Hx(e,t,n,r)):Hx(e,t,n,Ex(e,t,n,r))}function Wx(e,t,n,r){if(!d(r))return r;for(let i=0;iYy(n),(e,t,n)=>Sx(e,t,n),(e,t,n)=>dx(e,t,n),(e,t,n)=>ib(e,t,n),(e,t,n)=>Qx(e,t,n),(e,t,n)=>$x(e,t,n)]);function tS(...e){let[t,n,r]=Dn(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]});return eS(t,n,r)}var nS=class extends zy{constructor(e,t){super(`Encode`,e,t)}};function rS(e,t,n){if(!Ly(e,t,n))throw new nS(n,Ry(e,t,n));return n}function iS(e,t,n){return Xx(`Encode`,e,Bt().unionPrioritySort?rb(t):t,n)}const aS=Cx([(e,t,n)=>Yy(n),(e,t,n)=>iS(e,t,n),(e,t,n)=>Sx(e,t,n),(e,t,n)=>dx(e,t,n),(e,t,n)=>ib(e,t,n),(e,t,n)=>rS(e,t,n)]);function oS(...e){let[t,n,r]=Dn(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]});return aS(t,n,r)}function sS(e,t){return xr(t)||hS(e,t.items)}function cS(e,t){return xr(t)||fS({...e,...t.$defs},sn(t.$ref))}function lS(e,t){return xr(t)||t.allOf.some(t=>hS(e,t))}function uS(e,t){return xr(t)||C(t.properties).some(n=>hS(e,t.properties[n]))}function dS(e,t){return xr(t)||hS(e,Ea(t))}function fS(e,t){return gS.has(t.$ref)?!1:(gS.add(t.$ref),xr(t)||x(e,t.$ref)&&hS(e,e[t.$ref]))}function pS(e,t){return xr(t)||t.items.some(t=>hS(e,t))}function mS(e,t){return xr(t)||t.anyOf.some(t=>hS(e,t))}function hS(e,t){return M(t)?sS(e,t):wn(t)?cS(e,t):F(t)?lS(e,t):P(t)?uS(e,t):Da(t)?dS(e,t):cn(t)?fS(e,t):V(t)?pS(e,t):B(t)?mS(e,t):xr(t)}const gS=new Set;function _S(...e){let[t,n]=Dn(e,{2:(e,t)=>[e,t],1:e=>[{},e]});return gS.clear(),hS(t,n)}var vS=class extends Error{constructor(e,t){super(t),this.type=e}};function yS(e,t){return ce(t.default)?t.default(t):h(t.default)?Yy(t.default):t.default}function bS(e,t){if(rm(t)&&!_p(t))throw new vS(t,`Arrays with uniqueItems constraints must specify a default annotation`);let n=zp(t)?t.minItems:0;return Array.from({length:n},()=>VS(e,t.items))}function xS(e,t){return Ep(t)?BigInt(t.exclusiveMinimum)+BigInt(1):Lp(t)?BigInt(t.minimum):BigInt(0)}function SS(e,t){return!1}function CS(e,t){let n=VS(e,t.instanceType);return class{constructor(){Object.assign(this,n)}}}function wS(e,t){return VS({...e,...t.$defs},sn(t.$ref))}function TS(e,t){return VS(e,np(t))}function ES(e,t){let n=VS(e,t.returnType);return()=>n}function DS(e,t){return Ep(t)&&m(t.exclusiveMinimum)?t.exclusiveMinimum+1:Lp(t)?t.minimum:0}function OS(e,t){return VS(e,np(Zf(e,t)))}function kS(e,t){return t.const}function AS(e,t){throw new vS(t,`Cannot create TNever types`)}function jS(e,t){return null}function MS(e,t){return Ep(t)&&m(t.exclusiveMinimum)?t.exclusiveMinimum+1:Lp(t)?t.minimum:0}function NS(e,t){return(_(t.required)?[]:t.required).reduce((n,r)=>({...n,[r]:VS(e,t.properties[r])}),{})}function PS(e,t){if(Vp(t)&&!_p(t))throw new vS(t,`Record with the minProperties constraint must have a default annotation`);return{}}function FS(e,t){return x(e,t.$ref)?VS(e,e[t.$ref]):(()=>{throw new vS(t,`Unable to deref Ref`)})()}function IS(e,t){if((Gp(t)||Dp(t))&&!_p(t))throw Error(`Strings with format or pattern constraints must specify default`);let n=Bp(t)?t.minLength:0;return``.padEnd(n)}function LS(e,t){return Symbol()}function RS(e,t){let n=mi(t.pattern);if(Xr(n))throw new vS(t,`Unable to create TemplateLiteral due to infinite type expansion`);return VS(e,n)}function zS(e,t){return Array.from({length:t.minItems},(n,r)=>VS(e,t.items[r]))}function BS(e,t){if(v(t.anyOf.length,0))throw Error(`Unable to create Union with no variants`);return VS(e,t.anyOf[0])}function VS(e,t){return _p(t)?yS(e,t):M(t)?bS(e,t):Ar(t)?xS(e,t):jr(t)?SS(e,t):tn(t)?CS(e,t):wn(t)?wS(e,t):Fn(t)?TS(e,t):an(t)?ES(e,t):Pr(t)?DS(e,t):F(t)?OS(e,t):R(t)?kS(e,t):mn(t)?AS(e,t):Ur(t)?jS(e,t):Kr(t)?MS(e,t):P(t)?NS(e,t):Da(t)?PS(e,t):cn(t)?FS(e,t):Xr(t)?IS(e,t):Jr(t)?LS(e,t):Uo(t)?RS(e,t):V(t)?zS(e,t):Ma(t)?void 0:B(t)?BS(e,t):(Na(t),void 0)}function HS(...e){let[t,n]=Dn(e,{2:(e,t)=>[e,t],1:e=>[{},e]});return VS(t,n)}var US=class extends zy{constructor(e,t){super(`Parse`,e,t)}};function WS(e,t,n){if(!Ly(e,t,n))throw new US(n,Ry(e,t,n));return n}const GS=Cx([(e,t,n)=>Yy(n),(e,t,n)=>Sx(e,t,n),(e,t,n)=>dx(e,t,n),(e,t,n)=>ib(e,t,n),(e,t,n)=>WS(e,t,n)]);z([N({type:L(`insert`),path:Yr(),value:xn()}),Object({type:L(`update`),path:Yr(),value:xn()}),N({type:L(`delete`),path:Yr()})]);var KS=class{constructor(e,t){this.hasCodec=_S(e,t),this.buildResult=Py(e,t),this.evaluateResult=this.buildResult.Evaluate()}IsAccelerated(){return this.evaluateResult.IsAccelerated()}Context(){return this.buildResult.Context()}Type(){return this.buildResult.Schema()}Code(){return this.evaluateResult.Code()}Check(e){return this.evaluateResult.Check(e)}Parse(e){if(this.Check(e))return e;if(Bt().correctiveParse)return GS(this.Context(),this.Type(),e);throw new US(e,this.Errors(e))}Errors(e){return this.IsAccelerated()&&this.Check(e)?[]:Ry(this.Context(),this.Type(),e)}Clean(e){return ib(this.Context(),this.Type(),e)}Convert(e){return dx(this.Context(),this.Type(),e)}Create(){return HS(this.Context(),this.Type())}Default(e){return Sx(this.Context(),this.Type(),e)}Decode(e){return this.hasCodec?tS(this.Context(),this.Type(),e):this.Parse(e)}Encode(e){return this.hasCodec?oS(this.Context(),this.Type(),e):this.Parse(e)}};function qS(...e){let[t,n]=Dn(e,{2:(e,t)=>[e,t],1:e=>[{},e]});return new KS(t,n)}var JS=qS;const YS=Er(Tn({}),e=>e instanceof Date),XS=N({id:Gr(),created:YS,title:Yr({minLength:1,maxLength:100}),type:Pn([`jpg`,`png`]),size:Gr(),url:Yr({format:`url`})}),ZS=N({id:Gr(),stars:Gr({minimum:1,maximum:5}),title:Yr({minLength:1,maxLength:100}),text:Yr({minLength:1,maxLength:1e3}),images:Qt(XS)});JS(N({id:Gr(),created:YS,title:Yr({minLength:1,maxLength:100}),brand:Yr({minLength:1,maxLength:30}),description:Yr({minLength:1,maxLength:500}),price:Gr({minimum:1,maximum:1e4}),discount:z([Gr({minimum:1,maximum:100}),Hr()]),quantity:Gr({minimum:1,maximum:10}),tags:Qt(Yr({minLength:1,maxLength:30})),images:Qt(XS),ratings:Qt(ZS)})).Parse({}); \ No newline at end of file diff --git a/schemas/libraries/typebox/download_compiled/namespace + compile/unminified.js b/schemas/libraries/typebox/download_compiled/namespace + compile/unminified.js index 30e089e0..f39f77b4 100644 --- a/schemas/libraries/typebox/download_compiled/namespace + compile/unminified.js +++ b/schemas/libraries/typebox/download_compiled/namespace + compile/unminified.js @@ -10,7 +10,7 @@ var __exportAll = (all, no_symbols) => { return target; }; //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/memory/metrics.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/memory/metrics.mjs /** TypeBox instantiation metrics */ const Metrics = { assign: 0, @@ -20,7 +20,7 @@ const Metrics = { update: 0 }; //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/memory/assign.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/memory/assign.mjs /** * Performs an Object assign using the Left and Right object types. We track this operation as it * creates a new GC handle per assignment. @@ -33,7 +33,7 @@ function Assign(left, right) { }; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/guard/string.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/guard/string.mjs function IsBetween(value, min, max) { return value >= min && value <= max; } @@ -127,7 +127,7 @@ function IsMaxLengthFast(value, maxLength) { return true; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/guard/guard.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/guard/guard.mjs var guard_exports = /* @__PURE__ */ __exportAll({ Entries: () => Entries$2, EntriesRegExp: () => EntriesRegExp, @@ -136,7 +136,6 @@ var guard_exports = /* @__PURE__ */ __exportAll({ GraphemeCount: () => GraphemeCount, HasPropertyKey: () => HasPropertyKey$1, IsArray: () => IsArray$2, - IsAsyncIterator: () => IsAsyncIterator$2, IsBigInt: () => IsBigInt$2, IsBoolean: () => IsBoolean$3, IsClassInstance: () => IsClassInstance, @@ -147,7 +146,6 @@ var guard_exports = /* @__PURE__ */ __exportAll({ IsGreaterEqualThan: () => IsGreaterEqualThan$1, IsGreaterThan: () => IsGreaterThan$1, IsInteger: () => IsInteger$2, - IsIterator: () => IsIterator$2, IsLessEqualThan: () => IsLessEqualThan$1, IsLessThan: () => IsLessThan$1, IsMaxLength: () => IsMaxLength$2, @@ -171,10 +169,6 @@ var guard_exports = /* @__PURE__ */ __exportAll({ function IsArray$2(value) { return Array.isArray(value); } -/** Returns true if this value is an async iterator */ -function IsAsyncIterator$2(value) { - return IsObject$2(value) && Symbol.asyncIterator in value; -} /** Returns true if this value is bigint */ function IsBigInt$2(value) { return IsEqual$1(typeof value, "bigint"); @@ -199,10 +193,6 @@ function IsFunction$2(value) { function IsInteger$2(value) { return Number.isInteger(value); } -/** Returns true if this value is an iterator */ -function IsIterator$2(value) { - return IsObject$2(value) && Symbol.iterator in value; -} /** Returns true if this value is null */ function IsNull$2(value) { return IsEqual$1(value, null); @@ -332,7 +322,7 @@ function IsDeepEqual$1(left, right) { return IsArray$2(left) ? DeepEqualArray(left, right) : IsObject$2(left) ? DeepEqualObject(left, right) : IsEqual$1(left, right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/guard/emit.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/guard/emit.mjs const identifierRegExp = /^[\p{ID_Start}_$][\p{ID_Continue}_$\u200C\u200D]*$/u; /** Returns true if this value is a valid JavaScript identifier */ function IsIdentifier(value) { @@ -351,10 +341,6 @@ function Not(expr) { function IsArray$1(value) { return `Array.isArray(${value})`; } -/** Returns true if this value is an async iterator */ -function IsAsyncIterator$1(value) { - return `Guard.IsAsyncIterator(${value})`; -} /** Returns true if this value is bigint */ function IsBigInt$1(value) { return `typeof ${value} === "bigint"`; @@ -367,10 +353,6 @@ function IsBoolean$2(value) { function IsInteger$1(value) { return `Number.isInteger(${value})`; } -/** Returns true if this value is an iterator */ -function IsIterator$1(value) { - return `Guard.IsIterator(${value})`; -} /** Returns true if this value is null */ function IsNull$1(value) { return `${value} === null`; @@ -487,7 +469,7 @@ function MultipleOf(dividend, divisor) { return `Guard.IsMultipleOf(${dividend}, ${divisor})`; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/guard/globals.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/guard/globals.mjs function IsBoolean$1(value) { return value instanceof Boolean; } @@ -517,51 +499,69 @@ function IsMap(value) { return value instanceof globalThis.Map; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/guard/index.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/guard/index.mjs var guard_default = guard_exports; //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/memory/clone.mjs -function IsGuard$1(value) { - return IsObject$2(value) && HasPropertyKey$1(value, "~guard"); -} -function FromGuard(value) { +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/memory/clone.mjs +function FromClassInstance(value) { return value; } -function FromArray$12(value) { - return value.map((value) => FromValue$3(value)); +function IsKindedObject(value) { + return HasPropertyKey$1(value, "~kind"); } -function FromObject$16(value) { +function FromKindedObject(value) { const result = {}; const descriptors = Object.getOwnPropertyDescriptors(value); for (const key of Object.keys(descriptors)) { + if (IsUnsafePropertyKey(key)) continue; const descriptor = descriptors[key]; if (HasPropertyKey$1(descriptor, "value")) Object.defineProperty(result, key, { ...descriptor, - value: FromValue$3(descriptor.value) + value: FromValue$2(descriptor.value) }); } return result; } +function FromPlainObject(value) { + const result = {}; + for (const key of Keys$1(value)) { + if (IsUnsafePropertyKey(key)) continue; + result[key] = FromValue$2(value[key]); + } + for (const key of Symbols(value)) result[key] = FromValue$2(value[key]); + return result; +} +function FromObject$15(value) { + return IsClassInstance(value) ? FromClassInstance(value) : IsKindedObject(value) ? FromKindedObject(value) : FromPlainObject(value); +} +function FromArray$11(value) { + return value.map((element) => FromValue$2(element)); +} +function FromTypedArray(value) { + return value.slice(); +} function FromRegExp$1(value) { return new RegExp(value.source, value.flags); } -function FromUnknown(value) { - return value; +function FromMap(value) { + return new Map(FromValue$2([...value.entries()])); +} +function FromSet(value) { + return new Set(FromValue$2([...value.values()])); } -function FromValue$3(value) { - return value instanceof RegExp ? FromRegExp$1(value) : IsGuard$1(value) ? FromGuard(value) : IsArray$2(value) ? FromArray$12(value) : IsObject$2(value) ? FromObject$16(value) : FromUnknown(value); +function FromValue$2(value) { + return IsTypeArray(value) ? FromTypedArray(value) : IsRegExp(value) ? FromRegExp$1(value) : IsMap(value) ? FromMap(value) : IsSet(value) ? FromSet(value) : IsArray$2(value) ? FromArray$11(value) : IsObject$2(value) ? FromObject$15(value) : value; } /** -* Clones a value using the TypeBox type cloning strategy. This function preserves non-enumerable -* properties from the source value. This is to ensure cloned types retain discriminable -* hidden properties. +* Returns a Clone of the given value. This function is similar to structuredClone() +* but also supports deep cloning instances of Map, Set and TypeArray. */ function Clone$1(value) { Metrics.clone += 1; - return FromValue$3(value); + return FromValue$2(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/settings/settings.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/settings/settings.mjs const settings = { immutableTypes: false, maxErrors: 8, @@ -576,7 +576,7 @@ function Get$3() { return settings; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/memory/create.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/memory/create.mjs function MergeHidden(left, right) { for (const key of Object.keys(right)) Object.defineProperty(left, key, { configurable: true, @@ -605,7 +605,7 @@ function Create$1(hidden, enumerable, options = {}) { return settings.immutableTypes ? Object.freeze(withHidden) : withHidden; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/memory/discard.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/memory/discard.mjs /** Discards multiple property keys from the given object value */ function Discard(value, propertyKeys) { Metrics.discard += 1; @@ -619,7 +619,7 @@ function Discard(value, propertyKeys) { return result; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/memory/update.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/memory/update.mjs /** * Updates a value with new properties while preserving property enumerability. Use this function to modify * existing types without altering their configuration. @@ -643,7 +643,7 @@ function Update$1(current, hidden, enumerable) { return result; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/schema.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/schema.mjs function IsKind(value, kind) { return IsObject$2(value) && HasPropertyKey$1(value, "~kind") && IsEqual$1(value["~kind"], kind); } @@ -651,7 +651,7 @@ function IsSchema$1(value) { return IsObject$2(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/deferred.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/deferred.mjs /** Creates a Deferred action. */ function Deferred(action, parameters, options) { return Create$1({ "~kind": "Deferred" }, { @@ -666,84 +666,29 @@ function IsDeferred(value) { return IsKind(value, "Deferred"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/base.mjs -function BaseProperty(value) { - return { - enumerable: Get$3().enumerableKind, - writable: false, - configurable: false, - value - }; +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/readonly/instantiate_add.mjs +function AddReadonlyOperation(type) { + return Update$1(type, { "~readonly": true }, {}); } -/** -* @deprecated Use Type.Refine() + Type.Unsafe() instead. -* -* -* **Reason:** It is noted that JavaScript class instances do not behave like -* plain objects during structural clone or when the TB compositor needs to -* assign dynamic modifier properties (such as '~optional'). -* -* Because the TypeBox compositor needs to transform schematics via object clone / -* property spread, these operations can result in class instance types losing -* methods on the prototype (via clone), which can lead to unexpected structures being -* returned. This has led to special-case (non-clone) handling for Base which needs -* to be removed as it has proven orthogonal to the TypeBox 1.x design. -* -* The Base type was introduced in 1.x to try integrate / embed Standard Schema into JSON -* Schema; however, support for integrated Standard Schema embedding will not be continued -* in TypeBox. This type will be removed in the next minor revision of TypeBox. -* -* ```typescript -* // (Deprecated) -* class DateType extends Type.Base { Check(value) { return value instanceof Date } } -* -* // (Future) -* const DateType = Type.Refine(Type.Unsafe({}), value => value instanceof Date) -* ``` -*/ -var Base = class { - constructor() { - globalThis.Object.defineProperty(this, "~kind", BaseProperty("Base")); - globalThis.Object.defineProperty(this, "~guard", BaseProperty({ - check: (value) => this.Check(value), - errors: (value) => this.Errors(value) - })); - } - /** Checks a value or returns false if invalid */ - Check(_value) { - return true; - } - /** Returns errors for a value. Return an empty array if valid. */ - Errors(_value) { - return []; - } - /** Converts a value into this type */ - Convert(value) { - return value; - } - /** Cleans a value according to this type */ - Clean(value) { - return value; - } - /** Returns a default value for this type */ - Default(value) { - return value; - } - /** Creates a new instance of this type */ - Create() { - throw new Error("Create not implemented"); - } - /** Clones this type */ - Clone() { - throw Error("Clone not implemented"); - } -}; -/** Returns true if the given value is a Base type. */ -function IsBase(value) { - return IsKind(value, "Base"); +function AddReadonlyAction(type, options) { + return Update$1(AddReadonlyOperation(type), {}, options); +} +function AddReadonlyInstantiate(context, state, type, options) { + return AddReadonlyAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/array.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/optional/instantiate_add.mjs +function AddOptionalOperation(type) { + return Update$1(type, { "~optional": true }, {}); +} +function AddOptionalAction(type, options) { + return Update$1(AddOptionalOperation(type), {}, options); +} +function AddOptionalInstantiate(context, state, type, options) { + return AddOptionalAction(InstantiateType(context, state, type), options); +} +//#endregion +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/array.mjs /** Creates an Array type. */ function _Array_(items, options) { return Create$1({ "~kind": "Array" }, { @@ -764,32 +709,7 @@ function ArrayOptions(type) { ]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/async_iterator.mjs -/** -* Creates a AsyncIterator type. -* -* @deprecated This type is being removed in the next version of TypeBox. A fallback will be provided under examples. -*/ -function AsyncIterator(iteratorItems, options) { - return Create$1({ "~kind": "AsyncIterator" }, { - type: "asyncIterator", - iteratorItems - }, options); -} -/** Returns true if the given value is a TAsyncIterator */ -function IsAsyncIterator(value) { - return IsKind(value, "AsyncIterator"); -} -/** Extracts options from a TAsyncIterator. */ -function AsyncIteratorOptions(type) { - return Discard(type, [ - "~kind", - "type", - "iteratorItems" - ]); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/constructor.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/constructor.mjs /** Creates a Constructor type. */ function Constructor(parameters, instanceType, options = {}) { return Create$1({ "~kind": "Constructor" }, { @@ -812,7 +732,7 @@ function ConstructorOptions(type) { ]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/function.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/function.mjs /** Creates a Function type. */ function _Function_(parameters, returnType, options = {}) { return Create$1({ ["~kind"]: "Function" }, { @@ -835,7 +755,7 @@ function FunctionOptions(type) { ]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/ref.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/ref.mjs /** Creates a Ref type. */ function Ref$1(ref, options) { return Create$1({ ["~kind"]: "Ref" }, { $ref: ref }, options); @@ -845,7 +765,7 @@ function IsRef$1(value) { return IsKind(value, "Ref"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/generic.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/generic.mjs /** Creates a Generic type. */ function Generic(parameters, expression) { return Create$1({ "~kind": "Generic" }, { @@ -859,7 +779,7 @@ function IsGeneric(value) { return IsKind(value, "Generic"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/any.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/any.mjs /** Creates a Any type. */ function Any(options) { return Create$1({ ["~kind"]: "Any" }, {}, options); @@ -869,7 +789,7 @@ function IsAny(value) { return IsKind(value, "Any"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/never.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/never.mjs const NeverPattern = "(?!)"; /** Creates a Never type. */ function Never(options) { @@ -880,34 +800,19 @@ function IsNever(value) { return IsKind(value, "Never"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/optional/instantiate_add.mjs -function AddOptionalOperation(type) { - return Update$1(type, { "~optional": true }, {}); -} -function AddOptionalAction(type, options) { - return Update$1(AddOptionalOperation(type), {}, options); -} -function AddOptionalInstantiate(context, state, type, options) { - return AddOptionalAction(InstantiateType(context, state, type), options); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/_add_optional.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/_add_optional.mjs /** Applies an AddOptional action to a type. */ function AddOptional(type, options = {}) { return AddOptionalAction(type, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/_optional.mjs -/** Applies an Optional modifier to the given type. */ -function Optional(type) { - return AddOptional(type); -} +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/_optional.mjs /** Returns true if the given value is TOptional */ function IsOptional(value) { return IsSchema$1(value) && HasPropertyKey$1(value, "~optional"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/properties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/properties.mjs /** Creates a RequiredArray derived from the given TProperties value. */ function RequiredArray(properties) { return Keys$1(properties).filter((key) => !IsOptional(properties[key])); @@ -921,7 +826,7 @@ function PropertyValues(properties) { return Values(properties); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/object.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/object.mjs /** Creates an Object type. */ function _Object_(properties, options = {}) { const requiredKeys = RequiredArray(properties); @@ -945,7 +850,7 @@ function ObjectOptions(type) { ]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/unknown.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/unknown.mjs /** Creates an Unknown type. */ function Unknown(options) { return Create$1({ ["~kind"]: "Unknown" }, {}, options); @@ -955,7 +860,7 @@ function IsUnknown(value) { return IsKind(value, "Unknown"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/cyclic.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/cyclic.mjs /** Creates a Cyclic type. */ function Cyclic($defs, $ref, options) { const defs = Keys$1($defs).reduce((result, key) => { @@ -974,7 +879,7 @@ function IsCyclic(value) { return IsKind(value, "Cyclic"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/unsafe.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/unsafe.mjs /** Creates a Unsafe type. */ function Unsafe(schema) { return Update$1(schema, { ["~unsafe"]: null }, {}); @@ -984,7 +889,7 @@ function IsUnsafe(value) { return IsObjectNotArray$1(value) && HasPropertyKey$1(value, "~unsafe") && IsNull$2(value["~unsafe"]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/arguments/arguments.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/arguments/arguments.mjs /** * Match arguments for overloaded functions that use the `...args: unknown[]` pattern. Arguments * are parsed using argument length only. @@ -995,13 +900,13 @@ function Match$3(args, match) { })(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/infer.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/infer.mjs /** Returns true if the given value is TInfer. */ function IsInfer(value) { return IsKind(value, "Infer"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/dependent.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/dependent.mjs /** Creates a Dependent type */ function Dependent(if_, then_, else_, options = {}) { return Create$1({ "~kind": "Dependent" }, { @@ -1024,7 +929,7 @@ function DependentOptions(type) { ]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/enum/typescript_enum_to_enum_values.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/enum/typescript_enum_to_enum_values.mjs function IsTypeScriptEnumLike(value) { return IsObjectNotArray$1(value); } @@ -1032,7 +937,7 @@ function TypeScriptEnumToEnumValues(type) { return Keys$1(type).filter((key) => isNaN(key)).reduce((result, key) => [...result, type[key]], []); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/enum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/enum.mjs /** Creates an Enum type. */ function Enum(value, options) { return Create$1({ "~kind": "Enum" }, { enum: IsTypeScriptEnumLike(value) ? TypeScriptEnumToEnumValues(value) : value }, options); @@ -1042,7 +947,7 @@ function IsEnum$1(value) { return IsKind(value, "Enum"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/intersect.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/intersect.mjs /** Creates a Intersect type. */ function Intersect(types, options = {}) { return Create$1({ "~kind": "Intersect" }, { allOf: types }, options); @@ -1056,7 +961,7 @@ function IntersectOptions(type) { return Discard(type, ["~kind", "allOf"]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/environment/evaluate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/environment/evaluate.mjs let supported = void 0; function TryEvaluate() { try { @@ -1081,13 +986,13 @@ function Evaluate$1(...args) { return new globalThis.Function(...args); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/unreachable/unreachable.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/unreachable/unreachable.mjs /** Used for unreachable logic */ function Unreachable() { throw new Error("Unreachable"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/hashing/hash.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/hashing/hash.mjs var hash_exports = /* @__PURE__ */ __exportAll({ Hash: () => Hash, HashCode: () => HashCode @@ -1131,9 +1036,9 @@ function FNV1A64_OP(byte) { Accumulator = Accumulator ^ Bytes[byte]; Accumulator = Accumulator * Prime % Size; } -function FromArray$11(value) { +function FromArray$10(value) { FNV1A64_OP(ByteMarker.Array); - for (const item of value) FromValue$2(item); + for (const item of value) FromValue$1(item); } function FromBigInt$6(value) { FNV1A64_OP(ByteMarker.BigInt); @@ -1146,15 +1051,15 @@ function FromBoolean$6(value) { } function FromConstructor$1(value) { FNV1A64_OP(ByteMarker.Constructor); - FromValue$2(value.toString()); + FromValue$1(value.toString()); } function FromDate(value) { FNV1A64_OP(ByteMarker.Date); - FromValue$2(value.getTime()); + FromValue$1(value.getTime()); } function FromFunction$1(value) { FNV1A64_OP(ByteMarker.Function); - FromValue$2(value.toString()); + FromValue$1(value.toString()); } function FromNull$2(_value) { FNV1A64_OP(ByteMarker.Null); @@ -1164,11 +1069,11 @@ function FromNumber$5(value) { F64In.setFloat64(0, value, true); for (const byte of F64Out) FNV1A64_OP(byte); } -function FromObject$15(value) { +function FromObject$14(value) { FNV1A64_OP(ByteMarker.Object); for (const key of InstanceKeys(value).sort()) { - FromValue$2(key); - FromValue$2(value[key]); + FromValue$1(key); + FromValue$1(value[key]); } } function FromRegExp(value) { @@ -1182,7 +1087,7 @@ function FromString$7(value) { } function FromSymbol$1(value) { FNV1A64_OP(ByteMarker.Symbol); - FromValue$2(value.toString()); + FromValue$1(value.toString()); } function FromTypeArray(value) { FNV1A64_OP(ByteMarker.TypeArray); @@ -1192,13 +1097,13 @@ function FromTypeArray(value) { function FromUndefined$2(_value) { return FNV1A64_OP(ByteMarker.Undefined); } -function FromValue$2(value) { - return IsTypeArray(value) ? FromTypeArray(value) : IsDate$1(value) ? FromDate(value) : IsRegExp(value) ? FromRegExp(value) : IsBoolean$1(value) ? FromBoolean$6(value.valueOf()) : IsString$1(value) ? FromString$7(value.valueOf()) : IsNumber$1(value) ? FromNumber$5(value.valueOf()) : IsIEEE754(value) ? FromNumber$5(value) : IsArray$2(value) ? FromArray$11(value) : IsBoolean$3(value) ? FromBoolean$6(value) : IsBigInt$2(value) ? FromBigInt$6(value) : IsConstructor$2(value) ? FromConstructor$1(value) : IsNull$2(value) ? FromNull$2(value) : IsObject$2(value) ? FromObject$15(value) : IsString$3(value) ? FromString$7(value) : IsSymbol$2(value) ? FromSymbol$1(value) : IsUndefined$2(value) ? FromUndefined$2(value) : IsFunction$2(value) ? FromFunction$1(value) : Unreachable(); +function FromValue$1(value) { + return IsTypeArray(value) ? FromTypeArray(value) : IsDate$1(value) ? FromDate(value) : IsRegExp(value) ? FromRegExp(value) : IsBoolean$1(value) ? FromBoolean$6(value.valueOf()) : IsString$1(value) ? FromString$7(value.valueOf()) : IsNumber$1(value) ? FromNumber$5(value.valueOf()) : IsIEEE754(value) ? FromNumber$5(value) : IsArray$2(value) ? FromArray$10(value) : IsBoolean$3(value) ? FromBoolean$6(value) : IsBigInt$2(value) ? FromBigInt$6(value) : IsConstructor$2(value) ? FromConstructor$1(value) : IsNull$2(value) ? FromNull$2(value) : IsObject$2(value) ? FromObject$14(value) : IsString$3(value) ? FromString$7(value) : IsSymbol$2(value) ? FromSymbol$1(value) : IsUndefined$2(value) ? FromUndefined$2(value) : IsFunction$2(value) ? FromFunction$1(value) : Unreachable(); } /** Generates a FNV1A-64 non cryptographic hash of the given value */ function HashCode(value) { Accumulator = BigInt("14695981039346656037"); - FromValue$2(value); + FromValue$1(value); return Accumulator; } /** Generates a FNV1A-64 non cryptographic hash of the given value */ @@ -1206,7 +1111,7 @@ function Hash(value) { return HashCode(value).toString(16).padStart(16, "0"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/locale/en_US.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/locale/en_US.mjs /** en_US: English (United States) - ISO 639-1 language code 'en' with ISO 3166-1 alpha-2 country code 'US' for United States. */ function en_US(error) { switch (error.keyword) { @@ -1240,69 +1145,49 @@ function en_US(error) { case "unevaluatedItems": return "must not have unevaluated items"; case "unevaluatedProperties": return "must not have unevaluated properties"; case "uniqueItems": return `must not have duplicate items`; - case "~guard": return `must match check function`; case "~refine": return error.params.message; default: return "an unknown validation error occurred"; } } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/locale/_config.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/locale/_config.mjs let locale = en_US; /** Gets the locale */ function Get$2() { return locale; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/_codec.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/_codec.mjs function IsCodec(value) { return IsSchema$1(value) && HasPropertyKey$1(value, "~codec") && IsObject$2(value["~codec"]) && HasPropertyKey$1(value["~codec"], "encode") && HasPropertyKey$1(value["~codec"], "decode"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/_immutable.mjs -/** Applies an Immutable modifier to the given type. */ -function Immutable(type) { - return AddImmutable(type); -} +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/_immutable.mjs /** Returns true if the given value is a TImmutable */ function IsImmutable(value) { return IsSchema$1(value) && HasPropertyKey$1(value, "~immutable"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/readonly/instantiate_add.mjs -function AddReadonlyOperation(type) { - return Update$1(type, { "~readonly": true }, {}); -} -function AddReadonlyAction(type, options) { - return Update$1(AddReadonlyOperation(type), {}, options); -} -function AddReadonlyInstantiate(context, state, type, options) { - return AddReadonlyAction(InstantiateType(context, state, type), options); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/_add_readonly.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/_add_readonly.mjs /** Applies an AddReadonly action to a type. */ function AddReadonly(type, options = {}) { return AddReadonlyAction(type, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/_readonly.mjs -/** Applies an Readonly property modifier to the given type. */ -function Readonly(type) { - return AddReadonly(type); -} +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/_readonly.mjs /** Returns true if the given value is a TReadonly */ function IsReadonly(value) { return IsSchema$1(value) && HasPropertyKey$1(value, "~readonly"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/_refine.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/_refine.mjs /** Applies a Refine check to the given type. */ function RefineAdd(type, refinement) { return Update$1(type, { "~refine": IsRefine$1(type) ? [...type["~refine"], refinement] : [refinement] }, {}); } /** Refines a type with an explicit check */ function Refine(...args) { - const [type, check, error_or_message] = Match$3(args, { + const [type, check, error] = Match$3(args, { 3: (type, check, error) => [ type, check, @@ -1316,7 +1201,7 @@ function Refine(...args) { }); return RefineAdd(type, { check, - error: IsString$3(error_or_message) ? () => error_or_message : error_or_message + error }); } /** Returns true if the given value is a TRefinement. */ @@ -1328,7 +1213,7 @@ function IsRefine$1(value) { return IsSchema$1(value) && HasPropertyKey$1(value, "~refine") && IsArray$2(value["~refine"]) && Every$1(value["~refine"], 0, (value) => IsRefinement(value)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/bigint.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/bigint.mjs const BigIntPattern = "-?(?:0|[1-9][0-9]*)n"; /** Creates a BigInt type. */ function BigInt$1(options) { @@ -1339,13 +1224,13 @@ function IsBigInt(value) { return IsKind(value, "BigInt"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/boolean.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/boolean.mjs /** Returns true if the given value is a TBoolean. */ function IsBoolean(value) { return IsKind(value, "Boolean"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/integer.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/integer.mjs const IntegerPattern = "-?(?:0|[1-9][0-9]*)"; /** Creates a Integer type. */ function Integer(options) { @@ -1356,32 +1241,7 @@ function IsInteger(value) { return IsKind(value, "Integer"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/iterator.mjs -/** -* Creates a Iterator type. -* -* @deprecated This type is being removed in the next version of TypeBox. A fallback will be provided under examples. -*/ -function Iterator(iteratorItems, options) { - return Create$1({ "~kind": "Iterator" }, { - type: "iterator", - iteratorItems - }, options); -} -/** Returns true if the given value is TIterator. */ -function IsIterator(value) { - return IsKind(value, "Iterator"); -} -/** Extracts options from a TIterator. */ -function IteratorOptions(type) { - return Discard(type, [ - "~kind", - "type", - "iteratorItems" - ]); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/literal.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/literal.mjs var InvalidLiteralValue = class extends Error { constructor(value) { super(`Invalid Literal value`); @@ -1430,7 +1290,7 @@ function IsLiteral(value) { return IsKind(value, "Literal"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/null.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/null.mjs /** Creates a Null type. */ function Null(options) { return Create$1({ "~kind": "Null" }, { type: "null" }, options); @@ -1440,7 +1300,7 @@ function IsNull(value) { return IsKind(value, "Null"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/number.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/number.mjs const NumberPattern = "-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?"; /** Creates a Number type. */ function Number$1(options) { @@ -1451,7 +1311,7 @@ function IsNumber(value) { return IsKind(value, "Number"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/symbol.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/symbol.mjs /** Creates a Symbol type. */ function Symbol$1(options) { return Create$1({ "~kind": "Symbol" }, { type: "symbol" }, options); @@ -1461,32 +1321,7 @@ function IsSymbol(value) { return IsKind(value, "Symbol"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/promise.mjs -/** -* Creates a Promise type. -* -* @deprecated This type is being removed in the next version of TypeBox. A fallback will be provided under examples. -*/ -function _Promise_(item, options) { - return Create$1({ ["~kind"]: "Promise" }, { - type: "promise", - item - }, options); -} -/** Returns true if the given type is TPromise. */ -function IsPromise(value) { - return IsKind(value, "Promise"); -} -/** Extracts options from a TPromise. */ -function PromiseOptions(type) { - return Discard(type, [ - "~kind", - "type", - "item" - ]); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/string.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/string.mjs /** Creates a String type. */ function String$1(options) { return Create$1({ "~kind": "String" }, { type: "string" }, options); @@ -1496,7 +1331,7 @@ function IsString(value) { return IsKind(value, "String"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/union.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/union.mjs /** Creates a Union type. */ function Union(anyOf, options = {}) { return Create$1({ "~kind": "Union" }, { anyOf }, options); @@ -1510,14 +1345,14 @@ function UnionOptions(type) { return Discard(type, ["~kind", "anyOf"]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/patterns/pattern.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/patterns/pattern.mjs /** Parses a Pattern into a sequence of TemplateLiteral types. A result of [] indicates failure to parse. */ function ParsePatternIntoTypes(pattern) { const parsed = Pattern(pattern); return IsEqual$1(parsed.length, 2) ? parsed[0] : []; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/template_literal/is_finite.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/template_literal/is_finite.mjs function FromLiteral$6(_value) { return true; } @@ -1535,7 +1370,7 @@ function IsTemplateLiteralFinite(types) { return FromTypes$5(types); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/template_literal/create.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/template_literal/create.mjs function TemplateLiteralCreate(pattern) { return Create$1({ ["~kind"]: "TemplateLiteral" }, { type: "string", @@ -1543,7 +1378,7 @@ function TemplateLiteralCreate(pattern) { }, {}); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/template_literal/decode.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/template_literal/decode.mjs function FromLiteralPush(variants, value, result = []) { return ShiftLeft(variants, (left, right) => FromLiteralPush(right, value, [...result, `${left}${value}`]), () => result); } @@ -1584,7 +1419,7 @@ function TemplateLiteralDecode(pattern) { return IsTemplateLiteral(decoded) ? String$1() : decoded; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/record/record_create.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/record/record_create.mjs function CreateRecord(key, value) { const type = "object"; const patternProperties = { [key]: value }; @@ -1594,12 +1429,12 @@ function CreateRecord(key, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/record/from_key_any.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/record/from_key_any.mjs function FromAnyKey(value) { return CreateRecord(StringKey, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/record/from_key_boolean.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/record/from_key_boolean.mjs function FromBooleanKey(value) { return _Object_({ true: value, @@ -1607,7 +1442,7 @@ function FromBooleanKey(value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/tuple.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/tuple.mjs /** Creates a Tuple type. */ function Tuple(types, options = {}) { const [items, minItems, additionalItems] = [ @@ -1637,7 +1472,7 @@ function TupleOptions(type) { ]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/readonly/instantiate_remove.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/readonly/instantiate_remove.mjs function RemoveReadonlyOperation(type) { return Discard(type, ["~readonly"]); } @@ -1648,13 +1483,13 @@ function RemoveReadonlyInstantiate(context, state, type, options) { return RemoveReadonlyAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/_remove_readonly.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/_remove_readonly.mjs /** Applies an RemoveReadonly action to a type. */ function RemoveReadonly(type, options = {}) { return RemoveReadonlyAction(type, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/optional/instantiate_remove.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/optional/instantiate_remove.mjs function RemoveOptionalOperation(type) { return Discard(type, ["~optional"]); } @@ -1665,13 +1500,13 @@ function RemoveOptionalInstantiate(context, state, type, options) { return RemoveOptionalAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/_remove_optional.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/_remove_optional.mjs /** Applies an RemoveOptional action to a type. */ function RemoveOptional(type, options = {}) { return RemoveOptionalAction(type, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/tuple/to_object.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/tuple/to_object.mjs function TupleElementsToProperties(types) { return types.reduceRight((result, right, index) => { return { @@ -1684,7 +1519,7 @@ function TupleToObject(type) { return _Object_(TupleElementsToProperties(type.items)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/evaluate/composite.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/evaluate/composite.mjs function IsReadonlyProperty(left, right) { return IsReadonly(left) ? IsReadonly(right) ? true : false : false; } @@ -1715,13 +1550,13 @@ function Composite(left, right) { return _Object_(CompositeProperties(GetProperties(left), GetProperties(right))); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/evaluate/narrow.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/evaluate/narrow.mjs function Narrow(left, right) { const result = Compare(left, right); return IsEqual$1(result, "left-inside") ? left : IsEqual$1(result, "right-inside") ? right : IsEqual$1(result, "equal") ? right : Never(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/evaluate/distribute.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/evaluate/distribute.mjs function IsObjectLike(type) { return IsObject(type) || IsTuple(type); } @@ -1748,7 +1583,7 @@ function Distribute$1(types, result = []) { return ShiftLeft(types, (left, right) => IsUnion(left) ? Distribute$1(right, DistributeUnion(left.anyOf, result)) : Distribute$1(right, DistributeType(left, result)), () => result); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/exclude/operation.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/exclude/operation.mjs function ExcludeType(left, right) { return IsExtendsTrueLike(Extends({}, left, right)) ? [] : [left]; } @@ -1762,7 +1597,7 @@ function ExcludeOperation(left, right) { return EvaluateUnion(ExcludeUnion(IsUnion(evaluated) ? evaluated.anyOf : [evaluated], right)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/evaluate/evaluate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/evaluate/evaluate.mjs function EvaluateDependent(if_, then_, else_) { return EvaluateUnion([Intersect([if_, then_]), ExcludeOperation(else_, if_)]); } @@ -1785,42 +1620,42 @@ function EvaluateUnionFast(types) { return IsEqual$1(types.length, 1) ? types[0] : IsEqual$1(types.length, 0) ? Never() : Union(types); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/record/from_key_enum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/record/from_key_enum.mjs function FromEnumKey(values, value) { return FromKey(EvaluateEnum(values), value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/record/from_key_integer.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/record/from_key_integer.mjs function FromIntegerKey(_key, value) { return CreateRecord(IntegerKey, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/record/from_key_intersect.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/record/from_key_intersect.mjs function FromIntersectKey(types, value) { return FromKey(EvaluateIntersect(types), value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/record/from_key_literal.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/record/from_key_literal.mjs function FromLiteralKey(key, value) { return IsString$3(key) || IsNumber$3(key) ? _Object_({ [key]: value }) : IsEqual$1(key, false) ? _Object_({ false: value }) : IsEqual$1(key, true) ? _Object_({ true: value }) : _Object_({}); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/record/from_key_number.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/record/from_key_number.mjs function FromNumberKey(_key, value) { return CreateRecord(NumberKey, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/record/from_key_string.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/record/from_key_string.mjs function FromStringKey(key, value) { return HasPropertyKey$1(key, "pattern") && (IsString$3(key.pattern) || key.pattern instanceof RegExp) ? CreateRecord(key.pattern.toString(), value) : CreateRecord(StringKey, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/record/from_key_template_literal.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/record/from_key_template_literal.mjs function FromTemplateKey(pattern, value) { return IsTemplateLiteralFinite(ParsePatternIntoTypes(pattern)) ? FromKey(EvaluateTemplateLiteral(pattern), value) : CreateRecord(pattern, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/evaluate/flatten.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/evaluate/flatten.mjs function FlattenType(type) { return IsUnion(type) ? Flatten(type.anyOf) : [type]; } @@ -1830,7 +1665,7 @@ function Flatten(types) { }, []); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/record/from_key_union.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/record/from_key_union.mjs function StringOrNumberCheck(types) { return types.some((type) => IsString(type) || IsNumber(type) || IsInteger(type)); } @@ -1854,12 +1689,12 @@ function FromUnionKey(types, value) { return IsSchema$1(record) ? record : CreateObject(flattened, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/record/from_key.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/record/from_key.mjs function FromKey(key, value) { return IsAny(key) ? FromAnyKey(value) : IsBoolean(key) ? FromBooleanKey(value) : IsEnum$1(key) ? FromEnumKey(key.enum, value) : IsInteger(key) ? FromIntegerKey(key, value) : IsIntersect(key) ? FromIntersectKey(key.allOf, value) : IsLiteral(key) ? FromLiteralKey(key.const, value) : IsNumber(key) ? FromNumberKey(key, value) : IsUnion(key) ? FromUnionKey(key.anyOf, value) : IsString(key) ? FromStringKey(key, value) : IsTemplateLiteral(key) ? FromTemplateKey(key.pattern, value) : _Object_({}); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/record/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/record/instantiate.mjs function RecordAction(key, value, options) { return CanInstantiate([key]) ? Update$1(FromKey(key, value), {}, options) : RecordDeferred(key, value, options); } @@ -1867,7 +1702,7 @@ function RecordInstantiate(context, state, key, value, options) { return RecordAction(InstantiateType(context, state, key), InstantiateType(context, state, value), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/record.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/record.mjs const IntegerKey = `^${IntegerPattern}$`; const NumberKey = `^${NumberPattern}$`; const StringKey = `^.*$`; @@ -1903,7 +1738,7 @@ function IsRecord(value) { return IsKind(value, "Record"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/rest.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/rest.mjs /** Creates a Rest instruction type. */ function Rest(type) { return Create$1({ "~kind": "Rest" }, { @@ -1916,13 +1751,13 @@ function IsRest(value) { return IsKind(value, "Rest"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/this.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/this.mjs /** Returns true if the given value is TThis. */ function IsThis(value) { return IsKind(value, "This"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/undefined.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/undefined.mjs /** Creates a Undefined type. */ function Undefined(options) { return Create$1({ "~kind": "Undefined" }, { type: "undefined" }, options); @@ -1932,13 +1767,13 @@ function IsUndefined(value) { return IsKind(value, "Undefined"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/void.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/void.mjs /** Returns true if the given value is TVoid. */ function IsVoid(value) { return IsKind(value, "Void"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/mapping.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/mapping.mjs function PatternBigIntMapping(input) { return BigInt$1(); } @@ -1976,7 +1811,7 @@ function PatternMapping(input) { return input[1]; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/token/internal/match.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/token/internal/match.mjs /** Checks the value is a Tuple-2 [string, string] result */ function IsMatch(value) { return IsEqual$1(value.length, 2); @@ -1986,7 +1821,7 @@ function Match$2(input, ok, fail) { return IsMatch(input) ? ok(input[0], input[1]) : fail(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/token/internal/take.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/token/internal/take.mjs function TakeVariant(variant, input) { return IsEqual$1(input.indexOf(variant), 0) ? [variant, input.slice(variant.length)] : []; } @@ -1999,14 +1834,14 @@ function Take(variants, input) { return []; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/token/internal/char.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/token/internal/char.mjs function Range(start, end) { return Array.from({ length: end - start + 1 }, (_, i) => String.fromCharCode(start + i)); } const Alpha = [...Range(97, 122), ...Range(65, 90)]; const Digit = ["0", ...Range(49, 57)]; //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/token/internal/trim.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/token/internal/trim.mjs const LineComment = "//"; const OpenComment = "/*"; const CloseComment = "*/"; @@ -2031,7 +1866,7 @@ function Trim(input) { } [...Digit]; //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/token/const.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/token/const.mjs function TakeConst(const_, input) { return Take([const_], input); } @@ -2046,7 +1881,7 @@ function Const(const_, input) { ], ...Digit]; [...Digit]; //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/token/until.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/token/until.mjs function TakeOne(input) { return IsEqual$1(input, "") ? [] : [input.slice(0, 1), input.slice(1)]; } @@ -2058,13 +1893,13 @@ function Until(end, input, result = "") { return Match$2(TakeOne(input), (One, Rest) => IsInputMatchSentinal(end, input) ? [result, input] : Until(end, Rest, `${result}${One}`), () => []); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/token/until_1.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/token/until_1.mjs /** Match Input until but not including End. No match if End not found or match is zero-length. */ function Until_1(end, input) { return Match$2(Until(end, input), (Until, UntilRest) => IsEqual$1(Until, "") ? [] : [Until, UntilRest], () => []); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/parser.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/parser.mjs const If = (result, left, right = () => []) => result.length === 2 ? left(result) : right(); const PatternBigInt = (input) => If(Const("-?(?:0|[1-9][0-9]*)n", input), ([_0, input]) => [PatternBigIntMapping(_0), input]); const PatternString = (input) => If(Const(".*", input), ([_0, input]) => [PatternStringMapping(_0), input]); @@ -2101,7 +1936,7 @@ const Pattern = (input) => If(If(Const("^", input), ([_0, input]) => If(PatternB _2 ], input]))), ([_0, input]) => [PatternMapping(_0), input]); //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/template_literal/encode.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/template_literal/encode.mjs function JoinString(input) { return input.join("|"); } @@ -2152,7 +1987,7 @@ function TemplateLiteralEncode(types) { return TemplateLiteralCreate(EncodePattern(types)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/template_literal/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/template_literal/instantiate.mjs function TemplateLiteralAction(types, options) { return CanInstantiate(types) ? Update$1(TemplateLiteralEncode(types), {}, options) : TemplateLiteralDeferred(types, options); } @@ -2160,7 +1995,7 @@ function TemplateLiteralInstantiate(context, state, types, options) { return TemplateLiteralAction(InstantiateTypes(context, state, types), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/template_literal.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/template_literal.mjs /** Creates a deferred TemplateLiteral action. */ function TemplateLiteralDeferred(types, options = {}) { return Deferred("TemplateLiteral", [types], options); @@ -2174,7 +2009,7 @@ function IsTemplateLiteral(value) { return IsKind(value, "TemplateLiteral"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/result.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/result.mjs function ExtendsUnion$1(inferred) { return Create$1({ ["~kind"]: "ExtendsUnion" }, { inferred }); } @@ -2200,7 +2035,7 @@ function Match$1(result, true_, false_) { return IsExtendsTrueLike(result) ? true_(result.inferred) : false_(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/extends_right.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/extends_right.mjs function ExtendsRightInfer(inferred, name, left, right) { return Match$1(ExtendsLeft(inferred, left, right), (checkInferred) => ExtendsTrue(Assign(Assign(inferred, checkInferred), { [name]: left })), () => ExtendsFalse()); } @@ -2226,12 +2061,12 @@ function ExtendsRight(inferred, left, right) { return IsAny(right) ? ExtendsRightAny(inferred, left) : IsDependent(right) ? ExtendsRightDependent(inferred, left, right.if, right.then, right.else) : IsEnum$1(right) ? ExtendsRightEnum(inferred, left, right.enum) : IsInfer(right) ? ExtendsRightInfer(inferred, right.name, left, right.extends) : IsIntersect(right) ? ExtendsRightIntersect(inferred, left, right.allOf) : IsTemplateLiteral(right) ? ExtendsRightTemplateLiteral(inferred, left, right.pattern) : IsUnion(right) ? ExtendsRightUnion(inferred, left, right.anyOf) : IsUnknown(right) ? ExtendsTrue(inferred) : ExtendsFalse(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/any.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/any.mjs function ExtendsAny(inferred, left, right) { return IsInfer(right) ? ExtendsRight(inferred, left, right) : IsAny(right) ? ExtendsTrue(inferred) : IsUnknown(right) ? ExtendsTrue(inferred) : ExtendsUnion$1(inferred); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/array.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/array.mjs function ExtendsImmutable(left, right) { const isImmutableLeft = IsImmutable(left); const isImmutableRight = IsImmutable(right); @@ -2241,22 +2076,17 @@ function ExtendsArray(inferred, arrayLeft, left, right) { return IsArray(right) ? ExtendsImmutable(arrayLeft, right) ? ExtendsLeft(inferred, left, right.items) : ExtendsFalse() : ExtendsRight(inferred, arrayLeft, right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/async_iterator.mjs -function ExtendsAsyncIterator(inferred, left, right) { - return IsAsyncIterator(right) ? ExtendsLeft(inferred, left, right.iteratorItems) : ExtendsRight(inferred, AsyncIterator(left), right); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/bigint.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/bigint.mjs function ExtendsBigInt(inferred, left, right) { return IsBigInt(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/boolean.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/boolean.mjs function ExtendsBoolean(inferred, left, right) { return IsBoolean(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/parameters.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/parameters.mjs function ParameterCompare(inferred, left, leftRest, right, rightRest) { const checkLeft = IsInfer(right) ? left : right; const checkRight = IsInfer(right) ? right : left; @@ -2274,47 +2104,42 @@ function ExtendsParameters(inferred, left, right) { return ParametersLeft(inferred, left, right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/return_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/return_type.mjs function ExtendsReturnType(inferred, left, right) { return IsVoid(right) ? ExtendsTrue(inferred) : ExtendsLeft(inferred, left, right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/constructor.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/constructor.mjs function ExtendsConstructor(inferred, parameters, returnType, right) { return IsAny(right) ? ExtendsTrue(inferred) : IsUnknown(right) ? ExtendsTrue(inferred) : IsConstructor(right) ? Match$1(ExtendsParameters(inferred, parameters, right["parameters"]), (inferred) => ExtendsReturnType(inferred, returnType, right["instanceType"]), () => ExtendsFalse()) : ExtendsFalse(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/dependent.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/dependent.mjs function ExtendsDependent(inferred, if_, then_, else_, right) { return Match$1(ExtendsLeft(inferred, if_, right), () => ExtendsLeft(inferred, then_, right), () => ExtendsLeft(inferred, else_, right)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/enum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/enum.mjs function ExtendsEnum(inferred, left, right) { return ExtendsLeft(inferred, EvaluateEnum(left), right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/function.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/function.mjs function ExtendsFunction(inferred, parameters, returnType, right) { return IsAny(right) ? ExtendsTrue(inferred) : IsUnknown(right) ? ExtendsTrue(inferred) : IsFunction(right) ? Match$1(ExtendsParameters(inferred, parameters, right["parameters"]), (inferred) => ExtendsReturnType(inferred, returnType, right["returnType"]), () => ExtendsFalse()) : ExtendsFalse(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/integer.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/integer.mjs function ExtendsInteger(inferred, left, right) { return IsInteger(right) ? ExtendsTrue(inferred) : IsNumber(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/intersect.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/intersect.mjs function ExtendsIntersect(inferred, left, right) { return ExtendsLeft(inferred, EvaluateIntersect(left), right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/iterator.mjs -function ExtendsIterator(inferred, left, right) { - return IsIterator(right) ? ExtendsLeft(inferred, left, right.iteratorItems) : ExtendsRight(inferred, Iterator(left), right); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/literal.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/literal.mjs function ExtendsLiteralValue(inferred, left, right) { return left === right ? ExtendsTrue(inferred) : ExtendsFalse(); } @@ -2334,22 +2159,22 @@ function ExtendsLiteral(inferred, left, right) { return IsBigInt$2(left.const) ? ExtendsLiteralBigInt(inferred, left.const, right) : IsBoolean$3(left.const) ? ExtendsLiteralBoolean(inferred, left.const, right) : IsNumber$3(left.const) ? ExtendsLiteralNumber(inferred, left.const, right) : IsString$3(left.const) ? ExtendsLiteralString(inferred, left.const, right) : Unreachable(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/never.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/never.mjs function ExtendsNever(inferred, left, right) { return IsInfer(right) ? ExtendsRight(inferred, left, right) : ExtendsTrue(inferred); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/null.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/null.mjs function ExtendsNull(inferred, left, right) { return IsNull(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/number.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/number.mjs function ExtendsNumber(inferred, left, right) { return IsNumber(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/object.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/object.mjs function ExtendsPropertyOptional(inferred, left, right) { return IsOptional(left) ? IsOptional(right) ? ExtendsTrue(inferred) : ExtendsFalse() : ExtendsTrue(inferred); } @@ -2396,38 +2221,33 @@ function ExtendsObject(inferred, left, right) { return IsRecord(right) ? ExtendsObjectToRecord(inferred, left, RecordPattern(right), RecordValue(right)) : IsObject(right) ? ExtendsObjectToObject(inferred, left, right.properties) : ExtendsRight(inferred, _Object_(left), right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/promise.mjs -function ExtendsPromise(inferred, left, right) { - return IsPromise(right) ? ExtendsLeft(inferred, left, right.item) : ExtendsRight(inferred, _Promise_(left), right); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/record.mjs -function FromObject$14(inferred, properties) { +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/record.mjs +function FromObject$13(inferred, properties) { return IsEqual$1(Keys$1(properties).length, 0) ? ExtendsTrue(inferred) : ExtendsFalse(); } function FromRecord$7(inferred, _leftKey, leftValue, _rightKey, rightValue) { return ExtendsLeft(inferred, leftValue, rightValue); } function ExtendsRecord(inferred, leftPattern, leftValue, right) { - return IsRecord(right) ? FromRecord$7(inferred, RecordPatternToType(leftPattern), leftValue, RecordPatternToType(RecordPattern(right)), RecordValue(right)) : IsObject(right) ? FromObject$14(inferred, right.properties) : IsAny(right) ? ExtendsTrue(inferred) : IsUnknown(right) ? ExtendsTrue(inferred) : ExtendsFalse(); + return IsRecord(right) ? FromRecord$7(inferred, RecordPatternToType(leftPattern), leftValue, RecordPatternToType(RecordPattern(right)), RecordValue(right)) : IsObject(right) ? FromObject$13(inferred, right.properties) : IsAny(right) ? ExtendsTrue(inferred) : IsUnknown(right) ? ExtendsTrue(inferred) : ExtendsFalse(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/string.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/string.mjs function ExtendsString(inferred, left, right) { return IsString(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/symbol.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/symbol.mjs function ExtendsSymbol(inferred, left, right) { return IsSymbol(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/template_literal.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/template_literal.mjs function ExtendsTemplateLiteral(inferred, left, right) { return ExtendsLeft(inferred, EvaluateTemplateLiteral(left), right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/inference.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/inference.mjs function Inferrable(name, type) { return Create$1({ "~kind": "Inferrable" }, { name, @@ -2455,7 +2275,7 @@ function InferUnionResult(inferred, name, left, right) { return IsArray$2(results) ? ExtendsTrue(Assign(inferred, { [name]: Union(results) })) : ExtendsFalse(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/tuple.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/tuple.mjs function Reverse(types) { return [...types].reverse(); } @@ -2493,12 +2313,12 @@ function ExtendsTuple(inferred, left, right) { return IsTuple(right) ? ExtendsTupleToTuple(inferred, instantiatedLeft, right.items) : IsArray(right) ? ExtendsTupleToArray(inferred, instantiatedLeft, right.items) : ExtendsRight(inferred, Tuple(instantiatedLeft), right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/undefined.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/undefined.mjs function ExtendsUndefined(inferred, left, right) { return IsVoid(right) ? ExtendsTrue(inferred) : IsUndefined(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/union.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/union.mjs function ExtendsUnionSome(inferred, type, unionTypes) { return ShiftLeft(unionTypes, (head, tail) => Match$1(ExtendsLeft(inferred, type, head), (inferred) => ExtendsTrue(inferred), () => ExtendsUnionSome(inferred, type, tail)), () => ExtendsFalse()); } @@ -2510,22 +2330,22 @@ function ExtendsUnion(inferred, left, right) { return IsInferable(inferrable) ? InferUnionResult(inferred, inferrable.name, left, inferrable.type) : IsUnion(right) ? ExtendsUnionLeft(inferred, left, right.anyOf) : ExtendsUnionLeft(inferred, left, [right]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/unknown.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/unknown.mjs function ExtendsUnknown(inferred, left, right) { return IsInfer(right) ? ExtendsRight(inferred, left, right) : IsAny(right) ? ExtendsTrue(inferred) : IsUnknown(right) ? ExtendsTrue(inferred) : ExtendsFalse(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/void.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/void.mjs function ExtendsVoid(inferred, left, right) { return IsVoid(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/extends_left.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/extends_left.mjs function ExtendsLeft(inferred, left, right) { - return IsAny(left) ? ExtendsAny(inferred, left, right) : IsArray(left) ? ExtendsArray(inferred, left, left.items, right) : IsAsyncIterator(left) ? ExtendsAsyncIterator(inferred, left.iteratorItems, right) : IsBigInt(left) ? ExtendsBigInt(inferred, left, right) : IsBoolean(left) ? ExtendsBoolean(inferred, left, right) : IsConstructor(left) ? ExtendsConstructor(inferred, left.parameters, left.instanceType, right) : IsDependent(left) ? ExtendsDependent(inferred, left.if, left.then, left.else, right) : IsEnum$1(left) ? ExtendsEnum(inferred, left.enum, right) : IsFunction(left) ? ExtendsFunction(inferred, left.parameters, left.returnType, right) : IsInteger(left) ? ExtendsInteger(inferred, left, right) : IsIntersect(left) ? ExtendsIntersect(inferred, left.allOf, right) : IsIterator(left) ? ExtendsIterator(inferred, left.iteratorItems, right) : IsLiteral(left) ? ExtendsLiteral(inferred, left, right) : IsNever(left) ? ExtendsNever(inferred, left, right) : IsNull(left) ? ExtendsNull(inferred, left, right) : IsNumber(left) ? ExtendsNumber(inferred, left, right) : IsObject(left) ? ExtendsObject(inferred, left.properties, right) : IsPromise(left) ? ExtendsPromise(inferred, left.item, right) : IsRecord(left) ? ExtendsRecord(inferred, RecordPattern(left), RecordValue(left), right) : IsString(left) ? ExtendsString(inferred, left, right) : IsSymbol(left) ? ExtendsSymbol(inferred, left, right) : IsTemplateLiteral(left) ? ExtendsTemplateLiteral(inferred, left.pattern, right) : IsTuple(left) ? ExtendsTuple(inferred, left.items, right) : IsUndefined(left) ? ExtendsUndefined(inferred, left, right) : IsUnion(left) ? ExtendsUnion(inferred, left.anyOf, right) : IsUnknown(left) ? ExtendsUnknown(inferred, left, right) : IsVoid(left) ? ExtendsVoid(inferred, left, right) : ExtendsFalse(); + return IsAny(left) ? ExtendsAny(inferred, left, right) : IsArray(left) ? ExtendsArray(inferred, left, left.items, right) : IsBigInt(left) ? ExtendsBigInt(inferred, left, right) : IsBoolean(left) ? ExtendsBoolean(inferred, left, right) : IsConstructor(left) ? ExtendsConstructor(inferred, left.parameters, left.instanceType, right) : IsDependent(left) ? ExtendsDependent(inferred, left.if, left.then, left.else, right) : IsEnum$1(left) ? ExtendsEnum(inferred, left.enum, right) : IsFunction(left) ? ExtendsFunction(inferred, left.parameters, left.returnType, right) : IsInteger(left) ? ExtendsInteger(inferred, left, right) : IsIntersect(left) ? ExtendsIntersect(inferred, left.allOf, right) : IsLiteral(left) ? ExtendsLiteral(inferred, left, right) : IsNever(left) ? ExtendsNever(inferred, left, right) : IsNull(left) ? ExtendsNull(inferred, left, right) : IsNumber(left) ? ExtendsNumber(inferred, left, right) : IsObject(left) ? ExtendsObject(inferred, left.properties, right) : IsRecord(left) ? ExtendsRecord(inferred, RecordPattern(left), RecordValue(left), right) : IsString(left) ? ExtendsString(inferred, left, right) : IsSymbol(left) ? ExtendsSymbol(inferred, left, right) : IsTemplateLiteral(left) ? ExtendsTemplateLiteral(inferred, left.pattern, right) : IsTuple(left) ? ExtendsTuple(inferred, left.items, right) : IsUndefined(left) ? ExtendsUndefined(inferred, left, right) : IsUnion(left) ? ExtendsUnion(inferred, left.anyOf, right) : IsUnknown(left) ? ExtendsUnknown(inferred, left, right) : IsVoid(left) ? ExtendsVoid(inferred, left, right) : ExtendsFalse(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/interface/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/interface/instantiate.mjs function InterfaceOperation(heritage, properties) { return EvaluateIntersect([...heritage, _Object_(properties)]); } @@ -2536,7 +2356,7 @@ function InterfaceInstantiate(context, state, heritage, properties, options) { return InterfaceAction(InstantiateTypes(context, state, heritage), InstantiateProperties(context, state, properties), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/interface.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/interface.mjs /** Creates a deferred Interface action. */ function InterfaceDeferred(heritage, properties, options = {}) { return Deferred("Interface", [heritage, properties], options); @@ -2546,7 +2366,7 @@ function IsInterfaceDeferred(value) { return IsSchema$1(value) && HasPropertyKey$1(value, "action") && IsEqual$1(value.action, "Interface"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/cyclic/check.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/cyclic/check.mjs function FromRef$9(stack, context, ref) { return stack.includes(ref) ? true : FromType$22([...stack, ref], context, context[ref]); } @@ -2557,14 +2377,14 @@ function FromTypes$4(stack, context, types) { return ShiftLeft(types, (left, right) => FromType$22(stack, context, left) ? true : FromTypes$4(stack, context, right), () => false); } function FromType$22(stack, context, type) { - return IsRef$1(type) ? FromRef$9(stack, context, type.$ref) : IsArray(type) ? FromType$22(stack, context, type.items) : IsAsyncIterator(type) ? FromType$22(stack, context, type.iteratorItems) : IsConstructor(type) ? FromTypes$4(stack, context, [...type.parameters, type.instanceType]) : IsFunction(type) ? FromTypes$4(stack, context, [...type.parameters, type.returnType]) : IsInterfaceDeferred(type) ? FromProperties$4(stack, context, type.parameters[1]) : IsIntersect(type) ? FromTypes$4(stack, context, type.allOf) : IsIterator(type) ? FromType$22(stack, context, type.iteratorItems) : IsObject(type) ? FromProperties$4(stack, context, type.properties) : IsPromise(type) ? FromType$22(stack, context, type.item) : IsUnion(type) ? FromTypes$4(stack, context, type.anyOf) : IsTuple(type) ? FromTypes$4(stack, context, type.items) : IsRecord(type) ? FromType$22(stack, context, RecordValue(type)) : false; + return IsRef$1(type) ? FromRef$9(stack, context, type.$ref) : IsArray(type) ? FromType$22(stack, context, type.items) : IsConstructor(type) ? FromTypes$4(stack, context, [...type.parameters, type.instanceType]) : IsFunction(type) ? FromTypes$4(stack, context, [...type.parameters, type.returnType]) : IsInterfaceDeferred(type) ? FromProperties$4(stack, context, type.parameters[1]) : IsIntersect(type) ? FromTypes$4(stack, context, type.allOf) : IsObject(type) ? FromProperties$4(stack, context, type.properties) : IsUnion(type) ? FromTypes$4(stack, context, type.anyOf) : IsTuple(type) ? FromTypes$4(stack, context, type.items) : IsRecord(type) ? FromType$22(stack, context, RecordValue(type)) : false; } /** Performs a cyclic check on the given type. Initial key stack can be empty, but faster if specified */ function CyclicCheck(stack, context, type) { return FromType$22(stack, context, type); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/cyclic/candidates.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/cyclic/candidates.mjs function ResolveCandidateKeys(context, keys) { return keys.reduce((result, left) => { return CyclicCheck([left], context, context[left]) ? [...result, left] : result; @@ -2575,7 +2395,7 @@ function CyclicCandidates(context) { return ResolveCandidateKeys(context, PropertyKeys(context)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/cyclic/dependencies.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/cyclic/dependencies.mjs function FromRef$8(context, ref, result) { return result.includes(ref) ? result : ref in context ? FromType$21(context, context[ref], [...result, ref]) : Unreachable(); } @@ -2588,14 +2408,14 @@ function FromTypes$3(context, types, result) { }, result); } function FromType$21(context, type, result) { - return IsRef$1(type) ? FromRef$8(context, type.$ref, result) : IsArray(type) ? FromType$21(context, type.items, result) : IsAsyncIterator(type) ? FromType$21(context, type.iteratorItems, result) : IsConstructor(type) ? FromTypes$3(context, [...type.parameters, type.instanceType], result) : IsFunction(type) ? FromTypes$3(context, [...type.parameters, type.returnType], result) : IsInterfaceDeferred(type) ? FromProperties$3(context, type.parameters[1], result) : IsIntersect(type) ? FromTypes$3(context, type.allOf, result) : IsIterator(type) ? FromType$21(context, type.iteratorItems, result) : IsObject(type) ? FromProperties$3(context, type.properties, result) : IsPromise(type) ? FromType$21(context, type.item, result) : IsUnion(type) ? FromTypes$3(context, type.anyOf, result) : IsTuple(type) ? FromTypes$3(context, type.items, result) : IsRecord(type) ? FromType$21(context, RecordValue(type), result) : result; + return IsRef$1(type) ? FromRef$8(context, type.$ref, result) : IsArray(type) ? FromType$21(context, type.items, result) : IsConstructor(type) ? FromTypes$3(context, [...type.parameters, type.instanceType], result) : IsFunction(type) ? FromTypes$3(context, [...type.parameters, type.returnType], result) : IsInterfaceDeferred(type) ? FromProperties$3(context, type.parameters[1], result) : IsIntersect(type) ? FromTypes$3(context, type.allOf, result) : IsObject(type) ? FromProperties$3(context, type.properties, result) : IsUnion(type) ? FromTypes$3(context, type.anyOf, result) : IsTuple(type) ? FromTypes$3(context, type.items, result) : IsRecord(type) ? FromType$21(context, RecordValue(type), result) : result; } /** Returns dependent cyclic keys for the given type. This function is used to dead-type-eliminate (DTE) for initializing TCyclic types. */ function CyclicDependencies(context, key, type) { return FromType$21(context, type, [key]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/cyclic/extends.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/cyclic/extends.mjs function FromRef$7(_ref) { return Any(); } @@ -2613,7 +2433,7 @@ function FromTypes$2(types) { }, []); } function FromType$20(type) { - return IsRef$1(type) ? FromRef$7(type.$ref) : IsArray(type) ? _Array_(FromType$20(type.items), ArrayOptions(type)) : IsAsyncIterator(type) ? AsyncIterator(FromType$20(type.iteratorItems)) : IsConstructor(type) ? Constructor(FromTypes$2(type.parameters), FromType$20(type.instanceType)) : IsFunction(type) ? _Function_(FromTypes$2(type.parameters), FromType$20(type.returnType)) : IsIntersect(type) ? Intersect(FromTypes$2(type.allOf)) : IsIterator(type) ? Iterator(FromType$20(type.iteratorItems)) : IsObject(type) ? _Object_(FromProperties$2(type.properties)) : IsPromise(type) ? _Promise_(FromType$20(type.item)) : IsRecord(type) ? Record(RecordKey(type), FromType$20(RecordValue(type))) : IsUnion(type) ? Union(FromTypes$2(type.anyOf)) : IsTuple(type) ? Tuple(FromTypes$2(type.items)) : type; + return IsRef$1(type) ? FromRef$7(type.$ref) : IsArray(type) ? _Array_(FromType$20(type.items), ArrayOptions(type)) : IsConstructor(type) ? Constructor(FromTypes$2(type.parameters), FromType$20(type.instanceType)) : IsFunction(type) ? _Function_(FromTypes$2(type.parameters), FromType$20(type.returnType)) : IsIntersect(type) ? Intersect(FromTypes$2(type.allOf)) : IsObject(type) ? _Object_(FromProperties$2(type.properties)) : IsRecord(type) ? Record(RecordKey(type), FromType$20(RecordValue(type))) : IsUnion(type) ? Union(FromTypes$2(type.anyOf)) : IsTuple(type) ? Tuple(FromTypes$2(type.items)) : type; } function CyclicAnyFromParameters(defs, ref) { return ref in defs ? FromType$20(defs[ref]) : Unknown(); @@ -2623,7 +2443,7 @@ function CyclicExtends(type) { return CyclicAnyFromParameters(type.$defs, type.$ref); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/cyclic/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/cyclic/instantiate.mjs function CyclicInterface(context, heritage, properties) { const instantiatedHeritage = InstantiateTypes(context, State([], []), heritage); const instantiatedProperties = InstantiateProperties({}, State([], []), properties); @@ -2643,7 +2463,7 @@ function InstantiateCyclic(context, ref, type) { return Cyclic(CyclicDefinitions(context, CyclicDependencies(context, ref, type)), ref); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/cyclic/target.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/cyclic/target.mjs function Resolve(defs, ref) { return ref in defs ? IsRef$1(defs[ref]) ? Resolve(defs, defs[ref].$ref) : defs[ref] : Never(); } @@ -2652,7 +2472,7 @@ function CyclicTarget(defs, ref) { return Resolve(defs, ref); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/extends.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/extends.mjs function Canonical(type) { return IsCyclic(type) ? CyclicExtends(type) : IsUnsafe(type) ? Unknown() : type; } @@ -2661,7 +2481,7 @@ function Extends(inferred, left, right) { return ExtendsLeft(inferred, Canonical(left), Canonical(right)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/evaluate/compare.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/evaluate/compare.mjs const ResultEqual = "equal"; const ResultDisjoint = "disjoint"; const ResultLeftInside = "left-inside"; @@ -2672,7 +2492,7 @@ function Compare(left, right) { return IsExtendsTrueLike(extendsCheck[0]) && IsExtendsTrueLike(extendsCheck[1]) ? ResultEqual : IsExtendsTrueLike(extendsCheck[0]) && IsExtendsFalse(extendsCheck[1]) ? ResultLeftInside : IsExtendsFalse(extendsCheck[0]) && IsExtendsTrueLike(extendsCheck[1]) ? ResultRightInside : ResultDisjoint; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/evaluate/broaden.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/evaluate/broaden.mjs function BroadFilter(type, types) { return types.filter((left) => { return Compare(type, left) === "right-inside" ? false : true; @@ -2698,7 +2518,7 @@ function Broaden(types) { return Flatten(BroadenTypes(types)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/evaluate/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/evaluate/instantiate.mjs function EvaluateAction(type, options) { return Update$1(EvaluateType(type), {}, options); } @@ -2706,7 +2526,7 @@ function EvaluateInstantiate(context, state, type, options) { return EvaluateAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/call/distribute_arguments.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/call/distribute_arguments.mjs function CollectDistributionNames(expression, result = []) { return IsDeferred(expression) && IsEqual$1(expression.action, "Conditional") ? IsRef$1(expression.parameters[0]) ? CollectDistributionNames(expression.parameters[2], CollectDistributionNames(expression.parameters[3], [...result, expression.parameters[0]["$ref"]])) : CollectDistributionNames(expression.parameters[2], CollectDistributionNames(expression.parameters[3], result)) : IsDeferred(expression) && IsEqual$1(expression.action, "Mapped") ? IsDeferred(expression.parameters[1]) && IsEqual$1(expression.parameters[1].action, "KeyOf") && IsRef$1(expression.parameters[1].parameters[0]) ? [...result, expression.parameters[1].parameters[0]["$ref"]] : result : result; } @@ -2737,7 +2557,7 @@ function DistributeArguments(parameters, arguments_, expression) { return IsDeferred(expression) && IsEqual$1(expression.action, "Conditional") ? Distribute(zippedArguments) : IsDeferred(expression) && IsEqual$1(expression.action, "Mapped") ? Distribute(zippedArguments) : [arguments_]; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/call/resolve_target.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/call/resolve_target.mjs function FromNotResolvable() { return ["(not-resolvable)", Never()]; } @@ -2758,7 +2578,7 @@ function ResolveTarget(context, target, arguments_) { return FromType$19(context, "(anonymous)", target, arguments_); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/call/resolve_arguments.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/call/resolve_arguments.mjs function AssertArgumentExtends(name, type, extends_) { if (IsInfer(type) || IsCall(type) || IsExtendsTrueLike(Extends({}, type, extends_))) return; const cause = { @@ -2785,7 +2605,7 @@ function ResolveArgumentsContext(context, state, parameters, arguments_) { return BindParameters(context, state, parameters, arguments_); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/call/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/call/instantiate.mjs function Peek(state) { return IsGreaterThan$1(state.callstack.length, 0) ? state.callstack[state.callstack.length - 1] : ""; } @@ -2812,7 +2632,7 @@ function CallInstantiate(context, state, target, arguments_) { return IsGeneric(type) ? IsTailCall(state, name) ? CallConstruct(Ref$1(name), instantiatedArguments) : CallImmediate(context, state, Ref$1(name), type.parameters, type.expression, instantiatedArguments) : CallConstruct(target, instantiatedArguments); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/call.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/call.mjs function CallConstruct(target, arguments_) { return Create$1({ ["~kind"]: "Call" }, { type: "call", @@ -2825,7 +2645,7 @@ function IsCall(value) { return IsKind(value, "Call"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/immutable/instantiate_remove.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/immutable/instantiate_remove.mjs function RemoveImmutableOperation(type) { return Discard(type, ["~immutable"]); } @@ -2836,73 +2656,56 @@ function RemoveImmutableInstantiate(context, state, type, options) { return RemoveImmutableAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/awaited.mjs -/** Creates a deferred Awaited action. */ -function AwaitedDeferred(type, options = {}) { - return Deferred("Awaited", [type], options); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/awaited/instantiate.mjs -function AwaitedOperation(type) { - return IsPromise(type) ? AwaitedOperation(type.item) : type; -} -function AwaitedAction(type, options) { - return CanInstantiate([type]) ? Update$1(AwaitedOperation(type), {}, options) : AwaitedDeferred(type, options); -} -function AwaitedInstantiate(context, state, type, options) { - return AwaitedAction(InstantiateType(context, state, type), options); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/intrinsics/mapping.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/intrinsics/mapping.mjs function ApplyMapping(mapping, value) { return mapping(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/intrinsics/from_literal.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/intrinsics/from_literal.mjs function FromLiteral$4(mapping, value) { return IsString$3(value) ? Literal(ApplyMapping(mapping, value)) : Literal(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/intrinsics/from_template_literal.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/intrinsics/from_template_literal.mjs function FromTemplateLiteral$4(mapping, pattern) { return FromType$18(mapping, EvaluateTemplateLiteral(pattern)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/intrinsics/from_union.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/intrinsics/from_union.mjs function FromUnion$12(mapping, types) { return Union(types.map((type) => FromType$18(mapping, type))); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/intrinsics/from_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/intrinsics/from_type.mjs function FromType$18(mapping, type) { return IsLiteral(type) ? FromLiteral$4(mapping, type.const) : IsTemplateLiteral(type) ? FromTemplateLiteral$4(mapping, type.pattern) : IsUnion(type) ? FromUnion$12(mapping, type.anyOf) : type; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/capitalize.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/capitalize.mjs /** Creates a deferred Capitalize action. */ function CapitalizeDeferred(type, options = {}) { return Deferred("Capitalize", [type], options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/lowercase.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/lowercase.mjs /** Creates a deferred Lowercase action. */ function LowercaseDeferred(type, options = {}) { return Deferred("Lowercase", [type], options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/uncapitalize.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/uncapitalize.mjs /** Creates a deferred Uncapitalize action. */ function UncapitalizeDeferred(type, options = {}) { return Deferred("Uncapitalize", [type], options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/uppercase.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/uppercase.mjs /** Creates a deferred Uppercase action. */ function UppercaseDeferred(type, options = {}) { return Deferred("Uppercase", [type], options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/intrinsics/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/intrinsics/instantiate.mjs const CapitalizeMapping = (input) => input[0].toUpperCase() + input.slice(1); const LowercaseMapping = (input) => input.toLowerCase(); const UncapitalizeMapping = (input) => input[0].toLowerCase() + input.slice(1); @@ -2932,7 +2735,7 @@ function UppercaseInstantiate(context, state, type, options) { return UppercaseAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/conditional.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/conditional.mjs /** Creates a deferred Conditional action. */ function ConditionalDeferred(left, right, true_, false_, options = {}) { return Deferred("Conditional", [ @@ -2943,7 +2746,7 @@ function ConditionalDeferred(left, right, true_, false_, options = {}) { ], options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/conditional/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/conditional/instantiate.mjs function ConditionalOperation(context, state, left, right, true_, false_) { const extendsResult = Extends(context, left, right); return IsExtendsUnion(extendsResult) ? Union([InstantiateType(extendsResult.inferred, state, true_), InstantiateType(context, state, false_)]) : IsExtendsTrue(extendsResult) ? InstantiateType(extendsResult.inferred, state, true_) : InstantiateType(context, state, false_); @@ -2955,13 +2758,13 @@ function ConditionalInstantiate(context, state, left, right, true_, false_, opti return ConditionalAction(context, state, InstantiateType(context, state, left), InstantiateType(context, state, right), true_, false_, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/constructor_parameters.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/constructor_parameters.mjs /** Creates a deferred ConstructorParameters action. */ function ConstructorParametersDeferred(type, options = {}) { return Deferred("ConstructorParameters", [type], options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/constructor_parameters/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/constructor_parameters/instantiate.mjs function ConstructorParametersOperation(type) { const parameters = IsConstructor(type) ? type["parameters"] : []; return Tuple(InstantiateElements({}, State([], []), parameters)); @@ -2973,13 +2776,13 @@ function ConstructorParametersInstantiate(context, state, type, options) { return ConstructorParametersAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/exclude.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/exclude.mjs /** Creates a deferred Exclude action. */ function ExcludeDeferred(left, right, options = {}) { return Deferred("Exclude", [left, right], options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/exclude/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/exclude/instantiate.mjs function ExcludeAction(left, right, options) { return CanInstantiate([left, right]) ? Update$1(ExcludeOperation(left, right), {}, options) : ExcludeDeferred(left, right, options); } @@ -2987,13 +2790,13 @@ function ExcludeInstantiate(context, state, left, right, options) { return ExcludeAction(InstantiateType(context, state, left), InstantiateType(context, state, right), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/extract.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/extract.mjs /** Creates a deferred Extract action. */ function ExtractDeferred(left, right, options = {}) { return Deferred("Extract", [left, right], options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/extract/operation.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/extract/operation.mjs function ExtractType(left, right) { return IsExtendsTrueLike(Extends({}, left, right)) ? [left] : []; } @@ -3007,7 +2810,7 @@ function ExtractOperation(left, right) { return EvaluateUnion(ExtractUnion(IsUnion(evaluated) ? evaluated.anyOf : [evaluated], right)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/extract/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/extract/instantiate.mjs function ExtractAction(left, right, options) { return CanInstantiate([left, right]) ? Update$1(ExtractOperation(left, right), {}, options) : ExtractDeferred(left, right, options); } @@ -3015,23 +2818,23 @@ function ExtractInstantiate(context, state, left, right, options) { return ExtractAction(InstantiateType(context, state, left), InstantiateType(context, state, right), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/indexed.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/indexed.mjs /** Creates a deferred Index action. */ function IndexDeferred(type, indexer, options = {}) { return Deferred("Index", [type, indexer], options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/object/from_cyclic.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/object/from_cyclic.mjs function FromCyclic$10(defs, ref) { return FromType$17(CyclicTarget(defs, ref)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/object/from_dependent.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/object/from_dependent.mjs function FromDependent$4(if_, then_, else_) { return FromType$17(EvaluateDependent(if_, then_, else_)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/object/from_intersect.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/object/from_intersect.mjs function CollapseIntersectProperties(left, right) { const leftKeys = Keys$1(left).filter((key) => !HasPropertyKey$1(right, key)); const rightKeys = Keys$1(right).filter((key) => !HasPropertyKey$1(left, key)); @@ -3056,17 +2859,17 @@ function FromIntersect$10(types) { }, {}); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/object/from_object.mjs -function FromObject$13(properties) { +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/object/from_object.mjs +function FromObject$12(properties) { return properties; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/object/from_tuple.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/object/from_tuple.mjs function FromTuple$9(types) { return FromType$17(TupleToObject(Tuple(types))); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/object/from_union.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/object/from_union.mjs function CollapseUnionProperties(left, right) { return Keys$1(left).filter((key) => key in right).reduce((result, key) => { return { @@ -3082,12 +2885,12 @@ function FromUnion$11(types) { return ShiftLeft(types, (left, right) => ReduceVariants(right, FromType$17(left)), () => Unreachable()); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/object/from_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/object/from_type.mjs function FromType$17(type) { - return IsCyclic(type) ? FromCyclic$10(type.$defs, type.$ref) : IsDependent(type) ? FromDependent$4(type.if, type.then, type.else) : IsIntersect(type) ? FromIntersect$10(type.allOf) : IsUnion(type) ? FromUnion$11(type.anyOf) : IsTuple(type) ? FromTuple$9(type.items) : IsObject(type) ? FromObject$13(type.properties) : {}; + return IsCyclic(type) ? FromCyclic$10(type.$defs, type.$ref) : IsDependent(type) ? FromDependent$4(type.if, type.then, type.else) : IsIntersect(type) ? FromIntersect$10(type.allOf) : IsUnion(type) ? FromUnion$11(type.anyOf) : IsTuple(type) ? FromTuple$9(type.items) : IsObject(type) ? FromObject$12(type.properties) : {}; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/object/collapse.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/object/collapse.mjs /** * Collapses a type into a TObject schema. This is a lossy fast path used to * normalize arbitrary TSchema types into a TObject structure. This function is @@ -3098,14 +2901,14 @@ function CollapseToObject(type) { return _Object_(FromType$17(type)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/helpers/keys.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/helpers/keys.mjs const integerKeyPattern = /* @__PURE__ */ new RegExp("^(?:0|[1-9][0-9]*)$"); function ConvertToIntegerKey(value) { const normal = `${value}`; return integerKeyPattern.test(normal) ? parseInt(normal) : value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexed/from_array.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexed/from_array.mjs function NormalizeLiteral(value) { return Literal(ConvertToIntegerKey(value)); } @@ -3115,53 +2918,53 @@ function NormalizeIndexerTypes(types) { function NormalizeIndexer(type) { return IsIntersect(type) ? Intersect(NormalizeIndexerTypes(type.allOf)) : IsUnion(type) ? Union(NormalizeIndexerTypes(type.anyOf)) : IsLiteral(type) ? NormalizeLiteral(type.const) : type; } -function FromArray$10(type, indexer) { +function FromArray$9(type, indexer) { return IsExtendsTrueLike(Extends({}, NormalizeIndexer(indexer), Number$1())) ? type : IsLiteral(indexer) && IsEqual$1(indexer.const, "length") ? Number$1() : Never(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexable/from_cyclic.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexable/from_cyclic.mjs function FromCyclic$9(defs, ref) { return FromType$16(CyclicTarget(defs, ref)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexable/from_dependent.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexable/from_dependent.mjs function FromDependent$3(if_, then_, else_) { return FromType$16(EvaluateDependent(if_, then_, else_)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexable/from_enum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexable/from_enum.mjs function FromEnum$3(values) { return FromType$16(EvaluateEnum(values)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexable/from_intersect.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexable/from_intersect.mjs function FromIntersect$9(types) { return FromType$16(EvaluateIntersect(types)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexable/from_literal.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexable/from_literal.mjs function FromLiteral$3(value) { return [`${value}`]; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexable/from_template_literal.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexable/from_template_literal.mjs function FromTemplateLiteral$3(pattern) { return FromType$16(EvaluateTemplateLiteral(pattern)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexable/from_union.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexable/from_union.mjs function FromUnion$10(types) { return types.reduce((result, left) => { return [...result, ...FromType$16(left)]; }, []); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexable/from_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexable/from_type.mjs function FromType$16(type) { return IsCyclic(type) ? FromCyclic$9(type.$defs, type.$ref) : IsDependent(type) ? FromDependent$3(type.if, type.then, type.else) : IsEnum$1(type) ? FromEnum$3(type.enum) : IsIntersect(type) ? FromIntersect$9(type.allOf) : IsLiteral(type) ? FromLiteral$3(type.const) : IsTemplateLiteral(type) ? FromTemplateLiteral$3(type.pattern) : IsUnion(type) ? FromUnion$10(type.anyOf) : []; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexable/to_indexable_keys.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexable/to_indexable_keys.mjs /** * Transforms a type meant as an Indexer into string[] array which is used by Indexable types * like Index, Pick and Omit to select from property keys. This function should only be used @@ -3172,18 +2975,18 @@ function ToIndexableKeys(type) { return FromType$16(type); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/this/expand_this.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/this/expand_this.mjs function FromTypes$1(properties, types) { return types.map((type) => FromType$15(properties, type)); } function FromType$15(properties, type) { - return IsArray(type) ? _Array_(FromType$15(properties, type.items)) : IsAsyncIterator(type) ? AsyncIterator(FromType$15(properties, type.iteratorItems)) : IsConstructor(type) ? Constructor(FromTypes$1(properties, type.parameters), FromType$15(properties, type.instanceType)) : IsFunction(type) ? _Function_(FromTypes$1(properties, type.parameters), FromType$15(properties, type.returnType)) : IsIterator(type) ? Iterator(FromType$15(properties, type.iteratorItems)) : IsPromise(type) ? _Promise_(FromType$15(properties, type.item)) : IsTuple(type) ? Tuple(FromTypes$1(properties, type.items)) : IsUnion(type) ? Union(FromTypes$1(properties, type.anyOf)) : IsIntersect(type) ? Intersect(FromTypes$1(properties, type.allOf)) : IsThis(type) ? _Object_(properties) : type; + return IsArray(type) ? _Array_(FromType$15(properties, type.items)) : IsConstructor(type) ? Constructor(FromTypes$1(properties, type.parameters), FromType$15(properties, type.instanceType)) : IsFunction(type) ? _Function_(FromTypes$1(properties, type.parameters), FromType$15(properties, type.returnType)) : IsTuple(type) ? Tuple(FromTypes$1(properties, type.items)) : IsUnion(type) ? Union(FromTypes$1(properties, type.anyOf)) : IsIntersect(type) ? Intersect(FromTypes$1(properties, type.allOf)) : IsThis(type) ? _Object_(properties) : type; } function ExpandThis(properties, type) { return FromType$15(properties, type); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexed/from_object.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexed/from_object.mjs function IndexProperty(properties, key) { return ExpandThis(properties, key in properties ? properties[key] : Never()); } @@ -3202,11 +3005,11 @@ function NumericKeys(keys) { function FromIndexerNumber(properties) { return EvaluateUnion(IndexProperties(properties, NumericKeys(PropertyKeys(properties)))); } -function FromObject$12(properties, indexer) { +function FromObject$11(properties, indexer) { return IsNumber(indexer) ? FromIndexerNumber(properties) : FromIndexer(properties, indexer); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexed/array_indexer.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexed/array_indexer.mjs function ConvertLiteral(value) { return Literal(ConvertToIntegerKey(value)); } @@ -3218,7 +3021,7 @@ function FormatArrayIndexer(type) { return IsIntersect(type) ? Intersect(ArrayIndexerTypes(type.allOf)) : IsUnion(type) ? Union(ArrayIndexerTypes(type.anyOf)) : IsLiteral(type) ? ConvertLiteral(type.const) : type; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexed/from_tuple.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexed/from_tuple.mjs function IndexElementsWithIndexer(types, indexer) { return types.reduceRight((result, right, index) => { return IsExtendsTrueLike(Extends({}, Literal(index), indexer)) ? [right, ...result] : result; @@ -3234,12 +3037,12 @@ function FromTuple$8(types, indexer) { return IsLiteral(indexer) && IsEqual$1(indexer.const, "length") ? Literal(types.length) : IsNumber(indexer) || IsInteger(indexer) ? FromTupleWithoutIndexer(types) : FromTupleWithIndexer(types, indexer); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexed/from_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexed/from_type.mjs function FromType$14(type, indexer) { - return IsArray(type) ? FromArray$10(type.items, indexer) : IsObject(type) ? FromObject$12(type.properties, indexer) : IsTuple(type) ? FromTuple$8(type.items, indexer) : Never(); + return IsArray(type) ? FromArray$9(type.items, indexer) : IsObject(type) ? FromObject$11(type.properties, indexer) : IsTuple(type) ? FromTuple$8(type.items, indexer) : Never(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexed/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexed/instantiate.mjs function NormalizeType$1(type) { return IsCyclic(type) || IsDependent(type) || IsIntersect(type) || IsUnion(type) ? CollapseToObject(type) : type; } @@ -3250,13 +3053,13 @@ function IndexInstantiate(context, state, type, indexer, options) { return IndexAction(InstantiateType(context, state, type), InstantiateType(context, state, indexer), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/instance_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/instance_type.mjs /** Creates a deferred InstanceType action. */ function InstanceTypeDeferred(type, options = {}) { return Deferred("InstanceType", [type], options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/instance_type/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/instance_type/instantiate.mjs function InstanceTypeOperation(type) { return IsConstructor(type) ? type["instanceType"] : Never(); } @@ -3267,13 +3070,13 @@ function InstanceTypeInstantiate(context, state, type, options = {}) { return InstanceTypeAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/keyof.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/keyof.mjs /** Creates a deferred KeyOf action. */ function KeyOfDeferred(type, options = {}) { return Deferred("KeyOf", [type], options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/keyof/from_any.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/keyof/from_any.mjs function FromAny() { return Union([ Number$1(), @@ -3282,37 +3085,37 @@ function FromAny() { ]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/keyof/from_array.mjs -function FromArray$9(_type) { +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/keyof/from_array.mjs +function FromArray$8(_type) { return Number$1(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/keyof/from_object.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/keyof/from_object.mjs function FromPropertyKeys(keys) { return keys.reduce((result, left) => { return IsLiteralValue(left) ? [...result, Literal(ConvertToIntegerKey(left))] : Unreachable(); }, []); } -function FromObject$11(properties) { +function FromObject$10(properties) { return EvaluateUnionFast(FromPropertyKeys(Keys$1(properties))); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/keyof/from_record.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/keyof/from_record.mjs function FromRecord$6(type) { return RecordKey(type); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/keyof/from_tuple.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/keyof/from_tuple.mjs function FromTuple$7(types) { return EvaluateUnionFast(types.map((_, index) => Literal(index))); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/keyof/from_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/keyof/from_type.mjs function FromType$13(type) { - return IsAny(type) ? FromAny() : IsArray(type) ? FromArray$9(type.items) : IsObject(type) ? FromObject$11(type.properties) : IsRecord(type) ? FromRecord$6(type) : IsTuple(type) ? FromTuple$7(type.items) : Never(); + return IsAny(type) ? FromAny() : IsArray(type) ? FromArray$8(type.items) : IsObject(type) ? FromObject$10(type.properties) : IsRecord(type) ? FromRecord$6(type) : IsTuple(type) ? FromTuple$7(type.items) : Never(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/keyof/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/keyof/instantiate.mjs function NormalizeType(type) { return IsCyclic(type) || IsDependent(type) || IsIntersect(type) || IsUnion(type) ? CollapseToObject(type) : type; } @@ -3323,7 +3126,7 @@ function KeyOfInstantiate(context, state, type, options) { return KeyOfAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/mapped.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/mapped.mjs /** Creates a deferred Mapped action. */ function MappedDeferred(identifier, type, as, property, options = {}) { return Deferred("Mapped", [ @@ -3334,7 +3137,7 @@ function MappedDeferred(identifier, type, as, property, options = {}) { ], options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/mapped/mapped_variants.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/mapped/mapped_variants.mjs function FromTemplateLiteral$2(pattern) { return FromType$12(EvaluateTemplateLiteral(pattern)); } @@ -3356,7 +3159,7 @@ function MappedVariants(type) { return FromType$12(type); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/mapped/mapped_operation.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/mapped/mapped_operation.mjs function CanonicalAs(instantiatedAs) { return IsTemplateLiteral(instantiatedAs) ? EvaluateTemplateLiteral(instantiatedAs.pattern) : instantiatedAs; } @@ -3380,7 +3183,7 @@ function MappedOperation(context, state, identifier, type, as, property) { return EvaluateIntersect(MappedObjects(MappedProperties(context, state, identifier, MappedVariants(type), as, property))); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/mapped/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/mapped/instantiate.mjs function MappedAction(context, state, identifier, type, as, property, options) { return CanInstantiate([type]) ? Update$1(MappedOperation(context, state, identifier, type, as, property), {}, options) : MappedDeferred(identifier, type, as, property, options); } @@ -3388,7 +3191,7 @@ function MappedInstantiate(context, state, identifier, type, as, property, optio return MappedAction(context, state, identifier, InstantiateType(context, state, type), as, property, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/module/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/module/instantiate.mjs function InstantiateCyclics(context, declarations, cyclicKeys) { const declarationContext = Assign(context, declarations); return Keys$1(declarations).filter((key) => cyclicKeys.includes(key)).reduce((result, key) => { @@ -3420,13 +3223,13 @@ function ModuleInstantiate(context, _state, declarations, options) { return InstantiateModule(context, declarations, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/non_nullable.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/non_nullable.mjs /** Creates a deferred NonNullable action. */ function NonNullableDeferred(type, options = {}) { return Deferred("NonNullable", [type], options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/non_nullable/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/non_nullable/instantiate.mjs function NonNullableOperation(type) { return ExcludeAction(type, Union([Null(), Undefined()]), {}); } @@ -3437,20 +3240,20 @@ function NonNullableInstantiate(context, state, type, options) { return NonNullableAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/omit.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/omit.mjs /** Creates a deferred Omit action. */ function OmitDeferred(type, indexer, options = {}) { return Deferred("Omit", [type, indexer], options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexable/to_indexable.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexable/to_indexable.mjs /** Transforms a type into a TProperties used for indexing operations */ function ToIndexable(type) { const collapsed = CollapseToObject(type); return IsObject(collapsed) ? collapsed.properties : Unreachable(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/omit/from_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/omit/from_type.mjs function FromKeys$1(properties, keys) { return Keys$1(properties).reduce((result, key) => { return keys.includes(key) ? result : { @@ -3463,7 +3266,7 @@ function FromType$11(type, indexer) { return _Object_(FromKeys$1(ToIndexable(type), ToIndexableKeys(indexer))); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/omit/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/omit/instantiate.mjs function OmitAction(type, indexer, options) { return CanInstantiate([type, indexer]) ? Update$1(FromType$11(type, indexer), {}, options) : OmitDeferred(type, indexer, options); } @@ -3471,13 +3274,13 @@ function OmitInstantiate(context, state, type, indexer, options) { return OmitAction(InstantiateType(context, state, type), InstantiateType(context, state, indexer), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/parameters.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/parameters.mjs /** Creates a deferred Parameters action. */ function ParametersDeferred(type, options = {}) { return Deferred("Parameters", [type], options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/parameters/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/parameters/instantiate.mjs function ParametersOperation(type) { const parameters = IsFunction(type) ? type["parameters"] : []; return Tuple(InstantiateElements({}, State([], []), parameters)); @@ -3489,35 +3292,35 @@ function ParametersInstantiate(context, state, type, options) { return ParametersAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/partial.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/partial.mjs /** Creates a deferred Partial action. */ function PartialDeferred(type, options = {}) { return Deferred("Partial", [type], options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/partial/from_cyclic.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/partial/from_cyclic.mjs function FromCyclic$8(defs, ref) { const partial = FromType$10(CyclicTarget(defs, ref)); return Cyclic(Assign(defs, { [ref]: partial }), ref); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/partial/from_dependent.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/partial/from_dependent.mjs function FromDependent$2(if_, then_, else_) { return FromType$10(EvaluateDependent(if_, then_, else_)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/partial/from_intersect.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/partial/from_intersect.mjs function FromIntersect$8(types) { return FromType$10(EvaluateIntersect(types)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/partial/from_union.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/partial/from_union.mjs function FromUnion$8(types) { return Union(types.map((type) => FromType$10(type))); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/partial/from_object.mjs -function FromObject$10(properties) { +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/partial/from_object.mjs +function FromObject$9(properties) { return _Object_(Keys$1(properties).reduce((result, left) => { return { ...result, @@ -3526,12 +3329,12 @@ function FromObject$10(properties) { }, {})); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/partial/from_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/partial/from_type.mjs function FromType$10(type) { - return IsCyclic(type) ? FromCyclic$8(type.$defs, type.$ref) : IsDependent(type) ? FromDependent$2(type.if, type.then, type.else) : IsIntersect(type) ? FromIntersect$8(type.allOf) : IsUnion(type) ? FromUnion$8(type.anyOf) : IsObject(type) ? FromObject$10(type.properties) : _Object_({}); + return IsCyclic(type) ? FromCyclic$8(type.$defs, type.$ref) : IsDependent(type) ? FromDependent$2(type.if, type.then, type.else) : IsIntersect(type) ? FromIntersect$8(type.allOf) : IsUnion(type) ? FromUnion$8(type.anyOf) : IsObject(type) ? FromObject$9(type.properties) : _Object_({}); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/partial/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/partial/instantiate.mjs function PartialAction(type, options) { return CanInstantiate([type]) ? Update$1(FromType$10(type), {}, options) : PartialDeferred(type, options); } @@ -3539,13 +3342,13 @@ function PartialInstantiate(context, state, type, options) { return PartialAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/pick.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/pick.mjs /** Creates a deferred Pick action. */ function PickDeferred(type, indexer, options = {}) { return Deferred("Pick", [type, indexer], options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/pick/from_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/pick/from_type.mjs function FromKeys(properties, keys) { return Keys$1(properties).reduce((result, key) => { return keys.includes(key) ? Assign(result, { [key]: properties[key] }) : result; @@ -3555,7 +3358,7 @@ function FromType$9(type, indexer) { return _Object_(FromKeys(ToIndexable(type), ToIndexableKeys(indexer))); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/pick/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/pick/instantiate.mjs function PickAction(type, indexer, options) { return CanInstantiate([type, indexer]) ? Update$1(FromType$9(type, indexer), {}, options) : PickDeferred(type, indexer, options); } @@ -3563,35 +3366,35 @@ function PickInstantiate(context, state, type, indexer, options) { return PickAction(InstantiateType(context, state, type), InstantiateType(context, state, indexer), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/readonly_object.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/readonly_object.mjs /** Creates a deferred ReadonlyType action. */ function ReadonlyObjectDeferred(type, options = {}) { return Deferred("ReadonlyObject", [type], options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/readonly_object/from_array.mjs -function FromArray$8(type) { +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/readonly_object/from_array.mjs +function FromArray$7(type) { return AddImmutable(_Array_(type)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/readonly_object/from_cyclic.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/readonly_object/from_cyclic.mjs function FromCyclic$7(defs, ref) { const partial = FromType$8(CyclicTarget(defs, ref)); return Cyclic(Assign(defs, { [ref]: partial }), ref); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/readonly_object/from_dependent.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/readonly_object/from_dependent.mjs function FromDependent$1(if_, then_, else_) { return FromType$8(EvaluateDependent(if_, then_, else_)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/readonly_object/from_intersect.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/readonly_object/from_intersect.mjs function FromIntersect$7(types) { return FromType$8(EvaluateIntersect(types)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/readonly_object/from_object.mjs -function FromObject$9(properties) { +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/readonly_object/from_object.mjs +function FromObject$8(properties) { return _Object_(Keys$1(properties).reduce((result, left) => { return { ...result, @@ -3600,22 +3403,22 @@ function FromObject$9(properties) { }, {})); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/readonly_object/from_tuple.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/readonly_object/from_tuple.mjs function FromTuple$6(types) { return AddImmutable(Tuple(types)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/readonly_object/from_union.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/readonly_object/from_union.mjs function FromUnion$7(types) { return Union(types.map((type) => FromType$8(type))); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/readonly_object/from_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/readonly_object/from_type.mjs function FromType$8(type) { - return IsArray(type) ? FromArray$8(type.items) : IsCyclic(type) ? FromCyclic$7(type.$defs, type.$ref) : IsDependent(type) ? FromDependent$1(type.if, type.then, type.else) : IsIntersect(type) ? FromIntersect$7(type.allOf) : IsObject(type) ? FromObject$9(type.properties) : IsTuple(type) ? FromTuple$6(type.items) : IsUnion(type) ? FromUnion$7(type.anyOf) : type; + return IsArray(type) ? FromArray$7(type.items) : IsCyclic(type) ? FromCyclic$7(type.$defs, type.$ref) : IsDependent(type) ? FromDependent$1(type.if, type.then, type.else) : IsIntersect(type) ? FromIntersect$7(type.allOf) : IsObject(type) ? FromObject$8(type.properties) : IsTuple(type) ? FromTuple$6(type.items) : IsUnion(type) ? FromUnion$7(type.anyOf) : type; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/readonly_object/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/readonly_object/instantiate.mjs function ReadonlyObjectAction(type, options) { return CanInstantiate([type]) ? Update$1(FromType$8(type), {}, options) : ReadonlyObjectDeferred(type); } @@ -3623,34 +3426,34 @@ function ReadonlyObjectInstantiate(context, state, type, options) { return ReadonlyObjectAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/ref/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/ref/instantiate.mjs function RefInstantiate(context, state, type, ref) { return state.visited.includes(ref) ? type : ref in context ? InstantiateType(context, State(state["callstack"], [...state["visited"], ref]), context[ref]) : type; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/required/from_cyclic.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/required/from_cyclic.mjs function FromCyclic$6(defs, ref) { const partial = FromType$7(CyclicTarget(defs, ref)); return Cyclic(Assign(defs, { [ref]: partial }), ref); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/required/from_dependent.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/required/from_dependent.mjs function FromDependent(if_, then_, else_) { return FromType$7(EvaluateDependent(if_, then_, else_)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/required/from_intersect.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/required/from_intersect.mjs function FromIntersect$6(types) { return FromType$7(EvaluateIntersect(types)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/required/from_union.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/required/from_union.mjs function FromUnion$6(types) { return Union(types.map((type) => FromType$7(type))); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/required/from_object.mjs -function FromObject$8(properties) { +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/required/from_object.mjs +function FromObject$7(properties) { return _Object_(Keys$1(properties).reduce((result, left) => { return { ...result, @@ -3659,18 +3462,18 @@ function FromObject$8(properties) { }, {})); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/required/from_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/required/from_type.mjs function FromType$7(type) { - return IsCyclic(type) ? FromCyclic$6(type.$defs, type.$ref) : IsDependent(type) ? FromDependent(type.if, type.then, type.else) : IsIntersect(type) ? FromIntersect$6(type.allOf) : IsUnion(type) ? FromUnion$6(type.anyOf) : IsObject(type) ? FromObject$8(type.properties) : _Object_({}); + return IsCyclic(type) ? FromCyclic$6(type.$defs, type.$ref) : IsDependent(type) ? FromDependent(type.if, type.then, type.else) : IsIntersect(type) ? FromIntersect$6(type.allOf) : IsUnion(type) ? FromUnion$6(type.anyOf) : IsObject(type) ? FromObject$7(type.properties) : _Object_({}); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/required.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/required.mjs /** Creates a deferred Required action. */ function RequiredDeferred(type, options = {}) { return Deferred("Required", [type], options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/required/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/required/instantiate.mjs function RequiredAction(type, options) { return CanInstantiate([type]) ? Update$1(FromType$7(type), {}, options) : RequiredDeferred(type, options); } @@ -3678,13 +3481,13 @@ function RequiredInstantiate(context, state, type, options) { return RequiredAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/return_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/return_type.mjs /** Creates a deferred ReturnType action. */ function ReturnTypeDeferred(type, options = {}) { return Deferred("ReturnType", [type], options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/return_type/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/return_type/instantiate.mjs function ReturnTypeOperation(type) { return IsFunction(type) ? type["returnType"] : Never(); } @@ -3695,7 +3498,7 @@ function ReturnTypeInstantiate(context, state, type, options = {}) { return ReturnTypeAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/with.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/with.mjs /** Creates a deferred With action. */ function WithDeferred(type, options) { return Deferred("With", [type, options], {}); @@ -3705,7 +3508,7 @@ function With(type, options) { return WithAction(type, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/with/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/with/instantiate.mjs function WithAction(type, options) { return CanInstantiate([type]) ? Update$1(type, {}, options) : WithDeferred(type, options); } @@ -3713,7 +3516,7 @@ function WithInstantiate(context, state, type, options) { return WithAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/rest/spread.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/rest/spread.mjs function SpreadElement(type) { return IsRest(type) ? IsTuple(type.items) ? RestSpread(type.items.items) : IsInfer(type.items) ? [type] : IsRef$1(type.items) ? [type] : [Never()] : [type]; } @@ -3723,7 +3526,7 @@ function RestSpread(types) { }, []); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/instantiate.mjs function State(callstack, visited) { return { callstack, @@ -3747,28 +3550,26 @@ function InstantiateElements(context, state, types) { function InstantiateTypes(context, state, types) { return types.map((type) => InstantiateType(context, state, type)); } +function WithModifiers(type, instantiatedType) { + const withOptional = IsOptional(type) ? AddOptionalAction(instantiatedType, {}) : instantiatedType; + const withReadonly = IsReadonly(type) ? AddReadonlyAction(withOptional, {}) : withOptional; + return IsImmutable(type) ? AddImmutableAction(withReadonly, {}) : withReadonly; +} function InstantiateDeferred(context, state, action, parameters, options) { - return IsEqual$1(action, "AddImmutable") ? AddImmutableInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "RemoveImmutable") ? RemoveImmutableInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "AddReadonly") ? AddReadonlyInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "RemoveReadonly") ? RemoveReadonlyInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "AddOptional") ? AddOptionalInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "RemoveOptional") ? RemoveOptionalInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "Awaited") ? AwaitedInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "Capitalize") ? CapitalizeInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "Conditional") ? ConditionalInstantiate(context, state, parameters[0], parameters[1], parameters[2], parameters[3], options) : IsEqual$1(action, "ConstructorParameters") ? ConstructorParametersInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "Evaluate") ? EvaluateInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "Exclude") ? ExcludeInstantiate(context, state, parameters[0], parameters[1], options) : IsEqual$1(action, "Extract") ? ExtractInstantiate(context, state, parameters[0], parameters[1], options) : IsEqual$1(action, "Index") ? IndexInstantiate(context, state, parameters[0], parameters[1], options) : IsEqual$1(action, "InstanceType") ? InstanceTypeInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "Interface") ? InterfaceInstantiate(context, state, parameters[0], parameters[1], options) : IsEqual$1(action, "KeyOf") ? KeyOfInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "Lowercase") ? LowercaseInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "Mapped") ? MappedInstantiate(context, state, parameters[0], parameters[1], parameters[2], parameters[3], options) : IsEqual$1(action, "Module") ? ModuleInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "NonNullable") ? NonNullableInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "Pick") ? PickInstantiate(context, state, parameters[0], parameters[1], options) : IsEqual$1(action, "Parameters") ? ParametersInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "Partial") ? PartialInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "Omit") ? OmitInstantiate(context, state, parameters[0], parameters[1], options) : IsEqual$1(action, "ReadonlyObject") ? ReadonlyObjectInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "Record") ? RecordInstantiate(context, state, parameters[0], parameters[1], options) : IsEqual$1(action, "Required") ? RequiredInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "ReturnType") ? ReturnTypeInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "TemplateLiteral") ? TemplateLiteralInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "Uncapitalize") ? UncapitalizeInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "Uppercase") ? UppercaseInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "With") ? WithInstantiate(context, state, parameters[0], parameters[1]) : Deferred(action, parameters, options); + return IsEqual$1(action, "AddImmutable") ? AddImmutableInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "RemoveImmutable") ? RemoveImmutableInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "AddReadonly") ? AddReadonlyInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "RemoveReadonly") ? RemoveReadonlyInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "AddOptional") ? AddOptionalInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "RemoveOptional") ? RemoveOptionalInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "Capitalize") ? CapitalizeInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "Conditional") ? ConditionalInstantiate(context, state, parameters[0], parameters[1], parameters[2], parameters[3], options) : IsEqual$1(action, "ConstructorParameters") ? ConstructorParametersInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "Evaluate") ? EvaluateInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "Exclude") ? ExcludeInstantiate(context, state, parameters[0], parameters[1], options) : IsEqual$1(action, "Extract") ? ExtractInstantiate(context, state, parameters[0], parameters[1], options) : IsEqual$1(action, "Index") ? IndexInstantiate(context, state, parameters[0], parameters[1], options) : IsEqual$1(action, "InstanceType") ? InstanceTypeInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "Interface") ? InterfaceInstantiate(context, state, parameters[0], parameters[1], options) : IsEqual$1(action, "KeyOf") ? KeyOfInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "Lowercase") ? LowercaseInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "Mapped") ? MappedInstantiate(context, state, parameters[0], parameters[1], parameters[2], parameters[3], options) : IsEqual$1(action, "Module") ? ModuleInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "NonNullable") ? NonNullableInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "Pick") ? PickInstantiate(context, state, parameters[0], parameters[1], options) : IsEqual$1(action, "Parameters") ? ParametersInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "Partial") ? PartialInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "Omit") ? OmitInstantiate(context, state, parameters[0], parameters[1], options) : IsEqual$1(action, "ReadonlyObject") ? ReadonlyObjectInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "Record") ? RecordInstantiate(context, state, parameters[0], parameters[1], options) : IsEqual$1(action, "Required") ? RequiredInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "ReturnType") ? ReturnTypeInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "TemplateLiteral") ? TemplateLiteralInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "Uncapitalize") ? UncapitalizeInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "Uppercase") ? UppercaseInstantiate(context, state, parameters[0], options) : IsEqual$1(action, "With") ? WithInstantiate(context, state, parameters[0], parameters[1]) : Deferred(action, parameters, options); } function InstantiateImmediate(context, state, type) { - type = IsBase(type) ? type.Clone() : type; - return IsRef$1(type) ? RefInstantiate(context, state, type, type.$ref) : IsArray(type) ? _Array_(InstantiateType(context, state, type.items), ArrayOptions(type)) : IsAsyncIterator(type) ? AsyncIterator(InstantiateType(context, state, type.iteratorItems), AsyncIteratorOptions(type)) : IsCall(type) ? CallInstantiate(context, state, type.target, type.arguments) : IsConstructor(type) ? Constructor(InstantiateTypes(context, state, type.parameters), InstantiateType(context, state, type.instanceType), ConstructorOptions(type)) : IsDeferred(type) ? InstantiateDeferred(context, state, type.action, type.parameters, type.options) : IsFunction(type) ? _Function_(InstantiateTypes(context, state, type.parameters), InstantiateType(context, state, type.returnType), FunctionOptions(type)) : IsDependent(type) ? Dependent(InstantiateType(context, state, type.if), InstantiateType(context, state, type.then), InstantiateType(context, state, type.else), DependentOptions(type)) : IsIntersect(type) ? Intersect(InstantiateTypes(context, state, type.allOf), IntersectOptions(type)) : IsIterator(type) ? Iterator(InstantiateType(context, state, type.iteratorItems), IteratorOptions(type)) : IsObject(type) ? _Object_(InstantiateProperties(context, state, type.properties), ObjectOptions(type)) : IsPromise(type) ? _Promise_(InstantiateType(context, state, type.item), PromiseOptions(type)) : IsRecord(type) ? RecordFromPattern(RecordPattern(type), InstantiateType(context, state, RecordValue(type))) : IsRest(type) ? Rest(InstantiateType(context, state, type.items)) : IsTuple(type) ? Tuple(InstantiateElements(context, state, type.items), TupleOptions(type)) : IsUnion(type) ? Union(InstantiateTypes(context, state, type.anyOf), UnionOptions(type)) : type; -} -function WithModifiers(type, instantiatedType) { - const withImmutable = IsImmutable(type) ? Immutable(instantiatedType) : instantiatedType; - const withReadonly = IsReadonly(type) ? Readonly(withImmutable) : withImmutable; - return IsOptional(type) ? Optional(withReadonly) : withReadonly; + return WithModifiers(type, IsRef$1(type) ? RefInstantiate(context, state, type, type.$ref) : IsArray(type) ? _Array_(InstantiateType(context, state, type.items), ArrayOptions(type)) : IsCall(type) ? CallInstantiate(context, state, type.target, type.arguments) : IsConstructor(type) ? Constructor(InstantiateTypes(context, state, type.parameters), InstantiateType(context, state, type.instanceType), ConstructorOptions(type)) : IsFunction(type) ? _Function_(InstantiateTypes(context, state, type.parameters), InstantiateType(context, state, type.returnType), FunctionOptions(type)) : IsDependent(type) ? Dependent(InstantiateType(context, state, type.if), InstantiateType(context, state, type.then), InstantiateType(context, state, type.else), DependentOptions(type)) : IsIntersect(type) ? Intersect(InstantiateTypes(context, state, type.allOf), IntersectOptions(type)) : IsObject(type) ? _Object_(InstantiateProperties(context, state, type.properties), ObjectOptions(type)) : IsRecord(type) ? RecordFromPattern(RecordPattern(type), InstantiateType(context, state, RecordValue(type))) : IsRest(type) ? Rest(InstantiateType(context, state, type.items)) : IsTuple(type) ? Tuple(InstantiateElements(context, state, type.items), TupleOptions(type)) : IsUnion(type) ? Union(InstantiateTypes(context, state, type.anyOf), UnionOptions(type)) : type); } function InstantiateType(context, state, type) { - const instantiatedType = InstantiateImmediate(context, state, type); - return IsDeferred(type) ? instantiatedType : WithModifiers(type, instantiatedType); + return IsDeferred(type) ? InstantiateDeferred(context, state, type.action, type.parameters, type.options) : InstantiateImmediate(context, state, type); } /** Instantiates computed schematics using the given context and type. */ function Instantiate(context, type) { return InstantiateType(context, State([], []), type); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/immutable/instantiate_add.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/immutable/instantiate_add.mjs function AddImmutableOperation(type) { return Update$1(type, { "~immutable": true }, {}); } @@ -3779,19 +3580,19 @@ function AddImmutableInstantiate(context, state, type, options) { return AddImmutableAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/_add_immutable.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/_add_immutable.mjs /** Applies an AddImmutable action to a type. */ function AddImmutable(type, options = {}) { return AddImmutableAction(type, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/evaluate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/evaluate.mjs /** Applies an Evaluate action to a type. */ function Evaluate(type, options = {}) { return EvaluateAction(type, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/priority/priority.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/priority/priority.mjs function Comparer(left, right) { const compareResult = Compare(left, right); return IsEqual$1(compareResult, "right-inside") ? 1 : IsEqual$1(compareResult, "disjoint") ? 1 : 0; @@ -3816,15 +3617,7 @@ function Priority(types) { return Sort(types); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/_guard.mjs -function IsGuardInterface(value) { - return IsObject$2(value) && HasPropertyKey$1(value, "check") && HasPropertyKey$1(value, "errors") && IsFunction$2(value.check) && IsFunction$2(value.errors); -} -function IsGuard(value) { - return HasPropertyKey$1(value, "~guard") && IsGuardInterface(value["~guard"]); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/_refine.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/_refine.mjs /** * Returns true if the schema contains an '~refine` keyword * @specification None @@ -3833,7 +3626,7 @@ function IsRefine(value) { return HasPropertyKey$1(value, "~refine") && IsArray$2(value["~refine"]) && Every$1(value["~refine"], 0, (value) => IsObject$2(value) && HasPropertyKey$1(value, "check") && HasPropertyKey$1(value, "error") && IsFunction$2(value.check) && IsFunction$2(value.error)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/schema.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/schema.mjs /** Returns true if this value is object like */ function IsSchemaObject(value) { return IsObject$2(value) && !IsArray$2(value); @@ -3847,7 +3640,7 @@ function IsSchema(value) { return IsSchemaObject(value) || IsBooleanSchema(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/additionalItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/additionalItems.mjs /** * Returns true if the schema contains a valid additionalItems property * @specification Json Schema 7 @@ -3856,7 +3649,7 @@ function IsAdditionalItems(schema) { return HasPropertyKey$1(schema, "additionalItems") && IsSchema(schema.additionalItems); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/additionalProperties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/additionalProperties.mjs /** * Returns true if the schema contains a valid additionalProperties property * @specification Json Schema 7 @@ -3865,7 +3658,7 @@ function IsAdditionalProperties(schema) { return HasPropertyKey$1(schema, "additionalProperties") && IsSchema(schema.additionalProperties); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/allOf.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/allOf.mjs /** * Returns true if the schema contains a valid allOf property * @specification Json Schema 7 @@ -3874,7 +3667,7 @@ function IsAllOf(schema) { return HasPropertyKey$1(schema, "allOf") && IsArray$2(schema.allOf) && schema.allOf.every((value) => IsSchema(value)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/anchor.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/anchor.mjs /** * Returns true if the schema contains a valid $anchor property */ @@ -3882,7 +3675,7 @@ function IsAnchor(schema) { return HasPropertyKey$1(schema, "$anchor") && IsString$3(schema.$anchor); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/anyOf.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/anyOf.mjs /** * Returns true if the schema contains a valid anyOf property * @specification Json Schema 7 @@ -3891,7 +3684,7 @@ function IsAnyOf(schema) { return HasPropertyKey$1(schema, "anyOf") && IsArray$2(schema.anyOf) && schema.anyOf.every((value) => IsSchema(value)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/const.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/const.mjs /** * Returns true if the schema contains a valid const property * @specification Json Schema 7 @@ -3900,7 +3693,7 @@ function IsConst(value) { return HasPropertyKey$1(value, "const"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/contains.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/contains.mjs /** * Returns true if the schema contains a valid contains property * @specification Json Schema 7 @@ -3909,7 +3702,7 @@ function IsContains(schema) { return HasPropertyKey$1(schema, "contains") && IsSchema(schema.contains); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/default.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/default.mjs /** * Returns true if the schema contains a valid contentMediaType property * @specification Json Schema 7 @@ -3918,7 +3711,7 @@ function IsDefault(schema) { return HasPropertyKey$1(schema, "default"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/dependencies.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/dependencies.mjs /** * Returns true if the schema contains a valid dependencies property * @specification Json Schema 7 @@ -3927,7 +3720,7 @@ function IsDependencies(schema) { return HasPropertyKey$1(schema, "dependencies") && IsObject$2(schema.dependencies) && Object.values(schema.dependencies).every((value) => IsSchema(value) || IsArray$2(value) && value.every((value) => IsString$3(value))); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/dependentRequired.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/dependentRequired.mjs /** * Returns true if the schema contains a valid dependentRequired property * @specification Json Schema 2019-09 @@ -3936,7 +3729,7 @@ function IsDependentRequired(schema) { return HasPropertyKey$1(schema, "dependentRequired") && IsObject$2(schema.dependentRequired) && Object.values(schema.dependentRequired).every((value) => IsArray$2(value) && value.every((value) => IsString$3(value))); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/dependentSchemas.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/dependentSchemas.mjs /** * Returns true if the schema contains a valid dependentRequired property * @specification Json Schema 2019-09 @@ -3945,7 +3738,7 @@ function IsDependentSchemas(schema) { return HasPropertyKey$1(schema, "dependentSchemas") && IsObject$2(schema.dependentSchemas) && Object.values(schema.dependentSchemas).every((value) => IsSchema(value)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/dynamicAnchor.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/dynamicAnchor.mjs /** * Returns true if the schema contains a valid $dynamicAnchor property */ @@ -3953,7 +3746,7 @@ function IsDynamicAnchor(schema) { return HasPropertyKey$1(schema, "$dynamicAnchor") && IsString$3(schema.$dynamicAnchor); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/dynamicRef.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/dynamicRef.mjs /** * Returns true if the schema contains a valid $dynamicRef property */ @@ -3961,7 +3754,7 @@ function IsDynamicRef(schema) { return HasPropertyKey$1(schema, "$dynamicRef") && IsString$3(schema.$dynamicRef); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/else.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/else.mjs /** * Returns true if the schema contains a valid else property * @specification Json Schema 7 @@ -3970,7 +3763,7 @@ function IsElse(schema) { return HasPropertyKey$1(schema, "else") && IsSchema(schema.else); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/enum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/enum.mjs /** * Returns true if the schema contains a valid enum property * @specification Json Schema 7 @@ -3979,7 +3772,7 @@ function IsEnum(schema) { return HasPropertyKey$1(schema, "enum") && IsArray$2(schema.enum); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/exclusiveMaximum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/exclusiveMaximum.mjs /** * Returns true if the schema contains a valid exclusiveMaximum property * @specification Json Schema 7 @@ -3988,7 +3781,7 @@ function IsExclusiveMaximum(schema) { return HasPropertyKey$1(schema, "exclusiveMaximum") && (IsNumber$3(schema.exclusiveMaximum) || IsBigInt$2(schema.exclusiveMaximum)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/exclusiveMinimum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/exclusiveMinimum.mjs /** * Returns true if the schema contains a valid exclusiveMinimum property * @specification Json Schema 7 @@ -3997,7 +3790,7 @@ function IsExclusiveMinimum(schema) { return HasPropertyKey$1(schema, "exclusiveMinimum") && (IsNumber$3(schema.exclusiveMinimum) || IsBigInt$2(schema.exclusiveMinimum)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/format.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/format.mjs /** * Returns true if the schema contains a valid format property * @specification Json Schema 7 @@ -4006,7 +3799,7 @@ function IsFormat(schema) { return HasPropertyKey$1(schema, "format") && IsString$3(schema.format); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/id.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/id.mjs /** * Returns true if the schema contains a valid $id property * @specification Json Schema 7 @@ -4015,7 +3808,7 @@ function IsId(schema) { return HasPropertyKey$1(schema, "$id") && IsString$3(schema.$id); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/if.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/if.mjs /** * Returns true if the schema contains a valid $id property * @specification Json Schema 7 @@ -4024,7 +3817,7 @@ function IsIf(schema) { return HasPropertyKey$1(schema, "if") && IsSchema(schema.if); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/items.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/items.mjs /** * Returns true if the schema contains a valid items property * @specification Json Schema 7 @@ -4039,7 +3832,7 @@ function IsItemsSized(schema) { return IsItems(schema) && IsArray$2(schema.items); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/maximum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/maximum.mjs /** * Returns true if the schema contains a valid maximum property * @specification Json Schema 7 @@ -4048,7 +3841,7 @@ function IsMaximum(schema) { return HasPropertyKey$1(schema, "maximum") && (IsNumber$3(schema.maximum) || IsBigInt$2(schema.maximum)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/maxContains.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/maxContains.mjs /** * Returns true if the schema contains a valid maxContains property * @specification Json Schema 2019-09 @@ -4057,7 +3850,7 @@ function IsMaxContains(schema) { return HasPropertyKey$1(schema, "maxContains") && IsNumber$3(schema.maxContains); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/maxItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/maxItems.mjs /** * Returns true if the schema contains a valid maxItems property * @specification Json Schema 7 @@ -4066,7 +3859,7 @@ function IsMaxItems(schema) { return HasPropertyKey$1(schema, "maxItems") && IsNumber$3(schema.maxItems); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/maxLength.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/maxLength.mjs /** * Returns true if the schema contains a valid maxLength property * @specification Json Schema 7 @@ -4075,7 +3868,7 @@ function IsMaxLength(schema) { return HasPropertyKey$1(schema, "maxLength") && IsNumber$3(schema.maxLength); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/maxProperties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/maxProperties.mjs /** * Returns true if the schema contains a valid maxProperties property * @specification Json Schema 7 @@ -4084,7 +3877,7 @@ function IsMaxProperties(schema) { return HasPropertyKey$1(schema, "maxProperties") && IsNumber$3(schema.maxProperties); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/minimum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/minimum.mjs /** * Returns true if the schema contains a valid minimum property * @specification Json Schema 7 @@ -4093,7 +3886,7 @@ function IsMinimum(schema) { return HasPropertyKey$1(schema, "minimum") && (IsNumber$3(schema.minimum) || IsBigInt$2(schema.minimum)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/minContains.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/minContains.mjs /** * Returns true if the schema contains a valid maxContains property * @specification Json Schema 2019-09 @@ -4102,7 +3895,7 @@ function IsMinContains(schema) { return HasPropertyKey$1(schema, "minContains") && IsNumber$3(schema.minContains); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/minItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/minItems.mjs /** * Returns true if the schema contains a valid minItems property * @specification Json Schema 7 @@ -4111,7 +3904,7 @@ function IsMinItems(schema) { return HasPropertyKey$1(schema, "minItems") && IsNumber$3(schema.minItems); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/minLength.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/minLength.mjs /** * Returns true if the schema contains a valid minLength property * @specification Json Schema 7 @@ -4120,7 +3913,7 @@ function IsMinLength(schema) { return HasPropertyKey$1(schema, "minLength") && IsNumber$3(schema.minLength); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/minProperties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/minProperties.mjs /** * Returns true if the schema contains a valid minProperties property * @specification Json Schema 7 @@ -4129,7 +3922,7 @@ function IsMinProperties(schema) { return HasPropertyKey$1(schema, "minProperties") && IsNumber$3(schema.minProperties); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/multipleOf.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/multipleOf.mjs /** * Returns true if the schema contains a valid multipleOf property * @specification Json Schema 7 @@ -4138,7 +3931,7 @@ function IsMultipleOf(schema) { return HasPropertyKey$1(schema, "multipleOf") && (IsNumber$3(schema.multipleOf) || IsBigInt$2(schema.multipleOf)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/not.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/not.mjs /** * Returns true if the schema contains a valid not property * @specification Json Schema 7 @@ -4147,7 +3940,7 @@ function IsNot(schema) { return HasPropertyKey$1(schema, "not") && IsSchema(schema.not); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/oneOf.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/oneOf.mjs /** * Returns true if the schema contains a valid oneOf property * @specification Json Schema 7 @@ -4156,7 +3949,7 @@ function IsOneOf(schema) { return HasPropertyKey$1(schema, "oneOf") && IsArray$2(schema.oneOf) && schema.oneOf.every((value) => IsSchema(value)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/pattern.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/pattern.mjs /** * Returns true if the schema contains a valid pattern property * @specification Json Schema 7 @@ -4165,7 +3958,7 @@ function IsPattern(schema) { return HasPropertyKey$1(schema, "pattern") && (IsString$3(schema.pattern) || schema.pattern instanceof RegExp); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/patternProperties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/patternProperties.mjs /** * Returns true if the schema contains a valid patternProperties property * @specification Json Schema 7 @@ -4174,7 +3967,7 @@ function IsPatternProperties(schema) { return HasPropertyKey$1(schema, "patternProperties") && IsObject$2(schema.patternProperties) && Object.values(schema.patternProperties).every((value) => IsSchema(value)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/prefixItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/prefixItems.mjs /** * Returns true if the schema contains a valid prefixItems property */ @@ -4182,7 +3975,7 @@ function IsPrefixItems(schema) { return HasPropertyKey$1(schema, "prefixItems") && IsArray$2(schema.prefixItems) && schema.prefixItems.every((schema) => IsSchema(schema)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/properties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/properties.mjs /** * Returns true if the schema contains a valid properties property * @specification Json Schema 7 @@ -4191,7 +3984,7 @@ function IsProperties(schema) { return HasPropertyKey$1(schema, "properties") && IsObject$2(schema.properties) && Object.values(schema.properties).every((value) => IsSchema(value)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/propertyNames.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/propertyNames.mjs /** * Returns true if the schema contains a valid propertyNames property * @specification Json Schema 7 @@ -4200,7 +3993,7 @@ function IsPropertyNames(schema) { return HasPropertyKey$1(schema, "propertyNames") && (IsObject$2(schema.propertyNames) || IsSchema(schema.propertyNames)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/recursiveAnchor.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/recursiveAnchor.mjs /** * Returns true if the schema contains a valid $recursiveAnchor property */ @@ -4214,7 +4007,7 @@ function IsRecursiveAnchorTrue(schema) { return IsRecursiveAnchor(schema) && IsEqual$1(schema.$recursiveAnchor, true); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/recursiveRef.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/recursiveRef.mjs /** * Returns true if the schema contains a valid $recursiveRef property */ @@ -4222,7 +4015,7 @@ function IsRecursiveRef(schema) { return HasPropertyKey$1(schema, "$recursiveRef") && IsString$3(schema.$recursiveRef); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/ref.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/ref.mjs /** * Returns true if the schema contains a valid $ref property * @specification Json Schema 7 @@ -4231,7 +4024,7 @@ function IsRef(schema) { return HasPropertyKey$1(schema, "$ref") && IsString$3(schema.$ref); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/required.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/required.mjs /** * Returns true if the schema contains a valid required property * @specification Json Schema 7 @@ -4240,7 +4033,7 @@ function IsRequired(schema) { return HasPropertyKey$1(schema, "required") && IsArray$2(schema.required) && schema.required.every((value) => IsString$3(value)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/then.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/then.mjs /** * Returns true if the schema contains a valid then property * @specification Json Schema 7 @@ -4249,7 +4042,7 @@ function IsThen(schema) { return HasPropertyKey$1(schema, "then") && IsSchema(schema.then); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/type.mjs /** * Returns true if the schema contains a valid type property * @specification Json Schema 7 @@ -4258,7 +4051,7 @@ function IsType(schema) { return HasPropertyKey$1(schema, "type") && (IsString$3(schema.type) || IsArray$2(schema.type) && schema.type.every((value) => IsString$3(value))); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/uniqueItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/uniqueItems.mjs /** * Returns true if the schema contains a valid uniqueItems property * @specification Json Schema 7 @@ -4267,7 +4060,7 @@ function IsUniqueItems(schema) { return HasPropertyKey$1(schema, "uniqueItems") && IsBoolean$3(schema.uniqueItems); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/unevaluatedItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/unevaluatedItems.mjs /** * Returns true if the schema contains a valid unevaluatedItems property * @specification Json Schema 2019-09 @@ -4276,7 +4069,7 @@ function IsUnevaluatedItems(schema) { return HasPropertyKey$1(schema, "unevaluatedItems") && IsSchema(schema.unevaluatedItems); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/unevaluatedProperties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/unevaluatedProperties.mjs /** * Returns true if the schema contains a valid unevaluatedProperties property * @specification Json Schema 2019-09 @@ -4285,7 +4078,7 @@ function IsUnevaluatedProperties(schema) { return HasPropertyKey$1(schema, "unevaluatedProperties") && IsSchema(schema.unevaluatedProperties); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/_context.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/_context.mjs function HasUnevaluatedFromObject(value) { return IsUnevaluatedItems(value) || IsUnevaluatedProperties(value) || Keys$1(value).some((key) => HasUnevaluatedFromUnknown(value[key])); } @@ -4389,7 +4182,7 @@ var AccumulatedErrorContext = class extends ErrorContext { } }; //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/_externals.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/_externals.mjs const state = { identifier: "External", variables: [] @@ -4406,23 +4199,7 @@ function GetExternal() { return { ...state }; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/_guard.mjs -function BuildGuard(_stack, _context, schema, value) { - return Call(Member(Member(CreateVariable(schema), "~guard"), "check"), [value]); -} -function CheckGuard(_stack, _context, schema, value) { - return schema["~guard"].check(value); -} -function ErrorGuard(_stack, context, schemaPath, instancePath, schema, value) { - return schema["~guard"].check(value) || context.AddError({ - keyword: "~guard", - schemaPath, - instancePath, - params: { errors: schema["~guard"].errors(value) } - }); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/_refine.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/_refine.mjs function BuildRefine(_stack, _context, schema, value) { return Every(CreateVariable(schema["~refine"].map((refinement) => refinement)), Constant(0), ["refinement", "_"], Call(Member("refinement", "check"), [value])); } @@ -4443,14 +4220,14 @@ function ErrorRefine(_stack, context, schemaPath, instancePath, schema, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/_unique.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/_unique.mjs let index = 0; /** Returns a Unique Variable Name */ function Unique() { return `var_${index++}`; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/additionalItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/additionalItems.mjs function IsValid$4(schema) { return IsItems(schema) && IsArray$2(schema.items); } @@ -4478,7 +4255,7 @@ function ErrorAdditionalItems(stack, context, schemaPath, instancePath, schema, }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/additionalProperties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/additionalProperties.mjs function GetPropertyKeyAsPattern(key) { return `^${key.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}$`; } @@ -4530,7 +4307,7 @@ function ErrorAdditionalProperties(stack, context, schemaPath, instancePath, sch }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/_reducer.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/_reducer.mjs function Reducer(stack, context, schemas, value, check) { const results = ConstDeclaration("results", "[]"); const context_n = schemas.map((_schema, index) => ConstDeclaration(`context_${index}`, New("CheckContext", []))); @@ -4546,7 +4323,7 @@ function Reducer(stack, context, schemas, value, check) { ])), []); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/allOf.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/allOf.mjs function BuildAllOfStandard(stack, context, schema, value) { return Reducer(stack, context, schema.allOf, value, IsEqual(Member("results", "length"), Constant(schema.allOf.length))); } @@ -4577,7 +4354,7 @@ function ErrorAllOf(stack, context, schemaPath, instancePath, schema, value) { return isAllOf; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/anyOf.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/anyOf.mjs function BuildAnyOfStandard(stack, context, schema, value) { return Reducer(stack, context, schema.anyOf, value, IsGreaterThan(Member("results", "length"), Constant(0))); } @@ -4612,7 +4389,7 @@ function ErrorAnyOf(stack, context, schemaPath, instancePath, schema, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/boolean.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/boolean.mjs function BuildBooleanSchema(_stack, _context, schema, _value) { return schema ? Constant(true) : Constant(false); } @@ -4628,7 +4405,7 @@ function ErrorBooleanSchema(stack, context, schemaPath, instancePath, schema, va }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/const.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/const.mjs function BuildConst(_stack, _context, schema, value) { return IsValueLike(schema.const) ? IsEqual(value, Constant(schema.const)) : IsDeepEqual(value, CreateVariable(schema.const)); } @@ -4644,7 +4421,7 @@ function ErrorConst(stack, context, schemaPath, instancePath, schema, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/contains.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/contains.mjs function IsValid$3(schema) { return !(IsMinContains(schema) && IsEqual$1(schema.minContains, 0)); } @@ -4666,7 +4443,7 @@ function ErrorContains(stack, context, schemaPath, instancePath, schema, value) }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/dependencies.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/dependencies.mjs function BuildDependencies(stack, context, schema, value) { return Or(IsEqual(Member(Keys(value), "length"), Constant(0)), ReduceAnd(Entries$2(schema.dependencies).map(([key, schema]) => { const notKey = Not(HasPropertyKey(value, Constant(key))); @@ -4699,7 +4476,7 @@ function ErrorDependencies(stack, context, schemaPath, instancePath, schema, val return isLength || isEvery; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/dependentRequired.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/dependentRequired.mjs function BuildDependentRequired(_stack, _context, schema, value) { return Or(IsEqual(Member(Keys(value), "length"), Constant(0)), ReduceAnd(Entries$2(schema.dependentRequired).map(([key, keys]) => { return Or(Not(HasPropertyKey(value, Constant(key))), ReduceAnd(keys.map((key) => HasPropertyKey(value, Constant(key))))); @@ -4728,7 +4505,7 @@ function ErrorDependentRequired(_stack, context, schemaPath, instancePath, schem return isLength || isEveryEntry; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/dependentSchemas.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/dependentSchemas.mjs function BuildDependentSchemas(stack, context, schema, value) { return Or(IsEqual(Member(Keys(value), "length"), Constant(0)), ReduceAnd(Entries$2(schema.dependentSchemas).map(([key, schema]) => { return Or(Not(HasPropertyKey(value, Constant(key))), BuildSchema(stack, context, schema, value)); @@ -4750,7 +4527,7 @@ function ErrorDependentSchemas(stack, context, schemaPath, instancePath, schema, return isLength || isEvery; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/dynamicRef.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/dynamicRef.mjs function BuildDynamicRef(stack, context, schema, value) { return CreateFunction(stack, context, stack.DynamicRef(schema) ?? false, value); } @@ -4763,7 +4540,7 @@ function ErrorDynamicRef(stack, context, _schemaPath, instancePath, schema, valu return IsSchema(target) && ErrorSchema(stack, context, "#", instancePath, target, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/enum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/enum.mjs function BuildEnum(_stack, _context, schema, value) { return ReduceOr(schema.enum.map((option) => { if (IsValueLike(option)) return IsEqual(value, Constant(option)); @@ -4782,7 +4559,7 @@ function ErrorEnum(stack, context, schemaPath, instancePath, schema, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/exclusiveMaximum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/exclusiveMaximum.mjs function BuildExclusiveMaximum(_stack, _context, schema, value) { return IsLessThan(value, Constant(schema.exclusiveMaximum)); } @@ -4801,7 +4578,7 @@ function ErrorExclusiveMaximum(stack, context, schemaPath, instancePath, schema, }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/exclusiveMinimum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/exclusiveMinimum.mjs function BuildExclusiveMinimum(_stack, _context, schema, value) { return IsGreaterThan(value, Constant(schema.exclusiveMinimum)); } @@ -4820,7 +4597,7 @@ function ErrorExclusiveMinimum(stack, context, schemaPath, instancePath, schema, }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/date.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/date.mjs const DAYS = [ 0, 31, @@ -4854,7 +4631,7 @@ function IsDate(value) { return month >= 1 && month <= 12 && day >= 1 && day <= (month === 2 && IsLeapYear(year) ? 29 : DAYS[month]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/time.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/time.mjs const TIME = /^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(?:Z|([+-])(\d\d):(\d\d))?$/i; /** * Returns true if the value is a ISO time string @@ -4877,7 +4654,7 @@ function IsTime(value, strictTimeZone = true) { return (utcHr === 23 || utcHr === -1) && (utcMin === 59 || utcMin === -1) && sec < 61; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/date_time.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/date_time.mjs /** * Returns true if the value is a ISO8601 DateTime string * @source ajv-formats @@ -4888,7 +4665,7 @@ function IsDateTime(value, strictTimeZone = true) { return dateTime.length === 2 && IsDate(dateTime[0]) && IsTime(dateTime[1], strictTimeZone); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/duration.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/duration.mjs const Duration = /^P((\d+Y(\d+M(\d+D)?)?|\d+M(\d+D)?|\d+D)(T(\d+H(\d+M(\d+S)?)?|\d+M(\d+S)?|\d+S))?|T(\d+H(\d+M(\d+S)?)?|\d+M(\d+S)?|\d+S)|\d+W)$/; /** * Returns true if the value is a valid ISO-8601 duration. @@ -4898,7 +4675,7 @@ function IsDuration(value) { return Duration.test(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/email.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/email.mjs const Email = /^(?!.*\.\.)[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i; /** * Returns true if the value is an Email @@ -4908,7 +4685,7 @@ function IsEmail(value) { return Email.test(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/_puny.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/_puny.mjs const PUNYCODE_BASE = 36; const PUNYCODE_TMIN = 1; const PUNYCODE_TMAX = 26; @@ -4966,7 +4743,7 @@ function Decode$8(value) { return globalThis.String.fromCodePoint(...output); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/_idna.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/_idna.mjs function IsNonspacingMark(cp) { return /\p{Mn}/u.test(String.fromCodePoint(cp)); } @@ -5101,7 +4878,11 @@ function IsPuny(value) { } function IsPunyLabel(value) { try { - return IsUnicodeLabel(Decode$8(value.slice(4))); + const payload = value.slice(4).toLowerCase(); + if (payload.lastIndexOf("-") === 0) return false; + const decoded = Decode$8(payload); + if (!decoded) return false; + return IsUnicodeLabel(decoded); } catch { return false; } @@ -5115,7 +4896,7 @@ function IsLabel(value) { return IsPuny(value) ? IsPunyLabel(value) : IsAsciiLabel(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/hostname.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/hostname.mjs /** * Returns true if the value is a valid hostname. * @specification https://tools.ietf.org/html/rfc1123 @@ -5129,7 +4910,7 @@ function IsHostname(value) { return true; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/idn_email.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/idn_email.mjs const IdnEmail = /^(?!.*\.\.)[\p{L}\p{N}!#$%&'*+/=?^_`{|}~-]+(?:\.[\p{L}\p{N}!#$%&'*+/=?^_`{|}~-]+)*@[\p{L}\p{N}](?:[\p{L}\p{N}-]{0,61}[\p{L}\p{N}])?(?:\.[\p{L}\p{N}](?:[\p{L}\p{N}-]{0,61}[\p{L}\p{N}])?)*$/iu; /** * Returns true if the value is an IdnEmail @@ -5139,7 +4920,7 @@ function IsIdnEmail(value) { return IdnEmail.test(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/idn_hostname.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/idn_hostname.mjs /** * Returns true if the value is a valid internationalized (IDN) hostname. * @specification https://tools.ietf.org/html/rfc3490 @@ -5154,7 +4935,7 @@ function IsIdnHostname(value) { return true; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/ipv4.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/ipv4.mjs function IsIPv4Internal(value, start, end) { let dots = 0; let num = 0; @@ -5184,7 +4965,7 @@ function IsIPv4(value) { return IsIPv4Internal(value, 0, value.length); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/ipv6.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/ipv6.mjs function InRange(ch) { return ch >= 48 && ch <= 57 || ch >= 65 && ch <= 70 || ch >= 97 && ch <= 102; } @@ -5234,7 +5015,7 @@ function IsIPv6(value) { return compressed ? groups <= 7 : groups === 8; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/iri_reference.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/iri_reference.mjs function TryUrl(value) { try { new URL(value, "http://example.com"); @@ -5261,7 +5042,7 @@ function IsIriReference(value) { } } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/iri.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/iri.mjs /** * Returns true if the value is a Iri * @specification @@ -5275,7 +5056,7 @@ function IsIri(value) { } } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/json_pointer_uri_fragment.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/json_pointer_uri_fragment.mjs const JsonPointerUriFragment = /^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i; /** * Returns true if the value is a json pointer uri fragment @@ -5286,7 +5067,7 @@ function IsJsonPointerUriFragment(value) { return JsonPointerUriFragment.test(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/json_pointer.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/json_pointer.mjs const JsonPointer = /^(?:\/(?:[^~/]|~0|~1)*)*$/; /** * Returns true if the value is a json pointer @@ -5297,7 +5078,7 @@ function IsJsonPointer(value) { return JsonPointer.test(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/regex.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/regex.mjs /** * Returns true if the value is a regular expression string pattern * @specification @@ -5313,7 +5094,7 @@ function IsRegex(value) { } } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/relative_json_pointer.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/relative_json_pointer.mjs const RelativeJsonPointer = /^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/; /** * Returns true if the value is a relative json pointer @@ -5324,7 +5105,7 @@ function IsRelativeJsonPointer(value) { return RelativeJsonPointer.test(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/uri_reference.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/uri_reference.mjs const UriReference = /^(?!.*[^\x00-\x7F])(?!.*\\)(?:(?:[a-z][a-z0-9+\-.]*:)?(?:\/\/[^\s[\]{}<>^`|]*)?|[^\s[\]{}<>^`|]*)(?:\?[^\s[\]{}<>^`|]*)?(?:#[^\s[\]{}<>^`|]*)?$/i; /** * Returns true if the value is a valid URI Reference. @@ -5334,7 +5115,7 @@ function IsUriReference(value) { return UriReference.test(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/uri_template.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/uri_template.mjs const UriTemplate = /^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i; /** * Returns true if the value is a uri template @@ -5345,7 +5126,7 @@ function IsUriTemplate(value) { return UriTemplate.test(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/uri.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/uri.mjs function IsAlpha(ch) { return ch >= 97 && ch <= 122 || ch >= 65 && ch <= 90; } @@ -5440,7 +5221,7 @@ function IsUri(value) { return true; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/url.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/url.mjs const Url = /^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu; /** * Returns true if the value is a Url @@ -5451,7 +5232,7 @@ function IsUrl(value) { return Url.test(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/uuid.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/uuid.mjs const Uuid = /^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i; /** * Returns true if the value is a uuid @@ -5462,7 +5243,7 @@ function IsUuid(value) { return Uuid.test(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/_registry.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/_registry.mjs const formats = /* @__PURE__ */ new Map(); /** Clears all entries */ function Clear() { @@ -5515,7 +5296,7 @@ function Reset() { } Reset(); //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/format.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/format.mjs var format_exports = /* @__PURE__ */ __exportAll({ Clear: () => Clear, Entries: () => Entries, @@ -5547,7 +5328,7 @@ var format_exports = /* @__PURE__ */ __exportAll({ Test: () => Test }); //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/format.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/format.mjs function BuildFormat(_stack, _context, schema, value) { return Call(Member("Format", "Test"), [Constant(schema.format), value]); } @@ -5563,7 +5344,7 @@ function ErrorFormat(stack, context, schemaPath, instancePath, schema, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/if.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/if.mjs function BuildIf(stack, context, schema, value) { const thenSchema = IsThen(schema) ? schema.then : true; const elseSchema = IsElse(schema) ? schema.else : true; @@ -5593,7 +5374,7 @@ function ErrorIf(stack, context, schemaPath, instancePath, schema, value) { return isIf; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/items.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/items.mjs function BuildItemsSized(stack, context, schema, value) { return ReduceAnd(schema.items.map((schema, index) => { const isLength = IsLessEqualThan(Member(value, "length"), Constant(index)); @@ -5641,7 +5422,7 @@ function ErrorItems(stack, context, schemaPath, instancePath, schema, value) { return IsItemsSized(schema) ? ErrorItemsSized(stack, context, schemaPath, instancePath, schema, value) : ErrorItemsUnsized(stack, context, schemaPath, instancePath, schema, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/maxContains.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/maxContains.mjs function IsValid$2(schema) { return IsContains(schema); } @@ -5667,7 +5448,7 @@ function ErrorMaxContains(stack, context, schemaPath, instancePath, schema, valu }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/maximum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/maximum.mjs function BuildMaximum(_stack, _context, schema, value) { return IsLessEqualThan(value, Constant(schema.maximum)); } @@ -5686,7 +5467,7 @@ function ErrorMaximum(stack, context, schemaPath, instancePath, schema, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/maxItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/maxItems.mjs function BuildMaxItems(_stack, _context, schema, value) { return IsLessEqualThan(Member(value, "length"), Constant(schema.maxItems)); } @@ -5702,7 +5483,7 @@ function ErrorMaxItems(stack, context, schemaPath, instancePath, schema, value) }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/maxLength.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/maxLength.mjs function BuildMaxLength(_stack, _context, schema, value) { return IsMaxLength$1(value, Constant(schema.maxLength)); } @@ -5718,7 +5499,7 @@ function ErrorMaxLength(stack, context, schemaPath, instancePath, schema, value) }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/maxProperties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/maxProperties.mjs function BuildMaxProperties(_stack, _context, schema, value) { return IsLessEqualThan(Member(Keys(value), "length"), Constant(schema.maxProperties)); } @@ -5734,7 +5515,7 @@ function ErrorMaxProperties(stack, context, schemaPath, instancePath, schema, va }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/minContains.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/minContains.mjs function IsValid$1(schema) { return IsContains(schema); } @@ -5756,7 +5537,7 @@ function ErrorMinContains(stack, context, schemaPath, instancePath, schema, valu }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/minimum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/minimum.mjs function BuildMinimum(_stack, _context, schema, value) { return IsGreaterEqualThan(value, Constant(schema.minimum)); } @@ -5775,7 +5556,7 @@ function ErrorMinimum(stack, context, schemaPath, instancePath, schema, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/minItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/minItems.mjs function BuildMinItems(_stack, _context, schema, value) { return IsGreaterEqualThan(Member(value, "length"), Constant(schema.minItems)); } @@ -5791,7 +5572,7 @@ function ErrorMinItems(stack, context, schemaPath, instancePath, schema, value) }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/minLength.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/minLength.mjs function BuildMinLength(_stack, _context, schema, value) { return IsMinLength$1(value, Constant(schema.minLength)); } @@ -5807,7 +5588,7 @@ function ErrorMinLength(stack, context, schemaPath, instancePath, schema, value) }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/minProperties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/minProperties.mjs function BuildMinProperties(_stack, _context, schema, value) { return IsGreaterEqualThan(Member(Keys(value), "length"), Constant(schema.minProperties)); } @@ -5823,7 +5604,7 @@ function ErrorMinProperties(stack, context, schemaPath, instancePath, schema, va }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/multipleOf.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/multipleOf.mjs function BuildMultipleOf(_stack, _context, schema, value) { return MultipleOf(value, Constant(schema.multipleOf)); } @@ -5839,7 +5620,7 @@ function ErrorMultipleOf(stack, context, schemaPath, instancePath, schema, value }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/not.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/not.mjs function BuildNotUnevaluated(stack, context, schema, value) { return Reducer(stack, context, [schema.not], value, Not(IsEqual(Member("results", "length"), Constant(1)))); } @@ -5862,7 +5643,7 @@ function ErrorNot(stack, context, schemaPath, instancePath, schema, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/oneOf.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/oneOf.mjs function BuildOneOfUnevaluated(stack, context, schema, value) { return Reducer(stack, context, schema.oneOf, value, IsEqual(Member("results", "length"), Constant(1))); } @@ -5899,7 +5680,7 @@ function ErrorOneOf(stack, context, schemaPath, instancePath, schema, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/pattern.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/pattern.mjs function BuildPattern(_stack, _context, schema, value) { return Call(Member(CreateVariable(IsString$3(schema.pattern) ? new RegExp(schema.pattern, "u") : schema.pattern), "test"), [value]); } @@ -5915,7 +5696,7 @@ function ErrorPattern(stack, context, schemaPath, instancePath, schema, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/patternProperties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/patternProperties.mjs function BuildPatternProperties(stack, context, schema, value) { return ReduceAnd(Entries$2(schema.patternProperties).map(([pattern, schema]) => { const [key, prop] = [Unique(), Unique()]; @@ -5945,7 +5726,7 @@ function ErrorPatternProperties(stack, context, schemaPath, instancePath, schema }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/prefixItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/prefixItems.mjs function BuildPrefixItems(stack, context, schema, value) { return ReduceAnd(schema.prefixItems.map((schema, index) => { const isLength = IsLessEqualThan(Member(value, "length"), Constant(index)); @@ -5967,7 +5748,7 @@ function ErrorPrefixItems(stack, context, schemaPath, instancePath, schema, valu }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/_exact_optional.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/_exact_optional.mjs function IsExactOptional(required, key) { return required.includes(key) || Get$3().exactOptionalPropertyTypes; } @@ -5978,7 +5759,7 @@ function InexactOptionalCheck(value, key) { return IsUndefined$2(value[key]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/properties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/properties.mjs function BuildProperties(stack, context, schema, value) { const required = IsRequired(schema) ? schema.required : []; return ReduceAnd(Entries$2(schema.properties).map(([key, schema]) => { @@ -6007,7 +5788,7 @@ function ErrorProperties(stack, context, schemaPath, instancePath, schema, value }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/propertyNames.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/propertyNames.mjs function BuildPropertyNames(stack, context, schema, value) { const [key, _index] = [Unique(), Unique()]; return Every(Keys(value), Constant(0), [key, _index], BuildSchema(stack, context, schema.propertyNames, key)); @@ -6031,7 +5812,7 @@ function ErrorPropertyNames(stack, context, schemaPath, instancePath, schema, va }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/recursiveRef.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/recursiveRef.mjs function BuildRecursiveRef(stack, context, schema, value) { return CreateFunction(stack, context, stack.RecursiveRef(schema) ?? false, value); } @@ -6044,7 +5825,7 @@ function ErrorRecursiveRef(stack, context, _schemaPath, instancePath, schema, va return IsSchema(target) && ErrorSchema(stack, context, "#", instancePath, target, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/ref.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/ref.mjs function BuildRefStandard(stack, context, target, value) { const interior = ArrowFunction(["context", "value"], CreateFunction(stack, context, target, "value")); return Call(ArrowFunction(["context", "value"], Statements([ @@ -6077,7 +5858,7 @@ function ErrorRef(stack, context, _schemaPath, instancePath, schema, value) { return result; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/required.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/required.mjs function BuildRequired(_stack, _context, schema, value) { return ReduceAnd(schema.required.map((key) => HasPropertyKey(value, Constant(key)))); } @@ -6098,12 +5879,12 @@ function ErrorRequired(_stack, context, schemaPath, instancePath, schema, value) }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/type.mjs function BuildTypeName(_stack, _context, type, value) { - return IsEqual$1(type, "object") ? IsObjectNotArray(value) : IsEqual$1(type, "array") ? IsArray$1(value) : IsEqual$1(type, "boolean") ? IsBoolean$2(value) : IsEqual$1(type, "integer") ? IsInteger$1(value) : IsEqual$1(type, "number") ? IsNumber$2(value) : IsEqual$1(type, "null") ? IsNull$1(value) : IsEqual$1(type, "string") ? IsString$2(value) : IsEqual$1(type, "asyncIterator") ? IsAsyncIterator$1(value) : IsEqual$1(type, "bigint") ? IsBigInt$1(value) : IsEqual$1(type, "constructor") ? IsConstructor$1(value) : IsEqual$1(type, "function") ? IsFunction$1(value) : IsEqual$1(type, "iterator") ? IsIterator$1(value) : IsEqual$1(type, "symbol") ? IsSymbol$1(value) : IsEqual$1(type, "undefined") ? IsUndefined$1(value) : IsEqual$1(type, "void") ? IsUndefined$1(value) : Constant(true); + return IsEqual$1(type, "object") ? IsObjectNotArray(value) : IsEqual$1(type, "array") ? IsArray$1(value) : IsEqual$1(type, "boolean") ? IsBoolean$2(value) : IsEqual$1(type, "integer") ? IsInteger$1(value) : IsEqual$1(type, "number") ? IsNumber$2(value) : IsEqual$1(type, "null") ? IsNull$1(value) : IsEqual$1(type, "string") ? IsString$2(value) : IsEqual$1(type, "bigint") ? IsBigInt$1(value) : IsEqual$1(type, "constructor") ? IsConstructor$1(value) : IsEqual$1(type, "function") ? IsFunction$1(value) : IsEqual$1(type, "symbol") ? IsSymbol$1(value) : IsEqual$1(type, "undefined") ? IsUndefined$1(value) : IsEqual$1(type, "void") ? IsUndefined$1(value) : Constant(true); } function CheckTypeName(_stack, _context, type, _schema, value) { - return IsEqual$1(type, "object") ? IsObjectNotArray$1(value) : IsEqual$1(type, "array") ? IsArray$2(value) : IsEqual$1(type, "boolean") ? IsBoolean$3(value) : IsEqual$1(type, "integer") ? IsInteger$2(value) : IsEqual$1(type, "number") ? IsNumber$3(value) : IsEqual$1(type, "null") ? IsNull$2(value) : IsEqual$1(type, "string") ? IsString$3(value) : IsEqual$1(type, "asyncIterator") ? IsAsyncIterator$2(value) : IsEqual$1(type, "bigint") ? IsBigInt$2(value) : IsEqual$1(type, "constructor") ? IsConstructor$2(value) : IsEqual$1(type, "function") ? IsFunction$2(value) : IsEqual$1(type, "iterator") ? IsIterator$2(value) : IsEqual$1(type, "symbol") ? IsSymbol$2(value) : IsEqual$1(type, "undefined") ? IsUndefined$2(value) : IsEqual$1(type, "void") ? IsUndefined$2(value) : true; + return IsEqual$1(type, "object") ? IsObjectNotArray$1(value) : IsEqual$1(type, "array") ? IsArray$2(value) : IsEqual$1(type, "boolean") ? IsBoolean$3(value) : IsEqual$1(type, "integer") ? IsInteger$2(value) : IsEqual$1(type, "number") ? IsNumber$3(value) : IsEqual$1(type, "null") ? IsNull$2(value) : IsEqual$1(type, "string") ? IsString$3(value) : IsEqual$1(type, "bigint") ? IsBigInt$2(value) : IsEqual$1(type, "constructor") ? IsConstructor$2(value) : IsEqual$1(type, "function") ? IsFunction$2(value) : IsEqual$1(type, "symbol") ? IsSymbol$2(value) : IsEqual$1(type, "undefined") ? IsUndefined$2(value) : IsEqual$1(type, "void") ? IsUndefined$2(value) : true; } function BuildTypeNames(stack, context, typenames, value) { return ReduceOr(typenames.map((type) => BuildTypeName(stack, context, type, value))); @@ -6126,7 +5907,7 @@ function ErrorType(stack, context, schemaPath, instancePath, schema, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/unevaluatedItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/unevaluatedItems.mjs function BuildUnevaluatedItems(stack, context, schema, value) { const [index, item] = [Unique(), Unique()]; const indices = Call(Member("context", "GetIndices"), []); @@ -6158,7 +5939,7 @@ function ErrorUnevaluatedItems(stack, context, schemaPath, instancePath, schema, }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/unevaluatedProperties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/unevaluatedProperties.mjs function BuildUnevaluatedProperties(stack, context, schema, value) { const [key, prop] = [Unique(), Unique()]; const keys = Call(Member("context", "GetKeys"), []); @@ -6190,7 +5971,7 @@ function ErrorUnevaluatedProperties(stack, context, schemaPath, instancePath, sc }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/uniqueItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/uniqueItems.mjs function IsValid(schema) { return !IsEqual$1(schema.uniqueItems, false); } @@ -6221,7 +6002,7 @@ function ErrorUniqueItems(_stack, context, schemaPath, instancePath, schema, val }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/schema.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/schema.mjs function HasTypeName(schema, typename) { return IsType(schema) && (IsArray$2(schema.type) && schema.type.includes(typename) || IsEqual$1(schema.type, typename)); } @@ -6312,7 +6093,6 @@ function BuildSchema(stack, context, schema, value) { if (IsRef(schema)) conditions.push(BuildRef(stack, context, schema, value)); if (IsRecursiveRef(schema)) conditions.push(BuildRecursiveRef(stack, context, schema, value)); if (IsDynamicRef(schema)) conditions.push(BuildDynamicRef(stack, context, schema, value)); - if (IsGuard(schema)) conditions.push(BuildGuard(stack, context, schema, value)); if (IsConst(schema)) conditions.push(BuildConst(stack, context, schema, value)); if (IsEnum(schema)) conditions.push(BuildEnum(stack, context, schema, value)); if (IsIf(schema)) conditions.push(BuildIf(stack, context, schema, value)); @@ -6332,7 +6112,7 @@ function CheckSchemaPushStack(stack, context, schema, value) { } function CheckSchema(stack, context, schema, value) { stack.Push(schema); - const result = IsBooleanSchema(schema) ? CheckBooleanSchema(stack, context, schema, value) : (!IsType(schema) || CheckType(stack, context, schema, value)) && (!(IsObject$2(value) && !IsArray$2(value)) || (!IsRequired(schema) || CheckRequired(stack, context, schema, value)) && (!IsAdditionalProperties(schema) || CheckAdditionalProperties(stack, context, schema, value)) && (!IsDependencies(schema) || CheckDependencies(stack, context, schema, value)) && (!IsDependentRequired(schema) || CheckDependentRequired(stack, context, schema, value)) && (!IsDependentSchemas(schema) || CheckDependentSchemas(stack, context, schema, value)) && (!IsPatternProperties(schema) || CheckPatternProperties(stack, context, schema, value)) && (!IsProperties(schema) || CheckProperties(stack, context, schema, value)) && (!IsPropertyNames(schema) || CheckPropertyNames(stack, context, schema, value)) && (!IsMinProperties(schema) || CheckMinProperties(stack, context, schema, value)) && (!IsMaxProperties(schema) || CheckMaxProperties(stack, context, schema, value))) && (!IsArray$2(value) || (!IsAdditionalItems(schema) || CheckAdditionalItems(stack, context, schema, value)) && (!IsContains(schema) || CheckContains(stack, context, schema, value)) && (!IsItems(schema) || CheckItems(stack, context, schema, value)) && (!IsMaxContains(schema) || CheckMaxContains(stack, context, schema, value)) && (!IsMaxItems(schema) || CheckMaxItems(stack, context, schema, value)) && (!IsMinContains(schema) || CheckMinContains(stack, context, schema, value)) && (!IsMinItems(schema) || CheckMinItems(stack, context, schema, value)) && (!IsPrefixItems(schema) || CheckPrefixItems(stack, context, schema, value)) && (!IsUniqueItems(schema) || CheckUniqueItems(stack, context, schema, value))) && (!IsString$3(value) || (!IsMaxLength(schema) || CheckMaxLength(stack, context, schema, value)) && (!IsMinLength(schema) || CheckMinLength(stack, context, schema, value)) && (!IsFormat(schema) || CheckFormat(stack, context, schema, value)) && (!IsPattern(schema) || CheckPattern(stack, context, schema, value))) && (!(IsNumber$3(value) || IsBigInt$2(value)) || (!IsExclusiveMaximum(schema) || CheckExclusiveMaximum(stack, context, schema, value)) && (!IsExclusiveMinimum(schema) || CheckExclusiveMinimum(stack, context, schema, value)) && (!IsMaximum(schema) || CheckMaximum(stack, context, schema, value)) && (!IsMinimum(schema) || CheckMinimum(stack, context, schema, value)) && (!IsMultipleOf(schema) || CheckMultipleOf(stack, context, schema, value))) && (!IsRef(schema) || CheckRef(stack, context, schema, value)) && (!IsRecursiveRef(schema) || CheckRecursiveRef(stack, context, schema, value)) && (!IsDynamicRef(schema) || CheckDynamicRef(stack, context, schema, value)) && (!IsGuard(schema) || CheckGuard(stack, context, schema, value)) && (!IsConst(schema) || CheckConst(stack, context, schema, value)) && (!IsEnum(schema) || CheckEnum(stack, context, schema, value)) && (!IsIf(schema) || CheckIf(stack, context, schema, value)) && (!IsNot(schema) || CheckNot(stack, context, schema, value)) && (!IsAllOf(schema) || CheckAllOf(stack, context, schema, value)) && (!IsAnyOf(schema) || CheckAnyOf(stack, context, schema, value)) && (!IsOneOf(schema) || CheckOneOf(stack, context, schema, value)) && (!IsUnevaluatedItems(schema) || !IsArray$2(value) || CheckUnevaluatedItems(stack, context, schema, value)) && (!IsUnevaluatedProperties(schema) || !IsObject$2(value) || CheckUnevaluatedProperties(stack, context, schema, value)) && (!IsRefine(schema) || CheckRefine(stack, context, schema, value)); + const result = IsBooleanSchema(schema) ? CheckBooleanSchema(stack, context, schema, value) : (!IsType(schema) || CheckType(stack, context, schema, value)) && (!(IsObject$2(value) && !IsArray$2(value)) || (!IsRequired(schema) || CheckRequired(stack, context, schema, value)) && (!IsAdditionalProperties(schema) || CheckAdditionalProperties(stack, context, schema, value)) && (!IsDependencies(schema) || CheckDependencies(stack, context, schema, value)) && (!IsDependentRequired(schema) || CheckDependentRequired(stack, context, schema, value)) && (!IsDependentSchemas(schema) || CheckDependentSchemas(stack, context, schema, value)) && (!IsPatternProperties(schema) || CheckPatternProperties(stack, context, schema, value)) && (!IsProperties(schema) || CheckProperties(stack, context, schema, value)) && (!IsPropertyNames(schema) || CheckPropertyNames(stack, context, schema, value)) && (!IsMinProperties(schema) || CheckMinProperties(stack, context, schema, value)) && (!IsMaxProperties(schema) || CheckMaxProperties(stack, context, schema, value))) && (!IsArray$2(value) || (!IsAdditionalItems(schema) || CheckAdditionalItems(stack, context, schema, value)) && (!IsContains(schema) || CheckContains(stack, context, schema, value)) && (!IsItems(schema) || CheckItems(stack, context, schema, value)) && (!IsMaxContains(schema) || CheckMaxContains(stack, context, schema, value)) && (!IsMaxItems(schema) || CheckMaxItems(stack, context, schema, value)) && (!IsMinContains(schema) || CheckMinContains(stack, context, schema, value)) && (!IsMinItems(schema) || CheckMinItems(stack, context, schema, value)) && (!IsPrefixItems(schema) || CheckPrefixItems(stack, context, schema, value)) && (!IsUniqueItems(schema) || CheckUniqueItems(stack, context, schema, value))) && (!IsString$3(value) || (!IsMaxLength(schema) || CheckMaxLength(stack, context, schema, value)) && (!IsMinLength(schema) || CheckMinLength(stack, context, schema, value)) && (!IsFormat(schema) || CheckFormat(stack, context, schema, value)) && (!IsPattern(schema) || CheckPattern(stack, context, schema, value))) && (!(IsNumber$3(value) || IsBigInt$2(value)) || (!IsExclusiveMaximum(schema) || CheckExclusiveMaximum(stack, context, schema, value)) && (!IsExclusiveMinimum(schema) || CheckExclusiveMinimum(stack, context, schema, value)) && (!IsMaximum(schema) || CheckMaximum(stack, context, schema, value)) && (!IsMinimum(schema) || CheckMinimum(stack, context, schema, value)) && (!IsMultipleOf(schema) || CheckMultipleOf(stack, context, schema, value))) && (!IsRef(schema) || CheckRef(stack, context, schema, value)) && (!IsRecursiveRef(schema) || CheckRecursiveRef(stack, context, schema, value)) && (!IsDynamicRef(schema) || CheckDynamicRef(stack, context, schema, value)) && (!IsConst(schema) || CheckConst(stack, context, schema, value)) && (!IsEnum(schema) || CheckEnum(stack, context, schema, value)) && (!IsIf(schema) || CheckIf(stack, context, schema, value)) && (!IsNot(schema) || CheckNot(stack, context, schema, value)) && (!IsAllOf(schema) || CheckAllOf(stack, context, schema, value)) && (!IsAnyOf(schema) || CheckAnyOf(stack, context, schema, value)) && (!IsOneOf(schema) || CheckOneOf(stack, context, schema, value)) && (!IsUnevaluatedItems(schema) || !IsArray$2(value) || CheckUnevaluatedItems(stack, context, schema, value)) && (!IsUnevaluatedProperties(schema) || !IsObject$2(value) || CheckUnevaluatedProperties(stack, context, schema, value)) && (!IsRefine(schema) || CheckRefine(stack, context, schema, value)); stack.Pop(schema); return result; } @@ -6341,12 +6121,12 @@ function ErrorSchemaPushStack(stack, context, schemaPath, instancePath, schema, } function ErrorSchema(stack, context, schemaPath, instancePath, schema, value) { stack.Push(schema); - const result = IsBooleanSchema(schema) ? ErrorBooleanSchema(stack, context, schemaPath, instancePath, schema, value) : !!(+(!IsType(schema) || ErrorType(stack, context, schemaPath, instancePath, schema, value)) & +(!(IsObject$2(value) && !IsArray$2(value)) || !!(+(!IsRequired(schema) || ErrorRequired(stack, context, schemaPath, instancePath, schema, value)) & +(!IsAdditionalProperties(schema) || ErrorAdditionalProperties(stack, context, schemaPath, instancePath, schema, value)) & +(!IsDependencies(schema) || ErrorDependencies(stack, context, schemaPath, instancePath, schema, value)) & +(!IsDependentRequired(schema) || ErrorDependentRequired(stack, context, schemaPath, instancePath, schema, value)) & +(!IsDependentSchemas(schema) || ErrorDependentSchemas(stack, context, schemaPath, instancePath, schema, value)) & +(!IsPatternProperties(schema) || ErrorPatternProperties(stack, context, schemaPath, instancePath, schema, value)) & +(!IsProperties(schema) || ErrorProperties(stack, context, schemaPath, instancePath, schema, value)) & +(!IsPropertyNames(schema) || ErrorPropertyNames(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMinProperties(schema) || ErrorMinProperties(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMaxProperties(schema) || ErrorMaxProperties(stack, context, schemaPath, instancePath, schema, value)))) & +(!IsArray$2(value) || !!(+(!IsAdditionalItems(schema) || ErrorAdditionalItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsContains(schema) || ErrorContains(stack, context, schemaPath, instancePath, schema, value)) & +(!IsItems(schema) || ErrorItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMaxContains(schema) || ErrorMaxContains(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMaxItems(schema) || ErrorMaxItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMinContains(schema) || ErrorMinContains(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMinItems(schema) || ErrorMinItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsPrefixItems(schema) || ErrorPrefixItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsUniqueItems(schema) || ErrorUniqueItems(stack, context, schemaPath, instancePath, schema, value)))) & +(!IsString$3(value) || !!(+(!IsMaxLength(schema) || ErrorMaxLength(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMinLength(schema) || ErrorMinLength(stack, context, schemaPath, instancePath, schema, value)) & +(!IsFormat(schema) || ErrorFormat(stack, context, schemaPath, instancePath, schema, value)) & +(!IsPattern(schema) || ErrorPattern(stack, context, schemaPath, instancePath, schema, value)))) & +(!(IsNumber$3(value) || IsBigInt$2(value)) || !!(+(!IsExclusiveMaximum(schema) || ErrorExclusiveMaximum(stack, context, schemaPath, instancePath, schema, value)) & +(!IsExclusiveMinimum(schema) || ErrorExclusiveMinimum(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMaximum(schema) || ErrorMaximum(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMinimum(schema) || ErrorMinimum(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMultipleOf(schema) || ErrorMultipleOf(stack, context, schemaPath, instancePath, schema, value)))) & +(!IsRef(schema) || ErrorRef(stack, context, schemaPath, instancePath, schema, value)) & +(!IsRecursiveRef(schema) || ErrorRecursiveRef(stack, context, schemaPath, instancePath, schema, value)) & +(!IsDynamicRef(schema) || ErrorDynamicRef(stack, context, schemaPath, instancePath, schema, value)) & +(!IsGuard(schema) || ErrorGuard(stack, context, schemaPath, instancePath, schema, value)) & +(!IsConst(schema) || ErrorConst(stack, context, schemaPath, instancePath, schema, value)) & +(!IsEnum(schema) || ErrorEnum(stack, context, schemaPath, instancePath, schema, value)) & +(!IsIf(schema) || ErrorIf(stack, context, schemaPath, instancePath, schema, value)) & +(!IsNot(schema) || ErrorNot(stack, context, schemaPath, instancePath, schema, value)) & +(!IsAllOf(schema) || ErrorAllOf(stack, context, schemaPath, instancePath, schema, value)) & +(!IsAnyOf(schema) || ErrorAnyOf(stack, context, schemaPath, instancePath, schema, value)) & +(!IsOneOf(schema) || ErrorOneOf(stack, context, schemaPath, instancePath, schema, value)) & +(!IsUnevaluatedItems(schema) || !IsArray$2(value) || ErrorUnevaluatedItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsUnevaluatedProperties(schema) || !IsObject$2(value) || ErrorUnevaluatedProperties(stack, context, schemaPath, instancePath, schema, value))) && (!IsRefine(schema) || ErrorRefine(stack, context, schemaPath, instancePath, schema, value)); + const result = IsBooleanSchema(schema) ? ErrorBooleanSchema(stack, context, schemaPath, instancePath, schema, value) : !!(+(!IsType(schema) || ErrorType(stack, context, schemaPath, instancePath, schema, value)) & +(!(IsObject$2(value) && !IsArray$2(value)) || !!(+(!IsRequired(schema) || ErrorRequired(stack, context, schemaPath, instancePath, schema, value)) & +(!IsAdditionalProperties(schema) || ErrorAdditionalProperties(stack, context, schemaPath, instancePath, schema, value)) & +(!IsDependencies(schema) || ErrorDependencies(stack, context, schemaPath, instancePath, schema, value)) & +(!IsDependentRequired(schema) || ErrorDependentRequired(stack, context, schemaPath, instancePath, schema, value)) & +(!IsDependentSchemas(schema) || ErrorDependentSchemas(stack, context, schemaPath, instancePath, schema, value)) & +(!IsPatternProperties(schema) || ErrorPatternProperties(stack, context, schemaPath, instancePath, schema, value)) & +(!IsProperties(schema) || ErrorProperties(stack, context, schemaPath, instancePath, schema, value)) & +(!IsPropertyNames(schema) || ErrorPropertyNames(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMinProperties(schema) || ErrorMinProperties(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMaxProperties(schema) || ErrorMaxProperties(stack, context, schemaPath, instancePath, schema, value)))) & +(!IsArray$2(value) || !!(+(!IsAdditionalItems(schema) || ErrorAdditionalItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsContains(schema) || ErrorContains(stack, context, schemaPath, instancePath, schema, value)) & +(!IsItems(schema) || ErrorItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMaxContains(schema) || ErrorMaxContains(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMaxItems(schema) || ErrorMaxItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMinContains(schema) || ErrorMinContains(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMinItems(schema) || ErrorMinItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsPrefixItems(schema) || ErrorPrefixItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsUniqueItems(schema) || ErrorUniqueItems(stack, context, schemaPath, instancePath, schema, value)))) & +(!IsString$3(value) || !!(+(!IsMaxLength(schema) || ErrorMaxLength(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMinLength(schema) || ErrorMinLength(stack, context, schemaPath, instancePath, schema, value)) & +(!IsFormat(schema) || ErrorFormat(stack, context, schemaPath, instancePath, schema, value)) & +(!IsPattern(schema) || ErrorPattern(stack, context, schemaPath, instancePath, schema, value)))) & +(!(IsNumber$3(value) || IsBigInt$2(value)) || !!(+(!IsExclusiveMaximum(schema) || ErrorExclusiveMaximum(stack, context, schemaPath, instancePath, schema, value)) & +(!IsExclusiveMinimum(schema) || ErrorExclusiveMinimum(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMaximum(schema) || ErrorMaximum(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMinimum(schema) || ErrorMinimum(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMultipleOf(schema) || ErrorMultipleOf(stack, context, schemaPath, instancePath, schema, value)))) & +(!IsRef(schema) || ErrorRef(stack, context, schemaPath, instancePath, schema, value)) & +(!IsRecursiveRef(schema) || ErrorRecursiveRef(stack, context, schemaPath, instancePath, schema, value)) & +(!IsDynamicRef(schema) || ErrorDynamicRef(stack, context, schemaPath, instancePath, schema, value)) & +(!IsConst(schema) || ErrorConst(stack, context, schemaPath, instancePath, schema, value)) & +(!IsEnum(schema) || ErrorEnum(stack, context, schemaPath, instancePath, schema, value)) & +(!IsIf(schema) || ErrorIf(stack, context, schemaPath, instancePath, schema, value)) & +(!IsNot(schema) || ErrorNot(stack, context, schemaPath, instancePath, schema, value)) & +(!IsAllOf(schema) || ErrorAllOf(stack, context, schemaPath, instancePath, schema, value)) & +(!IsAnyOf(schema) || ErrorAnyOf(stack, context, schemaPath, instancePath, schema, value)) & +(!IsOneOf(schema) || ErrorOneOf(stack, context, schemaPath, instancePath, schema, value)) & +(!IsUnevaluatedItems(schema) || !IsArray$2(value) || ErrorUnevaluatedItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsUnevaluatedProperties(schema) || !IsObject$2(value) || ErrorUnevaluatedProperties(stack, context, schemaPath, instancePath, schema, value))) && (!IsRefine(schema) || ErrorRefine(stack, context, schemaPath, instancePath, schema, value)); stack.Pop(schema); return result; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/_functions.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/_functions.mjs const functions = /* @__PURE__ */ new Map(); function CreateCallExpression(context, _schema, hash, value) { return context.UseUnevaluated() ? Call(`check_${hash}`, ["context", value]) : Call(`check_${hash}`, [value]); @@ -6373,7 +6153,7 @@ function CreateFunction(stack, context, schema, value) { return call; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/pointer/pointer.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/pointer/pointer.mjs function GetIndex(index, value) { return IsObject$2(value) && !IsUnsafePropertyKey(index) ? value[index] : void 0; } @@ -6391,7 +6171,7 @@ function Get(value, pointer) { return GetIndices(Indices(pointer), value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/resolve/ref.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/resolve/ref.mjs function MatchId(schema, base, ref) { if (schema.$id === ref.hash) return schema; const absoluteId = new URL(schema.$id, base.href); @@ -6430,31 +6210,31 @@ function Match(schema, base, ref) { } return MatchHash(schema, base, ref); } -function FromArray$7(schema, base, ref) { +function FromArray$6(schema, base, ref) { return schema.reduce((result, item) => { - const match = FromValue$1(item, base, ref); + const match = FromValue(item, base, ref); return !IsUndefined$2(match) ? match : result; }, void 0); } -function FromObject$7(schema, base, ref) { +function FromObject$6(schema, base, ref) { return Keys$1(schema).reduce((result, key) => { - const match = FromValue$1(schema[key], base, ref); + const match = FromValue(schema[key], base, ref); return !IsUndefined$2(match) ? match : result; }, void 0); } -function FromValue$1(schema, base, ref) { +function FromValue(schema, base, ref) { const nextBase = IsSchemaObject(schema) && IsId(schema) ? new URL(schema.$id, base.href) : base; if (IsSchemaObject(schema)) { const result = Match(schema, nextBase, ref); if (!IsUndefined$2(result)) return result; } - if (IsArray$2(schema)) return FromArray$7(schema, nextBase, ref); - if (IsObject$2(schema)) return FromObject$7(schema, nextBase, ref); + if (IsArray$2(schema)) return FromArray$6(schema, nextBase, ref); + if (IsObject$2(schema)) return FromObject$6(schema, nextBase, ref); } function Ref(schema, ref) { const defaultBase = new URL("http://unknown/"); const initialBase = IsId(schema) ? new URL(schema.$id, defaultBase.href) : defaultBase; - return FromValue$1(schema, initialBase, new URL(ref, initialBase.href)); + return FromValue(schema, initialBase, new URL(ref, initialBase.href)); } function DynamicRef(root, base, dynamicRef, dynamicAnchors) { const fragmentTarget = dynamicRef.$dynamicRef.startsWith("#") ? Ref(base, dynamicRef.$dynamicRef) : Ref(root, dynamicRef.$dynamicRef); @@ -6464,7 +6244,7 @@ function DynamicRef(root, base, dynamicRef, dynamicAnchors) { return dynamicAnchors.find((anchor) => anchor.$dynamicAnchor === fragmentTarget.$dynamicAnchor) ?? fragmentTarget; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/_stack.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/_stack.mjs var __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"); @@ -6537,7 +6317,7 @@ _Stack_instances = /* @__PURE__ */ new WeakSet(), _Stack_PushResourceAnchors = f return !ref.$ref.startsWith("#") ? Ref(root, ref.$ref) : Ref(this.Base(), ref.$ref); }; //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/build.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/build.mjs function CreateCode(build) { return `${build.Functions().join(";\n")}; return (value) => { ${(build.UseUnevaluated() ? ["const context = new CheckContext({}, {})", `return ${build.Entry()}`] : [`return ${build.Entry()}`]).join("; ")} }`; } @@ -6623,7 +6403,7 @@ function Build(...args) { return new BuildResult(context, schema, GetExternal(), functions, call, build.UseUnevaluated()); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/errors.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/errors.mjs /** Checks a value and returns validation errors */ function Errors$1(...args) { const [context, schema, value] = Match$3(args, { @@ -6650,7 +6430,7 @@ function Errors$1(...args) { }), "#", "", schema, value), errors]; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/check.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/check.mjs /** Checks a value against the provided schema */ function Check$1(...args) { const [context, schema, value] = Match$3(args, { @@ -6668,7 +6448,7 @@ function Check$1(...args) { return CheckSchema(new Stack(context, schema), new CheckContext(), schema, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/check/check.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/check/check.mjs /** Checks a value matches the provided type. */ function Check(...args) { const [context, type, value] = Match$3(args, { @@ -6686,7 +6466,7 @@ function Check(...args) { return Check$1(context, type, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/errors/errors.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/errors/errors.mjs /** * Performs an exhaustive Check on the specified value and reports any errors found. * If no errors are found, an empty array is returned. Unlike Check, this function @@ -6710,7 +6490,7 @@ function Errors(...args) { return errors; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/assert/assert.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/assert/assert.mjs var AssertError = class extends Error { constructor(source, value, errors) { super(source); @@ -6727,18 +6507,13 @@ var AssertError = class extends Error { } }; //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/clean/from_array.mjs -function FromArray$6(context, type, value) { +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/clean/from_array.mjs +function FromArray$5(context, type, value) { if (!IsArray$2(value)) return value; return value.map((value) => FromType$6(context, type.items, value)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/clean/from_base.mjs -function FromBase$3(_context, type, value) { - return type.Clean(value); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/clean/from_cyclic.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/clean/from_cyclic.mjs function FromCyclic$5(context, type, value) { return FromType$6({ ...context, @@ -6746,7 +6521,7 @@ function FromCyclic$5(context, type, value) { }, Ref$1(type.$ref), value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/clean/from_intersect.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/clean/from_intersect.mjs function EvaluateIntersection(context, type) { const additionalProperties = HasPropertyKey$1(type, "unevaluatedProperties") ? { additionalProperties: type.unevaluatedProperties } : {}; const evaluated = Evaluate(Instantiate(context, type)); @@ -6756,13 +6531,13 @@ function FromIntersect$5(context, type, value) { return FromType$6(context, EvaluateIntersection(context, type), value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/clean/additional.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/clean/additional.mjs function GetAdditionalProperties(type) { return HasPropertyKey$1(type, "additionalProperties") ? type.additionalProperties : void 0; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/clean/from_object.mjs -function FromObject$6(context, type, value) { +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/clean/from_object.mjs +function FromObject$5(context, type, value) { if (!IsObject$2(value) || IsArray$2(value)) return value; const additionalProperties = GetAdditionalProperties(type); for (const key of Keys$1(value)) { @@ -6779,7 +6554,7 @@ function FromObject$6(context, type, value) { return value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/clean/from_record.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/clean/from_record.mjs function FromRecord$5(context, type, value) { if (!IsObject$2(value)) return value; const additionalProperties = GetAdditionalProperties(type); @@ -6798,12 +6573,12 @@ function FromRecord$5(context, type, value) { return value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/clean/from_ref.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/clean/from_ref.mjs function FromRef$5(context, type, value) { return HasPropertyKey$1(context, type.$ref) ? FromType$6(context, context[type.$ref], value) : value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/clean/from_tuple.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/clean/from_tuple.mjs function FromTuple$5(context, schema, value) { if (!IsArray$2(value)) return value; const length = Math.min(value.length, schema.items.length); @@ -6811,52 +6586,16 @@ function FromTuple$5(context, schema, value) { return IsGreaterThan$1(value.length, length) ? value.slice(0, length) : value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/clone/clone.mjs -function FromClassInstance(value) { - return value; -} -function IsTypeInstance(value) { - return HasPropertyKey$1(value, "~kind"); -} -function FromTypeInstance(value) { - return Clone$1(value); -} -function FromObjectInstance(value) { - const result = {}; - for (const key of Keys$1(value)) { - if (IsUnsafePropertyKey(key)) continue; - result[key] = Clone(value[key]); - } - for (const key of Symbols(value)) result[key] = Clone(value[key]); - return result; -} -function FromObject$5(value) { - return IsClassInstance(value) ? FromClassInstance(value) : IsTypeInstance(value) ? FromTypeInstance(value) : FromObjectInstance(value); -} -function FromArray$5(value) { - return value.map((element) => Clone(element)); -} -function FromTypedArray(value) { - return value.slice(); -} -function FromMap(value) { - return new Map(Clone([...value.entries()])); -} -function FromSet(value) { - return new Set(Clone([...value.values()])); -} -function FromValue(value) { - return value; -} +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/clone/clone.mjs /** * Returns a Clone of the given value. This function is similar to structuredClone() * but also supports deep cloning instances of Map, Set and TypeArray. */ function Clone(value) { - return IsTypeArray(value) ? FromTypedArray(value) : IsMap(value) ? FromMap(value) : IsSet(value) ? FromSet(value) : IsArray$2(value) ? FromArray$5(value) : IsObject$2(value) ? FromObject$5(value) : FromValue(value); + return Clone$1(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/clean/from_union.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/clean/from_union.mjs function FromUnion$5(context, type, value) { for (const schema of type.anyOf) { const clean = FromType$6(context, schema, Clone(value)); @@ -6865,12 +6604,12 @@ function FromUnion$5(context, type, value) { return value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/clean/from_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/clean/from_type.mjs function FromType$6(context, type, value) { - return IsArray(type) ? FromArray$6(context, type, value) : IsBase(type) ? FromBase$3(context, type, value) : IsCyclic(type) ? FromCyclic$5(context, type, value) : IsIntersect(type) ? FromIntersect$5(context, type, value) : IsObject(type) ? FromObject$6(context, type, value) : IsRecord(type) ? FromRecord$5(context, type, value) : IsRef$1(type) ? FromRef$5(context, type, value) : IsTuple(type) ? FromTuple$5(context, type, value) : IsUnion(type) ? FromUnion$5(context, type, value) : value; + return IsArray(type) ? FromArray$5(context, type, value) : IsCyclic(type) ? FromCyclic$5(context, type, value) : IsIntersect(type) ? FromIntersect$5(context, type, value) : IsObject(type) ? FromObject$5(context, type, value) : IsRecord(type) ? FromRecord$5(context, type, value) : IsRef$1(type) ? FromRef$5(context, type, value) : IsTuple(type) ? FromTuple$5(context, type, value) : IsUnion(type) ? FromUnion$5(context, type, value) : value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/shared/union_priority_sort.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/shared/union_priority_sort.mjs function Modifiers(type, next) { for (const key of guard_default.Keys(type)) { if (guard_default.HasPropertyKey(next, key)) continue; @@ -6901,7 +6640,7 @@ function UnionPrioritySort(type) { return FromType$5(type); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/clean/clean.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/clean/clean.mjs /** * Cleans a value by removing non-evaluated properties and elements as derived from the provided type. * This function returns unknown so callers should Check the return value before use. This function @@ -6924,7 +6663,7 @@ function Clean(...args) { return FromType$6(context, Get$3().unionPrioritySort ? UnionPrioritySort(type) : type, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/try/try_result.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/try/try_result.mjs function IsOk(value) { return IsObject$2(value) && HasPropertyKey$1(value, "value"); } @@ -6932,12 +6671,12 @@ function Ok(value) { return { value }; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/try/try_array.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/try/try_array.mjs function TryArray(value) { return IsArray$2(value) ? Ok(value) : Ok([value]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/try/try_bigint.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/try/try_bigint.mjs function FromBoolean$5(value) { return IsEqual$1(value, true) ? Ok(BigInt(1)) : Ok(BigInt(0)); } @@ -6961,7 +6700,7 @@ function TryBigInt(value) { return IsBigInt$2(value) ? Ok(value) : IsBoolean$3(value) ? FromBoolean$5(value) : IsNumber$3(value) ? Ok(BigInt(Math.trunc(value))) : IsNull$2(value) ? Ok(BigInt(0)) : IsString$3(value) ? FromString$6(value) : IsUndefined$2(value) ? Ok(BigInt(0)) : void 0; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/try/try_boolean.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/try/try_boolean.mjs function FromBigInt$5(value) { return IsEqual$1(value, BigInt(0)) ? Ok(false) : IsEqual$1(value, BigInt(1)) ? Ok(true) : void 0; } @@ -6975,7 +6714,7 @@ function TryBoolean(value) { return IsBigInt$2(value) ? FromBigInt$5(value) : IsBoolean$3(value) ? Ok(value) : IsNumber$3(value) ? FromNumber$4(value) : IsNull$2(value) ? Ok(false) : IsString$3(value) ? FromString$5(value) : IsUndefined$2(value) ? Ok(false) : void 0; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/try/try_null.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/try/try_null.mjs function FromBigInt$4(value) { return IsEqual$1(value, BigInt(0)) ? Ok(null) : void 0; } @@ -6993,7 +6732,7 @@ function TryNull(value) { return IsBigInt$2(value) ? FromBigInt$4(value) : IsBoolean$3(value) ? FromBoolean$4(value) : IsNumber$3(value) ? FromNumber$3(value) : IsNull$2(value) ? Ok(null) : IsString$3(value) ? FromString$4(value) : IsUndefined$2(value) ? Ok(null) : void 0; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/try/try_number.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/try/try_number.mjs const maxBigInt = BigInt(Number.MAX_SAFE_INTEGER); const minBigInt = BigInt(Number.MIN_SAFE_INTEGER); function FromBigInt$3(value) { @@ -7015,12 +6754,12 @@ function TryNumber(value) { return IsBigInt$2(value) ? FromBigInt$3(value) : IsBoolean$3(value) ? FromBoolean$3(value) : IsNumber$3(value) ? Ok(value) : IsNull$2(value) ? Ok(0) : IsString$3(value) ? FromString$3(value) : IsUndefined$2(value) ? Ok(0) : void 0; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/try/try_string.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/try/try_string.mjs function TryString(value) { return IsBigInt$2(value) ? Ok(value.toString()) : IsBoolean$3(value) ? Ok(value.toString()) : IsNumber$3(value) ? Ok(value.toString()) : IsNull$2(value) ? Ok("null") : IsString$3(value) ? Ok(value) : IsUndefined$2(value) ? Ok("") : void 0; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/try/try_undefined.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/try/try_undefined.mjs function FromBigInt$2(value) { return IsEqual$1(value, BigInt(0)) ? Ok(void 0) : void 0; } @@ -7038,29 +6777,24 @@ function TryUndefined(value) { return IsBigInt$2(value) ? FromBigInt$2(value) : IsBoolean$3(value) ? FromBoolean$2(value) : IsNumber$3(value) ? FromNumber$2(value) : IsNull$2(value) ? Ok(void 0) : IsString$3(value) ? FromString$2(value) : IsUndefined$2(value) ? Ok(value) : void 0; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_array.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_array.mjs function FromArray$4(context, type, value) { return TryArray(value).value.map((value) => FromType$4(context, type.items, value)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_base.mjs -function FromBase$2(_context, type, value) { - return type.Convert(value); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_bigint.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_bigint.mjs function FromBigInt$1(_context, _type, value) { const result = TryBigInt(value); return IsOk(result) ? result.value : value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_boolean.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_boolean.mjs function FromBoolean$1(_context, _type, value) { const result = TryBoolean(value); return IsOk(result) ? result.value : value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_cyclic.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_cyclic.mjs function FromCyclic$4(context, type, value) { return FromType$4({ ...context, @@ -7068,23 +6802,23 @@ function FromCyclic$4(context, type, value) { }, Ref$1(type.$ref), value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_enum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_enum.mjs function FromEnum$1(context, type, value) { return FromType$4(context, Evaluate(type), value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_integer.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_integer.mjs function FromInteger$1(_context, _type, value) { const result = TryNumber(value); return IsOk(result) ? Math.trunc(result.value) : value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_intersect.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_intersect.mjs function FromIntersect$4(context, type, value) { return FromType$4(context, Evaluate(Instantiate(context, type)), value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_literal.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_literal.mjs function FromLiteralBigInt(_context, type, value) { const result = TryBigInt(value); return IsOk(result) && IsEqual$1(type.const, result.value) ? result.value : value; @@ -7106,19 +6840,19 @@ function FromLiteral$1(context, type, value) { return IsLiteralBigInt(type) ? FromLiteralBigInt(context, type, value) : IsLiteralBoolean(type) ? FromLiteralBoolean(context, type, value) : IsLiteralNumber(type) ? FromLiteralNumber(context, type, value) : IsLiteralString(type) ? FromLiteralString(context, type, value) : Unreachable(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_null.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_null.mjs function FromNull$1(_context, _type, value) { const result = TryNull(value); return IsOk(result) ? result.value : value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_number.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_number.mjs function FromNumber$1(_context, _type, value) { const result = TryNumber(value); return IsOk(result) ? result.value : value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_additional.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_additional.mjs /** * Used by Object and Record Types. The entries are derived from the known * properties obtained from 'properties' and 'patternProperties' respectively. @@ -7129,12 +6863,12 @@ function FromAdditionalProperties(context, entries, additionalProperties, value) return value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/shared/optional_undefined.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/shared/optional_undefined.mjs function IsOptionalUndefined(property, key, value) { return IsOptional(property) && IsUndefined$2(value[key]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_object.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_object.mjs function FromProperties(context, type, value) { const entries = EntriesRegExp(type.properties); const keys = Keys$1(value); @@ -7148,7 +6882,7 @@ function FromObject$4(context, type, value) { return IsObjectNotArray$1(value) ? FromProperties(context, type, value) : value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_record.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_record.mjs function FromPatternProperties(context, type, value) { const entries = EntriesRegExp(type.patternProperties); const keys = Keys$1(value); @@ -7159,53 +6893,53 @@ function FromRecord$4(context, type, value) { return IsObjectNotArray$1(value) ? FromPatternProperties(context, type, value) : value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_ref.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_ref.mjs function FromRef$4(context, type, value) { return HasPropertyKey$1(context, type.$ref) ? FromType$4(context, context[type.$ref], value) : value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_string.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_string.mjs function FromString$1(_context, _type, value) { const result = TryString(value); return IsOk(result) ? result.value : value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_template_literal.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_template_literal.mjs function FromTemplateLiteral$1(context, type, value) { return FromType$4(context, Evaluate(type), value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_tuple.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_tuple.mjs function FromTuple$4(context, type, value) { if (!IsArray$2(value)) return value; for (let index = 0; index < Math.min(type.items.length, value.length); index++) value[index] = FromType$4(context, type.items[index], value[index]); return value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_undefined.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_undefined.mjs function FromUndefined$1(_context, _type, value) { const result = TryUndefined(value); return IsOk(result) ? result.value : value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_union.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_union.mjs function FromUnion$4(context, type, value) { if (type.anyOf.some((type) => Check(context, type, value))) return value; const selected = type.anyOf.map((type) => FromType$4(context, type, Clone(value))).find((value) => Check(context, type, value)); return IsUndefined$2(selected) ? value : selected; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_void.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_void.mjs function FromVoid$1(_context, _type, value) { return IsOk(TryUndefined(value)) ? void 0 : value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_type.mjs function FromType$4(context, type, value) { - return IsArray(type) ? FromArray$4(context, type, value) : IsBase(type) ? FromBase$2(context, type, value) : IsBigInt(type) ? FromBigInt$1(context, type, value) : IsBoolean(type) ? FromBoolean$1(context, type, value) : IsCyclic(type) ? FromCyclic$4(context, type, value) : IsEnum$1(type) ? FromEnum$1(context, type, value) : IsInteger(type) ? FromInteger$1(context, type, value) : IsIntersect(type) ? FromIntersect$4(context, type, value) : IsLiteral(type) ? FromLiteral$1(context, type, value) : IsNull(type) ? FromNull$1(context, type, value) : IsNumber(type) ? FromNumber$1(context, type, value) : IsObject(type) ? FromObject$4(context, type, value) : IsRecord(type) ? FromRecord$4(context, type, value) : IsRef$1(type) ? FromRef$4(context, type, value) : IsString(type) ? FromString$1(context, type, value) : IsTemplateLiteral(type) ? FromTemplateLiteral$1(context, type, value) : IsTuple(type) ? FromTuple$4(context, type, value) : IsUndefined(type) ? FromUndefined$1(context, type, value) : IsUnion(type) ? FromUnion$4(context, type, value) : IsVoid(type) ? FromVoid$1(context, type, value) : value; + return IsArray(type) ? FromArray$4(context, type, value) : IsBigInt(type) ? FromBigInt$1(context, type, value) : IsBoolean(type) ? FromBoolean$1(context, type, value) : IsCyclic(type) ? FromCyclic$4(context, type, value) : IsEnum$1(type) ? FromEnum$1(context, type, value) : IsInteger(type) ? FromInteger$1(context, type, value) : IsIntersect(type) ? FromIntersect$4(context, type, value) : IsLiteral(type) ? FromLiteral$1(context, type, value) : IsNull(type) ? FromNull$1(context, type, value) : IsNumber(type) ? FromNumber$1(context, type, value) : IsObject(type) ? FromObject$4(context, type, value) : IsRecord(type) ? FromRecord$4(context, type, value) : IsRef$1(type) ? FromRef$4(context, type, value) : IsString(type) ? FromString$1(context, type, value) : IsTemplateLiteral(type) ? FromTemplateLiteral$1(context, type, value) : IsTuple(type) ? FromTuple$4(context, type, value) : IsUndefined(type) ? FromUndefined$1(context, type, value) : IsUnion(type) ? FromUnion$4(context, type, value) : IsVoid(type) ? FromVoid$1(context, type, value) : value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/convert.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/convert.mjs /** * Converts a value to the given type, coercing interior values if a reasonable conversion is possible. This * function returns unknown so callers should Check the return value before use. This function mutates the @@ -7227,19 +6961,14 @@ function Convert(...args) { return FromType$4(context, type, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/default/from_array.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/default/from_array.mjs function FromArray$3(context, type, value) { if (!IsArray$2(value)) return value; for (let i = 0; i < value.length; i++) value[i] = FromType$3(context, type.items, value[i]); return value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/default/from_base.mjs -function FromBase$1(context, type, value) { - return type.Default(value); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/default/from_cyclic.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/default/from_cyclic.mjs function FromCyclic$3(context, type, value) { return FromType$3({ ...context, @@ -7247,18 +6976,18 @@ function FromCyclic$3(context, type, value) { }, Ref$1(type.$ref), value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/default/from_default.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/default/from_default.mjs function FromDefault$1(type, value) { if (!IsUndefined$2(value)) return value; return IsFunction$2(type.default) ? type.default() : Clone(type.default); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/default/from_intersect.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/default/from_intersect.mjs function FromIntersect$3(context, type, value) { return FromType$3(context, Evaluate(Instantiate(context, type)), value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/default/from_object.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/default/from_object.mjs function FromObject$3(context, type, value) { if (!IsObject$2(value)) return value; const knownPropertyKeys = Keys$1(type.properties); @@ -7275,7 +7004,7 @@ function FromObject$3(context, type, value) { return value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/default/from_record.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/default/from_record.mjs function FromRecord$3(context, type, value) { if (!IsObject$2(value)) return value; const [recordKey, recordValue] = [new RegExp(RecordPattern(type)), RecordValue(type)]; @@ -7291,12 +7020,12 @@ function FromRecord$3(context, type, value) { return value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/default/from_ref.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/default/from_ref.mjs function FromRef$3(context, type, value) { return HasPropertyKey$1(context, type.$ref) ? FromType$3(context, context[type.$ref], value) : value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/default/from_tuple.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/default/from_tuple.mjs function FromTuple$3(context, schema, value) { if (!IsArray$2(value)) return value; const [items, max] = [schema.items, Math.max(schema.items.length, value.length)]; @@ -7304,7 +7033,7 @@ function FromTuple$3(context, schema, value) { return value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/default/from_union.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/default/from_union.mjs function FromUnion$3(context, schema, value) { for (const inner of schema.anyOf) { const result = FromType$3(context, inner, Clone(value)); @@ -7313,13 +7042,13 @@ function FromUnion$3(context, schema, value) { return value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/default/from_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/default/from_type.mjs function FromType$3(context, type, value) { const defaulted = IsDefault(type) ? FromDefault$1(type, value) : value; - return IsArray(type) ? FromArray$3(context, type, defaulted) : IsBase(type) ? FromBase$1(context, type, defaulted) : IsCyclic(type) ? FromCyclic$3(context, type, defaulted) : IsIntersect(type) ? FromIntersect$3(context, type, defaulted) : IsObject(type) ? FromObject$3(context, type, defaulted) : IsRecord(type) ? FromRecord$3(context, type, defaulted) : IsRef$1(type) ? FromRef$3(context, type, defaulted) : IsTuple(type) ? FromTuple$3(context, type, defaulted) : IsUnion(type) ? FromUnion$3(context, type, defaulted) : defaulted; + return IsArray(type) ? FromArray$3(context, type, defaulted) : IsCyclic(type) ? FromCyclic$3(context, type, defaulted) : IsIntersect(type) ? FromIntersect$3(context, type, defaulted) : IsObject(type) ? FromObject$3(context, type, defaulted) : IsRecord(type) ? FromRecord$3(context, type, defaulted) : IsRef$1(type) ? FromRef$3(context, type, defaulted) : IsTuple(type) ? FromTuple$3(context, type, defaulted) : IsUnion(type) ? FromUnion$3(context, type, defaulted) : defaulted; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/default/default.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/default/default.mjs /** * Patches missing properties on the value using default annotations specified on the provided type. This * function returns unknown so callers should Check the return value before use. This function mutates the @@ -7341,7 +7070,7 @@ function Default(...args) { return FromType$3(context, type, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/pipeline/pipeline.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/pipeline/pipeline.mjs /** Creates a value processing pipeline. */ function Pipeline(pipeline) { return (...args) => { @@ -7361,7 +7090,7 @@ function Pipeline(pipeline) { }; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/codec/callback.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/codec/callback.mjs function Decode$7(_context, type, value) { return type["~codec"].decode(value); } @@ -7373,7 +7102,7 @@ function Callback(direction, context, type, value) { return IsEqual$1(direction, "Decode") ? Decode$7(context, type, value) : Encode$7(context, type, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/codec/from_array.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/codec/from_array.mjs function Decode$6(direction, context, type, value) { if (!IsArray$2(value)) return value; for (let i = 0; i < value.length; i++) value[i] = FromType$2(direction, context, type.items, value[i]); @@ -7389,7 +7118,7 @@ function FromArray$2(direction, context, type, value) { return IsEqual$1(direction, "Decode") ? Decode$6(direction, context, type, value) : Encode$6(direction, context, type, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/codec/from_cyclic.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/codec/from_cyclic.mjs function FromCyclic$2(direction, context, type, value) { value = FromType$2(direction, { ...context, @@ -7398,7 +7127,7 @@ function FromCyclic$2(direction, context, type, value) { return Callback(direction, context, type, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/codec/from_intersect.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/codec/from_intersect.mjs function MergeInteriors(interiors) { return interiors.reduce((results, interior) => ({ ...results, @@ -7425,7 +7154,7 @@ function FromIntersect$2(direction, context, type, value) { return IsEqual$1(direction, "Decode") ? Decode$5(direction, context, type, value) : Encode$5(direction, context, type, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/codec/from_object.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/codec/from_object.mjs function Decode$4(direction, context, type, value) { if (!IsObjectNotArray$1(value)) return value; for (const key of Keys$1(type.properties)) { @@ -7447,7 +7176,7 @@ function FromObject$2(direction, context, type, value) { return IsEqual$1(direction, "Decode") ? Decode$4(direction, context, type, value) : Encode$4(direction, context, type, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/codec/from_record.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/codec/from_record.mjs function Decode$3(direction, context, type, value) { if (!IsObjectNotArray$1(value)) return value; const regexp = new RegExp(RecordPattern(type)); @@ -7471,7 +7200,7 @@ function FromRecord$2(direction, context, type, value) { return IsEqual$1(direction, "Decode") ? Decode$3(direction, context, type, value) : Encode$3(direction, context, type, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/codec/from_ref.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/codec/from_ref.mjs function ResolveRef(direction, context, type, value) { return HasPropertyKey$1(context, type.$ref) ? FromType$2(direction, context, context[type.$ref], value) : value; } @@ -7479,7 +7208,7 @@ function FromRef$2(direction, context, type, value) { return IsEqual$1(direction, "Decode") ? Callback(direction, context, type, ResolveRef(direction, context, type, value)) : ResolveRef(direction, context, type, Callback(direction, context, type, value)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/codec/from_tuple.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/codec/from_tuple.mjs function Decode$2(direction, context, type, value) { if (!IsArray$2(value)) return value; for (let i = 0; i < Math.min(type.items.length, value.length); i++) value[i] = FromType$2(direction, context, type.items[i], value[i]); @@ -7495,7 +7224,7 @@ function FromTuple$2(direction, context, type, value) { return IsEqual$1(direction, "Decode") ? Decode$2(direction, context, type, value) : Encode$2(direction, context, type, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/codec/from_union.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/codec/from_union.mjs function Decode$1(direction, context, type, value) { for (const schema of type.anyOf) { if (!Check(context, schema, value)) continue; @@ -7516,12 +7245,12 @@ function FromUnion$2(direction, context, type, value) { return IsEqual$1(direction, "Decode") ? Decode$1(direction, context, type, value) : Encode$1(direction, context, type, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/codec/from_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/codec/from_type.mjs function FromType$2(direction, context, type, value) { return IsArray(type) ? FromArray$2(direction, context, type, value) : IsCyclic(type) ? FromCyclic$2(direction, context, type, value) : IsIntersect(type) ? FromIntersect$2(direction, context, type, value) : IsObject(type) ? FromObject$2(direction, context, type, value) : IsRecord(type) ? FromRecord$2(direction, context, type, value) : IsRef$1(type) ? FromRef$2(direction, context, type, value) : IsTuple(type) ? FromTuple$2(direction, context, type, value) : IsUnion(type) ? FromUnion$2(direction, context, type, value) : Callback(direction, context, type, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/codec/decode.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/codec/decode.mjs var DecodeError = class extends AssertError { constructor(value, errors) { super("Decode", value, errors); @@ -7560,7 +7289,7 @@ function Decode(...args) { return Decoder(context, type, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/codec/encode.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/codec/encode.mjs var EncodeError = class extends AssertError { constructor(value, errors) { super("Encode", value, errors); @@ -7599,7 +7328,7 @@ function Encode(...args) { return Encoder(context, type, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/codec/has.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/codec/has.mjs function FromArray$1(context, type) { return IsCodec(type) || FromType$1(context, type.items); } @@ -7645,7 +7374,7 @@ function HasCodec(...args) { return FromType$1(context, type); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/create/error.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/error.mjs var CreateError = class extends Error { constructor(type, message) { super(message); @@ -7653,40 +7382,29 @@ var CreateError = class extends Error { } }; //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/create/from_default.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/from_default.mjs function FromDefault(_context, schema) { return IsFunction$2(schema.default) ? schema.default(schema) : IsObject$2(schema.default) ? Clone(schema.default) : schema.default; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/create/from_array.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/from_array.mjs function FromArray(context, type) { if (IsUniqueItems(type) && !IsDefault(type)) throw new CreateError(type, "Arrays with uniqueItems constraints must specify a default annotation"); const length = IsMinItems(type) ? type.minItems : 0; return Array.from({ length }, () => FromType(context, type.items)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/create/from_async_iterator.mjs -async function* CreateAsyncIterator() {} -function FromAsyncIterator(_context, _type) { - return CreateAsyncIterator(); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/create/from_base.mjs -function FromBase(_context, type) { - return type.Create(); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/create/from_bigint.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/from_bigint.mjs function FromBigInt(_context, type) { return IsExclusiveMinimum(type) ? BigInt(type.exclusiveMinimum) + BigInt(1) : IsMinimum(type) ? BigInt(type.minimum) : BigInt(0); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/create/from_boolean.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/from_boolean.mjs function FromBoolean(_context, _type) { return false; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/create/from_constructor.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/from_constructor.mjs function FromConstructor(context, type) { const instanceType = FromType(context, type.instanceType); return class { @@ -7696,7 +7414,7 @@ function FromConstructor(context, type) { }; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/create/from_cyclic.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/from_cyclic.mjs function FromCyclic(context, type) { return FromType({ ...context, @@ -7704,54 +7422,48 @@ function FromCyclic(context, type) { }, Ref$1(type.$ref)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/create/from_enum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/from_enum.mjs function FromEnum(context, type) { return FromType(context, Evaluate(type)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/create/from_function.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/from_function.mjs function FromFunction(context, type) { const returnType = FromType(context, type.returnType); return () => returnType; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/create/from_integer.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/from_integer.mjs function FromInteger(_context, type) { return IsExclusiveMinimum(type) && IsNumber$3(type.exclusiveMinimum) ? type.exclusiveMinimum + 1 : IsMinimum(type) ? type.minimum : 0; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/create/from_intersect.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/from_intersect.mjs function FromIntersect(context, type) { return FromType(context, Evaluate(Instantiate(context, type))); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/create/from_iterator.mjs -function* CreateIterator() {} -function FromIterator(_context, _type) { - return CreateIterator(); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/create/from_literal.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/from_literal.mjs function FromLiteral(_context, type) { return type.const; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/create/from_never.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/from_never.mjs function FromNever(_context, type) { throw new CreateError(type, "Cannot create TNever types"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/create/from_null.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/from_null.mjs function FromNull(_context, _type) { return null; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/create/from_number.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/from_number.mjs function FromNumber(_context, type) { return IsExclusiveMinimum(type) && IsNumber$3(type.exclusiveMinimum) ? type.exclusiveMinimum + 1 : IsMinimum(type) ? type.minimum : 0; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/create/from_object.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/from_object.mjs function FromObject(context, type) { return (IsUndefined$2(type.required) ? [] : type.required).reduce((result, key) => { return { @@ -7761,60 +7473,55 @@ function FromObject(context, type) { }, {}); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/create/from_promise.mjs -function FromPromise(context, type) { - return Promise.resolve(FromType(context, type.item)); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/create/from_record.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/from_record.mjs function FromRecord(_context, type) { if (IsMinProperties(type) && !IsDefault(type)) throw new CreateError(type, "Record with the minProperties constraint must have a default annotation"); return {}; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/create/from_ref.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/from_ref.mjs function FromRef(context, type) { return HasPropertyKey$1(context, type.$ref) ? FromType(context, context[type.$ref]) : (() => { throw new CreateError(type, "Unable to deref Ref"); })(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/create/from_string.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/from_string.mjs function FromString(_context, type) { if ((IsPattern(type) || IsFormat(type)) && !IsDefault(type)) throw Error("Strings with format or pattern constraints must specify default"); const minLength = IsMinLength(type) ? type.minLength : 0; return "".padEnd(minLength); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/create/from_symbol.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/from_symbol.mjs function FromSymbol(_context, _type) { return Symbol(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/create/from_template_literal.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/from_template_literal.mjs function FromTemplateLiteral(context, type) { const decoded = TemplateLiteralDecode(type.pattern); if (IsString(decoded)) throw new CreateError(type, "Unable to create TemplateLiteral due to infinite type expansion"); return FromType(context, decoded); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/create/from_tuple.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/from_tuple.mjs function FromTuple(context, type) { return Array.from({ length: type.minItems }, (_, i) => FromType(context, type.items[i])); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/create/from_union.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/from_union.mjs function FromUnion(context, type) { if (IsEqual$1(type.anyOf.length, 0)) throw Error("Unable to create Union with no variants"); return FromType(context, type.anyOf[0]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/create/from_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/from_type.mjs function FromType(context, type) { - return IsDefault(type) ? FromDefault(context, type) : IsArray(type) ? FromArray(context, type) : IsAsyncIterator(type) ? FromAsyncIterator(context, type) : IsBase(type) ? FromBase(context, type) : IsBigInt(type) ? FromBigInt(context, type) : IsBoolean(type) ? FromBoolean(context, type) : IsConstructor(type) ? FromConstructor(context, type) : IsCyclic(type) ? FromCyclic(context, type) : IsEnum$1(type) ? FromEnum(context, type) : IsFunction(type) ? FromFunction(context, type) : IsInteger(type) ? FromInteger(context, type) : IsIntersect(type) ? FromIntersect(context, type) : IsIterator(type) ? FromIterator(context, type) : IsLiteral(type) ? FromLiteral(context, type) : IsNever(type) ? FromNever(context, type) : IsNull(type) ? FromNull(context, type) : IsNumber(type) ? FromNumber(context, type) : IsObject(type) ? FromObject(context, type) : IsPromise(type) ? FromPromise(context, type) : IsRecord(type) ? FromRecord(context, type) : IsRef$1(type) ? FromRef(context, type) : IsString(type) ? FromString(context, type) : IsSymbol(type) ? FromSymbol(context, type) : IsTemplateLiteral(type) ? FromTemplateLiteral(context, type) : IsTuple(type) ? FromTuple(context, type) : IsUndefined(type) ? void 0 : IsUnion(type) ? FromUnion(context, type) : IsVoid(type) ? void 0 : void 0; + return IsDefault(type) ? FromDefault(context, type) : IsArray(type) ? FromArray(context, type) : IsBigInt(type) ? FromBigInt(context, type) : IsBoolean(type) ? FromBoolean(context, type) : IsConstructor(type) ? FromConstructor(context, type) : IsCyclic(type) ? FromCyclic(context, type) : IsEnum$1(type) ? FromEnum(context, type) : IsFunction(type) ? FromFunction(context, type) : IsInteger(type) ? FromInteger(context, type) : IsIntersect(type) ? FromIntersect(context, type) : IsLiteral(type) ? FromLiteral(context, type) : IsNever(type) ? FromNever(context, type) : IsNull(type) ? FromNull(context, type) : IsNumber(type) ? FromNumber(context, type) : IsObject(type) ? FromObject(context, type) : IsRecord(type) ? FromRecord(context, type) : IsRef$1(type) ? FromRef(context, type) : IsString(type) ? FromString(context, type) : IsSymbol(type) ? FromSymbol(context, type) : IsTemplateLiteral(type) ? FromTemplateLiteral(context, type) : IsTuple(type) ? FromTuple(context, type) : IsUndefined(type) ? void 0 : IsUnion(type) ? FromUnion(context, type) : IsVoid(type) ? void 0 : void 0; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/create/create.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/create.mjs /** Creates a value from the provided type. This function will use `default` annotations if present. */ function Create(...args) { const [context, type] = Match$3(args, { @@ -7824,7 +7531,7 @@ function Create(...args) { return FromType(context, type); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/parse/parse.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/parse/parse.mjs var ParseError = class extends AssertError { constructor(value, errors) { super("Parse", value, errors); @@ -7858,30 +7565,13 @@ Union([ }) ]); //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/compile/validator.mjs -var Validator = class Validator extends Base { +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/compile/validator.mjs +var Validator = class { /** Constructs a Validator. */ - constructor(...args) { - super(); - const matched = Match$3(args, { - 3: (hasCodec, buildResult, evaluateResult) => [ - hasCodec, - buildResult, - evaluateResult - ], - 2: (context, type) => [context, type] - }); - if (matched.length === 3 && matched[1] instanceof BuildResult && matched[2] instanceof EvaluateResult) { - const [hasCodec, buildResult, evaluateResult] = matched; - this.hasCodec = hasCodec; - this.buildResult = buildResult; - this.evaluateResult = evaluateResult; - } else { - const [context, type] = matched; - this.hasCodec = HasCodec(context, type); - this.buildResult = Build(context, type); - this.evaluateResult = this.buildResult.Evaluate(); - } + constructor(context, type) { + this.hasCodec = HasCodec(context, type); + this.buildResult = Build(context, type); + this.evaluateResult = this.buildResult.Evaluate(); } /** Returns true if this Validator is using JIT acceleration. */ IsAccelerated() { @@ -7938,16 +7628,9 @@ var Validator = class Validator extends Base { Encode(value) { return this.hasCodec ? Encode(this.Context(), this.Type(), value) : this.Parse(value); } - /** - * @deprecated Validator instances should not support Clone because they are owners of JIT evaluated functions. This function will be - * removed in the next version of TypeBox (relates to Type.Base deprecation) - */ - Clone() { - return new Validator(this.hasCodec, this.buildResult, this.evaluateResult); - } }; //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/compile/compile.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/compile/compile.mjs /** Compiles a type into a high performance Validator */ function Compile(...args) { const [context, type] = Match$3(args, { @@ -7957,7 +7640,7 @@ function Compile(...args) { return new Validator(context, type); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/compile/index.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/compile/index.mjs var compile_default = Compile; //#endregion //#region ../schemas/libraries/typebox/download/namespace + compile.ts diff --git a/schemas/libraries/typebox/download_compiled/namespace/minified.js b/schemas/libraries/typebox/download_compiled/namespace/minified.js index 59bd6b78..2d8394f0 100644 --- a/schemas/libraries/typebox/download_compiled/namespace/minified.js +++ b/schemas/libraries/typebox/download_compiled/namespace/minified.js @@ -1,3 +1,3 @@ -var e=Object.defineProperty,t=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r};const n={assign:0,create:0,clone:0,discard:0,update:0};function r(e,t){return n.assign+=1,{...e,...t}}function i(e,t,n){return e>=t&&e<=n}function a(e){return i(e,127462,127487)}function o(e){return i(e,65024,65039)}function s(e){return i(e,768,879)||i(e,6832,6911)||i(e,7616,7679)||i(e,65056,65071)}function c(e){return e>65535?2:1}function l(e,t){for(;t=t)return!0;return!1}function re(e,t){let n=0,r=0;for(;rt)return!1;return!0}function ie(e,t){if(t===0)return!0;let n=0;for(;n=t)return!0}return!1}function ae(e,t){let n=0;for(;nt)return!1}return!0}var oe=t({Entries:()=>C,EntriesRegExp:()=>Ee,Every:()=>y,EveryAll:()=>b,GraphemeCount:()=>Se,HasPropertyKey:()=>S,IsArray:()=>d,IsAsyncIterator:()=>se,IsBigInt:()=>f,IsBoolean:()=>p,IsClassInstance:()=>be,IsConstructor:()=>ce,IsDeepEqual:()=>je,IsEqual:()=>v,IsFunction:()=>le,IsGreaterEqualThan:()=>ve,IsGreaterThan:()=>he,IsInteger:()=>ue,IsIterator:()=>de,IsLessEqualThan:()=>_e,IsLessThan:()=>ge,IsMaxLength:()=>Ce,IsMinLength:()=>we,IsMultipleOf:()=>ye,IsNull:()=>fe,IsNumber:()=>m,IsObject:()=>h,IsObjectNotArray:()=>pe,IsString:()=>g,IsSymbol:()=>me,IsUndefined:()=>_,IsUnsafePropertyKey:()=>Te,IsValueLike:()=>xe,Keys:()=>w,ShiftLeft:()=>x,Symbols:()=>De,Values:()=>Oe});function d(e){return Array.isArray(e)}function se(e){return h(e)&&Symbol.asyncIterator in e}function f(e){return v(typeof e,`bigint`)}function p(e){return v(typeof e,`boolean`)}function ce(e){if(_(e)||!le(e))return!1;let t=Function.prototype.toString.call(e);return!!(/^class\s/.test(t)||/\[native code\]/.test(t))}function le(e){return v(typeof e,`function`)}function ue(e){return Number.isInteger(e)}function de(e){return h(e)&&Symbol.iterator in e}function fe(e){return v(e,null)}function m(e){return Number.isFinite(e)}function pe(e){return h(e)&&!d(e)}function h(e){return v(typeof e,`object`)&&!fe(e)}function g(e){return v(typeof e,`string`)}function me(e){return v(typeof e,`symbol`)}function _(e){return v(e,void 0)}function v(e,t){return e===t}function he(e,t){return e>t}function ge(e,t){return e=t}function ye(e,t){if(f(e)||f(t))return BigInt(e)%BigInt(t)===0n;if(!m(e)||ue(e)&&1/t%1==0)return!0;let n=e%t;return Math.min(Math.abs(n),Math.abs(n-t))<1e-10}function be(e){if(!h(e))return!1;let t=globalThis.Object.getPrototypeOf(e);return fe(t)?!1:v(typeof t.constructor,`function`)&&!(v(t.constructor,globalThis.Object)||v(t.constructor.name,`Object`))}function xe(e){return f(e)||p(e)||fe(e)||m(e)||g(e)||_(e)}function Se(e){return te(e)}function Ce(e,t){return ae(e,t)}function we(e,t){return ie(e,t)}function y(e,t,n){for(let r=t;r[RegExp(`^${t}$`),e[t]])}function C(e){return Object.entries(e)}function w(e){return Object.getOwnPropertyNames(e)}function De(e){return Object.getOwnPropertySymbols(e)}function Oe(e){return Object.values(e)}function ke(e,t){if(!h(t))return!1;let n=w(e);return v(n.length,w(t).length)&&n.every(n=>je(e[n],t[n]))}function Ae(e,t){return d(t)&&v(e.length,t.length)&&e.every((n,r)=>je(e[r],t[r]))}function je(e,t){return d(e)?Ae(e,t):h(e)?ke(e,t):v(e,t)}function Me(e){return e instanceof Boolean}function Ne(e){return e instanceof Number}function Pe(e){return e instanceof String}function Fe(e){return globalThis.ArrayBuffer.isView(e)}function Ie(e){return e instanceof globalThis.RegExp}function Le(e){return e instanceof globalThis.Date}function Re(e){return e instanceof globalThis.Set}function ze(e){return e instanceof globalThis.Map}var Be=oe;function Ve(e){return h(e)&&S(e,`~guard`)}function He(e){return e}function Ue(e){return e.map(e=>qe(e))}function We(e){let t={},n=Object.getOwnPropertyDescriptors(e);for(let e of Object.keys(n)){let r=n[e];S(r,`value`)&&Object.defineProperty(t,e,{...r,value:qe(r.value)})}return t}function Ge(e){return new RegExp(e.source,e.flags)}function Ke(e){return e}function qe(e){return e instanceof RegExp?Ge(e):Ve(e)?He(e):d(e)?Ue(e):h(e)?We(e):Ke(e)}function Je(e){return n.clone+=1,qe(e)}const Ye={immutableTypes:!1,maxErrors:8,useAcceleration:!0,exactOptionalPropertyTypes:!1,enumerableKind:!1,correctiveParse:!1,unionPrioritySort:!0};function Xe(){return Ye}function Ze(e,t){for(let n of Object.keys(t))Object.defineProperty(e,n,{configurable:!0,writable:!0,enumerable:!1,value:t[n]});return e}function Qe(e,t){return{...e,...t}}function T(e,t,r={}){n.create+=1;let i=Xe(),a=Qe(t,r),o=i.enumerableKind?Qe(a,e):Ze(a,e);return i.immutableTypes?Object.freeze(o):o}function $e(e,t){n.discard+=1;let r={},i=Object.getOwnPropertyDescriptors(Je(e)),a=new Set(t);for(let e of Object.keys(i))a.has(e)||Object.defineProperty(r,e,i[e]);return r}function E(e,t,r){n.update+=1;let i=Xe(),a=Je(e);for(let e of Object.keys(t))Object.defineProperty(a,e,{configurable:!0,writable:!0,enumerable:i.enumerableKind,value:t[e]});for(let e of Object.keys(r))Object.defineProperty(a,e,{configurable:!0,enumerable:!0,writable:!0,value:r[e]});return a}function D(e,t){return h(e)&&S(e,`~kind`)&&v(e[`~kind`],t)}function et(e){return h(e)}function O(e,t,n){return T({"~kind":`Deferred`},{type:`deferred`,action:e,parameters:t,options:n},{})}function tt(e){return D(e,`Deferred`)}function nt(e){return D(e,`Base`)}function rt(e,t){return T({"~kind":`Array`},{type:`array`,items:e},t)}function k(e){return D(e,`Array`)}function it(e){return $e(e,[`~kind`,`type`,`items`])}function at(e,t){return T({"~kind":`AsyncIterator`},{type:`asyncIterator`,iteratorItems:e},t)}function ot(e){return D(e,`AsyncIterator`)}function st(e){return $e(e,[`~kind`,`type`,`iteratorItems`])}function ct(e,t,n={}){return T({"~kind":`Constructor`},{type:`constructor`,parameters:e,instanceType:t},n)}function lt(e){return D(e,`Constructor`)}function ut(e){return $e(e,[`~kind`,`type`,`parameters`,`instanceType`])}function dt(e,t,n={}){return T({"~kind":`Function`},{type:`function`,parameters:e,returnType:t},n)}function ft(e){return D(e,`Function`)}function pt(e){return $e(e,[`~kind`,`type`,`parameters`,`returnType`])}function mt(e,t){return T({"~kind":`Ref`},{$ref:e},t)}function ht(e){return D(e,`Ref`)}function gt(e,t){return T({"~kind":`Generic`},{type:`generic`,parameters:e,expression:t})}function _t(e){return D(e,`Generic`)}function vt(e){return T({"~kind":`Any`},{},e)}function yt(e){return D(e,`Any`)}function bt(e){return T({"~kind":`Never`},{not:{}},e)}function xt(e){return D(e,`Never`)}function St(e){return E(e,{"~optional":!0},{})}function Ct(e,t){return E(St(e),{},t)}function wt(e,t,n,r){return Ct(q(e,t,n),r)}function Tt(e,t={}){return Ct(e,t)}function Et(e){return Tt(e)}function Dt(e){return et(e)&&S(e,`~optional`)}function Ot(e){return w(e).filter(t=>!Dt(e[t]))}function kt(e){return w(e)}function At(e){return Oe(e)}function A(e,t={}){let n=Ot(e);return T({"~kind":`Object`},{type:`object`,...n.length>0?{required:n}:{},properties:e},t)}function j(e){return D(e,`Object`)}function jt(e){return $e(e,[`~kind`,`type`,`properties`,`required`])}function Mt(e){return T({"~kind":`Unknown`},{},e)}function Nt(e){return D(e,`Unknown`)}function Pt(e,t,n){return T({"~kind":`Cyclic`},{$defs:w(e).reduce((t,n)=>({...t,[n]:E(e[n],{},{$id:n})}),{}),$ref:t},n)}function Ft(e){return D(e,`Cyclic`)}function It(e){return E(e,{"~unsafe":null},{})}function Lt(e){return pe(e)&&S(e,`~unsafe`)&&fe(e[`~unsafe`])}function Rt(e,t){return t[e.length]?.(...e)??(()=>{throw Error(`Invalid Arguments`)})()}function zt(e){return D(e,`Infer`)}function Bt(e,t,n,r={}){return T({"~kind":`Dependent`},{if:e,then:t,else:n},r)}function Vt(e){return D(e,`Dependent`)}function Ht(e){return $e(e,[`~kind`,`if`,`then`,`else`])}function Ut(e){return pe(e)}function Wt(e){return w(e).filter(e=>isNaN(e)).reduce((t,n)=>[...t,e[n]],[])}function Gt(e,t){return T({"~kind":`Enum`},{enum:Ut(e)?Wt(e):e},t)}function Kt(e){return D(e,`Enum`)}function qt(e,t={}){return T({"~kind":`Intersect`},{allOf:e},t)}function M(e){return D(e,`Intersect`)}function Jt(e){return $e(e,[`~kind`,`allOf`])}function Yt(){throw Error(`Unreachable`)}function Xt(e){let t=new Set,n=e;for(;n&&n!==Object.prototype;){for(let e of Reflect.ownKeys(n))e!==`constructor`&&typeof e!=`symbol`&&t.add(e);n=Object.getPrototypeOf(n)}return[...t]}function Zt(e){return typeof e==`number`}var Qt;(function(e){e[e.Array=0]=`Array`,e[e.BigInt=1]=`BigInt`,e[e.Boolean=2]=`Boolean`,e[e.Date=3]=`Date`,e[e.Constructor=4]=`Constructor`,e[e.Function=5]=`Function`,e[e.Null=6]=`Null`,e[e.Number=7]=`Number`,e[e.Object=8]=`Object`,e[e.RegExp=9]=`RegExp`,e[e.String=10]=`String`,e[e.Symbol=11]=`Symbol`,e[e.TypeArray=12]=`TypeArray`,e[e.Undefined=13]=`Undefined`})(Qt||={});let $t=BigInt(`14695981039346656037`);const[en,tn]=[BigInt(`1099511628211`),BigInt(`18446744073709551616`)],nn=Array.from({length:256}).map((e,t)=>BigInt(t)),rn=new Float64Array(1),an=new DataView(rn.buffer),on=new Uint8Array(rn.buffer);function N(e){$t^=nn[e],$t=$t*en%tn}function sn(e){N(Qt.Array);for(let t of e)Sn(t)}function cn(e){N(Qt.BigInt),an.setBigInt64(0,e);for(let e of on)N(e)}function ln(e){N(Qt.Boolean),N(+!!e)}function un(e){N(Qt.Constructor),Sn(e.toString())}function dn(e){N(Qt.Date),Sn(e.getTime())}function fn(e){N(Qt.Function),Sn(e.toString())}function pn(e){N(Qt.Null)}function mn(e){N(Qt.Number),an.setFloat64(0,e,!0);for(let e of on)N(e)}function hn(e){N(Qt.Object);for(let t of Xt(e).sort())Sn(t),Sn(e[t])}function gn(e){N(Qt.RegExp),vn(e.toString())}const _n=new TextEncoder;function vn(e){N(Qt.String);for(let t of _n.encode(e))N(t)}function yn(e){N(Qt.Symbol),Sn(e.toString())}function bn(e){N(Qt.TypeArray);let t=new Uint8Array(e.buffer);for(let e=0;e[e,t,n],2:(e,t)=>[e,t,()=>`Refine Error`]});return Ln(t,{check:n,error:g(r)?()=>r:r})}function zn(e){return pe(e)&&S(e,`check`)&&S(e,`error`)&&le(e.check)&&le(e.error)}function Bn(e){return et(e)&&S(e,`~refine`)&&d(e[`~refine`])&&y(e[`~refine`],0,e=>zn(e))}function Vn(e){return T({"~kind":`BigInt`},{type:`bigint`},e)}function Hn(e){return D(e,`BigInt`)}function Un(e){return D(e,`Boolean`)}const Wn=`-?(?:0|[1-9][0-9]*)`;function Gn(e){return T({"~kind":`Integer`},{type:`integer`},e)}function Kn(e){return D(e,`Integer`)}function qn(e,t){return T({"~kind":`Iterator`},{type:`iterator`,iteratorItems:e},t)}function Jn(e){return D(e,`Iterator`)}function Yn(e){return $e(e,[`~kind`,`type`,`iteratorItems`])}var Xn=class extends Error{constructor(e){super(`Invalid Literal value`),Object.defineProperty(this,"cause",{value:{value:e},writable:!1,configurable:!1,enumerable:!1})}};function Zn(e){return f(e)?`bigint`:p(e)?`boolean`:m(e)?`number`:g(e)?`string`:(()=>{throw new Xn(e)})()}function P(e,t){return T({"~kind":`Literal`},{type:Zn(e),const:e},t)}function Qn(e){return f(e)||p(e)||m(e)||g(e)}function $n(e){return F(e)&&f(e.const)}function er(e){return F(e)&&p(e.const)}function tr(e){return F(e)&&m(e.const)}function nr(e){return F(e)&&g(e.const)}function F(e){return D(e,`Literal`)}function rr(e){return T({"~kind":`Null`},{type:`null`},e)}function ir(e){return D(e,`Null`)}const ar=`-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?`;function or(e){return T({"~kind":`Number`},{type:`number`},e)}function sr(e){return D(e,`Number`)}function cr(e){return T({"~kind":`Symbol`},{type:`symbol`},e)}function lr(e){return D(e,`Symbol`)}function ur(e,t){return T({"~kind":`Promise`},{type:`promise`,item:e},t)}function dr(e){return D(e,`Promise`)}function fr(e){return $e(e,[`~kind`,`type`,`item`])}function I(e){return T({"~kind":`String`},{type:`string`},e)}function pr(e){return D(e,`String`)}function L(e,t={}){return T({"~kind":`Union`},{anyOf:e},t)}function R(e){return D(e,`Union`)}function mr(e){return $e(e,[`~kind`,`anyOf`])}function hr(e){let t=Ra(e);return v(t.length,2)?t[0]:[]}function gr(e){return!0}function _r(e){return x(e,(e,t)=>yr(e)?_r(t):!1,()=>!0)}function vr(e){return v(e.length,0)?!1:_r(e)}function yr(e){return R(e)?vr(e.anyOf):F(e)?gr(e.const):!1}function br(e){return vr(e)}function xr(e){return T({"~kind":`TemplateLiteral`},{type:`string`,pattern:e},{})}function Sr(e,t,n=[]){return x(e,(e,r)=>Sr(r,t,[...n,`${e}${t}`]),()=>n)}function Cr(e,t){return v(e.length,0)?[`${t}`]:Sr(e,t)}function wr(e,t,n=[]){return x(t,(t,r)=>wr(e,r,[...n,...Tr(e,t)]),()=>n)}function Tr(e,t){return R(t)?wr(e,t.anyOf):F(t)?Cr(e,t.const):Yt()}function Er(e,t){return x(t,(t,n)=>Er(Tr(e,t),n),()=>e)}function Dr(e){return e.map(e=>P(e))}function Or(e){return L(Dr(Er([],e)))}function kr(e){return v(e.length,0)?Yt():v(e.length,1)&&F(e[0])?e[0]:Or(e)}function Ar(e){let t=hr(e);return v(t.length,0)?I():br(t)?kr(t):xr(e)}function jr(e){let t=Ar(e);return ao(t)?I():t}function Mr(e,t){return T({"~kind":`Record`},{type:`object`,patternProperties:{[e]:t}})}function Nr(e){return Mr(Ii,e)}function Pr(e){return A({true:e,false:e})}function Fr(e,t={}){let[n,r,i]=[e,e.length,!1];return T({"~kind":`Tuple`},{type:`array`,additionalItems:i,items:n,minItems:r},t)}function z(e){return D(e,`Tuple`)}function Ir(e){return $e(e,[`~kind`,`type`,`items`,`minItems`,`additionalItems`])}function Lr(e){return $e(e,[`~readonly`])}function Rr(e,t){return E(Lr(e),{},t)}function zr(e,t,n,r){return Rr(q(e,t,n),r)}function Br(e,t={}){return Rr(e,t)}function Vr(e){return $e(e,[`~optional`])}function Hr(e,t){return E(Vr(e),{},t)}function Ur(e,t,n,r){return Hr(q(e,t,n),r)}function Wr(e,t={}){return Hr(e,t)}function Gr(e){return e.reduceRight((e,t,n)=>({[n]:t,...e}),{})}function Kr(e){return A(Gr(e.items))}function qr(e,t){return In(e)?!!In(t):!1}function Jr(e,t){return Dt(e)?!!Dt(t):!1}function Yr(e,t){let n=qr(e,t),r=Jr(e,t),i=Br(Wr(fi([e,t])));return n&&r?Pn(Tt(i)):n&&!r?Pn(i):!n&&r?Tt(i):i}function Xr(e,t,n){return n in e?n in t?Yr(e[n],t[n]):e[n]:n in t?t[n]:bt()}function Zr(e,t){return[...new Set([...w(t),...w(e)])].reduce((n,r)=>({...n,[r]:Xr(e,t,r)}),{})}function Qr(e){return j(e)?e.properties:z(e)?Gr(e.items):Yt()}function $r(e,t){return A(Zr(Qr(e),Qr(t)))}function ei(e,t){let n=cc(e,t);return v(n,`left-inside`)?e:v(n,`right-inside`)||v(n,`equal`)?t:bt()}function ti(e){return j(e)||z(e)}function ni(e,t){let n=R(e),r=R(t);return n||r}function ri(e,t){let n=hi(e),r=hi(t),i=ni(n,r),a=ti(n),o=ti(r);return i?fi([n,r]):a&&o?$r(n,r):a&&!o?n:!a&&o?r:ei(n,r)}function ii(e,t,n=[]){return x(t,(t,r)=>ii(e,r,[...n,ri(e,t)]),()=>v(n.length,0)?[e]:n)}function ai(e,t,n=[]){return x(e,(e,r)=>ai(r,t,[...n,...oi([e],t)]),()=>n)}function oi(e,t=[]){return x(e,(e,n)=>R(e)?oi(n,ai(e.anyOf,t)):oi(n,ii(e,t)),()=>t)}function si(e,t){return uo(sc({},e,t))?[]:[e]}function ci(e,t){return e.reduce((e,n)=>[...e,...si(n,t)],[])}function li(e,t){let n=hi(e);return mi(ci(R(n)?n.anyOf:[n],t))}function ui(e,t,n){return mi([qt([e,t]),li(n,e)])}function di(e){return mi(e.map(e=>P(e)))}function fi(e){return gi(pc(oi(e)))}function pi(e){return hi(jr(e))}function mi(e){return gi(pc(e))}function hi(e){return Vt(e)?ui(e.if,e.then,e.else):Kt(e)?di(e.enum):M(e)?fi(e.allOf):ao(e)?pi(e.pattern):R(e)?mi(e.anyOf):e}function gi(e){return v(e.length,1)?e[0]:v(e.length,0)?bt():L(e)}function _i(e,t){return ji(di(e),t)}function vi(e,t){return Mr(Pi,t)}function yi(e,t){return ji(fi(e),t)}function bi(e,t){return g(e)||m(e)?A({[e]:t}):v(e,!1)?A({false:t}):v(e,!0)?A({true:t}):A({})}function xi(e,t){return Mr(Fi,t)}function Si(e,t){return S(e,`pattern`)&&(g(e.pattern)||e.pattern instanceof RegExp)?Mr(e.pattern.toString(),t):Mr(Ii,t)}function Ci(e,t){return br(hr(e))?ji(pi(e),t):Mr(e,t)}function wi(e){return R(e)?Ti(e.anyOf):[e]}function Ti(e){return e.reduce((e,t)=>[...e,...wi(t)],[])}function Ei(e){return e.some(e=>pr(e)||sr(e)||Kn(e))}function Di(e,t){return v(Ei(e),!0)?Mr(Ii,t):void 0}function Oi(e,t){return e.reduce((e,n)=>F(n)&&(g(n.const)||m(n.const))?{...e,[n.const]:t}:e,{})}function ki(e,t){return A(Oi(e,t))}function Ai(e,t){let n=Ti(e),r=Di(n,t);return et(r)?r:ki(n,t)}function ji(e,t){return yt(e)?Nr(t):Un(e)?Pr(t):Kt(e)?_i(e.enum,t):Kn(e)?vi(e,t):M(e)?yi(e.allOf,t):F(e)?bi(e.const,t):sr(e)?xi(e,t):R(e)?Ai(e.anyOf,t):pr(e)?Si(e,t):ao(e)?Ci(e.pattern,t):A({})}function Mi(e,t,n){return K([e])?E(ji(e,t),{},n):Li(e,t,n)}function Ni(e,t,n,r,i){return Mi(q(e,t,n),q(e,t,r),i)}const Pi=`^${Wn}$`,Fi=`^${ar}$`,Ii=`^.*$`;function Li(e,t,n={}){return O(`Record`,[e,t],n)}function Ri(e,t,n={}){return Mi(e,t,n)}function zi(e,t){return Mr(e,t)}function Bi(e){return v(e,Ii)?I():v(e,Pi)?Gn():v(e,Fi)?or():Ar(e)}function Vi(e){return w(e.patternProperties)[0]}function Hi(e){return Bi(Vi(e))}function Ui(e){return e.patternProperties[Vi(e)]}function Wi(e){return D(e,`Record`)}function Gi(e){return T({"~kind":`Rest`},{type:`rest`,items:e},{})}function Ki(e){return D(e,`Rest`)}function qi(e){return D(e,`This`)}function Ji(e){return T({"~kind":`Undefined`},{type:`undefined`},e)}function Yi(e){return D(e,`Undefined`)}function Xi(e){return D(e,`Void`)}function Zi(e){return Vn()}function Qi(e){return I()}function $i(e){return or()}function ea(e){return Gn()}function ta(e){return bt()}function na(e){return P(e)}function ra(e){return e}function ia(e){return L(e[1])}function aa(e){return e.length===3?[...e[0],...e[2]]:e.length===1?[...e[0]]:[]}function oa(e){return[e[0],...e[1]]}function sa(e){return e}function ca(e){return e[1]}function la(e){return v(e.length,2)}function ua(e,t,n){return la(e)?t(e[0],e[1]):n()}function da(e,t){return v(t.indexOf(e),0)?[e,t.slice(e.length)]:[]}function fa(e,t){for(let n=0;nString.fromCharCode(e+n))}const ma=[...pa(97,122),...pa(65,90)],ha=[`0`,...pa(49,57)];function ga(e){let t=e.indexOf(`*/`);return v(t,-1)?``:e.slice(t+2)}function _a(e){let t=e.indexOf(` -`);return v(t,-1)?``:e.slice(t)}function va(e){return e.replace(/^[ \t\r\f\v]+/,``)}function ya(e){let t=va(e);return t.startsWith(`/*`)?ya(ga(t.slice(2))):t.startsWith(`//`)?ya(_a(t.slice(2))):t}function ba(e){let t=e.trimStart();return t.startsWith(`/*`)?ba(ga(t.slice(2))):t.startsWith(`//`)?ba(_a(t.slice(2))):t}[...ha];function xa(e,t){return fa([e],t)}function Sa(e,t){return v(e,``)?[``,t]:e.startsWith(` -`)?xa(e,ya(t)):e.startsWith(` `)?xa(e,t):xa(e,ba(t))}[...ma,...ha],[...ha];function Ca(e){return v(e,``)?[]:[e.slice(0,1),e.slice(1)]}function wa(e,t){return x(e,(e,n)=>t.startsWith(e)?!0:wa(n,t),()=>!1)}function Ta(e,t,n=``){return ua(Ca(t),(r,i)=>wa(e,t)?[n,t]:Ta(e,i,`${n}${r}`),()=>[])}function Ea(e,t){return ua(Ta(e,t),(e,t)=>v(e,``)?[]:[e,t],()=>[])}const B=(e,t,n=()=>[])=>e.length===2?t(e):n(),Da=e=>B(Sa(`-?(?:0|[1-9][0-9]*)n`,e),([e,t])=>[Zi(e),t]),Oa=e=>B(Sa(`.*`,e),([e,t])=>[Qi(e),t]),ka=e=>B(Sa(`-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?`,e),([e,t])=>[$i(e),t]),Aa=e=>B(Sa(`-?(?:0|[1-9][0-9]*)`,e),([e,t])=>[ea(e),t]),ja=e=>B(Sa(`(?!)`,e),([e,t])=>[ta(e),t]),Ma=e=>B(Ea([`-?(?:0|[1-9][0-9]*)n`,`.*`,`-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?`,`-?(?:0|[1-9][0-9]*)`,`(?!)`,`(`,`)`,`$`,`|`],e),([e,t])=>[na(e),t]),Na=e=>B(B(Da(e),([e,t])=>[e,t],()=>B(Oa(e),([e,t])=>[e,t],()=>B(ka(e),([e,t])=>[e,t],()=>B(Aa(e),([e,t])=>[e,t],()=>B(ja(e),([e,t])=>[e,t],()=>B(Pa(e),([e,t])=>[e,t],()=>B(Ma(e),([e,t])=>[e,t],()=>[]))))))),([e,t])=>[ra(e),t]),Pa=e=>B(B(Sa(`(`,e),([e,t])=>B(La(t),([t,n])=>B(Sa(`)`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[ia(e),t]),Fa=e=>B(B(B(Ia(e),([e,t])=>B(Sa(`|`,t),([t,n])=>B(Fa(n),([n,r])=>[[e,t,n],r]))),([e,t])=>[e,t],()=>B(B(Ia(e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>B([[],e],([e,t])=>[e,t],()=>[]))),([e,t])=>[aa(e),t]),Ia=e=>B(B(Na(e),([e,t])=>B(La(t),([t,n])=>[[e,t],n])),([e,t])=>[oa(e),t]),La=e=>B(B(Fa(e),([e,t])=>[e,t],()=>B(Ia(e),([e,t])=>[e,t],()=>[])),([e,t])=>[sa(e),t]),Ra=e=>B(B(Sa(`^`,e),([e,t])=>B(La(t),([t,n])=>B(Sa(`$`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[ca(e),t]);function za(e){return e.join(`|`)}function Ba(e){return e.slice(1,e.length-1)}function Va(e,t,n){return Qa(t,`${n}${e}`)}function Ha(e,t){return Qa(e,`${t}-?(?:0|[1-9][0-9]*)n`)}function Ua(e,t){return Qa(e,`${t}${Wn}`)}function Wa(e,t){return Qa(e,`${t}${ar}`)}function Ga(e,t){return Za(L([P(`false`),P(`true`)]),e,t)}function Ka(e,t){return Qa(e,`${t}.*`)}function qa(e,t,n){return Qa(t,`${n}${Ba(e)}`)}function Ja(e,t,n){return Za(to(e,{}),t,n)}function Ya(e,t,n){return Za(di(e),t,n)}function Xa(e,t,n,r=[]){return x(e,(e,i)=>Xa(i,t,n,[...r,Za(e,[],``)]),()=>Qa(t,`${n}(${za(r)})`))}function Za(e,t,n){return Kt(e)?Ya(e.enum,t,n):Kn(e)?Ua(t,n):F(e)?Va(e.const,t,n):Hn(e)?Ha(t,n):Un(e)?Ga(t,n):sr(e)?Wa(t,n):pr(e)?Ka(t,n):ao(e)?qa(e.pattern,t,n):io(e)?Ja(e.parameters[0],t,n):R(e)?Xa(e.anyOf,t,n):`(?!)`}function Qa(e,t){return x(e,(e,n)=>Za(e,n,t),()=>t)}function $a(e){return`^${Qa(e,``)}$`}function eo(e){return xr($a(e))}function to(e,t){return K(e)?E(eo(e),{},t):ro(e,t)}function no(e,t,n,r){return to(gf(e,t,n),r)}function ro(e,t={}){return O(`TemplateLiteral`,[e],t)}function io(e){return et(e)&&S(e,`action`)&&v(e.action,`TemplateLiteral`)}function ao(e){return D(e,`TemplateLiteral`)}function oo(e){return T({"~kind":`ExtendsUnion`},{inferred:e})}function so(e){return h(e)&&S(e,`~kind`)&&S(e,`inferred`)&&v(e[`~kind`],`ExtendsUnion`)&&h(e.inferred)}function V(e){return T({"~kind":`ExtendsTrue`},{inferred:e})}function co(e){return h(e)&&S(e,`~kind`)&&S(e,`inferred`)&&v(e[`~kind`],`ExtendsTrue`)&&h(e.inferred)}function H(){return T({"~kind":`ExtendsFalse`},{})}function lo(e){return h(e)&&S(e,`~kind`)&&v(e[`~kind`],`ExtendsFalse`)}function uo(e){return so(e)||co(e)}function U(e,t,n){return uo(e)?t(e.inferred):n()}function fo(e,t,n,i){return U(G(e,n,i),i=>V(r(r(e,i),{[t]:n})),()=>H())}function po(e,t){return V(e)}function mo(e,t,n,r,i){return U(G(e,t,n),e=>U(G(e,t,r),e=>V(e),()=>H()),()=>U(G(e,t,i),e=>V(e),()=>H()))}function ho(e,t,n){return G(e,t,di(n))}function go(e,t,n){return x(n,(n,r)=>U(G(e,t,n),e=>go(e,t,r),()=>H()),()=>V(e))}function _o(e,t,n){return G(e,t,pi(n))}function vo(e,t,n){return x(n,(n,r)=>U(G(e,t,n),e=>V(e),()=>vo(e,t,r)),()=>H())}function W(e,t,n){return yt(n)?po(e,t):Vt(n)?mo(e,t,n.if,n.then,n.else):Kt(n)?ho(e,t,n.enum):zt(n)?fo(e,n.name,t,n.extends):M(n)?go(e,t,n.allOf):ao(n)?_o(e,t,n.pattern):R(n)?vo(e,t,n.anyOf):Nt(n)?V(e):H()}function yo(e,t,n){return zt(n)?W(e,t,n):yt(n)||Nt(n)?V(e):oo(e)}function bo(e,t){let n=An(e),r=An(t);return n&&r||!n&&r?!0:!(n&&!r)}function xo(e,t,n,r){return k(r)?bo(t,r)?G(e,n,r.items):H():W(e,t,r)}function So(e,t,n){return ot(n)?G(e,t,n.iteratorItems):W(e,at(t),n)}function Co(e,t,n){return Hn(n)?V(e):W(e,t,n)}function wo(e,t,n){return Un(n)?V(e):W(e,t,n)}function To(e,t,n,r,i){let a=zt(r)?t:r,o=zt(r)?r:t,s=Dt(t),c=Dt(r);return!s&&c?H():U(G(e,a,o),e=>Oo(e,n,i),()=>H())}function Eo(e,t,n,r){return x(r,(r,i)=>To(e,t,n,r,i),()=>Dt(t)?V(e):H())}function Do(e,t,n){return x(t,(t,r)=>Eo(e,t,r,n),()=>V(e))}function Oo(e,t,n){return Do(e,t,n)}function ko(e,t,n){return Xi(n)?V(e):G(e,t,n)}function Ao(e,t,n,r){return yt(r)||Nt(r)?V(e):lt(r)?U(Oo(e,t,r.parameters),e=>ko(e,n,r.instanceType),()=>H()):H()}function jo(e,t,n,r,i){return U(G(e,t,i),()=>G(e,n,i),()=>G(e,r,i))}function Mo(e,t,n){return G(e,di(t),n)}function No(e,t,n,r){return yt(r)||Nt(r)?V(e):ft(r)?U(Oo(e,t,r.parameters),e=>ko(e,n,r.returnType),()=>H()):H()}function Po(e,t,n){return Kn(n)||sr(n)?V(e):W(e,t,n)}function Fo(e,t,n){return G(e,fi(t),n)}function Io(e,t,n){return Jn(n)?G(e,t,n.iteratorItems):W(e,qn(t),n)}function Lo(e,t,n){return t===n?V(e):H()}function Ro(e,t,n){return F(n)?Lo(e,t,n.const):Hn(n)?V(e):W(e,P(t),n)}function zo(e,t,n){return F(n)?Lo(e,t,n.const):Un(n)?V(e):W(e,P(t),n)}function Bo(e,t,n){return F(n)?Lo(e,t,n.const):sr(n)?V(e):W(e,P(t),n)}function Vo(e,t,n){return F(n)?Lo(e,t,n.const):pr(n)?V(e):W(e,P(t),n)}function Ho(e,t,n){return f(t.const)?Ro(e,t.const,n):p(t.const)?zo(e,t.const,n):m(t.const)?Bo(e,t.const,n):g(t.const)?Vo(e,t.const,n):Yt()}function Uo(e,t,n){return zt(n)?W(e,t,n):V(e)}function Wo(e,t,n){return ir(n)?V(e):W(e,t,n)}function Go(e,t,n){return sr(n)?V(e):W(e,t,n)}function Ko(e,t,n){return Dt(t)?Dt(n)?V(e):H():V(e)}function qo(e,t,n){return zt(n)&&xt(n.extends)?H():U(G(e,t,n),e=>Ko(e,t,n),()=>H())}function Jo(e,t){return e.reduce((e,n)=>n in t&&uo(t[n])?{...e,...t[n].inferred}:Yt(),{})}function Yo(e,t,n){let i={};for(let a of w(n))i[a]=a in t?qo({},t[a],n[a]):Dt(n[a])?zt(n[a])?V(r(e,{[n[a].name]:n[a].extends})):V(e):H();let a=Oe(i).every(e=>uo(e)),o=a?Jo(w(i),i):{};return a?V(o):H()}function Xo(e,t,n){let i=Yo(e,t,n);return uo(i)?V(r(e,i.inferred)):H()}function Zo(e,t,n){return Xo(e,t,n)}function Qo(e,t){return w(t).reduce((n,r)=>({...n,[r]:S(e,r)?R(n[r])?L([...n[r].anyOf,t[r]]):L([e[r],t[r]]):t[r]}),e)}function $o(e,t,n,r){return x(t,(t,i)=>U(G({},e[t],n),t=>$o(e,i,n,Qo(r,t)),()=>H()),()=>V(r))}function es(e,t,n,r){return $o(t,w(t),r,e)}function ts(e,t,n){return Wi(n)?es(e,t,Vi(n),Ui(n)):j(n)?Zo(e,t,n.properties):W(e,A(t),n)}function ns(e,t,n){return dr(n)?G(e,t,n.item):W(e,ur(t),n)}function rs(e,t){return v(w(t).length,0)?V(e):H()}function is(e,t,n,r,i){return G(e,n,i)}function as(e,t,n,r){return Wi(r)?is(e,Bi(t),n,Bi(Vi(r)),Ui(r)):j(r)?rs(e,r.properties):yt(r)||Nt(r)?V(e):H()}function os(e,t,n){return pr(n)?V(e):W(e,t,n)}function ss(e,t,n){return lr(n)?V(e):W(e,t,n)}function cs(e,t,n){return G(e,pi(t),n)}function ls(e,t){return T({"~kind":`Inferrable`},{name:e,type:t},{})}function us(e){return h(e)&&S(e,`~kind`)&&S(e,`name`)&&S(e,`type`)&&v(e[`~kind`],`Inferrable`)&&g(e.name)&&h(e.type)}function ds(e){return Ki(e)?zt(e.items)?k(e.items.extends)?ls(e.items.name,e.items.extends.items):Nt(e.items.extends)?ls(e.items.name,e.items.extends):void 0:Yt():void 0}function fs(e){return zt(e)?ls(e.name,e.extends):void 0}function ps(e,t,n=[]){return x(e,(e,r)=>U(G({},e,t),()=>ps(r,t,[...n,e]),()=>void 0),()=>n)}function ms(e,t,n,i){let a=ps(n,i);return d(a)?V(r(e,{[t]:Fr(a)})):H()}function hs(e,t,n,i){let a=ps(n,i);return d(a)?V(r(e,{[t]:L(a)})):H()}function gs(e){return[...e].reverse()}function _s(e,t){return t?gs(e):e}function vs(e){let t=e.length>0?e[0]:void 0;return et(et(t)?ds(t):void 0)}function ys(e,t,n,r,i,a){return U(G(e,n,i),e=>Ss(e,t,r,a),()=>H())}function bs(e,t,n,r,i){let a=ds(r);return us(a)?ms(e,a.name,_s(n,t),a.type):x(n,(n,a)=>ys(e,t,n,a,r,i),()=>H())}function xs(e,t,n,r){return x(r,(r,i)=>bs(e,t,n,r,i),()=>v(n.length,0)?V(e):H())}function Ss(e,t,n,r){return xs(e,t,n,r)}function Cs(e,t,n){let r=hf(e,pf([],[]),n),i=vs(r);return Ss(e,i,_s(t,i),_s(r,i))}function ws(e,t,n){let r=fs(n);return us(r)?hs(e,r.name,t,r.type):x(t,(t,r)=>U(G(e,t,n),e=>ws(e,r,n),()=>H()),()=>V(e))}function Ts(e,t,n){let r=hf(e,pf([],[]),t);return z(n)?Cs(e,r,n.items):k(n)?ws(e,r,n.items):W(e,Fr(r),n)}function Es(e,t,n){return Xi(n)||Yi(n)?V(e):W(e,t,n)}function Ds(e,t,n){return x(n,(n,r)=>U(G(e,t,n),e=>V(e),()=>Ds(e,t,r)),()=>H())}function Os(e,t,n){return x(t,(t,r)=>U(Ds(e,t,n),e=>Os(e,r,n),()=>H()),()=>V(e))}function ks(e,t,n){let r=fs(n);return us(r)?hs(e,r.name,t,r.type):R(n)?Os(e,t,n.anyOf):Os(e,t,[n])}function As(e,t,n){return zt(n)?W(e,t,n):yt(n)||Nt(n)?V(e):H()}function js(e,t,n){return Xi(n)?V(e):W(e,t,n)}function G(e,t,n){return yt(t)?yo(e,t,n):k(t)?xo(e,t,t.items,n):ot(t)?So(e,t.iteratorItems,n):Hn(t)?Co(e,t,n):Un(t)?wo(e,t,n):lt(t)?Ao(e,t.parameters,t.instanceType,n):Vt(t)?jo(e,t.if,t.then,t.else,n):Kt(t)?Mo(e,t.enum,n):ft(t)?No(e,t.parameters,t.returnType,n):Kn(t)?Po(e,t,n):M(t)?Fo(e,t.allOf,n):Jn(t)?Io(e,t.iteratorItems,n):F(t)?Ho(e,t,n):xt(t)?Uo(e,t,n):ir(t)?Wo(e,t,n):sr(t)?Go(e,t,n):j(t)?ts(e,t.properties,n):dr(t)?ns(e,t.item,n):Wi(t)?as(e,Vi(t),Ui(t),n):pr(t)?os(e,t,n):lr(t)?ss(e,t,n):ao(t)?cs(e,t.pattern,n):z(t)?Ts(e,t.items,n):Yi(t)?Es(e,t,n):R(t)?ks(e,t.anyOf,n):Nt(t)?As(e,t,n):Xi(t)?js(e,t,n):H()}function Ms(e,t){return fi([...e,A(t)])}function Ns(e,t,n){return K(e)?E(Ms(e,t),{},n):Fs(e,t,n)}function Ps(e,t,n,r,i){return Ns(gf(e,t,n),mf(e,t,r),i)}function Fs(e,t,n={}){return O(`Interface`,[e,t],n)}function Is(e){return et(e)&&S(e,`action`)&&v(e.action,`Interface`)}function Ls(e,t,n){return e.includes(n)?!0:Bs([...e,n],t,t[n])}function Rs(e,t,n){return zs(e,t,At(n))}function zs(e,t,n){return x(n,(n,r)=>Bs(e,t,n)?!0:zs(e,t,r),()=>!1)}function Bs(e,t,n){return ht(n)?Ls(e,t,n.$ref):k(n)?Bs(e,t,n.items):ot(n)?Bs(e,t,n.iteratorItems):lt(n)?zs(e,t,[...n.parameters,n.instanceType]):ft(n)?zs(e,t,[...n.parameters,n.returnType]):Is(n)?Rs(e,t,n.parameters[1]):M(n)?zs(e,t,n.allOf):Jn(n)?Bs(e,t,n.iteratorItems):j(n)?Rs(e,t,n.properties):dr(n)?Bs(e,t,n.item):R(n)?zs(e,t,n.anyOf):z(n)?zs(e,t,n.items):Wi(n)?Bs(e,t,Ui(n)):!1}function Vs(e,t,n){return Bs(e,t,n)}function Hs(e,t){return t.reduce((t,n)=>Vs([n],e,e[n])?[...t,n]:t,[])}function Us(e){return Hs(e,kt(e))}function Ws(e,t,n){return n.includes(t)?n:t in e?qs(e,e[t],[...n,t]):Yt()}function Gs(e,t,n){return Ks(e,At(t),n)}function Ks(e,t,n){return t.reduce((t,n)=>qs(e,n,t),n)}function qs(e,t,n){return ht(t)?Ws(e,t.$ref,n):k(t)?qs(e,t.items,n):ot(t)?qs(e,t.iteratorItems,n):lt(t)?Ks(e,[...t.parameters,t.instanceType],n):ft(t)?Ks(e,[...t.parameters,t.returnType],n):Is(t)?Gs(e,t.parameters[1],n):M(t)?Ks(e,t.allOf,n):Jn(t)?qs(e,t.iteratorItems,n):j(t)?Gs(e,t.properties,n):dr(t)?qs(e,t.item,n):R(t)?Ks(e,t.anyOf,n):z(t)?Ks(e,t.items,n):Wi(t)?qs(e,Ui(t),n):n}function Js(e,t,n){return qs(e,n,[t])}function Ys(e){return vt()}function Xs(e){return w(e).reduce((t,n)=>({...t,[n]:Qs(e[n])}),{})}function Zs(e){return e.reduce((e,t)=>[...e,Qs(t)],[])}function Qs(e){return ht(e)?Ys(e.$ref):k(e)?rt(Qs(e.items),it(e)):ot(e)?at(Qs(e.iteratorItems)):lt(e)?ct(Zs(e.parameters),Qs(e.instanceType)):ft(e)?dt(Zs(e.parameters),Qs(e.returnType)):M(e)?qt(Zs(e.allOf)):Jn(e)?qn(Qs(e.iteratorItems)):j(e)?A(Xs(e.properties)):dr(e)?ur(Qs(e.item)):Wi(e)?Ri(Hi(e),Qs(Ui(e))):R(e)?L(Zs(e.anyOf)):z(e)?Fr(Zs(e.items)):e}function $s(e,t){return t in e?Qs(e[t]):Mt()}function ec(e){return $s(e.$defs,e.$ref)}function tc(e,t,n){let r=gf(e,pf([],[]),t),i=mf({},pf([],[]),n);return fi([...r,A(i)])}function nc(e,t){return w(e).filter(e=>t.includes(e)).reduce((t,n)=>{let r=e[n],i=Is(r)?tc(e,r.parameters[0],r.parameters[1]):r;return{...t,[n]:i}},{})}function rc(e,t,n){return Pt(nc(e,Js(e,t,n)),t)}function ic(e,t){return t in e?ht(e[t])?ic(e,e[t].$ref):e[t]:bt()}function ac(e,t){return ic(e,t)}function oc(e){return Ft(e)?ec(e):Lt(e)?Mt():e}function sc(e,t,n){return G(e,oc(t),oc(n))}function cc(e,t){let n=[Nt(e)?H():sc({},e,t),Nt(e)?V({}):sc({},t,e)];return uo(n[0])&&uo(n[1])?`equal`:uo(n[0])&&lo(n[1])?`left-inside`:lo(n[0])&&uo(n[1])?`right-inside`:`disjoint`}function lc(e,t){return t.filter(t=>cc(e,t)!==`right-inside`)}function uc(e,t){return v(t.some(t=>{let n=cc(e,t);return v(n,`left-inside`)||v(n,`equal`)}),!1)}function dc(e,t){let n=hi(e);return yt(n)?[n]:uc(n,t)?[...lc(n,t),n]:t}function fc(e){return e.reduce((e,t)=>j(t)?[...e,t]:xt(t)?e:dc(t,e),[])}function pc(e){return Ti(fc(e))}function mc(e,t){return E(hi(e),{},t)}function hc(e,t,n,r){return mc(q(e,t,n),r)}function gc(e,t=[]){return tt(e)&&v(e.action,`Conditional`)?ht(e.parameters[0])?gc(e.parameters[2],gc(e.parameters[3],[...t,e.parameters[0].$ref])):gc(e.parameters[2],gc(e.parameters[3],t)):tt(e)&&v(e.action,`Mapped`)&&tt(e.parameters[1])&&v(e.parameters[1].action,`KeyOf`)&&ht(e.parameters[1].parameters[0])?[...t,e.parameters[1].parameters[0].$ref]:t}function _c(e,t){return e.reduce((e,n)=>[...e,t.includes(n.name)],[])}function vc(e,t,n=[]){return x(e,(e,r)=>x(t,(t,i)=>vc(r,i,[...n,[t,e]]),()=>n),()=>n)}function yc(e){return R(e)?[...e.anyOf]:[e]}function bc(e,t){return e.reduce((e,n)=>[...e,[...n,t]],[])}function xc(e,t){return t.reduce((t,n)=>[...t,...bc(e,n)],[])}function Sc(e){return e.reduce((e,t)=>v(t[0],!0)?xc(e,yc(t[1])):xc(e,[t[1]]),[[]])}function Cc(e,t,n){let r=vc(t,_c(e,gc(n)));return tt(n)&&v(n.action,`Conditional`)||tt(n)&&v(n.action,`Mapped`)?Sc(r):[t]}function wc(){return[`(not-resolvable)`,bt()]}function Tc(){return[`(not-generic)`,bt()]}function Ec(e,t,n){return[e,gt(t,n)]}function Dc(e,t,n){return t in e?Oc(e,t,e[t],n):wc()}function Oc(e,t,n,r){return _t(n)?Ec(t,n.parameters,n.expression):ht(n)?Dc(e,n.$ref,r):Tc()}function kc(e,t,n){return Oc(e,`(anonymous)`,t,n)}function Ac(e,t,n){if(zt(t)||Hc(t)||uo(sc({},t,n)))return;let r={parameter:e,expect:n,actual:t};throw Error(`Argument for parameter ${e} does not satisfy constraint`,{cause:r})}function jc(e,t,n,i,a){let o=q(e,t,a);return Ac(n,o,i),r(e,{[n]:o})}function Mc(e,t,n,r,i){let a=q(e,t,n.extends),o=q(e,t,n.equals);return x(i,(i,o)=>Nc(jc(e,t,n.name,a,i),t,r,o),()=>Nc(jc(e,t,n.name,a,o),t,r,[]))}function Nc(e,t,n,r){return x(n,(n,i)=>Mc(e,t,n,i,r),()=>e)}function Pc(e,t,n,r){return Nc(e,t,n,r)}function Fc(e){return he(e.callstack.length,0)?e.callstack[e.callstack.length-1]:``}function Ic(e,t){return v(Fc(e),t)}function Lc(e,t,n,r,i,a){let o=Pc(e,t,r,a),s=q(o,pf([...t.callstack,n.$ref],t.visited),i);return q(o,pf([],[]),s)}function Rc(e,t,n,r,i,a){return a.reduce((a,o)=>[...a,Lc(e,t,n,r,i,o)],[])}function zc(e,t,n,r,i,a){let o=Rc(e,t,n,r,i,Cc(r,a,i));return v(o.length,1)?o[0]:mi(o)}function Bc(e,t,n,r){let i=gf(e,t,r),a=kc(e,n,r),o=a[0],s=a[1];return _t(s)?Ic(t,o)?Vc(mt(o),i):zc(e,t,mt(o),s.parameters,s.expression,i):Vc(n,i)}function Vc(e,t){return T({"~kind":`Call`},{type:`call`,target:e,arguments:t},{})}function Hc(e){return D(e,`Call`)}function Uc(e){return $e(e,[`~immutable`])}function Wc(e,t){return E(Uc(e),{},t)}function Gc(e,t,n,r){return Wc(q(e,t,n),r)}function Kc(e,t={}){return O(`Awaited`,[e],t)}function qc(e){return dr(e)?qc(e.item):e}function Jc(e,t){return K([e])?E(qc(e),{},t):Kc(e,t)}function Yc(e,t,n,r){return Jc(q(e,t,n),r)}function Xc(e,t){return e(t)}function Zc(e,t){return g(t)?P(Xc(e,t)):P(t)}function Qc(e,t){return el(e,pi(t))}function $c(e,t){return L(t.map(t=>el(e,t)))}function el(e,t){return F(t)?Zc(e,t.const):ao(t)?Qc(e,t.pattern):R(t)?$c(e,t.anyOf):t}function tl(e,t={}){return O(`Capitalize`,[e],t)}function nl(e,t={}){return O(`Lowercase`,[e],t)}function rl(e,t={}){return O(`Uncapitalize`,[e],t)}function il(e,t={}){return O(`Uppercase`,[e],t)}const al=e=>e[0].toUpperCase()+e.slice(1),ol=e=>e.toLowerCase(),sl=e=>e[0].toLowerCase()+e.slice(1),cl=e=>e.toUpperCase();function ll(e,t){return K([e])?E(el(al,e),{},t):tl(e,t)}function ul(e,t){return K([e])?E(el(ol,e),{},t):nl(e,t)}function dl(e,t){return K([e])?E(el(sl,e),{},t):rl(e,t)}function fl(e,t){return K([e])?E(el(cl,e),{},t):il(e,t)}function pl(e,t,n,r){return ll(q(e,t,n),r)}function ml(e,t,n,r){return ul(q(e,t,n),r)}function hl(e,t,n,r){return dl(q(e,t,n),r)}function gl(e,t,n,r){return fl(q(e,t,n),r)}function _l(e,t,n,r,i={}){return O(`Conditional`,[e,t,n,r],i)}function vl(e,t,n,r,i,a){let o=sc(e,n,r);return so(o)?L([q(o.inferred,t,i),q(e,t,a)]):co(o)?q(o.inferred,t,i):q(e,t,a)}function yl(e,t,n,r,i,a,o){return K([n,r])?E(vl(e,t,n,r,i,a),{},o):_l(n,r,i,a,o)}function bl(e,t,n,r,i,a,o){return yl(e,t,q(e,t,n),q(e,t,r),i,a,o)}function xl(e,t={}){return O(`ConstructorParameters`,[e],t)}function Sl(e){let t=lt(e)?e.parameters:[];return Fr(hf({},pf([],[]),t))}function Cl(e,t){return K([e])?E(Sl(e),{},t):xl(e,t)}function wl(e,t,n,r){return Cl(q(e,t,n),r)}function Tl(e,t,n={}){return O(`Exclude`,[e,t],n)}function El(e,t,n){return K([e,t])?E(li(e,t),{},n):Tl(e,t,n)}function Dl(e,t,n,r,i){return El(q(e,t,n),q(e,t,r),i)}function Ol(e,t,n={}){return O(`Extract`,[e,t],n)}function kl(e,t){return uo(sc({},e,t))?[e]:[]}function Al(e,t){return e.reduce((e,n)=>[...e,...kl(n,t)],[])}function jl(e,t){let n=hi(e);return mi(Al(R(n)?n.anyOf:[n],t))}function Ml(e,t,n){return K([e,t])?E(jl(e,t),{},n):Ol(e,t,n)}function Nl(e,t,n,r,i){return Ml(q(e,t,n),q(e,t,r),i)}function Pl(e,t,n={}){return O(`Index`,[e,t],n)}function Fl(e,t){return Wl(ac(e,t))}function Il(e,t,n){return Wl(ui(e,t,n))}function Ll(e,t){let n=w(e).filter(e=>!S(t,e)),i=w(t).filter(t=>!S(e,t)),a=w(e).filter(e=>S(t,e)),o=n.reduce((t,n)=>({...t,[n]:e[n]}),{}),s=i.reduce((e,n)=>({...e,[n]:t[n]}),{}),c=a.reduce((n,r)=>({...n,[r]:fi([e[r],t[r]])}),{});return r(r(o,s),c)}function Rl(e){return e.reduce((e,t)=>Ll(e,Wl(t)),{})}function zl(e){return e}function Bl(e){return Wl(Kr(Fr(e)))}function Vl(e,t){return w(e).filter(e=>e in t).reduce((n,r)=>({...n,[r]:mi([e[r],t[r]])}),{})}function Hl(e,t){return x(e,(e,n)=>Hl(n,Vl(t,Wl(e))),()=>t)}function Ul(e){return x(e,(e,t)=>Hl(t,Wl(e)),()=>Yt())}function Wl(e){return Ft(e)?Fl(e.$defs,e.$ref):Vt(e)?Il(e.if,e.then,e.else):M(e)?Rl(e.allOf):R(e)?Ul(e.anyOf):z(e)?Bl(e.items):j(e)?zl(e.properties):{}}function Gl(e){return A(Wl(e))}const Kl=RegExp(`^(?:0|[1-9][0-9]*)$`);function ql(e){let t=`${e}`;return Kl.test(t)?parseInt(t):e}function Jl(e){return P(ql(e))}function Yl(e){return e.map(e=>Xl(e))}function Xl(e){return M(e)?qt(Yl(e.allOf)):R(e)?L(Yl(e.anyOf)):F(e)?Jl(e.const):e}function Zl(e,t){return uo(sc({},Xl(t),or()))?e:F(t)&&v(t.const,`length`)?or():bt()}function Ql(e,t){return au(ac(e,t))}function $l(e,t,n){return au(ui(e,t,n))}function eu(e){return au(di(e))}function tu(e){return au(fi(e))}function nu(e){return[`${e}`]}function ru(e){return au(pi(e))}function iu(e){return e.reduce((e,t)=>[...e,...au(t)],[])}function au(e){return Ft(e)?Ql(e.$defs,e.$ref):Vt(e)?$l(e.if,e.then,e.else):Kt(e)?eu(e.enum):M(e)?tu(e.allOf):F(e)?nu(e.const):ao(e)?ru(e.pattern):R(e)?iu(e.anyOf):[]}function ou(e){return au(e)}function su(e,t){return t.map(t=>cu(e,t))}function cu(e,t){return k(t)?rt(cu(e,t.items)):ot(t)?at(cu(e,t.iteratorItems)):lt(t)?ct(su(e,t.parameters),cu(e,t.instanceType)):ft(t)?dt(su(e,t.parameters),cu(e,t.returnType)):Jn(t)?qn(cu(e,t.iteratorItems)):dr(t)?ur(cu(e,t.item)):z(t)?Fr(su(e,t.items)):R(t)?L(su(e,t.anyOf)):M(t)?qt(su(e,t.allOf)):qi(t)?A(e):t}function lu(e,t){return cu(e,t)}function uu(e,t){return lu(e,t in e?e[t]:bt())}function du(e,t){return t.reduce((t,n)=>[...t,uu(e,n)],[])}function fu(e,t){return mi(du(e,ou(t)))}const pu=new RegExp(Pi);function mu(e){return e.filter(e=>pu.test(e))}function hu(e){return mi(du(e,mu(kt(e))))}function gu(e,t){return sr(t)?hu(e):fu(e,t)}function _u(e){return P(ql(e))}function vu(e){return e.map(e=>yu(e))}function yu(e){return M(e)?qt(vu(e.allOf)):R(e)?L(vu(e.anyOf)):F(e)?_u(e.const):e}function bu(e,t){return e.reduceRight((e,n,r)=>uo(sc({},P(r),t))?[n,...e]:e,[])}function xu(e,t){return gi(bu(e,yu(t)))}function Su(e){return gi(e)}function Cu(e,t){return F(t)&&v(t.const,`length`)?P(e.length):sr(t)||Kn(t)?Su(e):xu(e,t)}function wu(e,t){return k(e)?Zl(e.items,t):j(e)?gu(e.properties,t):z(e)?Cu(e.items,t):bt()}function Tu(e){return Ft(e)||Vt(e)||M(e)||R(e)?Gl(e):e}function Eu(e,t,n){return K([e,t])?E(wu(Tu(e),t),{},n):Pl(e,t,n)}function Du(e,t,n,r,i){return Eu(q(e,t,n),q(e,t,r),i)}function Ou(e,t={}){return O(`InstanceType`,[e],t)}function ku(e){return lt(e)?e.instanceType:bt()}function Au(e,t){return K([e])?E(ku(e),{},t):Ou(e,t)}function ju(e,t,n,r={}){return Au(q(e,t,n),r)}function Mu(e,t={}){return O(`KeyOf`,[e],t)}function Nu(){return L([or(),I(),cr()])}function Pu(e){return or()}function Fu(e){return e.reduce((e,t)=>Qn(t)?[...e,P(ql(t))]:Yt(),[])}function Iu(e){return gi(Fu(w(e)))}function Lu(e){return Hi(e)}function Ru(e){return gi(e.map((e,t)=>P(t)))}function zu(e){return yt(e)?Nu():k(e)?Pu(e.items):j(e)?Iu(e.properties):Wi(e)?Lu(e):z(e)?Ru(e.items):bt()}function Bu(e){return Ft(e)||Vt(e)||M(e)||R(e)?Gl(e):e}function Vu(e,t){return K([e])?E(zu(Bu(e)),{},t):Mu(e,t)}function Hu(e,t,n,r){return Vu(q(e,t,n),r)}function Uu(e,t,n,r,i={}){return O(`Mapped`,[e,t,n,r],i)}function Wu(e){return Ju(pi(e))}function Gu(e){return e.reduce((e,t)=>[...e,...Ju(t)],[])}function Ku(e){return Ju(di(e))}function qu(e){return m(e)?[P(`${e}`)]:[P(e)]}function Ju(e){return Kt(e)?Ku(e.enum):F(e)?qu(e.const):ao(e)?Wu(e.pattern):R(e)?Gu(e.anyOf):[e]}function Yu(e){return Ju(e)}function Xu(e){return ao(e)?pi(e.pattern):e}function Zu(e,t,n,i,a,o){let s=r(e,{[n.name]:i}),c=Xu(q(s,t,a)),l=q(s,t,o);return tr(c)||nr(c)?{[c.const]:l}:{}}function Qu(e,t,n,r,i,a){return r.reduce((r,o)=>[...r,Zu(e,t,n,o,i,a)],[])}function $u(e){return e.reduce((e,t)=>[...e,A(t)],[])}function ed(e,t,n,r,i,a){return fi($u(Qu(e,t,n,Yu(r),i,a)))}function td(e,t,n,r,i,a,o){return K([r])?E(ed(e,t,n,r,i,a),{},o):Uu(n,r,i,a,o)}function nd(e,t,n,r,i,a,o){return td(e,t,n,q(e,t,r),i,a,o)}function rd(e,t,n){let i=r(e,t);return w(t).filter(e=>n.includes(e)).reduce((e,n)=>({...e,[n]:rc(i,n,t[n])}),{})}function id(e,t,n){let i=r(e,t);return w(t).filter(e=>!n.includes(e)).reduce((e,n)=>({...e,[n]:q(i,pf([],[]),t[n])}),{})}function ad(e,t,n){let r=Us(t),i=rd(e,t,r),a=id(e,t,r);return E({...i,...a},{},n)}function od(e,t,n,r){return ad(e,n,r)}function sd(e,t={}){return O(`NonNullable`,[e],t)}function cd(e){return El(e,L([rr(),Ji()]),{})}function ld(e,t){return K([e])?E(cd(e),{},t):sd(e,t)}function ud(e,t,n,r){return ld(q(e,t,n),r)}function dd(e,t,n={}){return O(`Omit`,[e,t],n)}function fd(e){let t=Gl(e);return j(t)?t.properties:Yt()}function pd(e,t){return w(e).reduce((n,r)=>t.includes(r)?n:{...n,[r]:e[r]},{})}function md(e,t){return A(pd(fd(e),ou(t)))}function hd(e,t,n){return K([e,t])?E(md(e,t),{},n):dd(e,t,n)}function gd(e,t,n,r,i){return hd(q(e,t,n),q(e,t,r),i)}function _d(e,t={}){return O(`Parameters`,[e],t)}function vd(e){let t=ft(e)?e.parameters:[];return Fr(hf({},pf([],[]),t))}function yd(e,t){return K([e])?E(vd(e),{},t):_d(e,t)}function bd(e,t,n,r){return yd(q(e,t,n),r)}function xd(e,t={}){return O(`Partial`,[e],t)}function Sd(e,t){let n=Dd(ac(e,t));return Pt(r(e,{[t]:n}),t)}function Cd(e,t,n){return Dd(ui(e,t,n))}function wd(e){return Dd(fi(e))}function Td(e){return L(e.map(e=>Dd(e)))}function Ed(e){return A(w(e).reduce((t,n)=>({...t,[n]:Tt(e[n])}),{}))}function Dd(e){return Ft(e)?Sd(e.$defs,e.$ref):Vt(e)?Cd(e.if,e.then,e.else):M(e)?wd(e.allOf):R(e)?Td(e.anyOf):j(e)?Ed(e.properties):A({})}function Od(e,t){return K([e])?E(Dd(e),{},t):xd(e,t)}function kd(e,t,n,r){return Od(q(e,t,n),r)}function Ad(e,t,n={}){return O(`Pick`,[e,t],n)}function jd(e,t){return w(e).reduce((n,i)=>t.includes(i)?r(n,{[i]:e[i]}):n,{})}function Md(e,t){return A(jd(fd(e),ou(t)))}function Nd(e,t,n){return K([e,t])?E(Md(e,t),{},n):Ad(e,t,n)}function Pd(e,t,n,r,i){return Nd(q(e,t,n),q(e,t,r),i)}function Fd(e,t={}){return O(`ReadonlyObject`,[e],t)}function Id(e){return wf(rt(e))}function Ld(e,t){let n=Ud(ac(e,t));return Pt(r(e,{[t]:n}),t)}function Rd(e,t,n){return Ud(ui(e,t,n))}function zd(e){return Ud(fi(e))}function Bd(e){return A(w(e).reduce((t,n)=>({...t,[n]:Pn(e[n])}),{}))}function Vd(e){return wf(Fr(e))}function Hd(e){return L(e.map(e=>Ud(e)))}function Ud(e){return k(e)?Id(e.items):Ft(e)?Ld(e.$defs,e.$ref):Vt(e)?Rd(e.if,e.then,e.else):M(e)?zd(e.allOf):j(e)?Bd(e.properties):z(e)?Vd(e.items):R(e)?Hd(e.anyOf):e}function Wd(e,t){return K([e])?E(Ud(e),{},t):Fd(e)}function Gd(e,t,n,r){return Wd(q(e,t,n),r)}function Kd(e,t,n,r){return t.visited.includes(r)?n:r in e?q(e,pf(t.callstack,[...t.visited,r]),e[r]):n}function qd(e,t){let n=Qd(ac(e,t));return Pt(r(e,{[t]:n}),t)}function Jd(e,t,n){return Qd(ui(e,t,n))}function Yd(e){return Qd(fi(e))}function Xd(e){return L(e.map(e=>Qd(e)))}function Zd(e){return A(w(e).reduce((t,n)=>({...t,[n]:Wr(e[n])}),{}))}function Qd(e){return Ft(e)?qd(e.$defs,e.$ref):Vt(e)?Jd(e.if,e.then,e.else):M(e)?Yd(e.allOf):R(e)?Xd(e.anyOf):j(e)?Zd(e.properties):A({})}function $d(e,t={}){return O(`Required`,[e],t)}function ef(e,t){return K([e])?E(Qd(e),{},t):$d(e,t)}function tf(e,t,n,r){return ef(q(e,t,n),r)}function nf(e,t={}){return O(`ReturnType`,[e],t)}function rf(e){return ft(e)?e.returnType:bt()}function af(e,t){return K([e])?E(rf(e),{},t):nf(e,t)}function of(e,t,n,r={}){return af(q(e,t,n),r)}function sf(e,t){return O(`With`,[e,t],{})}function cf(e,t){return lf(e,t)}function lf(e,t){return K([e])?E(e,{},t):sf(e,t)}function uf(e,t,n,r){return lf(q(e,t,n),r)}function df(e){return Ki(e)?z(e.items)?ff(e.items.items):zt(e.items)||ht(e.items)?[e]:[bt()]:[e]}function ff(e){return e.reduce((e,t)=>[...e,...df(t)],[])}function pf(e,t){return{callstack:e,visited:t}}function K(e){return x(e,(e,t)=>ht(e)?!1:K(t),()=>!0)}function mf(e,t,n){return w(n).reduce((r,i)=>({...r,[i]:q(e,t,n[i])}),{})}function hf(e,t,n){return ff(gf(e,t,n))}function gf(e,t,n){return n.map(n=>q(e,t,n))}function _f(e,t,n,r,i){return v(n,`AddImmutable`)?Cf(e,t,r[0],i):v(n,`RemoveImmutable`)?Gc(e,t,r[0],i):v(n,`AddReadonly`)?Nn(e,t,r[0],i):v(n,`RemoveReadonly`)?zr(e,t,r[0],i):v(n,`AddOptional`)?wt(e,t,r[0],i):v(n,`RemoveOptional`)?Ur(e,t,r[0],i):v(n,`Awaited`)?Yc(e,t,r[0],i):v(n,`Capitalize`)?pl(e,t,r[0],i):v(n,`Conditional`)?bl(e,t,r[0],r[1],r[2],r[3],i):v(n,`ConstructorParameters`)?wl(e,t,r[0],i):v(n,`Evaluate`)?hc(e,t,r[0],i):v(n,`Exclude`)?Dl(e,t,r[0],r[1],i):v(n,`Extract`)?Nl(e,t,r[0],r[1],i):v(n,`Index`)?Du(e,t,r[0],r[1],i):v(n,`InstanceType`)?ju(e,t,r[0],i):v(n,`Interface`)?Ps(e,t,r[0],r[1],i):v(n,`KeyOf`)?Hu(e,t,r[0],i):v(n,`Lowercase`)?ml(e,t,r[0],i):v(n,`Mapped`)?nd(e,t,r[0],r[1],r[2],r[3],i):v(n,`Module`)?od(e,t,r[0],i):v(n,`NonNullable`)?ud(e,t,r[0],i):v(n,`Pick`)?Pd(e,t,r[0],r[1],i):v(n,`Parameters`)?bd(e,t,r[0],i):v(n,`Partial`)?kd(e,t,r[0],i):v(n,`Omit`)?gd(e,t,r[0],r[1],i):v(n,`ReadonlyObject`)?Gd(e,t,r[0],i):v(n,`Record`)?Ni(e,t,r[0],r[1],i):v(n,`Required`)?tf(e,t,r[0],i):v(n,`ReturnType`)?of(e,t,r[0],i):v(n,`TemplateLiteral`)?no(e,t,r[0],i):v(n,`Uncapitalize`)?hl(e,t,r[0],i):v(n,`Uppercase`)?gl(e,t,r[0],i):v(n,`With`)?uf(e,t,r[0],r[1]):O(n,r,i)}function vf(e,t,n){return n=nt(n)?n.Clone():n,ht(n)?Kd(e,t,n,n.$ref):k(n)?rt(q(e,t,n.items),it(n)):ot(n)?at(q(e,t,n.iteratorItems),st(n)):Hc(n)?Bc(e,t,n.target,n.arguments):lt(n)?ct(gf(e,t,n.parameters),q(e,t,n.instanceType),ut(n)):tt(n)?_f(e,t,n.action,n.parameters,n.options):ft(n)?dt(gf(e,t,n.parameters),q(e,t,n.returnType),pt(n)):Vt(n)?Bt(q(e,t,n.if),q(e,t,n.then),q(e,t,n.else),Ht(n)):M(n)?qt(gf(e,t,n.allOf),Jt(n)):Jn(n)?qn(q(e,t,n.iteratorItems),Yn(n)):j(n)?A(mf(e,t,n.properties),jt(n)):dr(n)?ur(q(e,t,n.item),fr(n)):Wi(n)?zi(Vi(n),q(e,t,Ui(n))):Ki(n)?Gi(q(e,t,n.items)):z(n)?Fr(hf(e,t,n.items),Ir(n)):R(n)?L(gf(e,t,n.anyOf),mr(n)):n}function yf(e,t){let n=An(e)?kn(t):t,r=In(e)?Fn(n):n;return Dt(e)?Et(r):r}function q(e,t,n){let r=vf(e,t,n);return tt(n)?r:yf(n,r)}function bf(e,t){return q(e,pf([],[]),t)}function xf(e){return E(e,{"~immutable":!0},{})}function Sf(e,t){return E(xf(e),{},t)}function Cf(e,t,n,r){return Sf(q(e,t,n),r)}function wf(e,t={}){return Sf(e,t)}function Tf(e,t={}){return mc(e,t)}function Ef(e,t){let n=cc(e,t);return v(n,`right-inside`)?1:+!!v(n,`disjoint`)}function Df(e,t,n=[]){return x(t,(r,i)=>v(Ef(e,r),1)?Df(e,i,[...n,r]):[...n,e,...t],()=>[...n,e])}function Of(e,t=[]){return x(e,(e,n)=>Of(n,Df(e,t)),()=>t)}function kf(e){return Of(e)}function Af(e){return h(e)&&S(e,`check`)&&S(e,`errors`)&&le(e.check)&&le(e.errors)}function jf(e){return S(e,`~guard`)&&Af(e[`~guard`])}function Mf(e){return S(e,`~refine`)&&d(e[`~refine`])&&y(e[`~refine`],0,e=>h(e)&&S(e,`check`)&&S(e,`error`)&&le(e.check)&&le(e.error))}function Nf(e){return h(e)&&!d(e)}function Pf(e){return p(e)}function J(e){return Nf(e)||Pf(e)}function Ff(e){return S(e,`additionalItems`)&&J(e.additionalItems)}function If(e){return S(e,`additionalProperties`)&&J(e.additionalProperties)}function Lf(e){return S(e,`allOf`)&&d(e.allOf)&&e.allOf.every(e=>J(e))}function Rf(e){return S(e,`$anchor`)&&g(e.$anchor)}function zf(e){return S(e,`anyOf`)&&d(e.anyOf)&&e.anyOf.every(e=>J(e))}function Bf(e){return S(e,`const`)}function Vf(e){return S(e,`contains`)&&J(e.contains)}function Hf(e){return S(e,`default`)}function Uf(e){return S(e,`dependencies`)&&h(e.dependencies)&&Object.values(e.dependencies).every(e=>J(e)||d(e)&&e.every(e=>g(e)))}function Wf(e){return S(e,`dependentRequired`)&&h(e.dependentRequired)&&Object.values(e.dependentRequired).every(e=>d(e)&&e.every(e=>g(e)))}function Gf(e){return S(e,`dependentSchemas`)&&h(e.dependentSchemas)&&Object.values(e.dependentSchemas).every(e=>J(e))}function Kf(e){return S(e,`$dynamicAnchor`)&&g(e.$dynamicAnchor)}function qf(e){return S(e,`$dynamicRef`)&&g(e.$dynamicRef)}function Jf(e){return S(e,`else`)&&J(e.else)}function Yf(e){return S(e,`enum`)&&d(e.enum)}function Xf(e){return S(e,`exclusiveMaximum`)&&(m(e.exclusiveMaximum)||f(e.exclusiveMaximum))}function Zf(e){return S(e,`exclusiveMinimum`)&&(m(e.exclusiveMinimum)||f(e.exclusiveMinimum))}function Qf(e){return S(e,`format`)&&g(e.format)}function $f(e){return S(e,`$id`)&&g(e.$id)}function ep(e){return S(e,`if`)&&J(e.if)}function tp(e){return S(e,`items`)&&(J(e.items)||d(e.items)&&e.items.every(e=>J(e)))}function np(e){return tp(e)&&d(e.items)}function rp(e){return S(e,`maximum`)&&(m(e.maximum)||f(e.maximum))}function ip(e){return S(e,`maxContains`)&&m(e.maxContains)}function ap(e){return S(e,`maxItems`)&&m(e.maxItems)}function op(e){return S(e,`maxLength`)&&m(e.maxLength)}function sp(e){return S(e,`maxProperties`)&&m(e.maxProperties)}function cp(e){return S(e,`minimum`)&&(m(e.minimum)||f(e.minimum))}function lp(e){return S(e,`minContains`)&&m(e.minContains)}function up(e){return S(e,`minItems`)&&m(e.minItems)}function dp(e){return S(e,`minLength`)&&m(e.minLength)}function fp(e){return S(e,`minProperties`)&&m(e.minProperties)}function pp(e){return S(e,`multipleOf`)&&(m(e.multipleOf)||f(e.multipleOf))}function mp(e){return S(e,`not`)&&J(e.not)}function hp(e){return S(e,`oneOf`)&&d(e.oneOf)&&e.oneOf.every(e=>J(e))}function gp(e){return S(e,`pattern`)&&(g(e.pattern)||e.pattern instanceof RegExp)}function _p(e){return S(e,`patternProperties`)&&h(e.patternProperties)&&Object.values(e.patternProperties).every(e=>J(e))}function vp(e){return S(e,`prefixItems`)&&d(e.prefixItems)&&e.prefixItems.every(e=>J(e))}function yp(e){return S(e,`properties`)&&h(e.properties)&&Object.values(e.properties).every(e=>J(e))}function bp(e){return S(e,`propertyNames`)&&(h(e.propertyNames)||J(e.propertyNames))}function xp(e){return S(e,`$recursiveAnchor`)&&p(e.$recursiveAnchor)}function Sp(e){return xp(e)&&v(e.$recursiveAnchor,!0)}function Cp(e){return S(e,`$recursiveRef`)&&g(e.$recursiveRef)}function wp(e){return S(e,`$ref`)&&g(e.$ref)}function Tp(e){return S(e,`required`)&&d(e.required)&&e.required.every(e=>g(e))}function Ep(e){return S(e,`then`)&&J(e.then)}function Dp(e){return S(e,`type`)&&(g(e.type)||d(e.type)&&e.type.every(e=>g(e)))}function Op(e){return S(e,`uniqueItems`)&&p(e.uniqueItems)}function kp(e){return S(e,`unevaluatedItems`)&&J(e.unevaluatedItems)}function Ap(e){return S(e,`unevaluatedProperties`)&&J(e.unevaluatedProperties)}var jp=class{constructor(){let e=new Set,t=new Set;this.stack=[{indices:e,keys:t}]}Push(){let e=new Set,t=new Set;return this.stack.push({indices:e,keys:t}),!0}Pop(){return this.stack.pop(),!0}AddIndex(e){return this.GetIndices().add(e),!0}AddKey(e){return this.GetKeys().add(e),!0}GetIndices(){return this.stack[this.stack.length-1].indices}GetKeys(){return this.stack[this.stack.length-1].keys}Merge(e){for(let t of e)t.GetIndices().forEach(e=>this.GetIndices().add(e)),t.GetKeys().forEach(e=>this.GetKeys().add(e));return!0}},Mp=class extends jp{constructor(e){super(),this.callback=e}AddError(e){return this.callback(e),!1}},Np=class extends Mp{constructor(){super(e=>this.errors.push(e)),this.errors=[]}AddError(e){return this.errors.push(e),!1}GetErrors(){return this.errors}};function Pp(e,t,n,r){return n[`~guard`].check(r)}function Fp(e,t,n,r,i,a){return i[`~guard`].check(a)||t.AddError({keyword:`~guard`,schemaPath:n,instancePath:r,params:{errors:i[`~guard`].errors(a)}})}function Ip(e,t,n,r){return y(n[`~refine`],0,(e,t)=>e.check(r))}function Lp(e,t,n,r,i,a){return b(i[`~refine`],0,(e,i)=>e.check(a)||t.AddError({keyword:`~refine`,schemaPath:n,instancePath:r,params:{index:i,message:e.error(a)}}))}function Rp(e){return tp(e)&&d(e.items)}function zp(e,t,n,r){return Rp(n)?r.every((r,i)=>ge(i,n.items.length)||Gg(e,t,n.additionalItems,r)&&t.AddIndex(i)):!0}function Bp(e,t,n,r,i,a){return Rp(i)?a.every((a,o)=>{let s=`${n}/additionalItems`,c=`${r}/${o}`;return ge(o,i.items.length)||Kg(e,t,s,c,i.additionalItems,a)&&t.AddIndex(o)}):!0}function Vp(e){return`^${e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}$`}function Hp(e){let t=[];return _p(e)&&t.push(...w(e.patternProperties)),yp(e)&&t.push(...w(e.properties).map(Vp)),v(t.length,0)?`(?!)`:`(${t.join(`|`)})`}function Up(e,t,n,r){let i=new RegExp(Hp(n));return y(w(r),0,(a,o)=>i.test(a)||Gg(e,t,n.additionalProperties,r[a])&&t.AddKey(a))}function Wp(e,t,n,r,i,a){let o=new RegExp(Hp(i)),s=[];return b(w(a),0,(c,l)=>{let u=`${n}/additionalProperties`,ee=`${r}/${c}`,te=new Np,ne=o.test(c)||Kg(e,te,u,ee,i.additionalProperties,a[c])&&t.AddKey(c);return ne||s.push(c),ne})||t.AddError({keyword:`additionalProperties`,schemaPath:n,instancePath:r,params:{additionalProperties:s}})}function Gp(e,t,n,r){let i=n.allOf.reduce((t,n)=>{let i=new jp;return X(e,i,n,r)?[...t,i]:t},[]);return v(i.length,n.allOf.length)&&t.Merge(i)}function Kp(e,t,n,r,i,a){let o=[],s=i.allOf.reduce((t,i,s)=>{let c=`${n}/allOf/${s}`,l=new Np,u=Z(e,l,c,r,i,a);return u||o.push(l),u?[...t,l]:t},[]),c=v(s.length,i.allOf.length)&&t.Merge(s);return c||o.forEach(e=>e.GetErrors().forEach(e=>t.AddError(e))),c}function qp(e,t,n,r){let i=n.anyOf.reduce((t,n)=>{let i=new jp;return X(e,i,n,r)?[...t,i]:t},[]);return he(i.length,0)&&t.Merge(i)}function Jp(e,t,n,r,i,a){let o=[],s=i.anyOf.reduce((t,i,s)=>{let c=new Np,l=Z(e,c,`${n}/anyOf/${s}`,r,i,a);return l||o.push(c),l?[...t,c]:t},[]),c=he(s.length,0)&&t.Merge(s);return c||o.forEach(e=>e.GetErrors().forEach(e=>t.AddError(e))),c||t.AddError({keyword:`anyOf`,schemaPath:n,instancePath:r,params:{}})}function Yp(e,t,n,r){return n}function Xp(e,t,n,r,i,a){return Yp(e,t,i,a)||t.AddError({keyword:`boolean`,schemaPath:n,instancePath:r,params:{}})}function Zp(e,t,n,r){return xe(n.const)?v(r,n.const):je(r,n.const)}function Qp(e,t,n,r,i,a){return Zp(e,t,i,a)||t.AddError({keyword:`const`,schemaPath:n,instancePath:r,params:{allowedValue:i.const}})}function $p(e){return!(lp(e)&&v(e.minContains,0))}function em(e,t,n,r){return $p(n)?!v(r.length,0)&&r.some(r=>X(e,t,n.contains,r)):!0}function tm(e,t,n,r,i,a){return em(e,t,i,a)||t.AddError({keyword:`contains`,schemaPath:n,instancePath:r,params:{minContains:1}})}function nm(e,t,n,r){let i=v(w(r).length,0),a=y(C(n.dependencies),0,([n,i])=>!S(r,n)||(d(i)?i.every(e=>S(r,e)):X(e,t,i,r)));return i||a}function rm(e,t,n,r,i,a){let o=v(w(a).length,0),s=b(C(i.dependencies),0,([i,o])=>{let s=`${n}/dependencies/${i}`;return!S(a,i)||(d(o)?o.every(e=>S(a,e)||t.AddError({keyword:`dependencies`,schemaPath:n,instancePath:r,params:{property:i,dependencies:o}})):Z(e,t,s,r,o,a))});return o||s}function im(e,t,n,r){let i=v(w(r).length,0),a=y(C(n.dependentRequired),0,([e,t])=>!S(r,e)||t.every(e=>S(r,e)));return i||a}function am(e,t,n,r,i,a){let o=v(w(a).length,0),s=b(C(i.dependentRequired),0,([e,i])=>!S(a,e)||b(i,0,o=>S(a,o)||t.AddError({keyword:`dependentRequired`,schemaPath:n,instancePath:r,params:{property:e,dependencies:i}})));return o||s}function om(e,t,n,r){let i=v(w(r).length,0),a=y(C(n.dependentSchemas),0,([n,i])=>!S(r,n)||X(e,t,i,r));return i||a}function sm(e,t,n,r,i,a){let o=v(w(a).length,0),s=b(C(i.dependentSchemas),0,([i,o])=>{let s=`${n}/dependentSchemas/${i}`;return!S(a,i)||Z(e,t,s,r,o,a)});return o||s}function cm(e,t,n,r){let i=e.DynamicRef(n)??!1;return J(i)&&X(e,t,i,r)}function lm(e,t,n,r,i,a){let o=e.DynamicRef(i)??!1;return J(o)&&Z(e,t,`#`,r,o,a)}function um(e,t,n,r){return n.enum.some(e=>xe(e)?v(r,e):je(r,e))}function dm(e,t,n,r,i,a){return um(e,t,i,a)||t.AddError({keyword:`enum`,schemaPath:n,instancePath:r,params:{allowedValues:i.enum}})}function fm(e,t,n,r){return ge(r,n.exclusiveMaximum)}function pm(e,t,n,r,i,a){return fm(e,t,i,a)||t.AddError({keyword:`exclusiveMaximum`,schemaPath:n,instancePath:r,params:{comparison:`<`,limit:i.exclusiveMaximum}})}function mm(e,t,n,r){return he(r,n.exclusiveMinimum)}function hm(e,t,n,r,i,a){return mm(e,t,i,a)||t.AddError({keyword:`exclusiveMinimum`,schemaPath:n,instancePath:r,params:{comparison:`>`,limit:i.exclusiveMinimum}})}const gm=[0,31,28,31,30,31,30,31,31,30,31,30,31],_m=/^(\d\d\d\d)-(\d\d)-(\d\d)$/;function vm(e){return e%4==0&&(e%100!=0||e%400==0)}function ym(e){let t=_m.exec(e);if(!t)return!1;let n=+t[1],r=+t[2],i=+t[3];return r>=1&&r<=12&&i>=1&&i<=(r===2&&vm(n)?29:gm[r])}const bm=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(?:Z|([+-])(\d\d):(\d\d))?$/i;function xm(e,t=!0){let n=bm.exec(e);if(!n)return!1;let r=+n[1],i=+n[2],a=+n[3],o=n[4]===`-`?-1:1,s=+(n[5]||0),c=+(n[6]||0);if(s>23||c>59||t&&!n[4]&&e.toLowerCase().indexOf(`z`)===-1)return!1;if(r<=23&&i<=59&&a<60)return!0;let l=i-c*o,u=r-s*o-+(l<0);return(u===23||u===-1)&&(l===59||l===-1)&&a<61}function Sm(e,t=!0){let n=e.split(/T/i);return n.length===2&&ym(n[0])&&xm(n[1],t)}const Cm=/^P((\d+Y(\d+M(\d+D)?)?|\d+M(\d+D)?|\d+D)(T(\d+H(\d+M(\d+S)?)?|\d+M(\d+S)?|\d+S))?|T(\d+H(\d+M(\d+S)?)?|\d+M(\d+S)?|\d+S)|\d+W)$/;function wm(e){return Cm.test(e)}const Tm=/^(?!.*\.\.)[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i;function Em(e){return Tm.test(e)}function Dm(e,t,n){e=n?Math.floor(e/700):e>>1,e+=Math.floor(e/t);let r=0;for(;e>455;)e=Math.floor(e/35),r+=36;return r+Math.floor(36*e/(e+38))}function Om(e){let t=[],n=128,r=0,i=72,a=e.lastIndexOf(`-`);if(a>0)for(let n=0;n=128)throw Error(`Invalid punycode: non-basic before delimiter`);t.push(r)}let o=a<0?0:a+1;for(;o=e.length)throw Error(`Invalid punycode: unexpected end of input`);let t=e.charCodeAt(o++),n;if(t>=97&&t<=122)n=t-97;else if(t>=48&&t<=57)n=t-48+26;else if(t>=65&&t<=90)n=t-65;else throw Error(`Invalid punycode: bad digit character`);r+=n*s;let a=c<=i?1:c>=i+26?26:c-i;if(n=1632&&e<=1641}function Vm(e){return e>=1776&&e<=1785}function Hm(e){return Pm.has(e)}function Um(e){if(e.length===0)return!1;let t=[...e].map(e=>e.codePointAt(0)),n=t.length;if(t[0]===45||t[n-1]===45||n>=4&&t[2]===45&&t[3]===45||Mm(t[0]))return!1;let r=!1,i=!1,a=!1;for(let e=0;e=4&&e.charCodeAt(2)===45&&e.charCodeAt(3)===45)return!1;for(let t=0;t=97&&n<=122||n>=65&&n<=90||n>=48&&n<=57||n===45))return!1}return!0}function Gm(e){return e.toLowerCase().startsWith(`xn--`)}function Km(e){try{return Um(Om(e.slice(4)))}catch{return!1}}function qm(e){return e.length===0||e.length>63?!1:Gm(e)?Km(e):Um(e)}function Jm(e){return e.length===0||e.length>63?!1:Gm(e)?Km(e):Wm(e)}function Ym(e){if(e.length===0||e.length>253||e.charCodeAt(e.length-1)===46)return!1;for(let t of e.split(`.`))if(!Jm(t))return!1;return!0}const Xm=/^(?!.*\.\.)[\p{L}\p{N}!#$%&'*+/=?^_`{|}~-]+(?:\.[\p{L}\p{N}!#$%&'*+/=?^_`{|}~-]+)*@[\p{L}\p{N}](?:[\p{L}\p{N}-]{0,61}[\p{L}\p{N}])?(?:\.[\p{L}\p{N}](?:[\p{L}\p{N}-]{0,61}[\p{L}\p{N}])?)*$/iu;function Zm(e){return Xm.test(e)}function Qm(e){if(e.length===0||e.includes(` `))return!1;let t=e.normalize(`NFC`).replace(/[\u002E\u3002\uFF0E\uFF61]/g,`.`);if(t.length>253)return!1;for(let e of t.split(`.`))if(!qm(e))return!1;return!0}function $m(e,t,n){let r=0,i=0,a=0,o=0;for(let s=t;s255||o===48&&a>1)return!1;r++,i=0,a=0,o=0}else if(t>=48&&t<=57)a===0&&(o=t),i=i*10+(t-48),a++;else return!1}return r===3&&a>0&&i<=255&&!(o===48&&a>1)}function eh(e){return $m(e,0,e.length)}function th(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function nh(e){let t=e.length;if(t===0)return!1;let n=0,r=!1,i=0;if(e.charCodeAt(0)===58&&e.charCodeAt(1)===58){if(t===2)return!0;r=!0,i=2}for(;i4)return!1;if(n++,i===t)break;if(s!==58)return!1;if(i++,e.charCodeAt(i)===58){if(r||e.charCodeAt(i+1)===58)return!1;if(r=!0,i++,i===t)break}}return r?n<=7:n===8}function rh(e){try{return new URL(e,`http://example.com`),!0}catch{return!1}}function ih(e){if(e.includes(` `)||e.includes(`\\`)||/[\x00-\x1F\x7F]/.test(e)||/%(?![0-9a-fA-F]{2})/.test(e))return!1;if(e===``)return!0;let t=e.indexOf(`:`);return t>0&&/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(e.substring(0,t))?rh(e):e.match(/^([a-zA-Z][a-zA-Z0-9+\-.]*)(\/\/)/)&&t===-1?!1:rh(e)}function ah(e){try{return new URL(e),!0}catch{return!1}}const oh=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i;function sh(e){return oh.test(e)}const ch=/^(?:\/(?:[^~/]|~0|~1)*)*$/;function lh(e){return ch.test(e)}function uh(e){if(e.length===0)return!1;try{return new RegExp(e),!0}catch{return!1}}const dh=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;function fh(e){return dh.test(e)}const ph=/^(?!.*[^\x00-\x7F])(?!.*\\)(?:(?:[a-z][a-z0-9+\-.]*:)?(?:\/\/[^\s[\]{}<>^`|]*)?|[^\s[\]{}<>^`|]*)(?:\?[^\s[\]{}<>^`|]*)?(?:#[^\s[\]{}<>^`|]*)?$/i;function mh(e){return ph.test(e)}const hh=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i;function gh(e){return hh.test(e)}function _h(e){return e>=97&&e<=122||e>=65&&e<=90}function vh(e){return _h(e)||e>=48&&e<=57}function yh(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function bh(e){return vh(e)||e===43||e===45||e===46}function xh(e){return vh(e)||e===45||e===46||e===95||e===126}function Sh(e){return e===33||e===36||e===38||e===39||e===40||e===41||e===42||e===43||e===44||e===59||e===61}function Ch(e){return xh(e)||Sh(e)||e===58||e===64}function wh(e){let t=e.length;if(t===0||!_h(e.charCodeAt(0)))return!1;let n=1;for(;n=i||!yh(e.charCodeAt(t+1))||!yh(e.charCodeAt(t+2)))return!1;t+=2}else if(!xh(n)&&!Sh(n)&&n!==58)return!1}n=i+1}if(e.charCodeAt(n)===91){for(n++;n57)return!1;n++}}for(;n=t||!yh(e.charCodeAt(n+1))||!yh(e.charCodeAt(n+2)))return!1;n+=2}else if(r>127)return!1;else if(!(Ch(r)||r===47||r===63||r===35))return!1;n++}return!0}const Th=/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu;function Eh(e){return Th.test(e)}const Dh=/^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;function Oh(e){return Dh.test(e)}const Y=new Map;function kh(){Y.clear()}function Ah(e,t){return Y.get(e)?.(t)??!0}function jh(){kh(),Y.set(`date-time`,Sm),Y.set(`date`,ym),Y.set(`duration`,wm),Y.set(`email`,Em),Y.set(`hostname`,Ym),Y.set(`idn-email`,Zm),Y.set(`idn-hostname`,Qm),Y.set(`ipv4`,eh),Y.set(`ipv6`,nh),Y.set(`iri-reference`,ih),Y.set(`iri`,ah),Y.set(`json-pointer-uri-fragment`,sh),Y.set(`json-pointer`,lh),Y.set(`regex`,uh),Y.set(`relative-json-pointer`,fh),Y.set(`time`,xm),Y.set(`uri-reference`,mh),Y.set(`uri-template`,gh),Y.set(`uri`,wh),Y.set(`url`,Eh),Y.set(`uuid`,Oh)}jh();function Mh(e,t,n,r){return Ah(n.format,r)}function Nh(e,t,n,r,i,a){return Mh(e,t,i,a)||t.AddError({keyword:`format`,schemaPath:n,instancePath:r,params:{format:i.format}})}function Ph(e,t,n,r){let i=Ep(n)?n.then:!0,a=Jf(n)?n.else:!0;return X(e,t,n.if,r)?X(e,t,i,r):X(e,t,a,r)}function Fh(e,t,n,r,i,a){let o=Ep(i)?i.then:!0,s=Jf(i)?i.else:!0,c=new Np,l=Z(e,c,`${n}/if`,r,i.if,a)?Z(e,c,`${n}/then`,r,o,a)||t.AddError({keyword:`if`,schemaPath:n,instancePath:r,params:{failingKeyword:`then`}}):Z(e,t,`${n}/else`,r,s,a)||t.AddError({keyword:`if`,schemaPath:n,instancePath:r,params:{failingKeyword:`else`}});return l&&t.Merge([c]),l}function Ih(e,t,n,r){return y(n.items,0,(n,i)=>_e(r.length,i)||Gg(e,t,n,r[i])&&t.AddIndex(i))}function Lh(e,t,n,r,i,a){return b(i.items,0,(i,o)=>{let s=`${n}/items/${o}`,c=`${r}/${o}`;return _e(a.length,o)||Kg(e,t,s,c,i,a[o])&&t.AddIndex(o)})}function Rh(e,t,n,r){return y(r,vp(n)?n.prefixItems.length:0,(r,i)=>Gg(e,t,n.items,r)&&t.AddIndex(i))}function zh(e,t,n,r,i,a){return b(a,vp(i)?i.prefixItems.length:0,(a,o)=>Kg(e,t,`${n}/items`,`${r}/${o}`,i.items,a)&&t.AddIndex(o))}function Bh(e,t,n,r){return np(n)?Ih(e,t,n,r):Rh(e,t,n,r)}function Vh(e,t,n,r,i,a){return np(i)?Lh(e,t,n,r,i,a):zh(e,t,n,r,i,a)}function Hh(e){return Vf(e)}function Uh(e,t,n,r){return Hh(n)?_e(r.reduce((r,i)=>X(e,t,n.contains,i)?++r:r,0),n.maxContains):!0}function Wh(e,t,n,r,i,a){let o=lp(i)?i.minContains:1;return Uh(e,t,i,a)||t.AddError({keyword:`contains`,schemaPath:n,instancePath:r,params:{minContains:o,maxContains:i.maxContains}})}function Gh(e,t,n,r){return _e(r,n.maximum)}function Kh(e,t,n,r,i,a){return Gh(e,t,i,a)||t.AddError({keyword:`maximum`,schemaPath:n,instancePath:r,params:{comparison:`<=`,limit:i.maximum}})}function qh(e,t,n,r){return _e(r.length,n.maxItems)}function Jh(e,t,n,r,i,a){return qh(e,t,i,a)||t.AddError({keyword:`maxItems`,schemaPath:n,instancePath:r,params:{limit:i.maxItems}})}function Yh(e,t,n,r){return Ce(r,n.maxLength)}function Xh(e,t,n,r,i,a){return Yh(e,t,i,a)||t.AddError({keyword:`maxLength`,schemaPath:n,instancePath:r,params:{limit:i.maxLength}})}function Zh(e,t,n,r){return _e(w(r).length,n.maxProperties)}function Qh(e,t,n,r,i,a){return Zh(e,t,i,a)||t.AddError({keyword:`maxProperties`,schemaPath:n,instancePath:r,params:{limit:i.maxProperties}})}function $h(e){return Vf(e)}function eg(e,t,n,r){return $h(n)?ve(r.reduce((r,i)=>X(e,t,n.contains,i)?++r:r,0),n.minContains):!0}function tg(e,t,n,r,i,a){return eg(e,t,i,a)||t.AddError({keyword:`contains`,schemaPath:n,instancePath:r,params:{minContains:i.minContains}})}function ng(e,t,n,r){return ve(r,n.minimum)}function rg(e,t,n,r,i,a){return ng(e,t,i,a)||t.AddError({keyword:`minimum`,schemaPath:n,instancePath:r,params:{comparison:`>=`,limit:i.minimum}})}function ig(e,t,n,r){return ve(r.length,n.minItems)}function ag(e,t,n,r,i,a){return ig(e,t,i,a)||t.AddError({keyword:`minItems`,schemaPath:n,instancePath:r,params:{limit:i.minItems}})}function og(e,t,n,r){return we(r,n.minLength)}function sg(e,t,n,r,i,a){return og(e,t,i,a)||t.AddError({keyword:`minLength`,schemaPath:n,instancePath:r,params:{limit:i.minLength}})}function cg(e,t,n,r){return ve(w(r).length,n.minProperties)}function lg(e,t,n,r,i,a){return cg(e,t,i,a)||t.AddError({keyword:`minProperties`,schemaPath:n,instancePath:r,params:{limit:i.minProperties}})}function ug(e,t,n,r){return ye(r,n.multipleOf)}function dg(e,t,n,r,i,a){return ug(e,t,i,a)||t.AddError({keyword:`multipleOf`,schemaPath:n,instancePath:r,params:{multipleOf:i.multipleOf}})}function fg(e,t,n,r){let i=new jp;return!X(e,i,n.not,r)&&t.Merge([i])}function pg(e,t,n,r,i,a){return fg(e,t,i,a)||t.AddError({keyword:`not`,schemaPath:n,instancePath:r,params:{}})}function mg(e,t,n,r){let i=n.oneOf.reduce((t,n)=>{let i=new jp;return X(e,i,n,r)?[...t,i]:t},[]);return v(i.length,1)&&t.Merge(i)}function hg(e,t,n,r,i,a){let o=[],s=[],c=i.oneOf.reduce((t,i,c)=>{let l=new Np,u=Z(e,l,`${n}/oneOf/${c}`,r,i,a);return u&&s.push(c),u||o.push(l),u?[...t,l]:t},[]),l=v(c.length,1)&&t.Merge(c);return!l&&v(s.length,0)&&o.forEach(e=>e.GetErrors().forEach(e=>t.AddError(e))),l||t.AddError({keyword:`oneOf`,schemaPath:n,instancePath:r,params:{passingSchemas:s}})}function gg(e,t,n,r){return(g(n.pattern)?new RegExp(n.pattern,`u`):n.pattern).test(r)}function _g(e,t,n,r,i,a){return gg(e,t,i,a)||t.AddError({keyword:`pattern`,schemaPath:n,instancePath:r,params:{pattern:i.pattern}})}function vg(e,t,n,r){return y(C(n.patternProperties),0,([n,i])=>{let a=new RegExp(n,`u`);return y(C(r),0,([n,r])=>!a.test(n)||Gg(e,t,i,r)&&t.AddKey(n))})}function yg(e,t,n,r,i,a){return b(C(i.patternProperties),0,([i,o])=>{let s=`${n}/patternProperties/${i}`,c=new RegExp(i,`u`);return b(C(a),0,([n,i])=>{let a=`${r}/${n}`;return!c.test(n)||Kg(e,t,s,a,o,i)&&t.AddKey(n)})})}function bg(e,t,n,r){return v(r.length,0)||y(n.prefixItems,0,(n,i)=>_e(r.length,i)||Gg(e,t,n,r[i])&&t.AddIndex(i))}function xg(e,t,n,r,i,a){return v(a.length,0)||b(i.prefixItems,0,(i,o)=>{let s=`${n}/prefixItems/${o}`,c=`${r}/${o}`;return _e(a.length,o)||Kg(e,t,s,c,i,a[o])&&t.AddIndex(o)})}function Sg(e,t){return e.includes(t)||Xe().exactOptionalPropertyTypes}function Cg(e,t){return _(e[t])}function wg(e,t,n,r){let i=Tp(n)?n.required:[];return y(C(n.properties),0,([n,a])=>{let o=!S(r,n)||Gg(e,t,a,r[n])&&t.AddKey(n);return Sg(i,n)?o:Cg(r,n)||o})}function Tg(e,t,n,r,i,a){let o=Tp(i)?i.required:[];return b(C(i.properties),0,([i,s])=>{let c=`${n}/properties/${i}`,l=`${r}/${i}`,u=()=>!S(a,i)||Kg(e,t,c,l,s,a[i])&&t.AddKey(i);return Sg(o,i)?u():Cg(a,i)||u()})}function Eg(e,t,n,r){return y(w(r),0,(r,i)=>X(e,t,n.propertyNames,r))}function Dg(e,t,n,r,i,a){let o=[];return b(w(a),0,(t,a)=>{let s=`${r}/${t}`,c=`${n}/propertyNames`,l=Z(e,new Np,c,s,i.propertyNames,t);return l||o.push(t),l})||t.AddError({keyword:`propertyNames`,schemaPath:n,instancePath:r,params:{propertyNames:o}})}function Og(e,t,n,r){let i=e.RecursiveRef(n)??!1;return J(i)&&X(e,t,i,r)}function kg(e,t,n,r,i,a){let o=e.RecursiveRef(i)??!1;return J(o)&&Z(e,t,`#`,r,o,a)}function Ag(e,t,n,r){let i=e.Ref(n)??!1,a=new jp,o=J(i)&&X(e,a,i,r);return o&&t.Merge([a]),o}function jg(e,t,n,r,i,a){let o=e.Ref(i)??!1,s=new Np,c=J(o)&&Z(e,s,`#`,r,o,a);return c&&t.Merge([s]),c||s.GetErrors().forEach(e=>t.AddError(e)),c}function Mg(e,t,n,r){return y(n.required,0,e=>S(r,e))}function Ng(e,t,n,r,i,a){let o=[];return b(i.required,0,e=>{let t=S(a,e);return t||o.push(e),t})||t.AddError({keyword:`required`,schemaPath:n,instancePath:r,params:{requiredProperties:o}})}function Pg(e,t,n,r,i){return v(n,`object`)?pe(i):v(n,`array`)?d(i):v(n,`boolean`)?p(i):v(n,`integer`)?ue(i):v(n,`number`)?m(i):v(n,`null`)?fe(i):v(n,`string`)?g(i):v(n,`asyncIterator`)?se(i):v(n,`bigint`)?f(i):v(n,`constructor`)?ce(i):v(n,`function`)?le(i):v(n,`iterator`)?de(i):v(n,`symbol`)?me(i):v(n,`undefined`)||v(n,`void`)?_(i):!0}function Fg(e,t,n,r,i){return n.some(n=>Pg(e,t,n,r,i))}function Ig(e,t,n,r){return d(n.type)?Fg(e,t,n.type,n,r):Pg(e,t,n.type,n,r)}function Lg(e,t,n,r,i,a){return(d(i.type)?Fg(e,t,i.type,i,a):Pg(e,t,i.type,i,a))||t.AddError({keyword:`type`,schemaPath:n,instancePath:r,params:{type:i.type}})}function Rg(e,t,n,r){let i=t.GetIndices();return y(r,0,(r,a)=>(i.has(a)||X(e,t,n.unevaluatedItems,r))&&t.AddIndex(a))}function zg(e,t,n,r,i,a){let o=t.GetIndices(),s=[];return b(a,0,(a,c)=>{let l=new Np,u=(o.has(c)||Z(e,l,n,r,i.unevaluatedItems,a))&&t.AddIndex(c);return u||s.push(c),u})||t.AddError({keyword:`unevaluatedItems`,schemaPath:n,instancePath:r,params:{unevaluatedItems:s}})}function Bg(e,t,n,r){let i=t.GetKeys();return y(C(r),0,([r,a])=>i.has(r)||X(e,t,n.unevaluatedProperties,a)&&t.AddKey(r))}function Vg(e,t,n,r,i,a){let o=t.GetKeys(),s=[];return b(C(a),0,([a,c])=>{let l=new Np,u=o.has(a)||Z(e,l,n,r,i.unevaluatedProperties,c)&&t.AddKey(a);return u||s.push(a),u})||t.AddError({keyword:`unevaluatedProperties`,schemaPath:n,instancePath:r,params:{unevaluatedProperties:s}})}function Hg(e){return!v(e.uniqueItems,!1)}function Ug(e,t,n,r){if(!Hg(n))return!0;let i=new Set(r.map(wn)).size,a=r.length;return v(i,a)}function Wg(e,t,n,r,i,a){if(!Hg(i))return!0;let o=new Set,s=a.reduce((e,t,n)=>{let r=wn(t);return o.has(r)?[...e,n]:(o.add(r),e)},[]);return v(s.length,0)||t.AddError({keyword:`uniqueItems`,schemaPath:n,instancePath:r,params:{duplicateItems:s}})}function Gg(e,t,n,r){return t.Push()&&X(e,t,n,r)&&t.Pop()}function X(e,t,n,r){e.Push(n);let i=Pf(n)?Yp(e,t,n,r):(!Dp(n)||Ig(e,t,n,r))&&(!(h(r)&&!d(r))||(!Tp(n)||Mg(e,t,n,r))&&(!If(n)||Up(e,t,n,r))&&(!Uf(n)||nm(e,t,n,r))&&(!Wf(n)||im(e,t,n,r))&&(!Gf(n)||om(e,t,n,r))&&(!_p(n)||vg(e,t,n,r))&&(!yp(n)||wg(e,t,n,r))&&(!bp(n)||Eg(e,t,n,r))&&(!fp(n)||cg(e,t,n,r))&&(!sp(n)||Zh(e,t,n,r)))&&(!d(r)||(!Ff(n)||zp(e,t,n,r))&&(!Vf(n)||em(e,t,n,r))&&(!tp(n)||Bh(e,t,n,r))&&(!ip(n)||Uh(e,t,n,r))&&(!ap(n)||qh(e,t,n,r))&&(!lp(n)||eg(e,t,n,r))&&(!up(n)||ig(e,t,n,r))&&(!vp(n)||bg(e,t,n,r))&&(!Op(n)||Ug(e,t,n,r)))&&(!g(r)||(!op(n)||Yh(e,t,n,r))&&(!dp(n)||og(e,t,n,r))&&(!Qf(n)||Mh(e,t,n,r))&&(!gp(n)||gg(e,t,n,r)))&&(!(m(r)||f(r))||(!Xf(n)||fm(e,t,n,r))&&(!Zf(n)||mm(e,t,n,r))&&(!rp(n)||Gh(e,t,n,r))&&(!cp(n)||ng(e,t,n,r))&&(!pp(n)||ug(e,t,n,r)))&&(!wp(n)||Ag(e,t,n,r))&&(!Cp(n)||Og(e,t,n,r))&&(!qf(n)||cm(e,t,n,r))&&(!jf(n)||Pp(e,t,n,r))&&(!Bf(n)||Zp(e,t,n,r))&&(!Yf(n)||um(e,t,n,r))&&(!ep(n)||Ph(e,t,n,r))&&(!mp(n)||fg(e,t,n,r))&&(!Lf(n)||Gp(e,t,n,r))&&(!zf(n)||qp(e,t,n,r))&&(!hp(n)||mg(e,t,n,r))&&(!kp(n)||!d(r)||Rg(e,t,n,r))&&(!Ap(n)||!h(r)||Bg(e,t,n,r))&&(!Mf(n)||Ip(e,t,n,r));return e.Pop(n),i}function Kg(e,t,n,r,i,a){return t.Push()&&Z(e,t,n,r,i,a)&&t.Pop()}function Z(e,t,n,r,i,a){e.Push(i);let o=Pf(i)?Xp(e,t,n,r,i,a):!!((!Dp(i)||Lg(e,t,n,r,i,a))&+(!(h(a)&&!d(a))||!!((!Tp(i)||Ng(e,t,n,r,i,a))&+(!If(i)||Wp(e,t,n,r,i,a))&(!Uf(i)||rm(e,t,n,r,i,a))&(!Wf(i)||am(e,t,n,r,i,a))&(!Gf(i)||sm(e,t,n,r,i,a))&(!_p(i)||yg(e,t,n,r,i,a))&(!yp(i)||Tg(e,t,n,r,i,a))&(!bp(i)||Dg(e,t,n,r,i,a))&(!fp(i)||lg(e,t,n,r,i,a))&(!sp(i)||Qh(e,t,n,r,i,a))))&(!d(a)||!!((!Ff(i)||Bp(e,t,n,r,i,a))&+(!Vf(i)||tm(e,t,n,r,i,a))&(!tp(i)||Vh(e,t,n,r,i,a))&(!ip(i)||Wh(e,t,n,r,i,a))&(!ap(i)||Jh(e,t,n,r,i,a))&(!lp(i)||tg(e,t,n,r,i,a))&(!up(i)||ag(e,t,n,r,i,a))&(!vp(i)||xg(e,t,n,r,i,a))&(!Op(i)||Wg(e,t,n,r,i,a))))&(!g(a)||!!((!op(i)||Xh(e,t,n,r,i,a))&+(!dp(i)||sg(e,t,n,r,i,a))&(!Qf(i)||Nh(e,t,n,r,i,a))&(!gp(i)||_g(e,t,n,r,i,a))))&(!(m(a)||f(a))||!!((!Xf(i)||pm(e,t,n,r,i,a))&+(!Zf(i)||hm(e,t,n,r,i,a))&(!rp(i)||Kh(e,t,n,r,i,a))&(!cp(i)||rg(e,t,n,r,i,a))&(!pp(i)||dg(e,t,n,r,i,a))))&(!wp(i)||jg(e,t,n,r,i,a))&(!Cp(i)||kg(e,t,n,r,i,a))&(!qf(i)||lm(e,t,n,r,i,a))&(!jf(i)||Fp(e,t,n,r,i,a))&(!Bf(i)||Qp(e,t,n,r,i,a))&(!Yf(i)||dm(e,t,n,r,i,a))&(!ep(i)||Fh(e,t,n,r,i,a))&(!mp(i)||pg(e,t,n,r,i,a))&(!Lf(i)||Kp(e,t,n,r,i,a))&(!zf(i)||Jp(e,t,n,r,i,a))&(!hp(i)||hg(e,t,n,r,i,a))&(!kp(i)||!d(a)||zg(e,t,n,r,i,a))&(!Ap(i)||!h(a)||Vg(e,t,n,r,i,a)))&&(!Mf(i)||Lp(e,t,n,r,i,a));return e.Pop(i),o}function qg(e,t){return h(t)&&!Te(e)?t[e]:void 0}function Jg(e,t){return e.reduce((e,t)=>qg(t,e),t)}function Yg(e){if(v(e.length,0))return[];let t=e.split(`/`).map(e=>e.replace(/~1/g,`/`).replace(/~0/g,`~`));return t.length>0&&t[0]===``?t.slice(1):t}function Xg(e,t){return Jg(Yg(t),e)}function Zg(e,t,n){if(e.$id===n.hash)return e;let r=new URL(e.$id,t.href),i=new URL(n.href,t.href);if(v(r.pathname,i.pathname))return n.hash.startsWith(`#`)?e_(e,t,n):e}function Qg(e,t,n){let r=new URL(`#${e.$anchor}`,t.href),i=new URL(n.href,t.href);return v(r.href,i.href)?e:void 0}function $g(e,t,n){let r=new URL(`#${e.$dynamicAnchor}`,t.href),i=new URL(n.href,t.href);return v(r.href,i.href)?e:void 0}function e_(e,t,n){if(n.href.endsWith(`#`))return e;if(!n.hash.startsWith(`#`))return;let r=decodeURIComponent(n.hash.slice(1));if(r.startsWith(`/`))return Xg(e,r)}function t_(e,t,n){if($f(e)){let r=Zg(e,t,n);if(!_(r))return r}if(Rf(e)){let r=Qg(e,t,n);if(!_(r))return r}if(Kf(e)){let r=$g(e,t,n);if(!_(r))return r}return e_(e,t,n)}function n_(e,t,n){return e.reduce((e,r)=>{let i=i_(r,t,n);return _(i)?e:i},void 0)}function r_(e,t,n){return w(e).reduce((r,i)=>{let a=i_(e[i],t,n);return _(a)?r:a},void 0)}function i_(e,t,n){let r=Nf(e)&&$f(e)?new URL(e.$id,t.href):t;if(Nf(e)){let t=t_(e,r,n);if(!_(t))return t}if(d(e))return n_(e,r,n);if(h(e))return r_(e,r,n)}function a_(e,t){let n=new URL(`http://unknown/`),r=$f(e)?new URL(e.$id,n.href):n;return i_(e,r,new URL(t,r.href))}function o_(e,t,n,r){let i=n.$dynamicRef.startsWith(`#`)?a_(t,n.$dynamicRef):a_(e,n.$dynamicRef);if(!_(i))return!Nf(i)||!Kf(i)||new URL(n.$dynamicRef,`http://unknown/`).hash.startsWith(`#/`)?i:r.find(e=>e.$dynamicAnchor===i.$dynamicAnchor)??i}var s_=function(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)},c_,l_,u_,d_,f_,p_=class{constructor(e,t){c_.add(this),this.context=e,this.schema=t,this.ids=[],this.anchors=[],this.recursiveAnchors=[],this.dynamicAnchors=[]}BaseURL(){return this.ids.reduce((e,t)=>new URL(t.$id,e),new URL(`http://unknown`))}Base(){return this.ids[this.ids.length-1]??this.schema}Push(e){Nf(e)&&($f(e)&&(this.ids.push(e),s_(this,c_,`m`,l_).call(this,e)),Rf(e)&&this.anchors.push(e),Sp(e)&&this.recursiveAnchors.push(e),Kf(e)&&this.dynamicAnchors.push(e))}Pop(e){Nf(e)&&($f(e)&&(this.ids.pop(),s_(this,c_,`m`,u_).call(this,e)),Rf(e)&&this.anchors.pop(),Sp(e)&&this.recursiveAnchors.pop(),Kf(e)&&this.dynamicAnchors.pop())}Ref(e){return s_(this,c_,`m`,d_).call(this,e)??s_(this,c_,`m`,f_).call(this,e)}RecursiveRef(e){return Sp(this.Base())?a_(this.recursiveAnchors[0],e.$recursiveRef):a_(this.Base(),e.$recursiveRef)}DynamicRef(e){let t=this.schema;return o_(t,this.Base(),e,this.dynamicAnchors)}};c_=new WeakSet,l_=function e(t,n=!0){if(!Nf(t))return;let r=t;if(!(!n&&$f(r))){!n&&Kf(r)&&this.dynamicAnchors.push(r);for(let t of w(r))s_(this,c_,`m`,e).call(this,r[t],!1)}},u_=function e(t,n=!0){if(!Nf(t))return;let r=t;if(!(!n&&$f(r))){!n&&Kf(r)&&this.dynamicAnchors.pop();for(let t of w(r))s_(this,c_,`m`,e).call(this,r[t],!1)}},d_=function(e){return S(this.context,e.$ref)?this.context[e.$ref]:void 0},f_=function(e){let t=this.schema;return e.$ref.startsWith(`#`)?a_(this.Base(),e.$ref):a_(t,e.$ref)};function m_(...e){let[t,n,r]=Rt(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]}),i=Xe(),a=Dn(),o=[];return[Z(new p_(t,n),new Mp(e=>{if(!ve(o.length,i.maxErrors))return o.push({...e,message:a(e)})}),`#`,``,n,r),o]}function h_(...e){let[t,n,r]=Rt(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]});return X(new p_(t,n),new jp,n,r)}function g_(...e){let[t,n,r]=Rt(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]});return h_(t,n,r)}function __(...e){let[t,n,r]=Rt(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]}),[i,a]=m_(t,n,r);return a}var v_=class extends Error{constructor(e,t,n){super(e),Object.defineProperty(this,"cause",{value:{source:e,errors:n,value:t},writable:!1,configurable:!1,enumerable:!1})}};function y_(e,t,n){return d(n)?n.map(n=>V_(e,t.items,n)):n}function b_(e,t,n){return t.Clean(n)}function x_(e,t,n){return V_({...e,...t.$defs},mt(t.$ref),n)}function S_(e,t){let n=S(t,`unevaluatedProperties`)?{additionalProperties:t.unevaluatedProperties}:{},r=Tf(bf(e,t));return j(r)?cf(r,n):r}function C_(e,t,n){return V_(e,S_(e,t),n)}function w_(e){return S(e,`additionalProperties`)?e.additionalProperties:void 0}function T_(e,t,n){if(!h(n)||d(n))return n;let r=w_(t);for(let i of w(n)){if(S(t.properties,i)){n[i]=V_(e,t.properties[i],n[i]);continue}if(p(r)&&v(r,!0)||et(r)&&g_(e,r,n[i])){n[i]=V_(e,r,n[i]);continue}delete n[i]}return n}function E_(e,t,n){if(!h(n))return n;let r=w_(t),[i,a]=[new RegExp(Vi(t)),Ui(t)];for(let t of w(n)){if(i.test(t)){n[t]=V_(e,a,n[t]);continue}if(p(r)&&v(r,!0)||et(r)&&g_(e,r,n[t])){n[t]=V_(e,r,n[t]);continue}delete n[t]}return n}function D_(e,t,n){return S(e,t.$ref)?V_(e,e[t.$ref],n):n}function O_(e,t,n){if(!d(n))return n;let r=Math.min(n.length,t.items.length);for(let i=0;iz_(e))}function F_(e){return e.slice()}function I_(e){return new Map(z_([...e.entries()]))}function L_(e){return new Set(z_([...e.values()]))}function R_(e){return e}function z_(e){return Fe(e)?F_(e):ze(e)?I_(e):Re(e)?L_(e):d(e)?P_(e):h(e)?N_(e):R_(e)}function B_(e,t,n){for(let r of t.anyOf){let t=V_(e,r,z_(n));if(g_(e,r,t))return t}return n}function V_(e,t,n){return k(t)?y_(e,t,n):nt(t)?b_(e,t,n):Ft(t)?x_(e,t,n):M(t)?C_(e,t,n):j(t)?T_(e,t,n):Wi(t)?E_(e,t,n):ht(t)?D_(e,t,n):z(t)?O_(e,t,n):R(t)?B_(e,t,n):n}function H_(e,t){for(let n of Be.Keys(e))Be.HasPropertyKey(t,n)||(t[n]=e[n]);return t}function U_(e){let t={};for(let n of Be.Keys(e))t[n]=K_(e[n]);return t}function W_(e){return G_(kf(e))}function G_(e){return e.map(e=>K_(e))}function K_(e){return H_(e,k(e)?rt(K_(e.items),it(e)):M(e)?qt(G_(e.allOf)):R(e)?L(W_(e.anyOf)):j(e)?A(U_(e.properties)):Wi(e)?Ri(Hi(e),K_(Ui(e))):z(e)?Fr(G_(e.items)):e)}function q_(e){return K_(e)}function J_(...e){let[t,n,r]=Rt(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]});return V_(t,Xe().unionPrioritySort?q_(n):n,r)}function Y_(e){return h(e)&&S(e,`value`)}function Q(e){return{value:e}}function X_(e){return d(e)?Q(e):Q([e])}function Z_(e){return v(e,!0)?Q(BigInt(1)):Q(BigInt(0))}const Q_=/^-?(0|[1-9]\d*)n$/,$_=/^-?(0|[1-9]\d*)\.\d+$/,ev=/^-?(0|[1-9]\d*)$/;function tv(e){return Q_.test(e)}function nv(e){return $_.test(e)}function rv(e){return ev.test(e)}function iv(e){let t=e.toLowerCase();return tv(e)?Q(BigInt(e.slice(0,e.length-1))):nv(e)?Q(BigInt(e.split(`.`)[0])):rv(e)?Q(BigInt(e)):v(t,`false`)?Q(BigInt(0)):v(t,`true`)?Q(BigInt(1)):void 0}function av(e){return f(e)?Q(e):p(e)?Z_(e):m(e)?Q(BigInt(Math.trunc(e))):fe(e)?Q(BigInt(0)):g(e)?iv(e):_(e)?Q(BigInt(0)):void 0}function ov(e){return v(e,BigInt(0))?Q(!1):v(e,BigInt(1))?Q(!0):void 0}function sv(e){return v(e,0)?Q(!1):v(e,1)?Q(!0):void 0}function cv(e){return v(e.toLowerCase(),`false`)?Q(!1):v(e.toLowerCase(),`true`)?Q(!0):v(e,`0`)?Q(!1):v(e,`1`)?Q(!0):void 0}function lv(e){return f(e)?ov(e):p(e)?Q(e):m(e)?sv(e):fe(e)?Q(!1):g(e)?cv(e):_(e)?Q(!1):void 0}function uv(e){return v(e,BigInt(0))?Q(null):void 0}function dv(e){return v(e,!1)?Q(null):void 0}function fv(e){return v(e,0)?Q(null):void 0}function pv(e){let t=e.toLowerCase();return v(t,`undefined`)||v(t,`null`)||v(e,``)||v(e,`0`)?Q(null):void 0}function mv(e){return f(e)?uv(e):p(e)?dv(e):m(e)?fv(e):fe(e)?Q(null):g(e)?pv(e):_(e)?Q(null):void 0}const hv=BigInt(2**53-1),gv=BigInt(-(2**53-1));function _v(e){return e<=hv&&e>=gv?Q(Number(e)):void 0}function vv(e){return Q(+!!e)}function yv(e){let t=+e;if(m(t))return Q(t);let n=e.toLowerCase();if(v(n,`false`))return Q(0);if(v(n,`true`))return Q(1);let r=av(e);if(Y_(r))return r.value<=hv&&r.value>=gv?Q(Number(r.value)):void 0}function bv(e){return f(e)?_v(e):p(e)?vv(e):m(e)?Q(e):fe(e)?Q(0):g(e)?yv(e):_(e)?Q(0):void 0}function xv(e){return f(e)||p(e)||m(e)?Q(e.toString()):fe(e)?Q(`null`):g(e)?Q(e):_(e)?Q(``):void 0}function Sv(e){return v(e,BigInt(0))?Q(void 0):void 0}function Cv(e){return v(e,!1)?Q(void 0):void 0}function wv(e){return v(e,0)?Q(void 0):void 0}function Tv(e){let t=e.toLowerCase();return v(t,`undefined`)||v(t,`null`)||v(e,``)||v(e,`0`)?Q(void 0):void 0}function Ev(e){return f(e)?Sv(e):p(e)?Cv(e):m(e)?wv(e):fe(e)?Q(void 0):g(e)?Tv(e):_(e)?Q(e):void 0}function Dv(e,t,n){return X_(n).value.map(n=>ty(e,t.items,n))}function Ov(e,t,n){return t.Convert(n)}function kv(e,t,n){let r=av(n);return Y_(r)?r.value:n}function Av(e,t,n){let r=lv(n);return Y_(r)?r.value:n}function jv(e,t,n){return ty({...e,...t.$defs},mt(t.$ref),n)}function Mv(e,t,n){return ty(e,Tf(t),n)}function Nv(e,t,n){let r=bv(n);return Y_(r)?Math.trunc(r.value):n}function Pv(e,t,n){return ty(e,Tf(bf(e,t)),n)}function Fv(e,t,n){let r=av(n);return Y_(r)&&v(t.const,r.value)?r.value:n}function Iv(e,t,n){let r=lv(n);return Y_(r)&&v(t.const,r.value)?r.value:n}function Lv(e,t,n){let r=bv(n);return Y_(r)&&v(t.const,r.value)?r.value:n}function Rv(e,t,n){let r=xv(n);return Y_(r)&&v(t.const,r.value)?r.value:n}function zv(e,t,n){return v(t.const,n)?n:$n(t)?Fv(e,t,n):er(t)?Iv(e,t,n):tr(t)?Lv(e,t,n):nr(t)?Rv(e,t,n):Yt()}function Bv(e,t,n){let r=mv(n);return Y_(r)?r.value:n}function Vv(e,t,n){let r=bv(n);return Y_(r)?r.value:n}function Hv(e,t,n,r){let i=w(r);for(let[a,o]of t)for(let t of i)a.test(t)||(r[t]=ty(e,n,r[t]));return r}function Uv(e,t,n){return Dt(e)&&_(n[t])}function Wv(e,t,n){let r=Ee(t.properties),i=w(n);for(let[t,a]of r)for(let r of i)!t.test(r)||Uv(a,r,n)||(n[r]=ty(e,a,n[r]));return S(t,`additionalProperties`)&&h(t.additionalProperties)?Hv(e,r,t.additionalProperties,n):n}function Gv(e,t,n){return pe(n)?Wv(e,t,n):n}function Kv(e,t,n){let r=Ee(t.patternProperties),i=w(n);for(let[t,a]of r)for(let r of i)t.test(r)&&(n[r]=ty(e,a,n[r]));return S(t,`additionalProperties`)&&h(t.additionalProperties)?Hv(e,r,t.additionalProperties,n):n}function qv(e,t,n){return pe(n)?Kv(e,t,n):n}function Jv(e,t,n){return S(e,t.$ref)?ty(e,e[t.$ref],n):n}function Yv(e,t,n){let r=xv(n);return Y_(r)?r.value:n}function Xv(e,t,n){return ty(e,Tf(t),n)}function Zv(e,t,n){if(!d(n))return n;for(let r=0;rg_(e,t,n)))return n;let r=t.anyOf.map(t=>ty(e,t,z_(n))).find(n=>g_(e,t,n));return _(r)?n:r}function ey(e,t,n){return Y_(Ev(n))?void 0:n}function ty(e,t,n){return k(t)?Dv(e,t,n):nt(t)?Ov(e,t,n):Hn(t)?kv(e,t,n):Un(t)?Av(e,t,n):Ft(t)?jv(e,t,n):Kt(t)?Mv(e,t,n):Kn(t)?Nv(e,t,n):M(t)?Pv(e,t,n):F(t)?zv(e,t,n):ir(t)?Bv(e,t,n):sr(t)?Vv(e,t,n):j(t)?Gv(e,t,n):Wi(t)?qv(e,t,n):ht(t)?Jv(e,t,n):pr(t)?Yv(e,t,n):ao(t)?Xv(e,t,n):z(t)?Zv(e,t,n):Yi(t)?Qv(e,t,n):R(t)?$v(e,t,n):Xi(t)?ey(e,t,n):n}function ny(...e){let[t,n,r]=Rt(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]});return ty(t,n,r)}function ry(e,t,n){if(!d(n))return n;for(let r=0;r[e,t,n],2:(e,t)=>[{},e,t]});return py(t,n,r)}function hy(e){return(...t)=>{let[n,r,i]=Rt(t,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]});return e.reduce((e,t)=>t(n,r,e),i)}}function gy(e,t,n){return t[`~codec`].decode(n)}function _y(e,t,n){return t[`~codec`].encode(n)}function $(e,t,n,r){return On(n)?v(e,`Decode`)?gy(t,n,r):_y(t,n,r):r}function vy(e,t,n,r){if(!d(r))return r;for(let i=0;i({...e,...t}),{})}function Cy(e,t){for(let n of t)if(!je(e,n))return n;return e}function wy(e,t,n,r){if(v(n.allOf.length,0))return $(e,t,n,r);let i=n.allOf.map(n=>Vy(e,t,n,J_(n,z_(r))));return $(e,t,n,i.every(e=>h(e))?Sy(i):Cy(r,i))}function Ty(e,t,n,r){if(v(n.allOf.length,0))return $(e,t,n,r);let i=$(e,t,n,r),a=n.allOf.map(n=>Vy(e,t,n,J_(n,z_(i))));return a.every(e=>h(e))?Sy(a):Cy(i,a)}function Ey(e,t,n,r){return v(e,`Decode`)?wy(e,t,n,r):Ty(e,t,n,r)}function Dy(e,t,n,r){if(!pe(r))return r;for(let i of w(n.properties))!S(r,i)||Uv(n.properties[i],i,r)||(r[i]=Vy(e,t,n.properties[i],r[i]));return $(e,t,n,r)}function Oy(e,t,n,r){let i=$(e,t,n,r);if(!pe(i))return i;for(let r of w(n.properties))!S(i,r)||Uv(n.properties[r],r,i)||(i[r]=Vy(e,t,n.properties[r],i[r]));return i}function ky(e,t,n,r){return v(e,`Decode`)?Dy(e,t,n,r):Oy(e,t,n,r)}function Ay(e,t,n,r){if(!pe(r))return r;let i=new RegExp(Vi(n));for(let a of w(r))i.test(a)&&(r[a]=Vy(e,t,Ui(n),r[a]));return $(e,t,n,r)}function jy(e,t,n,r){let i=$(e,t,n,r);if(!pe(i))return i;let a=new RegExp(Vi(n));for(let r of w(i))a.test(r)&&(i[r]=Vy(e,t,Ui(n),i[r]));return i}function My(e,t,n,r){return v(e,`Decode`)?Ay(e,t,n,r):jy(e,t,n,r)}function Ny(e,t,n,r){return S(t,n.$ref)?Vy(e,t,t[n.$ref],r):r}function Py(e,t,n,r){return v(e,`Decode`)?$(e,t,n,Ny(e,t,n,r)):Ny(e,t,n,$(e,t,n,r))}function Fy(e,t,n,r){if(!d(r))return r;for(let i=0;iz_(n),(e,t,n)=>my(e,t,n),(e,t,n)=>ny(e,t,n),(e,t,n)=>J_(e,t,n),(e,t,n)=>Uy(e,t,n)]);function Gy(...e){let[t,n,r]=Rt(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]});if(g_(t,n,r))return r;if(Xe().correctiveParse)return Wy(t,n,r);throw new Hy(r,__(t,n,r))}L([A({type:P(`insert`),path:I(),value:Mt()}),Object({type:P(`update`),path:I(),value:Mt()}),A({type:P(`delete`),path:I()})]);const Ky=Rn(It({}),e=>e instanceof Date),qy=A({id:or(),created:Ky,title:I({minLength:1,maxLength:100}),type:Gt([`jpg`,`png`]),size:or(),url:I({format:`url`})}),Jy=A({id:or(),stars:or({minimum:1,maximum:5}),title:I({minLength:1,maxLength:100}),text:I({minLength:1,maxLength:1e3}),images:rt(qy)});Gy(A({id:or(),created:Ky,title:I({minLength:1,maxLength:100}),brand:I({minLength:1,maxLength:30}),description:I({minLength:1,maxLength:500}),price:or({minimum:1,maximum:1e4}),discount:L([or({minimum:1,maximum:100}),rr()]),quantity:or({minimum:1,maximum:10}),tags:rt(I({minLength:1,maxLength:30})),images:rt(qy),ratings:rt(Jy)}),{}); \ No newline at end of file +var e=Object.defineProperty,t=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r};const n={assign:0,create:0,clone:0,discard:0,update:0};function r(e,t){return n.assign+=1,{...e,...t}}function i(e,t,n){return e>=t&&e<=n}function a(e){return i(e,127462,127487)}function o(e){return i(e,65024,65039)}function s(e){return i(e,768,879)||i(e,6832,6911)||i(e,7616,7679)||i(e,65056,65071)}function c(e){return e>65535?2:1}function l(e,t){for(;t=t)return!0;return!1}function re(e,t){let n=0,r=0;for(;rt)return!1;return!0}function ie(e,t){if(t===0)return!0;let n=0;for(;n=t)return!0}return!1}function ae(e,t){let n=0;for(;nt)return!1}return!0}var oe=t({Entries:()=>Te,EntriesRegExp:()=>we,Every:()=>y,EveryAll:()=>b,GraphemeCount:()=>be,HasPropertyKey:()=>S,IsArray:()=>d,IsBigInt:()=>f,IsBoolean:()=>p,IsClassInstance:()=>ve,IsConstructor:()=>se,IsDeepEqual:()=>Ae,IsEqual:()=>v,IsFunction:()=>ce,IsGreaterEqualThan:()=>ge,IsGreaterThan:()=>pe,IsInteger:()=>le,IsLessEqualThan:()=>he,IsLessThan:()=>me,IsMaxLength:()=>xe,IsMinLength:()=>Se,IsMultipleOf:()=>_e,IsNull:()=>ue,IsNumber:()=>m,IsObject:()=>h,IsObjectNotArray:()=>de,IsString:()=>g,IsSymbol:()=>fe,IsUndefined:()=>_,IsUnsafePropertyKey:()=>Ce,IsValueLike:()=>ye,Keys:()=>C,ShiftLeft:()=>x,Symbols:()=>Ee,Values:()=>De});function d(e){return Array.isArray(e)}function f(e){return v(typeof e,`bigint`)}function p(e){return v(typeof e,`boolean`)}function se(e){if(_(e)||!ce(e))return!1;let t=Function.prototype.toString.call(e);return!!(/^class\s/.test(t)||/\[native code\]/.test(t))}function ce(e){return v(typeof e,`function`)}function le(e){return Number.isInteger(e)}function ue(e){return v(e,null)}function m(e){return Number.isFinite(e)}function de(e){return h(e)&&!d(e)}function h(e){return v(typeof e,`object`)&&!ue(e)}function g(e){return v(typeof e,`string`)}function fe(e){return v(typeof e,`symbol`)}function _(e){return v(e,void 0)}function v(e,t){return e===t}function pe(e,t){return e>t}function me(e,t){return e=t}function _e(e,t){if(f(e)||f(t))return BigInt(e)%BigInt(t)===0n;if(!m(e)||le(e)&&1/t%1==0)return!0;let n=e%t;return Math.min(Math.abs(n),Math.abs(n-t))<1e-10}function ve(e){if(!h(e))return!1;let t=globalThis.Object.getPrototypeOf(e);return ue(t)?!1:v(typeof t.constructor,`function`)&&!(v(t.constructor,globalThis.Object)||v(t.constructor.name,`Object`))}function ye(e){return f(e)||p(e)||ue(e)||m(e)||g(e)||_(e)}function be(e){return te(e)}function xe(e,t){return ae(e,t)}function Se(e,t){return ie(e,t)}function y(e,t,n){for(let r=t;r[RegExp(`^${t}$`),e[t]])}function Te(e){return Object.entries(e)}function C(e){return Object.getOwnPropertyNames(e)}function Ee(e){return Object.getOwnPropertySymbols(e)}function De(e){return Object.values(e)}function Oe(e,t){if(!h(t))return!1;let n=C(e);return v(n.length,C(t).length)&&n.every(n=>Ae(e[n],t[n]))}function ke(e,t){return d(t)&&v(e.length,t.length)&&e.every((n,r)=>Ae(e[r],t[r]))}function Ae(e,t){return d(e)?ke(e,t):h(e)?Oe(e,t):v(e,t)}function je(e){return e instanceof Boolean}function Me(e){return e instanceof Number}function Ne(e){return e instanceof String}function Pe(e){return globalThis.ArrayBuffer.isView(e)}function Fe(e){return e instanceof globalThis.RegExp}function Ie(e){return e instanceof globalThis.Date}function Le(e){return e instanceof globalThis.Set}function Re(e){return e instanceof globalThis.Map}var ze=oe;function Be(e){return e}function Ve(e){return S(e,`~kind`)}function He(e){let t={},n=Object.getOwnPropertyDescriptors(e);for(let e of Object.keys(n)){if(Ce(e))continue;let r=n[e];S(r,`value`)&&Object.defineProperty(t,e,{...r,value:Xe(r.value)})}return t}function Ue(e){let t={};for(let n of C(e))Ce(n)||(t[n]=Xe(e[n]));for(let n of Ee(e))t[n]=Xe(e[n]);return t}function We(e){return ve(e)?Be(e):Ve(e)?He(e):Ue(e)}function Ge(e){return e.map(e=>Xe(e))}function Ke(e){return e.slice()}function qe(e){return new RegExp(e.source,e.flags)}function Je(e){return new Map(Xe([...e.entries()]))}function Ye(e){return new Set(Xe([...e.values()]))}function Xe(e){return Pe(e)?Ke(e):Fe(e)?qe(e):Re(e)?Je(e):Le(e)?Ye(e):d(e)?Ge(e):h(e)?We(e):e}function Ze(e){return n.clone+=1,Xe(e)}const Qe={immutableTypes:!1,maxErrors:8,useAcceleration:!0,exactOptionalPropertyTypes:!1,enumerableKind:!1,correctiveParse:!1,unionPrioritySort:!0};function $e(){return Qe}function et(e,t){for(let n of Object.keys(t))Object.defineProperty(e,n,{configurable:!0,writable:!0,enumerable:!1,value:t[n]});return e}function tt(e,t){return{...e,...t}}function w(e,t,r={}){n.create+=1;let i=$e(),a=tt(t,r),o=i.enumerableKind?tt(a,e):et(a,e);return i.immutableTypes?Object.freeze(o):o}function nt(e,t){n.discard+=1;let r={},i=Object.getOwnPropertyDescriptors(Ze(e)),a=new Set(t);for(let e of Object.keys(i))a.has(e)||Object.defineProperty(r,e,i[e]);return r}function T(e,t,r){n.update+=1;let i=$e(),a=Ze(e);for(let e of Object.keys(t))Object.defineProperty(a,e,{configurable:!0,writable:!0,enumerable:i.enumerableKind,value:t[e]});for(let e of Object.keys(r))Object.defineProperty(a,e,{configurable:!0,enumerable:!0,writable:!0,value:r[e]});return a}function E(e,t){return h(e)&&S(e,`~kind`)&&v(e[`~kind`],t)}function rt(e){return h(e)}function D(e,t,n){return w({"~kind":`Deferred`},{type:`deferred`,action:e,parameters:t,options:n},{})}function it(e){return E(e,`Deferred`)}function at(e){return T(e,{"~readonly":!0},{})}function ot(e,t){return T(at(e),{},t)}function st(e,t,n,r){return ot(q(e,t,n),r)}function ct(e){return T(e,{"~optional":!0},{})}function lt(e,t){return T(ct(e),{},t)}function ut(e,t,n,r){return lt(q(e,t,n),r)}function dt(e,t){return w({"~kind":`Array`},{type:`array`,items:e},t)}function O(e){return E(e,`Array`)}function ft(e){return nt(e,[`~kind`,`type`,`items`])}function pt(e,t,n={}){return w({"~kind":`Constructor`},{type:`constructor`,parameters:e,instanceType:t},n)}function mt(e){return E(e,`Constructor`)}function ht(e){return nt(e,[`~kind`,`type`,`parameters`,`instanceType`])}function gt(e,t,n={}){return w({"~kind":`Function`},{type:`function`,parameters:e,returnType:t},n)}function _t(e){return E(e,`Function`)}function vt(e){return nt(e,[`~kind`,`type`,`parameters`,`returnType`])}function yt(e,t){return w({"~kind":`Ref`},{$ref:e},t)}function bt(e){return E(e,`Ref`)}function xt(e,t){return w({"~kind":`Generic`},{type:`generic`,parameters:e,expression:t})}function St(e){return E(e,`Generic`)}function Ct(e){return w({"~kind":`Any`},{},e)}function wt(e){return E(e,`Any`)}function Tt(e){return w({"~kind":`Never`},{not:{}},e)}function Et(e){return E(e,`Never`)}function Dt(e,t={}){return lt(e,t)}function Ot(e){return rt(e)&&S(e,`~optional`)}function kt(e){return C(e).filter(t=>!Ot(e[t]))}function At(e){return C(e)}function jt(e){return De(e)}function k(e,t={}){let n=kt(e);return w({"~kind":`Object`},{type:`object`,...n.length>0?{required:n}:{},properties:e},t)}function A(e){return E(e,`Object`)}function Mt(e){return nt(e,[`~kind`,`type`,`properties`,`required`])}function Nt(e){return w({"~kind":`Unknown`},{},e)}function Pt(e){return E(e,`Unknown`)}function Ft(e,t,n){return w({"~kind":`Cyclic`},{$defs:C(e).reduce((t,n)=>({...t,[n]:T(e[n],{},{$id:n})}),{}),$ref:t},n)}function It(e){return E(e,`Cyclic`)}function Lt(e){return T(e,{"~unsafe":null},{})}function Rt(e){return de(e)&&S(e,`~unsafe`)&&ue(e[`~unsafe`])}function zt(e,t){return t[e.length]?.(...e)??(()=>{throw Error(`Invalid Arguments`)})()}function Bt(e){return E(e,`Infer`)}function Vt(e,t,n,r={}){return w({"~kind":`Dependent`},{if:e,then:t,else:n},r)}function Ht(e){return E(e,`Dependent`)}function Ut(e){return nt(e,[`~kind`,`if`,`then`,`else`])}function Wt(e){return de(e)}function Gt(e){return C(e).filter(e=>isNaN(e)).reduce((t,n)=>[...t,e[n]],[])}function Kt(e,t){return w({"~kind":`Enum`},{enum:Wt(e)?Gt(e):e},t)}function qt(e){return E(e,`Enum`)}function Jt(e,t={}){return w({"~kind":`Intersect`},{allOf:e},t)}function j(e){return E(e,`Intersect`)}function Yt(e){return nt(e,[`~kind`,`allOf`])}function Xt(){throw Error(`Unreachable`)}function Zt(e){let t=new Set,n=e;for(;n&&n!==Object.prototype;){for(let e of Reflect.ownKeys(n))e!==`constructor`&&typeof e!=`symbol`&&t.add(e);n=Object.getPrototypeOf(n)}return[...t]}function Qt(e){return typeof e==`number`}var M;(function(e){e[e.Array=0]=`Array`,e[e.BigInt=1]=`BigInt`,e[e.Boolean=2]=`Boolean`,e[e.Date=3]=`Date`,e[e.Constructor=4]=`Constructor`,e[e.Function=5]=`Function`,e[e.Null=6]=`Null`,e[e.Number=7]=`Number`,e[e.Object=8]=`Object`,e[e.RegExp=9]=`RegExp`,e[e.String=10]=`String`,e[e.Symbol=11]=`Symbol`,e[e.TypeArray=12]=`TypeArray`,e[e.Undefined=13]=`Undefined`})(M||={});let $t=BigInt(`14695981039346656037`);const[en,tn]=[BigInt(`1099511628211`),BigInt(`18446744073709551616`)],nn=Array.from({length:256}).map((e,t)=>BigInt(t)),rn=new Float64Array(1),an=new DataView(rn.buffer),on=new Uint8Array(rn.buffer);function N(e){$t^=nn[e],$t=$t*en%tn}function sn(e){N(M.Array);for(let t of e)Sn(t)}function cn(e){N(M.BigInt),an.setBigInt64(0,e);for(let e of on)N(e)}function ln(e){N(M.Boolean),N(+!!e)}function un(e){N(M.Constructor),Sn(e.toString())}function dn(e){N(M.Date),Sn(e.getTime())}function fn(e){N(M.Function),Sn(e.toString())}function pn(e){N(M.Null)}function mn(e){N(M.Number),an.setFloat64(0,e,!0);for(let e of on)N(e)}function hn(e){N(M.Object);for(let t of Zt(e).sort())Sn(t),Sn(e[t])}function gn(e){N(M.RegExp),vn(e.toString())}const _n=new TextEncoder;function vn(e){N(M.String);for(let t of _n.encode(e))N(t)}function yn(e){N(M.Symbol),Sn(e.toString())}function bn(e){N(M.TypeArray);let t=new Uint8Array(e.buffer);for(let e=0;e[e,t,n],2:(e,t)=>[e,t,()=>`Refine Error`]});return Mn(t,{check:n,error:r})}function Pn(e){return de(e)&&S(e,`check`)&&S(e,`error`)&&ce(e.check)&&ce(e.error)}function Fn(e){return rt(e)&&S(e,`~refine`)&&d(e[`~refine`])&&y(e[`~refine`],0,e=>Pn(e))}function In(e){return w({"~kind":`BigInt`},{type:`bigint`},e)}function Ln(e){return E(e,`BigInt`)}function Rn(e){return E(e,`Boolean`)}const zn=`-?(?:0|[1-9][0-9]*)`;function Bn(e){return w({"~kind":`Integer`},{type:`integer`},e)}function Vn(e){return E(e,`Integer`)}var Hn=class extends Error{constructor(e){super(`Invalid Literal value`),Object.defineProperty(this,"cause",{value:{value:e},writable:!1,configurable:!1,enumerable:!1})}};function Un(e){return f(e)?`bigint`:p(e)?`boolean`:m(e)?`number`:g(e)?`string`:(()=>{throw new Hn(e)})()}function P(e,t){return w({"~kind":`Literal`},{type:Un(e),const:e},t)}function Wn(e){return f(e)||p(e)||m(e)||g(e)}function Gn(e){return F(e)&&f(e.const)}function Kn(e){return F(e)&&p(e.const)}function qn(e){return F(e)&&m(e.const)}function Jn(e){return F(e)&&g(e.const)}function F(e){return E(e,`Literal`)}function Yn(e){return w({"~kind":`Null`},{type:`null`},e)}function Xn(e){return E(e,`Null`)}const Zn=`-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?`;function Qn(e){return w({"~kind":`Number`},{type:`number`},e)}function $n(e){return E(e,`Number`)}function er(e){return w({"~kind":`Symbol`},{type:`symbol`},e)}function tr(e){return E(e,`Symbol`)}function I(e){return w({"~kind":`String`},{type:`string`},e)}function nr(e){return E(e,`String`)}function L(e,t={}){return w({"~kind":`Union`},{anyOf:e},t)}function R(e){return E(e,`Union`)}function rr(e){return nt(e,[`~kind`,`anyOf`])}function ir(e){let t=Da(e);return v(t.length,2)?t[0]:[]}function ar(e){return!0}function or(e){return x(e,(e,t)=>cr(e)?or(t):!1,()=>!0)}function sr(e){return v(e.length,0)?!1:or(e)}function cr(e){return R(e)?sr(e.anyOf):F(e)?ar(e.const):!1}function lr(e){return sr(e)}function ur(e){return w({"~kind":`TemplateLiteral`},{type:`string`,pattern:e},{})}function dr(e,t,n=[]){return x(e,(e,r)=>dr(r,t,[...n,`${e}${t}`]),()=>n)}function fr(e,t){return v(e.length,0)?[`${t}`]:dr(e,t)}function pr(e,t,n=[]){return x(t,(t,r)=>pr(e,r,[...n,...mr(e,t)]),()=>n)}function mr(e,t){return R(t)?pr(e,t.anyOf):F(t)?fr(e,t.const):Xt()}function hr(e,t){return x(t,(t,n)=>hr(mr(e,t),n),()=>e)}function gr(e){return e.map(e=>P(e))}function _r(e){return L(gr(hr([],e)))}function vr(e){return v(e.length,0)?Xt():v(e.length,1)&&F(e[0])?e[0]:_r(e)}function yr(e){let t=ir(e);return v(t.length,0)?I():lr(t)?vr(t):ur(e)}function br(e){let t=yr(e);return Ja(t)?I():t}function xr(e,t){return w({"~kind":`Record`},{type:`object`,patternProperties:{[e]:t}})}function Sr(e){return xr(Ti,e)}function Cr(e){return k({true:e,false:e})}function wr(e,t={}){let[n,r,i]=[e,e.length,!1];return w({"~kind":`Tuple`},{type:`array`,additionalItems:i,items:n,minItems:r},t)}function z(e){return E(e,`Tuple`)}function Tr(e){return nt(e,[`~kind`,`type`,`items`,`minItems`,`additionalItems`])}function Er(e){return nt(e,[`~readonly`])}function Dr(e,t){return T(Er(e),{},t)}function Or(e,t,n,r){return Dr(q(e,t,n),r)}function kr(e,t={}){return Dr(e,t)}function Ar(e){return nt(e,[`~optional`])}function jr(e,t){return T(Ar(e),{},t)}function Mr(e,t,n,r){return jr(q(e,t,n),r)}function Nr(e,t={}){return jr(e,t)}function Pr(e){return e.reduceRight((e,t,n)=>({[n]:t,...e}),{})}function Fr(e){return k(Pr(e.items))}function Ir(e,t){return jn(e)?!!jn(t):!1}function Lr(e,t){return Ot(e)?!!Ot(t):!1}function Rr(e,t){let n=Ir(e,t),r=Lr(e,t),i=kr(Nr(ti([e,t])));return n&&r?An(Dt(i)):n&&!r?An(i):!n&&r?Dt(i):i}function zr(e,t,n){return n in e?n in t?Rr(e[n],t[n]):e[n]:n in t?t[n]:Tt()}function Br(e,t){return[...new Set([...C(t),...C(e)])].reduce((n,r)=>({...n,[r]:zr(e,t,r)}),{})}function Vr(e){return A(e)?e.properties:z(e)?Pr(e.items):Xt()}function Hr(e,t){return k(Br(Vr(e),Vr(t)))}function Ur(e,t){let n=Js(e,t);return v(n,`left-inside`)?e:v(n,`right-inside`)||v(n,`equal`)?t:Tt()}function Wr(e){return A(e)||z(e)}function Gr(e,t){let n=R(e),r=R(t);return n||r}function Kr(e,t){let n=ii(e),r=ii(t),i=Gr(n,r),a=Wr(n),o=Wr(r);return i?ti([n,r]):a&&o?Hr(n,r):a&&!o?n:!a&&o?r:Ur(n,r)}function qr(e,t,n=[]){return x(t,(t,r)=>qr(e,r,[...n,Kr(e,t)]),()=>v(n.length,0)?[e]:n)}function Jr(e,t,n=[]){return x(e,(e,r)=>Jr(r,t,[...n,...Yr([e],t)]),()=>n)}function Yr(e,t=[]){return x(e,(e,n)=>R(e)?Yr(n,Jr(e.anyOf,t)):Yr(n,qr(e,t)),()=>t)}function Xr(e,t){return $a(qs({},e,t))?[]:[e]}function Zr(e,t){return e.reduce((e,n)=>[...e,...Xr(n,t)],[])}function Qr(e,t){let n=ii(e);return ri(Zr(R(n)?n.anyOf:[n],t))}function $r(e,t,n){return ri([Jt([e,t]),Qr(n,e)])}function ei(e){return ri(e.map(e=>P(e)))}function ti(e){return ai($s(Yr(e)))}function ni(e){return ii(br(e))}function ri(e){return ai($s(e))}function ii(e){return Ht(e)?$r(e.if,e.then,e.else):qt(e)?ei(e.enum):j(e)?ti(e.allOf):Ja(e)?ni(e.pattern):R(e)?ri(e.anyOf):e}function ai(e){return v(e.length,1)?e[0]:v(e.length,0)?Tt():L(e)}function oi(e,t){return bi(ei(e),t)}function si(e,t){return xr(Ci,t)}function ci(e,t){return bi(ti(e),t)}function li(e,t){return g(e)||m(e)?k({[e]:t}):v(e,!1)?k({false:t}):v(e,!0)?k({true:t}):k({})}function ui(e,t){return xr(wi,t)}function di(e,t){return S(e,`pattern`)&&(g(e.pattern)||e.pattern instanceof RegExp)?xr(e.pattern.toString(),t):xr(Ti,t)}function fi(e,t){return lr(ir(e))?bi(ni(e),t):xr(e,t)}function pi(e){return R(e)?mi(e.anyOf):[e]}function mi(e){return e.reduce((e,t)=>[...e,...pi(t)],[])}function hi(e){return e.some(e=>nr(e)||$n(e)||Vn(e))}function gi(e,t){return v(hi(e),!0)?xr(Ti,t):void 0}function _i(e,t){return e.reduce((e,n)=>F(n)&&(g(n.const)||m(n.const))?{...e,[n.const]:t}:e,{})}function vi(e,t){return k(_i(e,t))}function yi(e,t){let n=mi(e),r=gi(n,t);return rt(r)?r:vi(n,t)}function bi(e,t){return wt(e)?Sr(t):Rn(e)?Cr(t):qt(e)?oi(e.enum,t):Vn(e)?si(e,t):j(e)?ci(e.allOf,t):F(e)?li(e.const,t):$n(e)?ui(e,t):R(e)?yi(e.anyOf,t):nr(e)?di(e,t):Ja(e)?fi(e.pattern,t):k({})}function xi(e,t,n){return K([e])?T(bi(e,t),{},n):Ei(e,t,n)}function Si(e,t,n,r,i){return xi(q(e,t,n),q(e,t,r),i)}const Ci=`^${zn}$`,wi=`^${Zn}$`,Ti=`^.*$`;function Ei(e,t,n={}){return D(`Record`,[e,t],n)}function Di(e,t,n={}){return xi(e,t,n)}function Oi(e,t){return xr(e,t)}function ki(e){return v(e,Ti)?I():v(e,Ci)?Bn():v(e,wi)?Qn():yr(e)}function Ai(e){return C(e.patternProperties)[0]}function ji(e){return ki(Ai(e))}function Mi(e){return e.patternProperties[Ai(e)]}function Ni(e){return E(e,`Record`)}function Pi(e){return w({"~kind":`Rest`},{type:`rest`,items:e},{})}function Fi(e){return E(e,`Rest`)}function Ii(e){return E(e,`This`)}function Li(e){return w({"~kind":`Undefined`},{type:`undefined`},e)}function Ri(e){return E(e,`Undefined`)}function zi(e){return E(e,`Void`)}function Bi(e){return In()}function Vi(e){return I()}function Hi(e){return Qn()}function Ui(e){return Bn()}function Wi(e){return Tt()}function Gi(e){return P(e)}function Ki(e){return e}function qi(e){return L(e[1])}function Ji(e){return e.length===3?[...e[0],...e[2]]:e.length===1?[...e[0]]:[]}function Yi(e){return[e[0],...e[1]]}function Xi(e){return e}function Zi(e){return e[1]}function Qi(e){return v(e.length,2)}function $i(e,t,n){return Qi(e)?t(e[0],e[1]):n()}function ea(e,t){return v(t.indexOf(e),0)?[e,t.slice(e.length)]:[]}function ta(e,t){for(let n=0;nString.fromCharCode(e+n))}const ra=[...na(97,122),...na(65,90)],ia=[`0`,...na(49,57)];function aa(e){let t=e.indexOf(`*/`);return v(t,-1)?``:e.slice(t+2)}function oa(e){let t=e.indexOf(` +`);return v(t,-1)?``:e.slice(t)}function sa(e){return e.replace(/^[ \t\r\f\v]+/,``)}function ca(e){let t=sa(e);return t.startsWith(`/*`)?ca(aa(t.slice(2))):t.startsWith(`//`)?ca(oa(t.slice(2))):t}function la(e){let t=e.trimStart();return t.startsWith(`/*`)?la(aa(t.slice(2))):t.startsWith(`//`)?la(oa(t.slice(2))):t}[...ia];function ua(e,t){return ta([e],t)}function da(e,t){return v(e,``)?[``,t]:e.startsWith(` +`)?ua(e,ca(t)):e.startsWith(` `)?ua(e,t):ua(e,la(t))}[...ra,...ia],[...ia];function fa(e){return v(e,``)?[]:[e.slice(0,1),e.slice(1)]}function pa(e,t){return x(e,(e,n)=>t.startsWith(e)?!0:pa(n,t),()=>!1)}function ma(e,t,n=``){return $i(fa(t),(r,i)=>pa(e,t)?[n,t]:ma(e,i,`${n}${r}`),()=>[])}function ha(e,t){return $i(ma(e,t),(e,t)=>v(e,``)?[]:[e,t],()=>[])}const B=(e,t,n=()=>[])=>e.length===2?t(e):n(),ga=e=>B(da(`-?(?:0|[1-9][0-9]*)n`,e),([e,t])=>[Bi(e),t]),_a=e=>B(da(`.*`,e),([e,t])=>[Vi(e),t]),va=e=>B(da(`-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?`,e),([e,t])=>[Hi(e),t]),ya=e=>B(da(`-?(?:0|[1-9][0-9]*)`,e),([e,t])=>[Ui(e),t]),ba=e=>B(da(`(?!)`,e),([e,t])=>[Wi(e),t]),xa=e=>B(ha([`-?(?:0|[1-9][0-9]*)n`,`.*`,`-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?`,`-?(?:0|[1-9][0-9]*)`,`(?!)`,`(`,`)`,`$`,`|`],e),([e,t])=>[Gi(e),t]),Sa=e=>B(B(ga(e),([e,t])=>[e,t],()=>B(_a(e),([e,t])=>[e,t],()=>B(va(e),([e,t])=>[e,t],()=>B(ya(e),([e,t])=>[e,t],()=>B(ba(e),([e,t])=>[e,t],()=>B(Ca(e),([e,t])=>[e,t],()=>B(xa(e),([e,t])=>[e,t],()=>[]))))))),([e,t])=>[Ki(e),t]),Ca=e=>B(B(da(`(`,e),([e,t])=>B(Ea(t),([t,n])=>B(da(`)`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[qi(e),t]),wa=e=>B(B(B(Ta(e),([e,t])=>B(da(`|`,t),([t,n])=>B(wa(n),([n,r])=>[[e,t,n],r]))),([e,t])=>[e,t],()=>B(B(Ta(e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>B([[],e],([e,t])=>[e,t],()=>[]))),([e,t])=>[Ji(e),t]),Ta=e=>B(B(Sa(e),([e,t])=>B(Ea(t),([t,n])=>[[e,t],n])),([e,t])=>[Yi(e),t]),Ea=e=>B(B(wa(e),([e,t])=>[e,t],()=>B(Ta(e),([e,t])=>[e,t],()=>[])),([e,t])=>[Xi(e),t]),Da=e=>B(B(da(`^`,e),([e,t])=>B(Ea(t),([t,n])=>B(da(`$`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[Zi(e),t]);function Oa(e){return e.join(`|`)}function ka(e){return e.slice(1,e.length-1)}function Aa(e,t,n){return Va(t,`${n}${e}`)}function ja(e,t){return Va(e,`${t}-?(?:0|[1-9][0-9]*)n`)}function Ma(e,t){return Va(e,`${t}${zn}`)}function Na(e,t){return Va(e,`${t}${Zn}`)}function Pa(e,t){return Ba(L([P(`false`),P(`true`)]),e,t)}function Fa(e,t){return Va(e,`${t}.*`)}function Ia(e,t,n){return Va(t,`${n}${ka(e)}`)}function La(e,t,n){return Ba(Wa(e,{}),t,n)}function Ra(e,t,n){return Ba(ei(e),t,n)}function za(e,t,n,r=[]){return x(e,(e,i)=>za(i,t,n,[...r,Ba(e,[],``)]),()=>Va(t,`${n}(${Oa(r)})`))}function Ba(e,t,n){return qt(e)?Ra(e.enum,t,n):Vn(e)?Ma(t,n):F(e)?Aa(e.const,t,n):Ln(e)?ja(t,n):Rn(e)?Pa(t,n):$n(e)?Na(t,n):nr(e)?Fa(t,n):Ja(e)?Ia(e.pattern,t,n):qa(e)?La(e.parameters[0],t,n):R(e)?za(e.anyOf,t,n):`(?!)`}function Va(e,t){return x(e,(e,n)=>Ba(e,n,t),()=>t)}function Ha(e){return`^${Va(e,``)}$`}function Ua(e){return ur(Ha(e))}function Wa(e,t){return K(e)?T(Ua(e),{},t):Ka(e,t)}function Ga(e,t,n,r){return Wa(Zd(e,t,n),r)}function Ka(e,t={}){return D(`TemplateLiteral`,[e],t)}function qa(e){return rt(e)&&S(e,`action`)&&v(e.action,`TemplateLiteral`)}function Ja(e){return E(e,`TemplateLiteral`)}function Ya(e){return w({"~kind":`ExtendsUnion`},{inferred:e})}function Xa(e){return h(e)&&S(e,`~kind`)&&S(e,`inferred`)&&v(e[`~kind`],`ExtendsUnion`)&&h(e.inferred)}function V(e){return w({"~kind":`ExtendsTrue`},{inferred:e})}function Za(e){return h(e)&&S(e,`~kind`)&&S(e,`inferred`)&&v(e[`~kind`],`ExtendsTrue`)&&h(e.inferred)}function H(){return w({"~kind":`ExtendsFalse`},{})}function Qa(e){return h(e)&&S(e,`~kind`)&&v(e[`~kind`],`ExtendsFalse`)}function $a(e){return Xa(e)||Za(e)}function U(e,t,n){return $a(e)?t(e.inferred):n()}function eo(e,t,n,i){return U(G(e,n,i),i=>V(r(r(e,i),{[t]:n})),()=>H())}function to(e,t){return V(e)}function no(e,t,n,r,i){return U(G(e,t,n),e=>U(G(e,t,r),e=>V(e),()=>H()),()=>U(G(e,t,i),e=>V(e),()=>H()))}function ro(e,t,n){return G(e,t,ei(n))}function io(e,t,n){return x(n,(n,r)=>U(G(e,t,n),e=>io(e,t,r),()=>H()),()=>V(e))}function ao(e,t,n){return G(e,t,ni(n))}function oo(e,t,n){return x(n,(n,r)=>U(G(e,t,n),e=>V(e),()=>oo(e,t,r)),()=>H())}function W(e,t,n){return wt(n)?to(e,t):Ht(n)?no(e,t,n.if,n.then,n.else):qt(n)?ro(e,t,n.enum):Bt(n)?eo(e,n.name,t,n.extends):j(n)?io(e,t,n.allOf):Ja(n)?ao(e,t,n.pattern):R(n)?oo(e,t,n.anyOf):Pt(n)?V(e):H()}function so(e,t,n){return Bt(n)?W(e,t,n):wt(n)||Pt(n)?V(e):Ya(e)}function co(e,t){let n=kn(e),r=kn(t);return n&&r||!n&&r?!0:!(n&&!r)}function lo(e,t,n,r){return O(r)?co(t,r)?G(e,n,r.items):H():W(e,t,r)}function uo(e,t,n){return Ln(n)?V(e):W(e,t,n)}function fo(e,t,n){return Rn(n)?V(e):W(e,t,n)}function po(e,t,n,r,i){let a=Bt(r)?t:r,o=Bt(r)?r:t,s=Ot(t),c=Ot(r);return!s&&c?H():U(G(e,a,o),e=>go(e,n,i),()=>H())}function mo(e,t,n,r){return x(r,(r,i)=>po(e,t,n,r,i),()=>Ot(t)?V(e):H())}function ho(e,t,n){return x(t,(t,r)=>mo(e,t,r,n),()=>V(e))}function go(e,t,n){return ho(e,t,n)}function _o(e,t,n){return zi(n)?V(e):G(e,t,n)}function vo(e,t,n,r){return wt(r)||Pt(r)?V(e):mt(r)?U(go(e,t,r.parameters),e=>_o(e,n,r.instanceType),()=>H()):H()}function yo(e,t,n,r,i){return U(G(e,t,i),()=>G(e,n,i),()=>G(e,r,i))}function bo(e,t,n){return G(e,ei(t),n)}function xo(e,t,n,r){return wt(r)||Pt(r)?V(e):_t(r)?U(go(e,t,r.parameters),e=>_o(e,n,r.returnType),()=>H()):H()}function So(e,t,n){return Vn(n)||$n(n)?V(e):W(e,t,n)}function Co(e,t,n){return G(e,ti(t),n)}function wo(e,t,n){return t===n?V(e):H()}function To(e,t,n){return F(n)?wo(e,t,n.const):Ln(n)?V(e):W(e,P(t),n)}function Eo(e,t,n){return F(n)?wo(e,t,n.const):Rn(n)?V(e):W(e,P(t),n)}function Do(e,t,n){return F(n)?wo(e,t,n.const):$n(n)?V(e):W(e,P(t),n)}function Oo(e,t,n){return F(n)?wo(e,t,n.const):nr(n)?V(e):W(e,P(t),n)}function ko(e,t,n){return f(t.const)?To(e,t.const,n):p(t.const)?Eo(e,t.const,n):m(t.const)?Do(e,t.const,n):g(t.const)?Oo(e,t.const,n):Xt()}function Ao(e,t,n){return Bt(n)?W(e,t,n):V(e)}function jo(e,t,n){return Xn(n)?V(e):W(e,t,n)}function Mo(e,t,n){return $n(n)?V(e):W(e,t,n)}function No(e,t,n){return Ot(t)?Ot(n)?V(e):H():V(e)}function Po(e,t,n){return Bt(n)&&Et(n.extends)?H():U(G(e,t,n),e=>No(e,t,n),()=>H())}function Fo(e,t){return e.reduce((e,n)=>n in t&&$a(t[n])?{...e,...t[n].inferred}:Xt(),{})}function Io(e,t,n){let i={};for(let a of C(n))i[a]=a in t?Po({},t[a],n[a]):Ot(n[a])?Bt(n[a])?V(r(e,{[n[a].name]:n[a].extends})):V(e):H();let a=De(i).every(e=>$a(e)),o=a?Fo(C(i),i):{};return a?V(o):H()}function Lo(e,t,n){let i=Io(e,t,n);return $a(i)?V(r(e,i.inferred)):H()}function Ro(e,t,n){return Lo(e,t,n)}function zo(e,t){return C(t).reduce((n,r)=>({...n,[r]:S(e,r)?R(n[r])?L([...n[r].anyOf,t[r]]):L([e[r],t[r]]):t[r]}),e)}function Bo(e,t,n,r){return x(t,(t,i)=>U(G({},e[t],n),t=>Bo(e,i,n,zo(r,t)),()=>H()),()=>V(r))}function Vo(e,t,n,r){return Bo(t,C(t),r,e)}function Ho(e,t,n){return Ni(n)?Vo(e,t,Ai(n),Mi(n)):A(n)?Ro(e,t,n.properties):W(e,k(t),n)}function Uo(e,t){return v(C(t).length,0)?V(e):H()}function Wo(e,t,n,r,i){return G(e,n,i)}function Go(e,t,n,r){return Ni(r)?Wo(e,ki(t),n,ki(Ai(r)),Mi(r)):A(r)?Uo(e,r.properties):wt(r)||Pt(r)?V(e):H()}function Ko(e,t,n){return nr(n)?V(e):W(e,t,n)}function qo(e,t,n){return tr(n)?V(e):W(e,t,n)}function Jo(e,t,n){return G(e,ni(t),n)}function Yo(e,t){return w({"~kind":`Inferrable`},{name:e,type:t},{})}function Xo(e){return h(e)&&S(e,`~kind`)&&S(e,`name`)&&S(e,`type`)&&v(e[`~kind`],`Inferrable`)&&g(e.name)&&h(e.type)}function Zo(e){return Fi(e)?Bt(e.items)?O(e.items.extends)?Yo(e.items.name,e.items.extends.items):Pt(e.items.extends)?Yo(e.items.name,e.items.extends):void 0:Xt():void 0}function Qo(e){return Bt(e)?Yo(e.name,e.extends):void 0}function $o(e,t,n=[]){return x(e,(e,r)=>U(G({},e,t),()=>$o(r,t,[...n,e]),()=>void 0),()=>n)}function es(e,t,n,i){let a=$o(n,i);return d(a)?V(r(e,{[t]:wr(a)})):H()}function ts(e,t,n,i){let a=$o(n,i);return d(a)?V(r(e,{[t]:L(a)})):H()}function ns(e){return[...e].reverse()}function rs(e,t){return t?ns(e):e}function is(e){let t=e.length>0?e[0]:void 0;return rt(rt(t)?Zo(t):void 0)}function as(e,t,n,r,i,a){return U(G(e,n,i),e=>cs(e,t,r,a),()=>H())}function os(e,t,n,r,i){let a=Zo(r);return Xo(a)?es(e,a.name,rs(n,t),a.type):x(n,(n,a)=>as(e,t,n,a,r,i),()=>H())}function ss(e,t,n,r){return x(r,(r,i)=>os(e,t,n,r,i),()=>v(n.length,0)?V(e):H())}function cs(e,t,n,r){return ss(e,t,n,r)}function ls(e,t,n){let r=Xd(e,Jd([],[]),n),i=is(r);return cs(e,i,rs(t,i),rs(r,i))}function us(e,t,n){let r=Qo(n);return Xo(r)?ts(e,r.name,t,r.type):x(t,(t,r)=>U(G(e,t,n),e=>us(e,r,n),()=>H()),()=>V(e))}function ds(e,t,n){let r=Xd(e,Jd([],[]),t);return z(n)?ls(e,r,n.items):O(n)?us(e,r,n.items):W(e,wr(r),n)}function fs(e,t,n){return zi(n)||Ri(n)?V(e):W(e,t,n)}function ps(e,t,n){return x(n,(n,r)=>U(G(e,t,n),e=>V(e),()=>ps(e,t,r)),()=>H())}function ms(e,t,n){return x(t,(t,r)=>U(ps(e,t,n),e=>ms(e,r,n),()=>H()),()=>V(e))}function hs(e,t,n){let r=Qo(n);return Xo(r)?ts(e,r.name,t,r.type):R(n)?ms(e,t,n.anyOf):ms(e,t,[n])}function gs(e,t,n){return Bt(n)?W(e,t,n):wt(n)||Pt(n)?V(e):H()}function _s(e,t,n){return zi(n)?V(e):W(e,t,n)}function G(e,t,n){return wt(t)?so(e,t,n):O(t)?lo(e,t,t.items,n):Ln(t)?uo(e,t,n):Rn(t)?fo(e,t,n):mt(t)?vo(e,t.parameters,t.instanceType,n):Ht(t)?yo(e,t.if,t.then,t.else,n):qt(t)?bo(e,t.enum,n):_t(t)?xo(e,t.parameters,t.returnType,n):Vn(t)?So(e,t,n):j(t)?Co(e,t.allOf,n):F(t)?ko(e,t,n):Et(t)?Ao(e,t,n):Xn(t)?jo(e,t,n):$n(t)?Mo(e,t,n):A(t)?Ho(e,t.properties,n):Ni(t)?Go(e,Ai(t),Mi(t),n):nr(t)?Ko(e,t,n):tr(t)?qo(e,t,n):Ja(t)?Jo(e,t.pattern,n):z(t)?ds(e,t.items,n):Ri(t)?fs(e,t,n):R(t)?hs(e,t.anyOf,n):Pt(t)?gs(e,t,n):zi(t)?_s(e,t,n):H()}function vs(e,t){return ti([...e,k(t)])}function ys(e,t,n){return K(e)?T(vs(e,t),{},n):xs(e,t,n)}function bs(e,t,n,r,i){return ys(Zd(e,t,n),Yd(e,t,r),i)}function xs(e,t,n={}){return D(`Interface`,[e,t],n)}function Ss(e){return rt(e)&&S(e,`action`)&&v(e.action,`Interface`)}function Cs(e,t,n){return e.includes(n)?!0:Es([...e,n],t,t[n])}function ws(e,t,n){return Ts(e,t,jt(n))}function Ts(e,t,n){return x(n,(n,r)=>Es(e,t,n)?!0:Ts(e,t,r),()=>!1)}function Es(e,t,n){return bt(n)?Cs(e,t,n.$ref):O(n)?Es(e,t,n.items):mt(n)?Ts(e,t,[...n.parameters,n.instanceType]):_t(n)?Ts(e,t,[...n.parameters,n.returnType]):Ss(n)?ws(e,t,n.parameters[1]):j(n)?Ts(e,t,n.allOf):A(n)?ws(e,t,n.properties):R(n)?Ts(e,t,n.anyOf):z(n)?Ts(e,t,n.items):Ni(n)?Es(e,t,Mi(n)):!1}function Ds(e,t,n){return Es(e,t,n)}function Os(e,t){return t.reduce((t,n)=>Ds([n],e,e[n])?[...t,n]:t,[])}function ks(e){return Os(e,At(e))}function As(e,t,n){return n.includes(t)?n:t in e?Ns(e,e[t],[...n,t]):Xt()}function js(e,t,n){return Ms(e,jt(t),n)}function Ms(e,t,n){return t.reduce((t,n)=>Ns(e,n,t),n)}function Ns(e,t,n){return bt(t)?As(e,t.$ref,n):O(t)?Ns(e,t.items,n):mt(t)?Ms(e,[...t.parameters,t.instanceType],n):_t(t)?Ms(e,[...t.parameters,t.returnType],n):Ss(t)?js(e,t.parameters[1],n):j(t)?Ms(e,t.allOf,n):A(t)?js(e,t.properties,n):R(t)?Ms(e,t.anyOf,n):z(t)?Ms(e,t.items,n):Ni(t)?Ns(e,Mi(t),n):n}function Ps(e,t,n){return Ns(e,n,[t])}function Fs(e){return Ct()}function Is(e){return C(e).reduce((t,n)=>({...t,[n]:Rs(e[n])}),{})}function Ls(e){return e.reduce((e,t)=>[...e,Rs(t)],[])}function Rs(e){return bt(e)?Fs(e.$ref):O(e)?dt(Rs(e.items),ft(e)):mt(e)?pt(Ls(e.parameters),Rs(e.instanceType)):_t(e)?gt(Ls(e.parameters),Rs(e.returnType)):j(e)?Jt(Ls(e.allOf)):A(e)?k(Is(e.properties)):Ni(e)?Di(ji(e),Rs(Mi(e))):R(e)?L(Ls(e.anyOf)):z(e)?wr(Ls(e.items)):e}function zs(e,t){return t in e?Rs(e[t]):Nt()}function Bs(e){return zs(e.$defs,e.$ref)}function Vs(e,t,n){let r=Zd(e,Jd([],[]),t),i=Yd({},Jd([],[]),n);return ti([...r,k(i)])}function Hs(e,t){return C(e).filter(e=>t.includes(e)).reduce((t,n)=>{let r=e[n],i=Ss(r)?Vs(e,r.parameters[0],r.parameters[1]):r;return{...t,[n]:i}},{})}function Us(e,t,n){return Ft(Hs(e,Ps(e,t,n)),t)}function Ws(e,t){return t in e?bt(e[t])?Ws(e,e[t].$ref):e[t]:Tt()}function Gs(e,t){return Ws(e,t)}function Ks(e){return It(e)?Bs(e):Rt(e)?Nt():e}function qs(e,t,n){return G(e,Ks(t),Ks(n))}function Js(e,t){let n=[Pt(e)?H():qs({},e,t),Pt(e)?V({}):qs({},t,e)];return $a(n[0])&&$a(n[1])?`equal`:$a(n[0])&&Qa(n[1])?`left-inside`:Qa(n[0])&&$a(n[1])?`right-inside`:`disjoint`}function Ys(e,t){return t.filter(t=>Js(e,t)!==`right-inside`)}function Xs(e,t){return v(t.some(t=>{let n=Js(e,t);return v(n,`left-inside`)||v(n,`equal`)}),!1)}function Zs(e,t){let n=ii(e);return wt(n)?[n]:Xs(n,t)?[...Ys(n,t),n]:t}function Qs(e){return e.reduce((e,t)=>A(t)?[...e,t]:Et(t)?e:Zs(t,e),[])}function $s(e){return mi(Qs(e))}function ec(e,t){return T(ii(e),{},t)}function tc(e,t,n,r){return ec(q(e,t,n),r)}function nc(e,t=[]){return it(e)&&v(e.action,`Conditional`)?bt(e.parameters[0])?nc(e.parameters[2],nc(e.parameters[3],[...t,e.parameters[0].$ref])):nc(e.parameters[2],nc(e.parameters[3],t)):it(e)&&v(e.action,`Mapped`)&&it(e.parameters[1])&&v(e.parameters[1].action,`KeyOf`)&&bt(e.parameters[1].parameters[0])?[...t,e.parameters[1].parameters[0].$ref]:t}function rc(e,t){return e.reduce((e,n)=>[...e,t.includes(n.name)],[])}function ic(e,t,n=[]){return x(e,(e,r)=>x(t,(t,i)=>ic(r,i,[...n,[t,e]]),()=>n),()=>n)}function ac(e){return R(e)?[...e.anyOf]:[e]}function oc(e,t){return e.reduce((e,n)=>[...e,[...n,t]],[])}function sc(e,t){return t.reduce((t,n)=>[...t,...oc(e,n)],[])}function cc(e){return e.reduce((e,t)=>v(t[0],!0)?sc(e,ac(t[1])):sc(e,[t[1]]),[[]])}function lc(e,t,n){let r=ic(t,rc(e,nc(n)));return it(n)&&v(n.action,`Conditional`)||it(n)&&v(n.action,`Mapped`)?cc(r):[t]}function uc(){return[`(not-resolvable)`,Tt()]}function dc(){return[`(not-generic)`,Tt()]}function fc(e,t,n){return[e,xt(t,n)]}function pc(e,t,n){return t in e?mc(e,t,e[t],n):uc()}function mc(e,t,n,r){return St(n)?fc(t,n.parameters,n.expression):bt(n)?pc(e,n.$ref,r):dc()}function hc(e,t,n){return mc(e,`(anonymous)`,t,n)}function gc(e,t,n){if(Bt(t)||Oc(t)||$a(qs({},t,n)))return;let r={parameter:e,expect:n,actual:t};throw Error(`Argument for parameter ${e} does not satisfy constraint`,{cause:r})}function _c(e,t,n,i,a){let o=q(e,t,a);return gc(n,o,i),r(e,{[n]:o})}function vc(e,t,n,r,i){let a=q(e,t,n.extends),o=q(e,t,n.equals);return x(i,(i,o)=>yc(_c(e,t,n.name,a,i),t,r,o),()=>yc(_c(e,t,n.name,a,o),t,r,[]))}function yc(e,t,n,r){return x(n,(n,i)=>vc(e,t,n,i,r),()=>e)}function bc(e,t,n,r){return yc(e,t,n,r)}function xc(e){return pe(e.callstack.length,0)?e.callstack[e.callstack.length-1]:``}function Sc(e,t){return v(xc(e),t)}function Cc(e,t,n,r,i,a){let o=bc(e,t,r,a),s=q(o,Jd([...t.callstack,n.$ref],t.visited),i);return q(o,Jd([],[]),s)}function wc(e,t,n,r,i,a){return a.reduce((a,o)=>[...a,Cc(e,t,n,r,i,o)],[])}function Tc(e,t,n,r,i,a){let o=wc(e,t,n,r,i,lc(r,a,i));return v(o.length,1)?o[0]:ri(o)}function Ec(e,t,n,r){let i=Zd(e,t,r),a=hc(e,n,r),o=a[0],s=a[1];return St(s)?Sc(t,o)?Dc(yt(o),i):Tc(e,t,yt(o),s.parameters,s.expression,i):Dc(n,i)}function Dc(e,t){return w({"~kind":`Call`},{type:`call`,target:e,arguments:t},{})}function Oc(e){return E(e,`Call`)}function kc(e){return nt(e,[`~immutable`])}function Ac(e,t){return T(kc(e),{},t)}function jc(e,t,n,r){return Ac(q(e,t,n),r)}function Mc(e,t){return e(t)}function Nc(e,t){return g(t)?P(Mc(e,t)):P(t)}function Pc(e,t){return Ic(e,ni(t))}function Fc(e,t){return L(t.map(t=>Ic(e,t)))}function Ic(e,t){return F(t)?Nc(e,t.const):Ja(t)?Pc(e,t.pattern):R(t)?Fc(e,t.anyOf):t}function Lc(e,t={}){return D(`Capitalize`,[e],t)}function Rc(e,t={}){return D(`Lowercase`,[e],t)}function zc(e,t={}){return D(`Uncapitalize`,[e],t)}function Bc(e,t={}){return D(`Uppercase`,[e],t)}const Vc=e=>e[0].toUpperCase()+e.slice(1),Hc=e=>e.toLowerCase(),Uc=e=>e[0].toLowerCase()+e.slice(1),Wc=e=>e.toUpperCase();function Gc(e,t){return K([e])?T(Ic(Vc,e),{},t):Lc(e,t)}function Kc(e,t){return K([e])?T(Ic(Hc,e),{},t):Rc(e,t)}function qc(e,t){return K([e])?T(Ic(Uc,e),{},t):zc(e,t)}function Jc(e,t){return K([e])?T(Ic(Wc,e),{},t):Bc(e,t)}function Yc(e,t,n,r){return Gc(q(e,t,n),r)}function Xc(e,t,n,r){return Kc(q(e,t,n),r)}function Zc(e,t,n,r){return qc(q(e,t,n),r)}function Qc(e,t,n,r){return Jc(q(e,t,n),r)}function $c(e,t,n,r,i={}){return D(`Conditional`,[e,t,n,r],i)}function el(e,t,n,r,i,a){let o=qs(e,n,r);return Xa(o)?L([q(o.inferred,t,i),q(e,t,a)]):Za(o)?q(o.inferred,t,i):q(e,t,a)}function tl(e,t,n,r,i,a,o){return K([n,r])?T(el(e,t,n,r,i,a),{},o):$c(n,r,i,a,o)}function nl(e,t,n,r,i,a,o){return tl(e,t,q(e,t,n),q(e,t,r),i,a,o)}function rl(e,t={}){return D(`ConstructorParameters`,[e],t)}function il(e){let t=mt(e)?e.parameters:[];return wr(Xd({},Jd([],[]),t))}function al(e,t){return K([e])?T(il(e),{},t):rl(e,t)}function ol(e,t,n,r){return al(q(e,t,n),r)}function sl(e,t,n={}){return D(`Exclude`,[e,t],n)}function cl(e,t,n){return K([e,t])?T(Qr(e,t),{},n):sl(e,t,n)}function ll(e,t,n,r,i){return cl(q(e,t,n),q(e,t,r),i)}function ul(e,t,n={}){return D(`Extract`,[e,t],n)}function dl(e,t){return $a(qs({},e,t))?[e]:[]}function fl(e,t){return e.reduce((e,n)=>[...e,...dl(n,t)],[])}function pl(e,t){let n=ii(e);return ri(fl(R(n)?n.anyOf:[n],t))}function ml(e,t,n){return K([e,t])?T(pl(e,t),{},n):ul(e,t,n)}function hl(e,t,n,r,i){return ml(q(e,t,n),q(e,t,r),i)}function gl(e,t,n={}){return D(`Index`,[e,t],n)}function _l(e,t){return El(Gs(e,t))}function vl(e,t,n){return El($r(e,t,n))}function yl(e,t){let n=C(e).filter(e=>!S(t,e)),i=C(t).filter(t=>!S(e,t)),a=C(e).filter(e=>S(t,e)),o=n.reduce((t,n)=>({...t,[n]:e[n]}),{}),s=i.reduce((e,n)=>({...e,[n]:t[n]}),{}),c=a.reduce((n,r)=>({...n,[r]:ti([e[r],t[r]])}),{});return r(r(o,s),c)}function bl(e){return e.reduce((e,t)=>yl(e,El(t)),{})}function xl(e){return e}function Sl(e){return El(Fr(wr(e)))}function Cl(e,t){return C(e).filter(e=>e in t).reduce((n,r)=>({...n,[r]:ri([e[r],t[r]])}),{})}function wl(e,t){return x(e,(e,n)=>wl(n,Cl(t,El(e))),()=>t)}function Tl(e){return x(e,(e,t)=>wl(t,El(e)),()=>Xt())}function El(e){return It(e)?_l(e.$defs,e.$ref):Ht(e)?vl(e.if,e.then,e.else):j(e)?bl(e.allOf):R(e)?Tl(e.anyOf):z(e)?Sl(e.items):A(e)?xl(e.properties):{}}function Dl(e){return k(El(e))}const Ol=RegExp(`^(?:0|[1-9][0-9]*)$`);function kl(e){let t=`${e}`;return Ol.test(t)?parseInt(t):e}function Al(e){return P(kl(e))}function jl(e){return e.map(e=>Ml(e))}function Ml(e){return j(e)?Jt(jl(e.allOf)):R(e)?L(jl(e.anyOf)):F(e)?Al(e.const):e}function Nl(e,t){return $a(qs({},Ml(t),Qn()))?e:F(t)&&v(t.const,`length`)?Qn():Tt()}function Pl(e,t){return Vl(Gs(e,t))}function Fl(e,t,n){return Vl($r(e,t,n))}function Il(e){return Vl(ei(e))}function Ll(e){return Vl(ti(e))}function Rl(e){return[`${e}`]}function zl(e){return Vl(ni(e))}function Bl(e){return e.reduce((e,t)=>[...e,...Vl(t)],[])}function Vl(e){return It(e)?Pl(e.$defs,e.$ref):Ht(e)?Fl(e.if,e.then,e.else):qt(e)?Il(e.enum):j(e)?Ll(e.allOf):F(e)?Rl(e.const):Ja(e)?zl(e.pattern):R(e)?Bl(e.anyOf):[]}function Hl(e){return Vl(e)}function Ul(e,t){return t.map(t=>Wl(e,t))}function Wl(e,t){return O(t)?dt(Wl(e,t.items)):mt(t)?pt(Ul(e,t.parameters),Wl(e,t.instanceType)):_t(t)?gt(Ul(e,t.parameters),Wl(e,t.returnType)):z(t)?wr(Ul(e,t.items)):R(t)?L(Ul(e,t.anyOf)):j(t)?Jt(Ul(e,t.allOf)):Ii(t)?k(e):t}function Gl(e,t){return Wl(e,t)}function Kl(e,t){return Gl(e,t in e?e[t]:Tt())}function ql(e,t){return t.reduce((t,n)=>[...t,Kl(e,n)],[])}function Jl(e,t){return ri(ql(e,Hl(t)))}const Yl=new RegExp(Ci);function Xl(e){return e.filter(e=>Yl.test(e))}function Zl(e){return ri(ql(e,Xl(At(e))))}function Ql(e,t){return $n(t)?Zl(e):Jl(e,t)}function $l(e){return P(kl(e))}function eu(e){return e.map(e=>tu(e))}function tu(e){return j(e)?Jt(eu(e.allOf)):R(e)?L(eu(e.anyOf)):F(e)?$l(e.const):e}function nu(e,t){return e.reduceRight((e,n,r)=>$a(qs({},P(r),t))?[n,...e]:e,[])}function ru(e,t){return ai(nu(e,tu(t)))}function iu(e){return ai(e)}function au(e,t){return F(t)&&v(t.const,`length`)?P(e.length):$n(t)||Vn(t)?iu(e):ru(e,t)}function ou(e,t){return O(e)?Nl(e.items,t):A(e)?Ql(e.properties,t):z(e)?au(e.items,t):Tt()}function su(e){return It(e)||Ht(e)||j(e)||R(e)?Dl(e):e}function cu(e,t,n){return K([e,t])?T(ou(su(e),t),{},n):gl(e,t,n)}function lu(e,t,n,r,i){return cu(q(e,t,n),q(e,t,r),i)}function uu(e,t={}){return D(`InstanceType`,[e],t)}function du(e){return mt(e)?e.instanceType:Tt()}function fu(e,t){return K([e])?T(du(e),{},t):uu(e,t)}function pu(e,t,n,r={}){return fu(q(e,t,n),r)}function mu(e,t={}){return D(`KeyOf`,[e],t)}function hu(){return L([Qn(),I(),er()])}function gu(e){return Qn()}function _u(e){return e.reduce((e,t)=>Wn(t)?[...e,P(kl(t))]:Xt(),[])}function vu(e){return ai(_u(C(e)))}function yu(e){return ji(e)}function bu(e){return ai(e.map((e,t)=>P(t)))}function xu(e){return wt(e)?hu():O(e)?gu(e.items):A(e)?vu(e.properties):Ni(e)?yu(e):z(e)?bu(e.items):Tt()}function Su(e){return It(e)||Ht(e)||j(e)||R(e)?Dl(e):e}function Cu(e,t){return K([e])?T(xu(Su(e)),{},t):mu(e,t)}function wu(e,t,n,r){return Cu(q(e,t,n),r)}function Tu(e,t,n,r,i={}){return D(`Mapped`,[e,t,n,r],i)}function Eu(e){return Au(ni(e))}function Du(e){return e.reduce((e,t)=>[...e,...Au(t)],[])}function Ou(e){return Au(ei(e))}function ku(e){return m(e)?[P(`${e}`)]:[P(e)]}function Au(e){return qt(e)?Ou(e.enum):F(e)?ku(e.const):Ja(e)?Eu(e.pattern):R(e)?Du(e.anyOf):[e]}function ju(e){return Au(e)}function Mu(e){return Ja(e)?ni(e.pattern):e}function Nu(e,t,n,i,a,o){let s=r(e,{[n.name]:i}),c=Mu(q(s,t,a)),l=q(s,t,o);return qn(c)||Jn(c)?{[c.const]:l}:{}}function Pu(e,t,n,r,i,a){return r.reduce((r,o)=>[...r,Nu(e,t,n,o,i,a)],[])}function Fu(e){return e.reduce((e,t)=>[...e,k(t)],[])}function Iu(e,t,n,r,i,a){return ti(Fu(Pu(e,t,n,ju(r),i,a)))}function Lu(e,t,n,r,i,a,o){return K([r])?T(Iu(e,t,n,r,i,a),{},o):Tu(n,r,i,a,o)}function Ru(e,t,n,r,i,a,o){return Lu(e,t,n,q(e,t,r),i,a,o)}function zu(e,t,n){let i=r(e,t);return C(t).filter(e=>n.includes(e)).reduce((e,n)=>({...e,[n]:Us(i,n,t[n])}),{})}function Bu(e,t,n){let i=r(e,t);return C(t).filter(e=>!n.includes(e)).reduce((e,n)=>({...e,[n]:q(i,Jd([],[]),t[n])}),{})}function Vu(e,t,n){let r=ks(t),i=zu(e,t,r),a=Bu(e,t,r);return T({...i,...a},{},n)}function Hu(e,t,n,r){return Vu(e,n,r)}function Uu(e,t={}){return D(`NonNullable`,[e],t)}function Wu(e){return cl(e,L([Yn(),Li()]),{})}function Gu(e,t){return K([e])?T(Wu(e),{},t):Uu(e,t)}function Ku(e,t,n,r){return Gu(q(e,t,n),r)}function qu(e,t,n={}){return D(`Omit`,[e,t],n)}function Ju(e){let t=Dl(e);return A(t)?t.properties:Xt()}function Yu(e,t){return C(e).reduce((n,r)=>t.includes(r)?n:{...n,[r]:e[r]},{})}function Xu(e,t){return k(Yu(Ju(e),Hl(t)))}function Zu(e,t,n){return K([e,t])?T(Xu(e,t),{},n):qu(e,t,n)}function Qu(e,t,n,r,i){return Zu(q(e,t,n),q(e,t,r),i)}function $u(e,t={}){return D(`Parameters`,[e],t)}function ed(e){let t=_t(e)?e.parameters:[];return wr(Xd({},Jd([],[]),t))}function td(e,t){return K([e])?T(ed(e),{},t):$u(e,t)}function nd(e,t,n,r){return td(q(e,t,n),r)}function rd(e,t={}){return D(`Partial`,[e],t)}function id(e,t){let n=ld(Gs(e,t));return Ft(r(e,{[t]:n}),t)}function ad(e,t,n){return ld($r(e,t,n))}function od(e){return ld(ti(e))}function sd(e){return L(e.map(e=>ld(e)))}function cd(e){return k(C(e).reduce((t,n)=>({...t,[n]:Dt(e[n])}),{}))}function ld(e){return It(e)?id(e.$defs,e.$ref):Ht(e)?ad(e.if,e.then,e.else):j(e)?od(e.allOf):R(e)?sd(e.anyOf):A(e)?cd(e.properties):k({})}function ud(e,t){return K([e])?T(ld(e),{},t):rd(e,t)}function dd(e,t,n,r){return ud(q(e,t,n),r)}function fd(e,t,n={}){return D(`Pick`,[e,t],n)}function pd(e,t){return C(e).reduce((n,i)=>t.includes(i)?r(n,{[i]:e[i]}):n,{})}function md(e,t){return k(pd(Ju(e),Hl(t)))}function hd(e,t,n){return K([e,t])?T(md(e,t),{},n):fd(e,t,n)}function gd(e,t,n,r,i){return hd(q(e,t,n),q(e,t,r),i)}function _d(e,t={}){return D(`ReadonlyObject`,[e],t)}function vd(e){return of(dt(e))}function yd(e,t){let n=Td(Gs(e,t));return Ft(r(e,{[t]:n}),t)}function bd(e,t,n){return Td($r(e,t,n))}function xd(e){return Td(ti(e))}function Sd(e){return k(C(e).reduce((t,n)=>({...t,[n]:An(e[n])}),{}))}function Cd(e){return of(wr(e))}function wd(e){return L(e.map(e=>Td(e)))}function Td(e){return O(e)?vd(e.items):It(e)?yd(e.$defs,e.$ref):Ht(e)?bd(e.if,e.then,e.else):j(e)?xd(e.allOf):A(e)?Sd(e.properties):z(e)?Cd(e.items):R(e)?wd(e.anyOf):e}function Ed(e,t){return K([e])?T(Td(e),{},t):_d(e)}function Dd(e,t,n,r){return Ed(q(e,t,n),r)}function Od(e,t,n,r){return t.visited.includes(r)?n:r in e?q(e,Jd(t.callstack,[...t.visited,r]),e[r]):n}function kd(e,t){let n=Pd(Gs(e,t));return Ft(r(e,{[t]:n}),t)}function Ad(e,t,n){return Pd($r(e,t,n))}function jd(e){return Pd(ti(e))}function Md(e){return L(e.map(e=>Pd(e)))}function Nd(e){return k(C(e).reduce((t,n)=>({...t,[n]:Nr(e[n])}),{}))}function Pd(e){return It(e)?kd(e.$defs,e.$ref):Ht(e)?Ad(e.if,e.then,e.else):j(e)?jd(e.allOf):R(e)?Md(e.anyOf):A(e)?Nd(e.properties):k({})}function Fd(e,t={}){return D(`Required`,[e],t)}function Id(e,t){return K([e])?T(Pd(e),{},t):Fd(e,t)}function Ld(e,t,n,r){return Id(q(e,t,n),r)}function Rd(e,t={}){return D(`ReturnType`,[e],t)}function zd(e){return _t(e)?e.returnType:Tt()}function Bd(e,t){return K([e])?T(zd(e),{},t):Rd(e,t)}function Vd(e,t,n,r={}){return Bd(q(e,t,n),r)}function Hd(e,t){return D(`With`,[e,t],{})}function Ud(e,t){return Wd(e,t)}function Wd(e,t){return K([e])?T(e,{},t):Hd(e,t)}function Gd(e,t,n,r){return Wd(q(e,t,n),r)}function Kd(e){return Fi(e)?z(e.items)?qd(e.items.items):Bt(e.items)||bt(e.items)?[e]:[Tt()]:[e]}function qd(e){return e.reduce((e,t)=>[...e,...Kd(t)],[])}function Jd(e,t){return{callstack:e,visited:t}}function K(e){return x(e,(e,t)=>bt(e)?!1:K(t),()=>!0)}function Yd(e,t,n){return C(n).reduce((r,i)=>({...r,[i]:q(e,t,n[i])}),{})}function Xd(e,t,n){return qd(Zd(e,t,n))}function Zd(e,t,n){return n.map(n=>q(e,t,n))}function Qd(e,t){let n=Ot(e)?lt(t,{}):t,r=jn(e)?ot(n,{}):n;return kn(e)?rf(r,{}):r}function $d(e,t,n,r,i){return v(n,`AddImmutable`)?af(e,t,r[0],i):v(n,`RemoveImmutable`)?jc(e,t,r[0],i):v(n,`AddReadonly`)?st(e,t,r[0],i):v(n,`RemoveReadonly`)?Or(e,t,r[0],i):v(n,`AddOptional`)?ut(e,t,r[0],i):v(n,`RemoveOptional`)?Mr(e,t,r[0],i):v(n,`Capitalize`)?Yc(e,t,r[0],i):v(n,`Conditional`)?nl(e,t,r[0],r[1],r[2],r[3],i):v(n,`ConstructorParameters`)?ol(e,t,r[0],i):v(n,`Evaluate`)?tc(e,t,r[0],i):v(n,`Exclude`)?ll(e,t,r[0],r[1],i):v(n,`Extract`)?hl(e,t,r[0],r[1],i):v(n,`Index`)?lu(e,t,r[0],r[1],i):v(n,`InstanceType`)?pu(e,t,r[0],i):v(n,`Interface`)?bs(e,t,r[0],r[1],i):v(n,`KeyOf`)?wu(e,t,r[0],i):v(n,`Lowercase`)?Xc(e,t,r[0],i):v(n,`Mapped`)?Ru(e,t,r[0],r[1],r[2],r[3],i):v(n,`Module`)?Hu(e,t,r[0],i):v(n,`NonNullable`)?Ku(e,t,r[0],i):v(n,`Pick`)?gd(e,t,r[0],r[1],i):v(n,`Parameters`)?nd(e,t,r[0],i):v(n,`Partial`)?dd(e,t,r[0],i):v(n,`Omit`)?Qu(e,t,r[0],r[1],i):v(n,`ReadonlyObject`)?Dd(e,t,r[0],i):v(n,`Record`)?Si(e,t,r[0],r[1],i):v(n,`Required`)?Ld(e,t,r[0],i):v(n,`ReturnType`)?Vd(e,t,r[0],i):v(n,`TemplateLiteral`)?Ga(e,t,r[0],i):v(n,`Uncapitalize`)?Zc(e,t,r[0],i):v(n,`Uppercase`)?Qc(e,t,r[0],i):v(n,`With`)?Gd(e,t,r[0],r[1]):D(n,r,i)}function ef(e,t,n){return Qd(n,bt(n)?Od(e,t,n,n.$ref):O(n)?dt(q(e,t,n.items),ft(n)):Oc(n)?Ec(e,t,n.target,n.arguments):mt(n)?pt(Zd(e,t,n.parameters),q(e,t,n.instanceType),ht(n)):_t(n)?gt(Zd(e,t,n.parameters),q(e,t,n.returnType),vt(n)):Ht(n)?Vt(q(e,t,n.if),q(e,t,n.then),q(e,t,n.else),Ut(n)):j(n)?Jt(Zd(e,t,n.allOf),Yt(n)):A(n)?k(Yd(e,t,n.properties),Mt(n)):Ni(n)?Oi(Ai(n),q(e,t,Mi(n))):Fi(n)?Pi(q(e,t,n.items)):z(n)?wr(Xd(e,t,n.items),Tr(n)):R(n)?L(Zd(e,t,n.anyOf),rr(n)):n)}function q(e,t,n){return it(n)?$d(e,t,n.action,n.parameters,n.options):ef(e,t,n)}function tf(e,t){return q(e,Jd([],[]),t)}function nf(e){return T(e,{"~immutable":!0},{})}function rf(e,t){return T(nf(e),{},t)}function af(e,t,n,r){return rf(q(e,t,n),r)}function of(e,t={}){return rf(e,t)}function sf(e,t={}){return ec(e,t)}function cf(e,t){let n=Js(e,t);return v(n,`right-inside`)?1:+!!v(n,`disjoint`)}function lf(e,t,n=[]){return x(t,(r,i)=>v(cf(e,r),1)?lf(e,i,[...n,r]):[...n,e,...t],()=>[...n,e])}function uf(e,t=[]){return x(e,(e,n)=>uf(n,lf(e,t)),()=>t)}function df(e){return uf(e)}function ff(e){return S(e,`~refine`)&&d(e[`~refine`])&&y(e[`~refine`],0,e=>h(e)&&S(e,`check`)&&S(e,`error`)&&ce(e.check)&&ce(e.error))}function pf(e){return h(e)&&!d(e)}function mf(e){return p(e)}function J(e){return pf(e)||mf(e)}function hf(e){return S(e,`additionalItems`)&&J(e.additionalItems)}function gf(e){return S(e,`additionalProperties`)&&J(e.additionalProperties)}function _f(e){return S(e,`allOf`)&&d(e.allOf)&&e.allOf.every(e=>J(e))}function vf(e){return S(e,`$anchor`)&&g(e.$anchor)}function yf(e){return S(e,`anyOf`)&&d(e.anyOf)&&e.anyOf.every(e=>J(e))}function bf(e){return S(e,`const`)}function xf(e){return S(e,`contains`)&&J(e.contains)}function Sf(e){return S(e,`default`)}function Cf(e){return S(e,`dependencies`)&&h(e.dependencies)&&Object.values(e.dependencies).every(e=>J(e)||d(e)&&e.every(e=>g(e)))}function wf(e){return S(e,`dependentRequired`)&&h(e.dependentRequired)&&Object.values(e.dependentRequired).every(e=>d(e)&&e.every(e=>g(e)))}function Tf(e){return S(e,`dependentSchemas`)&&h(e.dependentSchemas)&&Object.values(e.dependentSchemas).every(e=>J(e))}function Ef(e){return S(e,`$dynamicAnchor`)&&g(e.$dynamicAnchor)}function Df(e){return S(e,`$dynamicRef`)&&g(e.$dynamicRef)}function Of(e){return S(e,`else`)&&J(e.else)}function kf(e){return S(e,`enum`)&&d(e.enum)}function Af(e){return S(e,`exclusiveMaximum`)&&(m(e.exclusiveMaximum)||f(e.exclusiveMaximum))}function jf(e){return S(e,`exclusiveMinimum`)&&(m(e.exclusiveMinimum)||f(e.exclusiveMinimum))}function Mf(e){return S(e,`format`)&&g(e.format)}function Nf(e){return S(e,`$id`)&&g(e.$id)}function Pf(e){return S(e,`if`)&&J(e.if)}function Ff(e){return S(e,`items`)&&(J(e.items)||d(e.items)&&e.items.every(e=>J(e)))}function If(e){return Ff(e)&&d(e.items)}function Lf(e){return S(e,`maximum`)&&(m(e.maximum)||f(e.maximum))}function Rf(e){return S(e,`maxContains`)&&m(e.maxContains)}function zf(e){return S(e,`maxItems`)&&m(e.maxItems)}function Bf(e){return S(e,`maxLength`)&&m(e.maxLength)}function Vf(e){return S(e,`maxProperties`)&&m(e.maxProperties)}function Hf(e){return S(e,`minimum`)&&(m(e.minimum)||f(e.minimum))}function Uf(e){return S(e,`minContains`)&&m(e.minContains)}function Wf(e){return S(e,`minItems`)&&m(e.minItems)}function Gf(e){return S(e,`minLength`)&&m(e.minLength)}function Kf(e){return S(e,`minProperties`)&&m(e.minProperties)}function qf(e){return S(e,`multipleOf`)&&(m(e.multipleOf)||f(e.multipleOf))}function Jf(e){return S(e,`not`)&&J(e.not)}function Yf(e){return S(e,`oneOf`)&&d(e.oneOf)&&e.oneOf.every(e=>J(e))}function Xf(e){return S(e,`pattern`)&&(g(e.pattern)||e.pattern instanceof RegExp)}function Zf(e){return S(e,`patternProperties`)&&h(e.patternProperties)&&Object.values(e.patternProperties).every(e=>J(e))}function Qf(e){return S(e,`prefixItems`)&&d(e.prefixItems)&&e.prefixItems.every(e=>J(e))}function $f(e){return S(e,`properties`)&&h(e.properties)&&Object.values(e.properties).every(e=>J(e))}function ep(e){return S(e,`propertyNames`)&&(h(e.propertyNames)||J(e.propertyNames))}function tp(e){return S(e,`$recursiveAnchor`)&&p(e.$recursiveAnchor)}function np(e){return tp(e)&&v(e.$recursiveAnchor,!0)}function rp(e){return S(e,`$recursiveRef`)&&g(e.$recursiveRef)}function ip(e){return S(e,`$ref`)&&g(e.$ref)}function ap(e){return S(e,`required`)&&d(e.required)&&e.required.every(e=>g(e))}function op(e){return S(e,`then`)&&J(e.then)}function sp(e){return S(e,`type`)&&(g(e.type)||d(e.type)&&e.type.every(e=>g(e)))}function cp(e){return S(e,`uniqueItems`)&&p(e.uniqueItems)}function lp(e){return S(e,`unevaluatedItems`)&&J(e.unevaluatedItems)}function up(e){return S(e,`unevaluatedProperties`)&&J(e.unevaluatedProperties)}var dp=class{constructor(){let e=new Set,t=new Set;this.stack=[{indices:e,keys:t}]}Push(){let e=new Set,t=new Set;return this.stack.push({indices:e,keys:t}),!0}Pop(){return this.stack.pop(),!0}AddIndex(e){return this.GetIndices().add(e),!0}AddKey(e){return this.GetKeys().add(e),!0}GetIndices(){return this.stack[this.stack.length-1].indices}GetKeys(){return this.stack[this.stack.length-1].keys}Merge(e){for(let t of e)t.GetIndices().forEach(e=>this.GetIndices().add(e)),t.GetKeys().forEach(e=>this.GetKeys().add(e));return!0}},fp=class extends dp{constructor(e){super(),this.callback=e}AddError(e){return this.callback(e),!1}},pp=class extends fp{constructor(){super(e=>this.errors.push(e)),this.errors=[]}AddError(e){return this.errors.push(e),!1}GetErrors(){return this.errors}};function mp(e,t,n,r){return y(n[`~refine`],0,(e,t)=>e.check(r))}function hp(e,t,n,r,i,a){return b(i[`~refine`],0,(e,i)=>e.check(a)||t.AddError({keyword:`~refine`,schemaPath:n,instancePath:r,params:{index:i,message:e.error(a)}}))}function gp(e){return Ff(e)&&d(e.items)}function _p(e,t,n,r){return gp(n)?r.every((r,i)=>me(i,n.items.length)||Cg(e,t,n.additionalItems,r)&&t.AddIndex(i)):!0}function vp(e,t,n,r,i,a){return gp(i)?a.every((a,o)=>{let s=`${n}/additionalItems`,c=`${r}/${o}`;return me(o,i.items.length)||wg(e,t,s,c,i.additionalItems,a)&&t.AddIndex(o)}):!0}function yp(e){return`^${e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}$`}function bp(e){let t=[];return Zf(e)&&t.push(...C(e.patternProperties)),$f(e)&&t.push(...C(e.properties).map(yp)),v(t.length,0)?`(?!)`:`(${t.join(`|`)})`}function xp(e,t,n,r){let i=new RegExp(bp(n));return y(C(r),0,(a,o)=>i.test(a)||Cg(e,t,n.additionalProperties,r[a])&&t.AddKey(a))}function Sp(e,t,n,r,i,a){let o=new RegExp(bp(i)),s=[];return b(C(a),0,(c,l)=>{let u=`${n}/additionalProperties`,ee=`${r}/${c}`,te=new pp,ne=o.test(c)||wg(e,te,u,ee,i.additionalProperties,a[c])&&t.AddKey(c);return ne||s.push(c),ne})||t.AddError({keyword:`additionalProperties`,schemaPath:n,instancePath:r,params:{additionalProperties:s}})}function Cp(e,t,n,r){let i=n.allOf.reduce((t,n)=>{let i=new dp;return X(e,i,n,r)?[...t,i]:t},[]);return v(i.length,n.allOf.length)&&t.Merge(i)}function wp(e,t,n,r,i,a){let o=[],s=i.allOf.reduce((t,i,s)=>{let c=`${n}/allOf/${s}`,l=new pp,u=Z(e,l,c,r,i,a);return u||o.push(l),u?[...t,l]:t},[]),c=v(s.length,i.allOf.length)&&t.Merge(s);return c||o.forEach(e=>e.GetErrors().forEach(e=>t.AddError(e))),c}function Tp(e,t,n,r){let i=n.anyOf.reduce((t,n)=>{let i=new dp;return X(e,i,n,r)?[...t,i]:t},[]);return pe(i.length,0)&&t.Merge(i)}function Ep(e,t,n,r,i,a){let o=[],s=i.anyOf.reduce((t,i,s)=>{let c=new pp,l=Z(e,c,`${n}/anyOf/${s}`,r,i,a);return l||o.push(c),l?[...t,c]:t},[]),c=pe(s.length,0)&&t.Merge(s);return c||o.forEach(e=>e.GetErrors().forEach(e=>t.AddError(e))),c||t.AddError({keyword:`anyOf`,schemaPath:n,instancePath:r,params:{}})}function Dp(e,t,n,r){return n}function Op(e,t,n,r,i,a){return Dp(e,t,i,a)||t.AddError({keyword:`boolean`,schemaPath:n,instancePath:r,params:{}})}function kp(e,t,n,r){return ye(n.const)?v(r,n.const):Ae(r,n.const)}function Ap(e,t,n,r,i,a){return kp(e,t,i,a)||t.AddError({keyword:`const`,schemaPath:n,instancePath:r,params:{allowedValue:i.const}})}function jp(e){return!(Uf(e)&&v(e.minContains,0))}function Mp(e,t,n,r){return jp(n)?!v(r.length,0)&&r.some(r=>X(e,t,n.contains,r)):!0}function Np(e,t,n,r,i,a){return Mp(e,t,i,a)||t.AddError({keyword:`contains`,schemaPath:n,instancePath:r,params:{minContains:1}})}function Pp(e,t,n,r){let i=v(C(r).length,0),a=y(Te(n.dependencies),0,([n,i])=>!S(r,n)||(d(i)?i.every(e=>S(r,e)):X(e,t,i,r)));return i||a}function Fp(e,t,n,r,i,a){let o=v(C(a).length,0),s=b(Te(i.dependencies),0,([i,o])=>{let s=`${n}/dependencies/${i}`;return!S(a,i)||(d(o)?o.every(e=>S(a,e)||t.AddError({keyword:`dependencies`,schemaPath:n,instancePath:r,params:{property:i,dependencies:o}})):Z(e,t,s,r,o,a))});return o||s}function Ip(e,t,n,r){let i=v(C(r).length,0),a=y(Te(n.dependentRequired),0,([e,t])=>!S(r,e)||t.every(e=>S(r,e)));return i||a}function Lp(e,t,n,r,i,a){let o=v(C(a).length,0),s=b(Te(i.dependentRequired),0,([e,i])=>!S(a,e)||b(i,0,o=>S(a,o)||t.AddError({keyword:`dependentRequired`,schemaPath:n,instancePath:r,params:{property:e,dependencies:i}})));return o||s}function Rp(e,t,n,r){let i=v(C(r).length,0),a=y(Te(n.dependentSchemas),0,([n,i])=>!S(r,n)||X(e,t,i,r));return i||a}function zp(e,t,n,r,i,a){let o=v(C(a).length,0),s=b(Te(i.dependentSchemas),0,([i,o])=>{let s=`${n}/dependentSchemas/${i}`;return!S(a,i)||Z(e,t,s,r,o,a)});return o||s}function Bp(e,t,n,r){let i=e.DynamicRef(n)??!1;return J(i)&&X(e,t,i,r)}function Vp(e,t,n,r,i,a){let o=e.DynamicRef(i)??!1;return J(o)&&Z(e,t,`#`,r,o,a)}function Hp(e,t,n,r){return n.enum.some(e=>ye(e)?v(r,e):Ae(r,e))}function Up(e,t,n,r,i,a){return Hp(e,t,i,a)||t.AddError({keyword:`enum`,schemaPath:n,instancePath:r,params:{allowedValues:i.enum}})}function Wp(e,t,n,r){return me(r,n.exclusiveMaximum)}function Gp(e,t,n,r,i,a){return Wp(e,t,i,a)||t.AddError({keyword:`exclusiveMaximum`,schemaPath:n,instancePath:r,params:{comparison:`<`,limit:i.exclusiveMaximum}})}function Kp(e,t,n,r){return pe(r,n.exclusiveMinimum)}function qp(e,t,n,r,i,a){return Kp(e,t,i,a)||t.AddError({keyword:`exclusiveMinimum`,schemaPath:n,instancePath:r,params:{comparison:`>`,limit:i.exclusiveMinimum}})}const Jp=[0,31,28,31,30,31,30,31,31,30,31,30,31],Yp=/^(\d\d\d\d)-(\d\d)-(\d\d)$/;function Xp(e){return e%4==0&&(e%100!=0||e%400==0)}function Zp(e){let t=Yp.exec(e);if(!t)return!1;let n=+t[1],r=+t[2],i=+t[3];return r>=1&&r<=12&&i>=1&&i<=(r===2&&Xp(n)?29:Jp[r])}const Qp=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(?:Z|([+-])(\d\d):(\d\d))?$/i;function $p(e,t=!0){let n=Qp.exec(e);if(!n)return!1;let r=+n[1],i=+n[2],a=+n[3],o=n[4]===`-`?-1:1,s=+(n[5]||0),c=+(n[6]||0);if(s>23||c>59||t&&!n[4]&&e.toLowerCase().indexOf(`z`)===-1)return!1;if(r<=23&&i<=59&&a<60)return!0;let l=i-c*o,u=r-s*o-+(l<0);return(u===23||u===-1)&&(l===59||l===-1)&&a<61}function em(e,t=!0){let n=e.split(/T/i);return n.length===2&&Zp(n[0])&&$p(n[1],t)}const tm=/^P((\d+Y(\d+M(\d+D)?)?|\d+M(\d+D)?|\d+D)(T(\d+H(\d+M(\d+S)?)?|\d+M(\d+S)?|\d+S))?|T(\d+H(\d+M(\d+S)?)?|\d+M(\d+S)?|\d+S)|\d+W)$/;function nm(e){return tm.test(e)}const rm=/^(?!.*\.\.)[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i;function im(e){return rm.test(e)}function am(e,t,n){e=n?Math.floor(e/700):e>>1,e+=Math.floor(e/t);let r=0;for(;e>455;)e=Math.floor(e/35),r+=36;return r+Math.floor(36*e/(e+38))}function om(e){let t=[],n=128,r=0,i=72,a=e.lastIndexOf(`-`);if(a>0)for(let n=0;n=128)throw Error(`Invalid punycode: non-basic before delimiter`);t.push(r)}let o=a<0?0:a+1;for(;o=e.length)throw Error(`Invalid punycode: unexpected end of input`);let t=e.charCodeAt(o++),n;if(t>=97&&t<=122)n=t-97;else if(t>=48&&t<=57)n=t-48+26;else if(t>=65&&t<=90)n=t-65;else throw Error(`Invalid punycode: bad digit character`);r+=n*s;let a=c<=i?1:c>=i+26?26:c-i;if(n=1632&&e<=1641}function ym(e){return e>=1776&&e<=1785}function bm(e){return fm.has(e)}function xm(e){if(e.length===0)return!1;let t=[...e].map(e=>e.codePointAt(0)),n=t.length;if(t[0]===45||t[n-1]===45||n>=4&&t[2]===45&&t[3]===45||um(t[0]))return!1;let r=!1,i=!1,a=!1;for(let e=0;e=4&&e.charCodeAt(2)===45&&e.charCodeAt(3)===45)return!1;for(let t=0;t=97&&n<=122||n>=65&&n<=90||n>=48&&n<=57||n===45))return!1}return!0}function Cm(e){return e.toLowerCase().startsWith(`xn--`)}function wm(e){try{let t=e.slice(4).toLowerCase();if(t.lastIndexOf(`-`)===0)return!1;let n=om(t);return n?xm(n):!1}catch{return!1}}function Tm(e){return e.length===0||e.length>63?!1:Cm(e)?wm(e):xm(e)}function Em(e){return e.length===0||e.length>63?!1:Cm(e)?wm(e):Sm(e)}function Dm(e){if(e.length===0||e.length>253||e.charCodeAt(e.length-1)===46)return!1;for(let t of e.split(`.`))if(!Em(t))return!1;return!0}const Om=/^(?!.*\.\.)[\p{L}\p{N}!#$%&'*+/=?^_`{|}~-]+(?:\.[\p{L}\p{N}!#$%&'*+/=?^_`{|}~-]+)*@[\p{L}\p{N}](?:[\p{L}\p{N}-]{0,61}[\p{L}\p{N}])?(?:\.[\p{L}\p{N}](?:[\p{L}\p{N}-]{0,61}[\p{L}\p{N}])?)*$/iu;function km(e){return Om.test(e)}function Am(e){if(e.length===0||e.includes(` `))return!1;let t=e.normalize(`NFC`).replace(/[\u002E\u3002\uFF0E\uFF61]/g,`.`);if(t.length>253)return!1;for(let e of t.split(`.`))if(!Tm(e))return!1;return!0}function jm(e,t,n){let r=0,i=0,a=0,o=0;for(let s=t;s255||o===48&&a>1)return!1;r++,i=0,a=0,o=0}else if(t>=48&&t<=57)a===0&&(o=t),i=i*10+(t-48),a++;else return!1}return r===3&&a>0&&i<=255&&!(o===48&&a>1)}function Mm(e){return jm(e,0,e.length)}function Nm(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Pm(e){let t=e.length;if(t===0)return!1;let n=0,r=!1,i=0;if(e.charCodeAt(0)===58&&e.charCodeAt(1)===58){if(t===2)return!0;r=!0,i=2}for(;i4)return!1;if(n++,i===t)break;if(s!==58)return!1;if(i++,e.charCodeAt(i)===58){if(r||e.charCodeAt(i+1)===58)return!1;if(r=!0,i++,i===t)break}}return r?n<=7:n===8}function Fm(e){try{return new URL(e,`http://example.com`),!0}catch{return!1}}function Im(e){if(e.includes(` `)||e.includes(`\\`)||/[\x00-\x1F\x7F]/.test(e)||/%(?![0-9a-fA-F]{2})/.test(e))return!1;if(e===``)return!0;let t=e.indexOf(`:`);return t>0&&/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(e.substring(0,t))?Fm(e):e.match(/^([a-zA-Z][a-zA-Z0-9+\-.]*)(\/\/)/)&&t===-1?!1:Fm(e)}function Lm(e){try{return new URL(e),!0}catch{return!1}}const Rm=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i;function zm(e){return Rm.test(e)}const Bm=/^(?:\/(?:[^~/]|~0|~1)*)*$/;function Vm(e){return Bm.test(e)}function Hm(e){if(e.length===0)return!1;try{return new RegExp(e),!0}catch{return!1}}const Um=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;function Wm(e){return Um.test(e)}const Gm=/^(?!.*[^\x00-\x7F])(?!.*\\)(?:(?:[a-z][a-z0-9+\-.]*:)?(?:\/\/[^\s[\]{}<>^`|]*)?|[^\s[\]{}<>^`|]*)(?:\?[^\s[\]{}<>^`|]*)?(?:#[^\s[\]{}<>^`|]*)?$/i;function Km(e){return Gm.test(e)}const qm=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i;function Jm(e){return qm.test(e)}function Ym(e){return e>=97&&e<=122||e>=65&&e<=90}function Xm(e){return Ym(e)||e>=48&&e<=57}function Zm(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Qm(e){return Xm(e)||e===43||e===45||e===46}function $m(e){return Xm(e)||e===45||e===46||e===95||e===126}function eh(e){return e===33||e===36||e===38||e===39||e===40||e===41||e===42||e===43||e===44||e===59||e===61}function th(e){return $m(e)||eh(e)||e===58||e===64}function nh(e){let t=e.length;if(t===0||!Ym(e.charCodeAt(0)))return!1;let n=1;for(;n=i||!Zm(e.charCodeAt(t+1))||!Zm(e.charCodeAt(t+2)))return!1;t+=2}else if(!$m(n)&&!eh(n)&&n!==58)return!1}n=i+1}if(e.charCodeAt(n)===91){for(n++;n57)return!1;n++}}for(;n=t||!Zm(e.charCodeAt(n+1))||!Zm(e.charCodeAt(n+2)))return!1;n+=2}else if(r>127)return!1;else if(!(th(r)||r===47||r===63||r===35))return!1;n++}return!0}const rh=/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu;function ih(e){return rh.test(e)}const ah=/^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;function oh(e){return ah.test(e)}const Y=new Map;function sh(){Y.clear()}function ch(e,t){return Y.get(e)?.(t)??!0}function lh(){sh(),Y.set(`date-time`,em),Y.set(`date`,Zp),Y.set(`duration`,nm),Y.set(`email`,im),Y.set(`hostname`,Dm),Y.set(`idn-email`,km),Y.set(`idn-hostname`,Am),Y.set(`ipv4`,Mm),Y.set(`ipv6`,Pm),Y.set(`iri-reference`,Im),Y.set(`iri`,Lm),Y.set(`json-pointer-uri-fragment`,zm),Y.set(`json-pointer`,Vm),Y.set(`regex`,Hm),Y.set(`relative-json-pointer`,Wm),Y.set(`time`,$p),Y.set(`uri-reference`,Km),Y.set(`uri-template`,Jm),Y.set(`uri`,nh),Y.set(`url`,ih),Y.set(`uuid`,oh)}lh();function uh(e,t,n,r){return ch(n.format,r)}function dh(e,t,n,r,i,a){return uh(e,t,i,a)||t.AddError({keyword:`format`,schemaPath:n,instancePath:r,params:{format:i.format}})}function fh(e,t,n,r){let i=op(n)?n.then:!0,a=Of(n)?n.else:!0;return X(e,t,n.if,r)?X(e,t,i,r):X(e,t,a,r)}function ph(e,t,n,r,i,a){let o=op(i)?i.then:!0,s=Of(i)?i.else:!0,c=new pp,l=Z(e,c,`${n}/if`,r,i.if,a)?Z(e,c,`${n}/then`,r,o,a)||t.AddError({keyword:`if`,schemaPath:n,instancePath:r,params:{failingKeyword:`then`}}):Z(e,t,`${n}/else`,r,s,a)||t.AddError({keyword:`if`,schemaPath:n,instancePath:r,params:{failingKeyword:`else`}});return l&&t.Merge([c]),l}function mh(e,t,n,r){return y(n.items,0,(n,i)=>he(r.length,i)||Cg(e,t,n,r[i])&&t.AddIndex(i))}function hh(e,t,n,r,i,a){return b(i.items,0,(i,o)=>{let s=`${n}/items/${o}`,c=`${r}/${o}`;return he(a.length,o)||wg(e,t,s,c,i,a[o])&&t.AddIndex(o)})}function gh(e,t,n,r){return y(r,Qf(n)?n.prefixItems.length:0,(r,i)=>Cg(e,t,n.items,r)&&t.AddIndex(i))}function _h(e,t,n,r,i,a){return b(a,Qf(i)?i.prefixItems.length:0,(a,o)=>wg(e,t,`${n}/items`,`${r}/${o}`,i.items,a)&&t.AddIndex(o))}function vh(e,t,n,r){return If(n)?mh(e,t,n,r):gh(e,t,n,r)}function yh(e,t,n,r,i,a){return If(i)?hh(e,t,n,r,i,a):_h(e,t,n,r,i,a)}function bh(e){return xf(e)}function xh(e,t,n,r){return bh(n)?he(r.reduce((r,i)=>X(e,t,n.contains,i)?++r:r,0),n.maxContains):!0}function Sh(e,t,n,r,i,a){let o=Uf(i)?i.minContains:1;return xh(e,t,i,a)||t.AddError({keyword:`contains`,schemaPath:n,instancePath:r,params:{minContains:o,maxContains:i.maxContains}})}function Ch(e,t,n,r){return he(r,n.maximum)}function wh(e,t,n,r,i,a){return Ch(e,t,i,a)||t.AddError({keyword:`maximum`,schemaPath:n,instancePath:r,params:{comparison:`<=`,limit:i.maximum}})}function Th(e,t,n,r){return he(r.length,n.maxItems)}function Eh(e,t,n,r,i,a){return Th(e,t,i,a)||t.AddError({keyword:`maxItems`,schemaPath:n,instancePath:r,params:{limit:i.maxItems}})}function Dh(e,t,n,r){return xe(r,n.maxLength)}function Oh(e,t,n,r,i,a){return Dh(e,t,i,a)||t.AddError({keyword:`maxLength`,schemaPath:n,instancePath:r,params:{limit:i.maxLength}})}function kh(e,t,n,r){return he(C(r).length,n.maxProperties)}function Ah(e,t,n,r,i,a){return kh(e,t,i,a)||t.AddError({keyword:`maxProperties`,schemaPath:n,instancePath:r,params:{limit:i.maxProperties}})}function jh(e){return xf(e)}function Mh(e,t,n,r){return jh(n)?ge(r.reduce((r,i)=>X(e,t,n.contains,i)?++r:r,0),n.minContains):!0}function Nh(e,t,n,r,i,a){return Mh(e,t,i,a)||t.AddError({keyword:`contains`,schemaPath:n,instancePath:r,params:{minContains:i.minContains}})}function Ph(e,t,n,r){return ge(r,n.minimum)}function Fh(e,t,n,r,i,a){return Ph(e,t,i,a)||t.AddError({keyword:`minimum`,schemaPath:n,instancePath:r,params:{comparison:`>=`,limit:i.minimum}})}function Ih(e,t,n,r){return ge(r.length,n.minItems)}function Lh(e,t,n,r,i,a){return Ih(e,t,i,a)||t.AddError({keyword:`minItems`,schemaPath:n,instancePath:r,params:{limit:i.minItems}})}function Rh(e,t,n,r){return Se(r,n.minLength)}function zh(e,t,n,r,i,a){return Rh(e,t,i,a)||t.AddError({keyword:`minLength`,schemaPath:n,instancePath:r,params:{limit:i.minLength}})}function Bh(e,t,n,r){return ge(C(r).length,n.minProperties)}function Vh(e,t,n,r,i,a){return Bh(e,t,i,a)||t.AddError({keyword:`minProperties`,schemaPath:n,instancePath:r,params:{limit:i.minProperties}})}function Hh(e,t,n,r){return _e(r,n.multipleOf)}function Uh(e,t,n,r,i,a){return Hh(e,t,i,a)||t.AddError({keyword:`multipleOf`,schemaPath:n,instancePath:r,params:{multipleOf:i.multipleOf}})}function Wh(e,t,n,r){let i=new dp;return!X(e,i,n.not,r)&&t.Merge([i])}function Gh(e,t,n,r,i,a){return Wh(e,t,i,a)||t.AddError({keyword:`not`,schemaPath:n,instancePath:r,params:{}})}function Kh(e,t,n,r){let i=n.oneOf.reduce((t,n)=>{let i=new dp;return X(e,i,n,r)?[...t,i]:t},[]);return v(i.length,1)&&t.Merge(i)}function qh(e,t,n,r,i,a){let o=[],s=[],c=i.oneOf.reduce((t,i,c)=>{let l=new pp,u=Z(e,l,`${n}/oneOf/${c}`,r,i,a);return u&&s.push(c),u||o.push(l),u?[...t,l]:t},[]),l=v(c.length,1)&&t.Merge(c);return!l&&v(s.length,0)&&o.forEach(e=>e.GetErrors().forEach(e=>t.AddError(e))),l||t.AddError({keyword:`oneOf`,schemaPath:n,instancePath:r,params:{passingSchemas:s}})}function Jh(e,t,n,r){return(g(n.pattern)?new RegExp(n.pattern,`u`):n.pattern).test(r)}function Yh(e,t,n,r,i,a){return Jh(e,t,i,a)||t.AddError({keyword:`pattern`,schemaPath:n,instancePath:r,params:{pattern:i.pattern}})}function Xh(e,t,n,r){return y(Te(n.patternProperties),0,([n,i])=>{let a=new RegExp(n,`u`);return y(Te(r),0,([n,r])=>!a.test(n)||Cg(e,t,i,r)&&t.AddKey(n))})}function Zh(e,t,n,r,i,a){return b(Te(i.patternProperties),0,([i,o])=>{let s=`${n}/patternProperties/${i}`,c=new RegExp(i,`u`);return b(Te(a),0,([n,i])=>{let a=`${r}/${n}`;return!c.test(n)||wg(e,t,s,a,o,i)&&t.AddKey(n)})})}function Qh(e,t,n,r){return v(r.length,0)||y(n.prefixItems,0,(n,i)=>he(r.length,i)||Cg(e,t,n,r[i])&&t.AddIndex(i))}function $h(e,t,n,r,i,a){return v(a.length,0)||b(i.prefixItems,0,(i,o)=>{let s=`${n}/prefixItems/${o}`,c=`${r}/${o}`;return he(a.length,o)||wg(e,t,s,c,i,a[o])&&t.AddIndex(o)})}function eg(e,t){return e.includes(t)||$e().exactOptionalPropertyTypes}function tg(e,t){return _(e[t])}function ng(e,t,n,r){let i=ap(n)?n.required:[];return y(Te(n.properties),0,([n,a])=>{let o=!S(r,n)||Cg(e,t,a,r[n])&&t.AddKey(n);return eg(i,n)?o:tg(r,n)||o})}function rg(e,t,n,r,i,a){let o=ap(i)?i.required:[];return b(Te(i.properties),0,([i,s])=>{let c=`${n}/properties/${i}`,l=`${r}/${i}`,u=()=>!S(a,i)||wg(e,t,c,l,s,a[i])&&t.AddKey(i);return eg(o,i)?u():tg(a,i)||u()})}function ig(e,t,n,r){return y(C(r),0,(r,i)=>X(e,t,n.propertyNames,r))}function ag(e,t,n,r,i,a){let o=[];return b(C(a),0,(t,a)=>{let s=`${r}/${t}`,c=`${n}/propertyNames`,l=Z(e,new pp,c,s,i.propertyNames,t);return l||o.push(t),l})||t.AddError({keyword:`propertyNames`,schemaPath:n,instancePath:r,params:{propertyNames:o}})}function og(e,t,n,r){let i=e.RecursiveRef(n)??!1;return J(i)&&X(e,t,i,r)}function sg(e,t,n,r,i,a){let o=e.RecursiveRef(i)??!1;return J(o)&&Z(e,t,`#`,r,o,a)}function cg(e,t,n,r){let i=e.Ref(n)??!1,a=new dp,o=J(i)&&X(e,a,i,r);return o&&t.Merge([a]),o}function lg(e,t,n,r,i,a){let o=e.Ref(i)??!1,s=new pp,c=J(o)&&Z(e,s,`#`,r,o,a);return c&&t.Merge([s]),c||s.GetErrors().forEach(e=>t.AddError(e)),c}function ug(e,t,n,r){return y(n.required,0,e=>S(r,e))}function dg(e,t,n,r,i,a){let o=[];return b(i.required,0,e=>{let t=S(a,e);return t||o.push(e),t})||t.AddError({keyword:`required`,schemaPath:n,instancePath:r,params:{requiredProperties:o}})}function fg(e,t,n,r,i){return v(n,`object`)?de(i):v(n,`array`)?d(i):v(n,`boolean`)?p(i):v(n,`integer`)?le(i):v(n,`number`)?m(i):v(n,`null`)?ue(i):v(n,`string`)?g(i):v(n,`bigint`)?f(i):v(n,`constructor`)?se(i):v(n,`function`)?ce(i):v(n,`symbol`)?fe(i):v(n,`undefined`)||v(n,`void`)?_(i):!0}function pg(e,t,n,r,i){return n.some(n=>fg(e,t,n,r,i))}function mg(e,t,n,r){return d(n.type)?pg(e,t,n.type,n,r):fg(e,t,n.type,n,r)}function hg(e,t,n,r,i,a){return(d(i.type)?pg(e,t,i.type,i,a):fg(e,t,i.type,i,a))||t.AddError({keyword:`type`,schemaPath:n,instancePath:r,params:{type:i.type}})}function gg(e,t,n,r){let i=t.GetIndices();return y(r,0,(r,a)=>(i.has(a)||X(e,t,n.unevaluatedItems,r))&&t.AddIndex(a))}function _g(e,t,n,r,i,a){let o=t.GetIndices(),s=[];return b(a,0,(a,c)=>{let l=new pp,u=(o.has(c)||Z(e,l,n,r,i.unevaluatedItems,a))&&t.AddIndex(c);return u||s.push(c),u})||t.AddError({keyword:`unevaluatedItems`,schemaPath:n,instancePath:r,params:{unevaluatedItems:s}})}function vg(e,t,n,r){let i=t.GetKeys();return y(Te(r),0,([r,a])=>i.has(r)||X(e,t,n.unevaluatedProperties,a)&&t.AddKey(r))}function yg(e,t,n,r,i,a){let o=t.GetKeys(),s=[];return b(Te(a),0,([a,c])=>{let l=new pp,u=o.has(a)||Z(e,l,n,r,i.unevaluatedProperties,c)&&t.AddKey(a);return u||s.push(a),u})||t.AddError({keyword:`unevaluatedProperties`,schemaPath:n,instancePath:r,params:{unevaluatedProperties:s}})}function bg(e){return!v(e.uniqueItems,!1)}function xg(e,t,n,r){if(!bg(n))return!0;let i=new Set(r.map(wn)).size,a=r.length;return v(i,a)}function Sg(e,t,n,r,i,a){if(!bg(i))return!0;let o=new Set,s=a.reduce((e,t,n)=>{let r=wn(t);return o.has(r)?[...e,n]:(o.add(r),e)},[]);return v(s.length,0)||t.AddError({keyword:`uniqueItems`,schemaPath:n,instancePath:r,params:{duplicateItems:s}})}function Cg(e,t,n,r){return t.Push()&&X(e,t,n,r)&&t.Pop()}function X(e,t,n,r){e.Push(n);let i=mf(n)?Dp(e,t,n,r):(!sp(n)||mg(e,t,n,r))&&(!(h(r)&&!d(r))||(!ap(n)||ug(e,t,n,r))&&(!gf(n)||xp(e,t,n,r))&&(!Cf(n)||Pp(e,t,n,r))&&(!wf(n)||Ip(e,t,n,r))&&(!Tf(n)||Rp(e,t,n,r))&&(!Zf(n)||Xh(e,t,n,r))&&(!$f(n)||ng(e,t,n,r))&&(!ep(n)||ig(e,t,n,r))&&(!Kf(n)||Bh(e,t,n,r))&&(!Vf(n)||kh(e,t,n,r)))&&(!d(r)||(!hf(n)||_p(e,t,n,r))&&(!xf(n)||Mp(e,t,n,r))&&(!Ff(n)||vh(e,t,n,r))&&(!Rf(n)||xh(e,t,n,r))&&(!zf(n)||Th(e,t,n,r))&&(!Uf(n)||Mh(e,t,n,r))&&(!Wf(n)||Ih(e,t,n,r))&&(!Qf(n)||Qh(e,t,n,r))&&(!cp(n)||xg(e,t,n,r)))&&(!g(r)||(!Bf(n)||Dh(e,t,n,r))&&(!Gf(n)||Rh(e,t,n,r))&&(!Mf(n)||uh(e,t,n,r))&&(!Xf(n)||Jh(e,t,n,r)))&&(!(m(r)||f(r))||(!Af(n)||Wp(e,t,n,r))&&(!jf(n)||Kp(e,t,n,r))&&(!Lf(n)||Ch(e,t,n,r))&&(!Hf(n)||Ph(e,t,n,r))&&(!qf(n)||Hh(e,t,n,r)))&&(!ip(n)||cg(e,t,n,r))&&(!rp(n)||og(e,t,n,r))&&(!Df(n)||Bp(e,t,n,r))&&(!bf(n)||kp(e,t,n,r))&&(!kf(n)||Hp(e,t,n,r))&&(!Pf(n)||fh(e,t,n,r))&&(!Jf(n)||Wh(e,t,n,r))&&(!_f(n)||Cp(e,t,n,r))&&(!yf(n)||Tp(e,t,n,r))&&(!Yf(n)||Kh(e,t,n,r))&&(!lp(n)||!d(r)||gg(e,t,n,r))&&(!up(n)||!h(r)||vg(e,t,n,r))&&(!ff(n)||mp(e,t,n,r));return e.Pop(n),i}function wg(e,t,n,r,i,a){return t.Push()&&Z(e,t,n,r,i,a)&&t.Pop()}function Z(e,t,n,r,i,a){e.Push(i);let o=mf(i)?Op(e,t,n,r,i,a):!!((!sp(i)||hg(e,t,n,r,i,a))&+(!(h(a)&&!d(a))||!!((!ap(i)||dg(e,t,n,r,i,a))&+(!gf(i)||Sp(e,t,n,r,i,a))&(!Cf(i)||Fp(e,t,n,r,i,a))&(!wf(i)||Lp(e,t,n,r,i,a))&(!Tf(i)||zp(e,t,n,r,i,a))&(!Zf(i)||Zh(e,t,n,r,i,a))&(!$f(i)||rg(e,t,n,r,i,a))&(!ep(i)||ag(e,t,n,r,i,a))&(!Kf(i)||Vh(e,t,n,r,i,a))&(!Vf(i)||Ah(e,t,n,r,i,a))))&(!d(a)||!!((!hf(i)||vp(e,t,n,r,i,a))&+(!xf(i)||Np(e,t,n,r,i,a))&(!Ff(i)||yh(e,t,n,r,i,a))&(!Rf(i)||Sh(e,t,n,r,i,a))&(!zf(i)||Eh(e,t,n,r,i,a))&(!Uf(i)||Nh(e,t,n,r,i,a))&(!Wf(i)||Lh(e,t,n,r,i,a))&(!Qf(i)||$h(e,t,n,r,i,a))&(!cp(i)||Sg(e,t,n,r,i,a))))&(!g(a)||!!((!Bf(i)||Oh(e,t,n,r,i,a))&+(!Gf(i)||zh(e,t,n,r,i,a))&(!Mf(i)||dh(e,t,n,r,i,a))&(!Xf(i)||Yh(e,t,n,r,i,a))))&(!(m(a)||f(a))||!!((!Af(i)||Gp(e,t,n,r,i,a))&+(!jf(i)||qp(e,t,n,r,i,a))&(!Lf(i)||wh(e,t,n,r,i,a))&(!Hf(i)||Fh(e,t,n,r,i,a))&(!qf(i)||Uh(e,t,n,r,i,a))))&(!ip(i)||lg(e,t,n,r,i,a))&(!rp(i)||sg(e,t,n,r,i,a))&(!Df(i)||Vp(e,t,n,r,i,a))&(!bf(i)||Ap(e,t,n,r,i,a))&(!kf(i)||Up(e,t,n,r,i,a))&(!Pf(i)||ph(e,t,n,r,i,a))&(!Jf(i)||Gh(e,t,n,r,i,a))&(!_f(i)||wp(e,t,n,r,i,a))&(!yf(i)||Ep(e,t,n,r,i,a))&(!Yf(i)||qh(e,t,n,r,i,a))&(!lp(i)||!d(a)||_g(e,t,n,r,i,a))&(!up(i)||!h(a)||yg(e,t,n,r,i,a)))&&(!ff(i)||hp(e,t,n,r,i,a));return e.Pop(i),o}function Tg(e,t){return h(t)&&!Ce(e)?t[e]:void 0}function Eg(e,t){return e.reduce((e,t)=>Tg(t,e),t)}function Dg(e){if(v(e.length,0))return[];let t=e.split(`/`).map(e=>e.replace(/~1/g,`/`).replace(/~0/g,`~`));return t.length>0&&t[0]===``?t.slice(1):t}function Og(e,t){return Eg(Dg(t),e)}function kg(e,t,n){if(e.$id===n.hash)return e;let r=new URL(e.$id,t.href),i=new URL(n.href,t.href);if(v(r.pathname,i.pathname))return n.hash.startsWith(`#`)?Mg(e,t,n):e}function Ag(e,t,n){let r=new URL(`#${e.$anchor}`,t.href),i=new URL(n.href,t.href);return v(r.href,i.href)?e:void 0}function jg(e,t,n){let r=new URL(`#${e.$dynamicAnchor}`,t.href),i=new URL(n.href,t.href);return v(r.href,i.href)?e:void 0}function Mg(e,t,n){if(n.href.endsWith(`#`))return e;if(!n.hash.startsWith(`#`))return;let r=decodeURIComponent(n.hash.slice(1));if(r.startsWith(`/`))return Og(e,r)}function Ng(e,t,n){if(Nf(e)){let r=kg(e,t,n);if(!_(r))return r}if(vf(e)){let r=Ag(e,t,n);if(!_(r))return r}if(Ef(e)){let r=jg(e,t,n);if(!_(r))return r}return Mg(e,t,n)}function Pg(e,t,n){return e.reduce((e,r)=>{let i=Ig(r,t,n);return _(i)?e:i},void 0)}function Fg(e,t,n){return C(e).reduce((r,i)=>{let a=Ig(e[i],t,n);return _(a)?r:a},void 0)}function Ig(e,t,n){let r=pf(e)&&Nf(e)?new URL(e.$id,t.href):t;if(pf(e)){let t=Ng(e,r,n);if(!_(t))return t}if(d(e))return Pg(e,r,n);if(h(e))return Fg(e,r,n)}function Lg(e,t){let n=new URL(`http://unknown/`),r=Nf(e)?new URL(e.$id,n.href):n;return Ig(e,r,new URL(t,r.href))}function Rg(e,t,n,r){let i=n.$dynamicRef.startsWith(`#`)?Lg(t,n.$dynamicRef):Lg(e,n.$dynamicRef);if(!_(i))return!pf(i)||!Ef(i)||new URL(n.$dynamicRef,`http://unknown/`).hash.startsWith(`#/`)?i:r.find(e=>e.$dynamicAnchor===i.$dynamicAnchor)??i}var zg=function(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)},Bg,Vg,Hg,Ug,Wg,Gg=class{constructor(e,t){Bg.add(this),this.context=e,this.schema=t,this.ids=[],this.anchors=[],this.recursiveAnchors=[],this.dynamicAnchors=[]}BaseURL(){return this.ids.reduce((e,t)=>new URL(t.$id,e),new URL(`http://unknown`))}Base(){return this.ids[this.ids.length-1]??this.schema}Push(e){pf(e)&&(Nf(e)&&(this.ids.push(e),zg(this,Bg,`m`,Vg).call(this,e)),vf(e)&&this.anchors.push(e),np(e)&&this.recursiveAnchors.push(e),Ef(e)&&this.dynamicAnchors.push(e))}Pop(e){pf(e)&&(Nf(e)&&(this.ids.pop(),zg(this,Bg,`m`,Hg).call(this,e)),vf(e)&&this.anchors.pop(),np(e)&&this.recursiveAnchors.pop(),Ef(e)&&this.dynamicAnchors.pop())}Ref(e){return zg(this,Bg,`m`,Ug).call(this,e)??zg(this,Bg,`m`,Wg).call(this,e)}RecursiveRef(e){return np(this.Base())?Lg(this.recursiveAnchors[0],e.$recursiveRef):Lg(this.Base(),e.$recursiveRef)}DynamicRef(e){let t=this.schema;return Rg(t,this.Base(),e,this.dynamicAnchors)}};Bg=new WeakSet,Vg=function e(t,n=!0){if(!pf(t))return;let r=t;if(!(!n&&Nf(r))){!n&&Ef(r)&&this.dynamicAnchors.push(r);for(let t of C(r))zg(this,Bg,`m`,e).call(this,r[t],!1)}},Hg=function e(t,n=!0){if(!pf(t))return;let r=t;if(!(!n&&Nf(r))){!n&&Ef(r)&&this.dynamicAnchors.pop();for(let t of C(r))zg(this,Bg,`m`,e).call(this,r[t],!1)}},Ug=function(e){return S(this.context,e.$ref)?this.context[e.$ref]:void 0},Wg=function(e){let t=this.schema;return e.$ref.startsWith(`#`)?Lg(this.Base(),e.$ref):Lg(t,e.$ref)};function Kg(...e){let[t,n,r]=zt(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]}),i=$e(),a=Dn(),o=[];return[Z(new Gg(t,n),new fp(e=>{if(!ge(o.length,i.maxErrors))return o.push({...e,message:a(e)})}),`#`,``,n,r),o]}function qg(...e){let[t,n,r]=zt(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]});return X(new Gg(t,n),new dp,n,r)}function Jg(...e){let[t,n,r]=zt(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]});return qg(t,n,r)}function Yg(...e){let[t,n,r]=zt(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]}),[i,a]=Kg(t,n,r);return a}var Xg=class extends Error{constructor(e,t,n){super(e),Object.defineProperty(this,"cause",{value:{source:e,errors:n,value:t},writable:!1,configurable:!1,enumerable:!1})}};function Zg(e,t,n){return d(n)?n.map(n=>c_(e,t.items,n)):n}function Qg(e,t,n){return c_({...e,...t.$defs},yt(t.$ref),n)}function $g(e,t){let n=S(t,`unevaluatedProperties`)?{additionalProperties:t.unevaluatedProperties}:{},r=sf(tf(e,t));return A(r)?Ud(r,n):r}function e_(e,t,n){return c_(e,$g(e,t),n)}function t_(e){return S(e,`additionalProperties`)?e.additionalProperties:void 0}function n_(e,t,n){if(!h(n)||d(n))return n;let r=t_(t);for(let i of C(n)){if(S(t.properties,i)){n[i]=c_(e,t.properties[i],n[i]);continue}if(p(r)&&v(r,!0)||rt(r)&&Jg(e,r,n[i])){n[i]=c_(e,r,n[i]);continue}delete n[i]}return n}function r_(e,t,n){if(!h(n))return n;let r=t_(t),[i,a]=[new RegExp(Ai(t)),Mi(t)];for(let t of C(n)){if(i.test(t)){n[t]=c_(e,a,n[t]);continue}if(p(r)&&v(r,!0)||rt(r)&&Jg(e,r,n[t])){n[t]=c_(e,r,n[t]);continue}delete n[t]}return n}function i_(e,t,n){return S(e,t.$ref)?c_(e,e[t.$ref],n):n}function a_(e,t,n){if(!d(n))return n;let r=Math.min(n.length,t.items.length);for(let i=0;ip_(e))}function p_(e){return l_(e,O(e)?dt(p_(e.items),ft(e)):j(e)?Jt(f_(e.allOf)):R(e)?L(d_(e.anyOf)):A(e)?k(u_(e.properties)):Ni(e)?Di(ji(e),p_(Mi(e))):z(e)?wr(f_(e.items)):e)}function m_(e){return p_(e)}function h_(...e){let[t,n,r]=zt(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]});return c_(t,$e().unionPrioritySort?m_(n):n,r)}function g_(e){return h(e)&&S(e,`value`)}function Q(e){return{value:e}}function __(e){return d(e)?Q(e):Q([e])}function v_(e){return v(e,!0)?Q(BigInt(1)):Q(BigInt(0))}const y_=/^-?(0|[1-9]\d*)n$/,b_=/^-?(0|[1-9]\d*)\.\d+$/,x_=/^-?(0|[1-9]\d*)$/;function S_(e){return y_.test(e)}function C_(e){return b_.test(e)}function w_(e){return x_.test(e)}function T_(e){let t=e.toLowerCase();return S_(e)?Q(BigInt(e.slice(0,e.length-1))):C_(e)?Q(BigInt(e.split(`.`)[0])):w_(e)?Q(BigInt(e)):v(t,`false`)?Q(BigInt(0)):v(t,`true`)?Q(BigInt(1)):void 0}function E_(e){return f(e)?Q(e):p(e)?v_(e):m(e)?Q(BigInt(Math.trunc(e))):ue(e)?Q(BigInt(0)):g(e)?T_(e):_(e)?Q(BigInt(0)):void 0}function D_(e){return v(e,BigInt(0))?Q(!1):v(e,BigInt(1))?Q(!0):void 0}function O_(e){return v(e,0)?Q(!1):v(e,1)?Q(!0):void 0}function k_(e){return v(e.toLowerCase(),`false`)?Q(!1):v(e.toLowerCase(),`true`)?Q(!0):v(e,`0`)?Q(!1):v(e,`1`)?Q(!0):void 0}function A_(e){return f(e)?D_(e):p(e)?Q(e):m(e)?O_(e):ue(e)?Q(!1):g(e)?k_(e):_(e)?Q(!1):void 0}function j_(e){return v(e,BigInt(0))?Q(null):void 0}function M_(e){return v(e,!1)?Q(null):void 0}function N_(e){return v(e,0)?Q(null):void 0}function P_(e){let t=e.toLowerCase();return v(t,`undefined`)||v(t,`null`)||v(e,``)||v(e,`0`)?Q(null):void 0}function F_(e){return f(e)?j_(e):p(e)?M_(e):m(e)?N_(e):ue(e)?Q(null):g(e)?P_(e):_(e)?Q(null):void 0}const I_=BigInt(2**53-1),L_=BigInt(-(2**53-1));function R_(e){return e<=I_&&e>=L_?Q(Number(e)):void 0}function z_(e){return Q(+!!e)}function B_(e){let t=+e;if(m(t))return Q(t);let n=e.toLowerCase();if(v(n,`false`))return Q(0);if(v(n,`true`))return Q(1);let r=E_(e);if(g_(r))return r.value<=I_&&r.value>=L_?Q(Number(r.value)):void 0}function V_(e){return f(e)?R_(e):p(e)?z_(e):m(e)?Q(e):ue(e)?Q(0):g(e)?B_(e):_(e)?Q(0):void 0}function H_(e){return f(e)||p(e)||m(e)?Q(e.toString()):ue(e)?Q(`null`):g(e)?Q(e):_(e)?Q(``):void 0}function U_(e){return v(e,BigInt(0))?Q(void 0):void 0}function W_(e){return v(e,!1)?Q(void 0):void 0}function G_(e){return v(e,0)?Q(void 0):void 0}function K_(e){let t=e.toLowerCase();return v(t,`undefined`)||v(t,`null`)||v(e,``)||v(e,`0`)?Q(void 0):void 0}function q_(e){return f(e)?U_(e):p(e)?W_(e):m(e)?G_(e):ue(e)?Q(void 0):g(e)?K_(e):_(e)?Q(e):void 0}function J_(e,t,n){return __(n).value.map(n=>xv(e,t.items,n))}function Y_(e,t,n){let r=E_(n);return g_(r)?r.value:n}function X_(e,t,n){let r=A_(n);return g_(r)?r.value:n}function Z_(e,t,n){return xv({...e,...t.$defs},yt(t.$ref),n)}function Q_(e,t,n){return xv(e,sf(t),n)}function $_(e,t,n){let r=V_(n);return g_(r)?Math.trunc(r.value):n}function ev(e,t,n){return xv(e,sf(tf(e,t)),n)}function tv(e,t,n){let r=E_(n);return g_(r)&&v(t.const,r.value)?r.value:n}function nv(e,t,n){let r=A_(n);return g_(r)&&v(t.const,r.value)?r.value:n}function rv(e,t,n){let r=V_(n);return g_(r)&&v(t.const,r.value)?r.value:n}function iv(e,t,n){let r=H_(n);return g_(r)&&v(t.const,r.value)?r.value:n}function av(e,t,n){return v(t.const,n)?n:Gn(t)?tv(e,t,n):Kn(t)?nv(e,t,n):qn(t)?rv(e,t,n):Jn(t)?iv(e,t,n):Xt()}function ov(e,t,n){let r=F_(n);return g_(r)?r.value:n}function sv(e,t,n){let r=V_(n);return g_(r)?r.value:n}function cv(e,t,n,r){let i=C(r);for(let[a,o]of t)for(let t of i)a.test(t)||(r[t]=xv(e,n,r[t]));return r}function lv(e,t,n){return Ot(e)&&_(n[t])}function uv(e,t,n){let r=we(t.properties),i=C(n);for(let[t,a]of r)for(let r of i)!t.test(r)||lv(a,r,n)||(n[r]=xv(e,a,n[r]));return S(t,`additionalProperties`)&&h(t.additionalProperties)?cv(e,r,t.additionalProperties,n):n}function dv(e,t,n){return de(n)?uv(e,t,n):n}function fv(e,t,n){let r=we(t.patternProperties),i=C(n);for(let[t,a]of r)for(let r of i)t.test(r)&&(n[r]=xv(e,a,n[r]));return S(t,`additionalProperties`)&&h(t.additionalProperties)?cv(e,r,t.additionalProperties,n):n}function pv(e,t,n){return de(n)?fv(e,t,n):n}function mv(e,t,n){return S(e,t.$ref)?xv(e,e[t.$ref],n):n}function hv(e,t,n){let r=H_(n);return g_(r)?r.value:n}function gv(e,t,n){return xv(e,sf(t),n)}function _v(e,t,n){if(!d(n))return n;for(let r=0;rJg(e,t,n)))return n;let r=t.anyOf.map(t=>xv(e,t,o_(n))).find(n=>Jg(e,t,n));return _(r)?n:r}function bv(e,t,n){return g_(q_(n))?void 0:n}function xv(e,t,n){return O(t)?J_(e,t,n):Ln(t)?Y_(e,t,n):Rn(t)?X_(e,t,n):It(t)?Z_(e,t,n):qt(t)?Q_(e,t,n):Vn(t)?$_(e,t,n):j(t)?ev(e,t,n):F(t)?av(e,t,n):Xn(t)?ov(e,t,n):$n(t)?sv(e,t,n):A(t)?dv(e,t,n):Ni(t)?pv(e,t,n):bt(t)?mv(e,t,n):nr(t)?hv(e,t,n):Ja(t)?gv(e,t,n):z(t)?_v(e,t,n):Ri(t)?vv(e,t,n):R(t)?yv(e,t,n):zi(t)?bv(e,t,n):n}function Sv(...e){let[t,n,r]=zt(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]});return xv(t,n,r)}function Cv(e,t,n){if(!d(n))return n;for(let r=0;r[e,t,n],2:(e,t)=>[{},e,t]});return Mv(t,n,r)}function Pv(e){return(...t)=>{let[n,r,i]=zt(t,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]});return e.reduce((e,t)=>t(n,r,e),i)}}function Fv(e,t,n){return t[`~codec`].decode(n)}function Iv(e,t,n){return t[`~codec`].encode(n)}function $(e,t,n,r){return On(n)?v(e,`Decode`)?Fv(t,n,r):Iv(t,n,r):r}function Lv(e,t,n,r){if(!d(r))return r;for(let i=0;i({...e,...t}),{})}function Hv(e,t){for(let n of t)if(!Ae(e,n))return n;return e}function Uv(e,t,n,r){if(v(n.allOf.length,0))return $(e,t,n,r);let i=n.allOf.map(n=>oy(e,t,n,h_(n,o_(r))));return $(e,t,n,i.every(e=>h(e))?Vv(i):Hv(r,i))}function Wv(e,t,n,r){if(v(n.allOf.length,0))return $(e,t,n,r);let i=$(e,t,n,r),a=n.allOf.map(n=>oy(e,t,n,h_(n,o_(i))));return a.every(e=>h(e))?Vv(a):Hv(i,a)}function Gv(e,t,n,r){return v(e,`Decode`)?Uv(e,t,n,r):Wv(e,t,n,r)}function Kv(e,t,n,r){if(!de(r))return r;for(let i of C(n.properties))!S(r,i)||lv(n.properties[i],i,r)||(r[i]=oy(e,t,n.properties[i],r[i]));return $(e,t,n,r)}function qv(e,t,n,r){let i=$(e,t,n,r);if(!de(i))return i;for(let r of C(n.properties))!S(i,r)||lv(n.properties[r],r,i)||(i[r]=oy(e,t,n.properties[r],i[r]));return i}function Jv(e,t,n,r){return v(e,`Decode`)?Kv(e,t,n,r):qv(e,t,n,r)}function Yv(e,t,n,r){if(!de(r))return r;let i=new RegExp(Ai(n));for(let a of C(r))i.test(a)&&(r[a]=oy(e,t,Mi(n),r[a]));return $(e,t,n,r)}function Xv(e,t,n,r){let i=$(e,t,n,r);if(!de(i))return i;let a=new RegExp(Ai(n));for(let r of C(i))a.test(r)&&(i[r]=oy(e,t,Mi(n),i[r]));return i}function Zv(e,t,n,r){return v(e,`Decode`)?Yv(e,t,n,r):Xv(e,t,n,r)}function Qv(e,t,n,r){return S(t,n.$ref)?oy(e,t,t[n.$ref],r):r}function $v(e,t,n,r){return v(e,`Decode`)?$(e,t,n,Qv(e,t,n,r)):Qv(e,t,n,$(e,t,n,r))}function ey(e,t,n,r){if(!d(r))return r;for(let i=0;io_(n),(e,t,n)=>Nv(e,t,n),(e,t,n)=>Sv(e,t,n),(e,t,n)=>h_(e,t,n),(e,t,n)=>cy(e,t,n)]);function uy(...e){let[t,n,r]=zt(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]});if(Jg(t,n,r))return r;if($e().correctiveParse)return ly(t,n,r);throw new sy(r,Yg(t,n,r))}L([k({type:P(`insert`),path:I(),value:Nt()}),Object({type:P(`update`),path:I(),value:Nt()}),k({type:P(`delete`),path:I()})]);const dy=Nn(Lt({}),e=>e instanceof Date),fy=k({id:Qn(),created:dy,title:I({minLength:1,maxLength:100}),type:Kt([`jpg`,`png`]),size:Qn(),url:I({format:`url`})}),py=k({id:Qn(),stars:Qn({minimum:1,maximum:5}),title:I({minLength:1,maxLength:100}),text:I({minLength:1,maxLength:1e3}),images:dt(fy)});uy(k({id:Qn(),created:dy,title:I({minLength:1,maxLength:100}),brand:I({minLength:1,maxLength:30}),description:I({minLength:1,maxLength:500}),price:Qn({minimum:1,maximum:1e4}),discount:L([Qn({minimum:1,maximum:100}),Yn()]),quantity:Qn({minimum:1,maximum:10}),tags:dt(I({minLength:1,maxLength:30})),images:dt(fy),ratings:dt(py)}),{}); \ No newline at end of file diff --git a/schemas/libraries/typebox/download_compiled/namespace/unminified.js b/schemas/libraries/typebox/download_compiled/namespace/unminified.js index 6add986c..764d5362 100644 --- a/schemas/libraries/typebox/download_compiled/namespace/unminified.js +++ b/schemas/libraries/typebox/download_compiled/namespace/unminified.js @@ -10,7 +10,7 @@ var __exportAll = (all, no_symbols) => { return target; }; //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/memory/metrics.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/memory/metrics.mjs /** TypeBox instantiation metrics */ const Metrics = { assign: 0, @@ -20,7 +20,7 @@ const Metrics = { update: 0 }; //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/memory/assign.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/memory/assign.mjs /** * Performs an Object assign using the Left and Right object types. We track this operation as it * creates a new GC handle per assignment. @@ -33,7 +33,7 @@ function Assign(left, right) { }; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/guard/string.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/guard/string.mjs function IsBetween(value, min, max) { return value >= min && value <= max; } @@ -127,7 +127,7 @@ function IsMaxLengthFast(value, maxLength) { return true; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/guard/guard.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/guard/guard.mjs var guard_exports = /* @__PURE__ */ __exportAll({ Entries: () => Entries, EntriesRegExp: () => EntriesRegExp, @@ -136,7 +136,6 @@ var guard_exports = /* @__PURE__ */ __exportAll({ GraphemeCount: () => GraphemeCount, HasPropertyKey: () => HasPropertyKey, IsArray: () => IsArray$1, - IsAsyncIterator: () => IsAsyncIterator$1, IsBigInt: () => IsBigInt$1, IsBoolean: () => IsBoolean$2, IsClassInstance: () => IsClassInstance, @@ -147,7 +146,6 @@ var guard_exports = /* @__PURE__ */ __exportAll({ IsGreaterEqualThan: () => IsGreaterEqualThan, IsGreaterThan: () => IsGreaterThan, IsInteger: () => IsInteger$1, - IsIterator: () => IsIterator$1, IsLessEqualThan: () => IsLessEqualThan, IsLessThan: () => IsLessThan, IsMaxLength: () => IsMaxLength$1, @@ -171,10 +169,6 @@ var guard_exports = /* @__PURE__ */ __exportAll({ function IsArray$1(value) { return Array.isArray(value); } -/** Returns true if this value is an async iterator */ -function IsAsyncIterator$1(value) { - return IsObject$1(value) && Symbol.asyncIterator in value; -} /** Returns true if this value is bigint */ function IsBigInt$1(value) { return IsEqual(typeof value, "bigint"); @@ -199,10 +193,6 @@ function IsFunction$1(value) { function IsInteger$1(value) { return Number.isInteger(value); } -/** Returns true if this value is an iterator */ -function IsIterator$1(value) { - return IsObject$1(value) && Symbol.iterator in value; -} /** Returns true if this value is null */ function IsNull$1(value) { return IsEqual(value, null); @@ -332,7 +322,7 @@ function IsDeepEqual(left, right) { return IsArray$1(left) ? DeepEqualArray(left, right) : IsObject$1(left) ? DeepEqualObject(left, right) : IsEqual(left, right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/guard/globals.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/guard/globals.mjs function IsBoolean$1(value) { return value instanceof Boolean; } @@ -362,51 +352,69 @@ function IsMap(value) { return value instanceof globalThis.Map; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/guard/index.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/guard/index.mjs var guard_default = guard_exports; //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/memory/clone.mjs -function IsGuard$1(value) { - return IsObject$1(value) && HasPropertyKey(value, "~guard"); -} -function FromGuard(value) { +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/memory/clone.mjs +function FromClassInstance(value) { return value; } -function FromArray$10(value) { - return value.map((value) => FromValue$3(value)); +function IsKindedObject(value) { + return HasPropertyKey(value, "~kind"); } -function FromObject$14(value) { +function FromKindedObject(value) { const result = {}; const descriptors = Object.getOwnPropertyDescriptors(value); for (const key of Object.keys(descriptors)) { + if (IsUnsafePropertyKey(key)) continue; const descriptor = descriptors[key]; if (HasPropertyKey(descriptor, "value")) Object.defineProperty(result, key, { ...descriptor, - value: FromValue$3(descriptor.value) + value: FromValue$2(descriptor.value) }); } return result; } +function FromPlainObject(value) { + const result = {}; + for (const key of Keys(value)) { + if (IsUnsafePropertyKey(key)) continue; + result[key] = FromValue$2(value[key]); + } + for (const key of Symbols(value)) result[key] = FromValue$2(value[key]); + return result; +} +function FromObject$13(value) { + return IsClassInstance(value) ? FromClassInstance(value) : IsKindedObject(value) ? FromKindedObject(value) : FromPlainObject(value); +} +function FromArray$9(value) { + return value.map((element) => FromValue$2(element)); +} +function FromTypedArray(value) { + return value.slice(); +} function FromRegExp$1(value) { return new RegExp(value.source, value.flags); } -function FromUnknown(value) { - return value; +function FromMap(value) { + return new Map(FromValue$2([...value.entries()])); } -function FromValue$3(value) { - return value instanceof RegExp ? FromRegExp$1(value) : IsGuard$1(value) ? FromGuard(value) : IsArray$1(value) ? FromArray$10(value) : IsObject$1(value) ? FromObject$14(value) : FromUnknown(value); +function FromSet(value) { + return new Set(FromValue$2([...value.values()])); +} +function FromValue$2(value) { + return IsTypeArray(value) ? FromTypedArray(value) : IsRegExp(value) ? FromRegExp$1(value) : IsMap(value) ? FromMap(value) : IsSet(value) ? FromSet(value) : IsArray$1(value) ? FromArray$9(value) : IsObject$1(value) ? FromObject$13(value) : value; } /** -* Clones a value using the TypeBox type cloning strategy. This function preserves non-enumerable -* properties from the source value. This is to ensure cloned types retain discriminable -* hidden properties. +* Returns a Clone of the given value. This function is similar to structuredClone() +* but also supports deep cloning instances of Map, Set and TypeArray. */ function Clone$1(value) { Metrics.clone += 1; - return FromValue$3(value); + return FromValue$2(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/settings/settings.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/settings/settings.mjs const settings = { immutableTypes: false, maxErrors: 8, @@ -421,7 +429,7 @@ function Get$2() { return settings; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/memory/create.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/memory/create.mjs function MergeHidden(left, right) { for (const key of Object.keys(right)) Object.defineProperty(left, key, { configurable: true, @@ -450,7 +458,7 @@ function Create(hidden, enumerable, options = {}) { return settings.immutableTypes ? Object.freeze(withHidden) : withHidden; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/memory/discard.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/memory/discard.mjs /** Discards multiple property keys from the given object value */ function Discard(value, propertyKeys) { Metrics.discard += 1; @@ -464,7 +472,7 @@ function Discard(value, propertyKeys) { return result; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/memory/update.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/memory/update.mjs /** * Updates a value with new properties while preserving property enumerability. Use this function to modify * existing types without altering their configuration. @@ -488,7 +496,7 @@ function Update$1(current, hidden, enumerable) { return result; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/schema.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/schema.mjs function IsKind(value, kind) { return IsObject$1(value) && HasPropertyKey(value, "~kind") && IsEqual(value["~kind"], kind); } @@ -496,7 +504,7 @@ function IsSchema$1(value) { return IsObject$1(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/deferred.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/deferred.mjs /** Creates a Deferred action. */ function Deferred(action, parameters, options) { return Create({ "~kind": "Deferred" }, { @@ -511,13 +519,29 @@ function IsDeferred(value) { return IsKind(value, "Deferred"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/base.mjs -/** Returns true if the given value is a Base type. */ -function IsBase(value) { - return IsKind(value, "Base"); +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/readonly/instantiate_add.mjs +function AddReadonlyOperation(type) { + return Update$1(type, { "~readonly": true }, {}); +} +function AddReadonlyAction(type, options) { + return Update$1(AddReadonlyOperation(type), {}, options); +} +function AddReadonlyInstantiate(context, state, type, options) { + return AddReadonlyAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/array.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/optional/instantiate_add.mjs +function AddOptionalOperation(type) { + return Update$1(type, { "~optional": true }, {}); +} +function AddOptionalAction(type, options) { + return Update$1(AddOptionalOperation(type), {}, options); +} +function AddOptionalInstantiate(context, state, type, options) { + return AddOptionalAction(InstantiateType(context, state, type), options); +} +//#endregion +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/array.mjs /** Creates an Array type. */ function _Array_(items, options) { return Create({ "~kind": "Array" }, { @@ -538,32 +562,7 @@ function ArrayOptions(type) { ]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/async_iterator.mjs -/** -* Creates a AsyncIterator type. -* -* @deprecated This type is being removed in the next version of TypeBox. A fallback will be provided under examples. -*/ -function AsyncIterator(iteratorItems, options) { - return Create({ "~kind": "AsyncIterator" }, { - type: "asyncIterator", - iteratorItems - }, options); -} -/** Returns true if the given value is a TAsyncIterator */ -function IsAsyncIterator(value) { - return IsKind(value, "AsyncIterator"); -} -/** Extracts options from a TAsyncIterator. */ -function AsyncIteratorOptions(type) { - return Discard(type, [ - "~kind", - "type", - "iteratorItems" - ]); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/constructor.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/constructor.mjs /** Creates a Constructor type. */ function Constructor(parameters, instanceType, options = {}) { return Create({ "~kind": "Constructor" }, { @@ -586,7 +585,7 @@ function ConstructorOptions(type) { ]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/function.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/function.mjs /** Creates a Function type. */ function _Function_(parameters, returnType, options = {}) { return Create({ ["~kind"]: "Function" }, { @@ -609,7 +608,7 @@ function FunctionOptions(type) { ]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/ref.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/ref.mjs /** Creates a Ref type. */ function Ref$1(ref, options) { return Create({ ["~kind"]: "Ref" }, { $ref: ref }, options); @@ -619,7 +618,7 @@ function IsRef$1(value) { return IsKind(value, "Ref"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/generic.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/generic.mjs /** Creates a Generic type. */ function Generic(parameters, expression) { return Create({ "~kind": "Generic" }, { @@ -633,7 +632,7 @@ function IsGeneric(value) { return IsKind(value, "Generic"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/any.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/any.mjs /** Creates a Any type. */ function Any(options) { return Create({ ["~kind"]: "Any" }, {}, options); @@ -643,7 +642,7 @@ function IsAny(value) { return IsKind(value, "Any"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/never.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/never.mjs const NeverPattern = "(?!)"; /** Creates a Never type. */ function Never(options) { @@ -654,34 +653,19 @@ function IsNever(value) { return IsKind(value, "Never"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/optional/instantiate_add.mjs -function AddOptionalOperation(type) { - return Update$1(type, { "~optional": true }, {}); -} -function AddOptionalAction(type, options) { - return Update$1(AddOptionalOperation(type), {}, options); -} -function AddOptionalInstantiate(context, state, type, options) { - return AddOptionalAction(InstantiateType(context, state, type), options); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/_add_optional.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/_add_optional.mjs /** Applies an AddOptional action to a type. */ function AddOptional(type, options = {}) { return AddOptionalAction(type, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/_optional.mjs -/** Applies an Optional modifier to the given type. */ -function Optional(type) { - return AddOptional(type); -} +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/_optional.mjs /** Returns true if the given value is TOptional */ function IsOptional(value) { return IsSchema$1(value) && HasPropertyKey(value, "~optional"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/properties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/properties.mjs /** Creates a RequiredArray derived from the given TProperties value. */ function RequiredArray(properties) { return Keys(properties).filter((key) => !IsOptional(properties[key])); @@ -695,7 +679,7 @@ function PropertyValues(properties) { return Values(properties); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/object.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/object.mjs /** Creates an Object type. */ function _Object_(properties, options = {}) { const requiredKeys = RequiredArray(properties); @@ -719,7 +703,7 @@ function ObjectOptions(type) { ]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/unknown.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/unknown.mjs /** Creates an Unknown type. */ function Unknown(options) { return Create({ ["~kind"]: "Unknown" }, {}, options); @@ -729,7 +713,7 @@ function IsUnknown(value) { return IsKind(value, "Unknown"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/cyclic.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/cyclic.mjs /** Creates a Cyclic type. */ function Cyclic($defs, $ref, options) { const defs = Keys($defs).reduce((result, key) => { @@ -748,7 +732,7 @@ function IsCyclic(value) { return IsKind(value, "Cyclic"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/unsafe.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/unsafe.mjs /** Creates a Unsafe type. */ function Unsafe(schema) { return Update$1(schema, { ["~unsafe"]: null }, {}); @@ -758,7 +742,7 @@ function IsUnsafe(value) { return IsObjectNotArray(value) && HasPropertyKey(value, "~unsafe") && IsNull$1(value["~unsafe"]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/arguments/arguments.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/arguments/arguments.mjs /** * Match arguments for overloaded functions that use the `...args: unknown[]` pattern. Arguments * are parsed using argument length only. @@ -769,13 +753,13 @@ function Match$3(args, match) { })(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/infer.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/infer.mjs /** Returns true if the given value is TInfer. */ function IsInfer(value) { return IsKind(value, "Infer"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/dependent.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/dependent.mjs /** Creates a Dependent type */ function Dependent(if_, then_, else_, options = {}) { return Create({ "~kind": "Dependent" }, { @@ -798,7 +782,7 @@ function DependentOptions(type) { ]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/enum/typescript_enum_to_enum_values.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/enum/typescript_enum_to_enum_values.mjs function IsTypeScriptEnumLike(value) { return IsObjectNotArray(value); } @@ -806,7 +790,7 @@ function TypeScriptEnumToEnumValues(type) { return Keys(type).filter((key) => isNaN(key)).reduce((result, key) => [...result, type[key]], []); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/enum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/enum.mjs /** Creates an Enum type. */ function Enum(value, options) { return Create({ "~kind": "Enum" }, { enum: IsTypeScriptEnumLike(value) ? TypeScriptEnumToEnumValues(value) : value }, options); @@ -816,7 +800,7 @@ function IsEnum$1(value) { return IsKind(value, "Enum"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/intersect.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/intersect.mjs /** Creates a Intersect type. */ function Intersect(types, options = {}) { return Create({ "~kind": "Intersect" }, { allOf: types }, options); @@ -830,13 +814,13 @@ function IntersectOptions(type) { return Discard(type, ["~kind", "allOf"]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/unreachable/unreachable.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/unreachable/unreachable.mjs /** Used for unreachable logic */ function Unreachable() { throw new Error("Unreachable"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/hashing/hash.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/hashing/hash.mjs function InstanceKeys(value) { const propertyKeys = /* @__PURE__ */ new Set(); let current = value; @@ -876,9 +860,9 @@ function FNV1A64_OP(byte) { Accumulator = Accumulator ^ Bytes[byte]; Accumulator = Accumulator * Prime % Size; } -function FromArray$9(value) { +function FromArray$8(value) { FNV1A64_OP(ByteMarker.Array); - for (const item of value) FromValue$2(item); + for (const item of value) FromValue$1(item); } function FromBigInt$5(value) { FNV1A64_OP(ByteMarker.BigInt); @@ -891,15 +875,15 @@ function FromBoolean$5(value) { } function FromConstructor(value) { FNV1A64_OP(ByteMarker.Constructor); - FromValue$2(value.toString()); + FromValue$1(value.toString()); } function FromDate(value) { FNV1A64_OP(ByteMarker.Date); - FromValue$2(value.getTime()); + FromValue$1(value.getTime()); } function FromFunction(value) { FNV1A64_OP(ByteMarker.Function); - FromValue$2(value.toString()); + FromValue$1(value.toString()); } function FromNull$1(_value) { FNV1A64_OP(ByteMarker.Null); @@ -909,11 +893,11 @@ function FromNumber$4(value) { F64In.setFloat64(0, value, true); for (const byte of F64Out) FNV1A64_OP(byte); } -function FromObject$13(value) { +function FromObject$12(value) { FNV1A64_OP(ByteMarker.Object); for (const key of InstanceKeys(value).sort()) { - FromValue$2(key); - FromValue$2(value[key]); + FromValue$1(key); + FromValue$1(value[key]); } } function FromRegExp(value) { @@ -927,7 +911,7 @@ function FromString$6(value) { } function FromSymbol(value) { FNV1A64_OP(ByteMarker.Symbol); - FromValue$2(value.toString()); + FromValue$1(value.toString()); } function FromTypeArray(value) { FNV1A64_OP(ByteMarker.TypeArray); @@ -937,13 +921,13 @@ function FromTypeArray(value) { function FromUndefined$1(_value) { return FNV1A64_OP(ByteMarker.Undefined); } -function FromValue$2(value) { - return IsTypeArray(value) ? FromTypeArray(value) : IsDate$1(value) ? FromDate(value) : IsRegExp(value) ? FromRegExp(value) : IsBoolean$1(value) ? FromBoolean$5(value.valueOf()) : IsString$1(value) ? FromString$6(value.valueOf()) : IsNumber$1(value) ? FromNumber$4(value.valueOf()) : IsIEEE754(value) ? FromNumber$4(value) : IsArray$1(value) ? FromArray$9(value) : IsBoolean$2(value) ? FromBoolean$5(value) : IsBigInt$1(value) ? FromBigInt$5(value) : IsConstructor$1(value) ? FromConstructor(value) : IsNull$1(value) ? FromNull$1(value) : IsObject$1(value) ? FromObject$13(value) : IsString$2(value) ? FromString$6(value) : IsSymbol$1(value) ? FromSymbol(value) : IsUndefined$1(value) ? FromUndefined$1(value) : IsFunction$1(value) ? FromFunction(value) : Unreachable(); +function FromValue$1(value) { + return IsTypeArray(value) ? FromTypeArray(value) : IsDate$1(value) ? FromDate(value) : IsRegExp(value) ? FromRegExp(value) : IsBoolean$1(value) ? FromBoolean$5(value.valueOf()) : IsString$1(value) ? FromString$6(value.valueOf()) : IsNumber$1(value) ? FromNumber$4(value.valueOf()) : IsIEEE754(value) ? FromNumber$4(value) : IsArray$1(value) ? FromArray$8(value) : IsBoolean$2(value) ? FromBoolean$5(value) : IsBigInt$1(value) ? FromBigInt$5(value) : IsConstructor$1(value) ? FromConstructor(value) : IsNull$1(value) ? FromNull$1(value) : IsObject$1(value) ? FromObject$12(value) : IsString$2(value) ? FromString$6(value) : IsSymbol$1(value) ? FromSymbol(value) : IsUndefined$1(value) ? FromUndefined$1(value) : IsFunction$1(value) ? FromFunction(value) : Unreachable(); } /** Generates a FNV1A-64 non cryptographic hash of the given value */ function HashCode(value) { Accumulator = BigInt("14695981039346656037"); - FromValue$2(value); + FromValue$1(value); return Accumulator; } /** Generates a FNV1A-64 non cryptographic hash of the given value */ @@ -951,7 +935,7 @@ function Hash(value) { return HashCode(value).toString(16).padStart(16, "0"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/locale/en_US.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/locale/en_US.mjs /** en_US: English (United States) - ISO 639-1 language code 'en' with ISO 3166-1 alpha-2 country code 'US' for United States. */ function en_US(error) { switch (error.keyword) { @@ -985,69 +969,49 @@ function en_US(error) { case "unevaluatedItems": return "must not have unevaluated items"; case "unevaluatedProperties": return "must not have unevaluated properties"; case "uniqueItems": return `must not have duplicate items`; - case "~guard": return `must match check function`; case "~refine": return error.params.message; default: return "an unknown validation error occurred"; } } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/locale/_config.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/locale/_config.mjs let locale = en_US; /** Gets the locale */ function Get$1() { return locale; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/_codec.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/_codec.mjs function IsCodec(value) { return IsSchema$1(value) && HasPropertyKey(value, "~codec") && IsObject$1(value["~codec"]) && HasPropertyKey(value["~codec"], "encode") && HasPropertyKey(value["~codec"], "decode"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/_immutable.mjs -/** Applies an Immutable modifier to the given type. */ -function Immutable(type) { - return AddImmutable(type); -} +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/_immutable.mjs /** Returns true if the given value is a TImmutable */ function IsImmutable(value) { return IsSchema$1(value) && HasPropertyKey(value, "~immutable"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/readonly/instantiate_add.mjs -function AddReadonlyOperation(type) { - return Update$1(type, { "~readonly": true }, {}); -} -function AddReadonlyAction(type, options) { - return Update$1(AddReadonlyOperation(type), {}, options); -} -function AddReadonlyInstantiate(context, state, type, options) { - return AddReadonlyAction(InstantiateType(context, state, type), options); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/_add_readonly.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/_add_readonly.mjs /** Applies an AddReadonly action to a type. */ function AddReadonly(type, options = {}) { return AddReadonlyAction(type, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/_readonly.mjs -/** Applies an Readonly property modifier to the given type. */ -function Readonly(type) { - return AddReadonly(type); -} +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/_readonly.mjs /** Returns true if the given value is a TReadonly */ function IsReadonly(value) { return IsSchema$1(value) && HasPropertyKey(value, "~readonly"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/_refine.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/_refine.mjs /** Applies a Refine check to the given type. */ function RefineAdd(type, refinement) { return Update$1(type, { "~refine": IsRefine$1(type) ? [...type["~refine"], refinement] : [refinement] }, {}); } /** Refines a type with an explicit check */ function Refine(...args) { - const [type, check, error_or_message] = Match$3(args, { + const [type, check, error] = Match$3(args, { 3: (type, check, error) => [ type, check, @@ -1061,7 +1025,7 @@ function Refine(...args) { }); return RefineAdd(type, { check, - error: IsString$2(error_or_message) ? () => error_or_message : error_or_message + error }); } /** Returns true if the given value is a TRefinement. */ @@ -1073,7 +1037,7 @@ function IsRefine$1(value) { return IsSchema$1(value) && HasPropertyKey(value, "~refine") && IsArray$1(value["~refine"]) && Every(value["~refine"], 0, (value) => IsRefinement(value)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/bigint.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/bigint.mjs const BigIntPattern = "-?(?:0|[1-9][0-9]*)n"; /** Creates a BigInt type. */ function BigInt$1(options) { @@ -1084,13 +1048,13 @@ function IsBigInt(value) { return IsKind(value, "BigInt"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/boolean.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/boolean.mjs /** Returns true if the given value is a TBoolean. */ function IsBoolean(value) { return IsKind(value, "Boolean"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/integer.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/integer.mjs const IntegerPattern = "-?(?:0|[1-9][0-9]*)"; /** Creates a Integer type. */ function Integer(options) { @@ -1101,32 +1065,7 @@ function IsInteger(value) { return IsKind(value, "Integer"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/iterator.mjs -/** -* Creates a Iterator type. -* -* @deprecated This type is being removed in the next version of TypeBox. A fallback will be provided under examples. -*/ -function Iterator(iteratorItems, options) { - return Create({ "~kind": "Iterator" }, { - type: "iterator", - iteratorItems - }, options); -} -/** Returns true if the given value is TIterator. */ -function IsIterator(value) { - return IsKind(value, "Iterator"); -} -/** Extracts options from a TIterator. */ -function IteratorOptions(type) { - return Discard(type, [ - "~kind", - "type", - "iteratorItems" - ]); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/literal.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/literal.mjs var InvalidLiteralValue = class extends Error { constructor(value) { super(`Invalid Literal value`); @@ -1175,7 +1114,7 @@ function IsLiteral(value) { return IsKind(value, "Literal"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/null.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/null.mjs /** Creates a Null type. */ function Null(options) { return Create({ "~kind": "Null" }, { type: "null" }, options); @@ -1185,7 +1124,7 @@ function IsNull(value) { return IsKind(value, "Null"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/number.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/number.mjs const NumberPattern = "-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?"; /** Creates a Number type. */ function Number$1(options) { @@ -1196,7 +1135,7 @@ function IsNumber(value) { return IsKind(value, "Number"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/symbol.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/symbol.mjs /** Creates a Symbol type. */ function Symbol$1(options) { return Create({ "~kind": "Symbol" }, { type: "symbol" }, options); @@ -1206,32 +1145,7 @@ function IsSymbol(value) { return IsKind(value, "Symbol"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/promise.mjs -/** -* Creates a Promise type. -* -* @deprecated This type is being removed in the next version of TypeBox. A fallback will be provided under examples. -*/ -function _Promise_(item, options) { - return Create({ ["~kind"]: "Promise" }, { - type: "promise", - item - }, options); -} -/** Returns true if the given type is TPromise. */ -function IsPromise(value) { - return IsKind(value, "Promise"); -} -/** Extracts options from a TPromise. */ -function PromiseOptions(type) { - return Discard(type, [ - "~kind", - "type", - "item" - ]); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/string.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/string.mjs /** Creates a String type. */ function String$1(options) { return Create({ "~kind": "String" }, { type: "string" }, options); @@ -1241,7 +1155,7 @@ function IsString(value) { return IsKind(value, "String"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/union.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/union.mjs /** Creates a Union type. */ function Union(anyOf, options = {}) { return Create({ "~kind": "Union" }, { anyOf }, options); @@ -1255,14 +1169,14 @@ function UnionOptions(type) { return Discard(type, ["~kind", "anyOf"]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/patterns/pattern.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/patterns/pattern.mjs /** Parses a Pattern into a sequence of TemplateLiteral types. A result of [] indicates failure to parse. */ function ParsePatternIntoTypes(pattern) { const parsed = Pattern(pattern); return IsEqual(parsed.length, 2) ? parsed[0] : []; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/template_literal/is_finite.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/template_literal/is_finite.mjs function FromLiteral$5(_value) { return true; } @@ -1280,7 +1194,7 @@ function IsTemplateLiteralFinite(types) { return FromTypes$5(types); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/template_literal/create.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/template_literal/create.mjs function TemplateLiteralCreate(pattern) { return Create({ ["~kind"]: "TemplateLiteral" }, { type: "string", @@ -1288,7 +1202,7 @@ function TemplateLiteralCreate(pattern) { }, {}); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/template_literal/decode.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/template_literal/decode.mjs function FromLiteralPush(variants, value, result = []) { return ShiftLeft(variants, (left, right) => FromLiteralPush(right, value, [...result, `${left}${value}`]), () => result); } @@ -1329,7 +1243,7 @@ function TemplateLiteralDecode(pattern) { return IsTemplateLiteral(decoded) ? String$1() : decoded; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/record/record_create.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/record/record_create.mjs function CreateRecord(key, value) { const type = "object"; const patternProperties = { [key]: value }; @@ -1339,12 +1253,12 @@ function CreateRecord(key, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/record/from_key_any.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/record/from_key_any.mjs function FromAnyKey(value) { return CreateRecord(StringKey, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/record/from_key_boolean.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/record/from_key_boolean.mjs function FromBooleanKey(value) { return _Object_({ true: value, @@ -1352,7 +1266,7 @@ function FromBooleanKey(value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/tuple.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/tuple.mjs /** Creates a Tuple type. */ function Tuple(types, options = {}) { const [items, minItems, additionalItems] = [ @@ -1382,7 +1296,7 @@ function TupleOptions(type) { ]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/readonly/instantiate_remove.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/readonly/instantiate_remove.mjs function RemoveReadonlyOperation(type) { return Discard(type, ["~readonly"]); } @@ -1393,13 +1307,13 @@ function RemoveReadonlyInstantiate(context, state, type, options) { return RemoveReadonlyAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/_remove_readonly.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/_remove_readonly.mjs /** Applies an RemoveReadonly action to a type. */ function RemoveReadonly(type, options = {}) { return RemoveReadonlyAction(type, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/optional/instantiate_remove.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/optional/instantiate_remove.mjs function RemoveOptionalOperation(type) { return Discard(type, ["~optional"]); } @@ -1410,13 +1324,13 @@ function RemoveOptionalInstantiate(context, state, type, options) { return RemoveOptionalAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/_remove_optional.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/_remove_optional.mjs /** Applies an RemoveOptional action to a type. */ function RemoveOptional(type, options = {}) { return RemoveOptionalAction(type, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/tuple/to_object.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/tuple/to_object.mjs function TupleElementsToProperties(types) { return types.reduceRight((result, right, index) => { return { @@ -1429,7 +1343,7 @@ function TupleToObject(type) { return _Object_(TupleElementsToProperties(type.items)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/evaluate/composite.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/evaluate/composite.mjs function IsReadonlyProperty(left, right) { return IsReadonly(left) ? IsReadonly(right) ? true : false : false; } @@ -1460,13 +1374,13 @@ function Composite(left, right) { return _Object_(CompositeProperties(GetProperties(left), GetProperties(right))); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/evaluate/narrow.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/evaluate/narrow.mjs function Narrow(left, right) { const result = Compare(left, right); return IsEqual(result, "left-inside") ? left : IsEqual(result, "right-inside") ? right : IsEqual(result, "equal") ? right : Never(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/evaluate/distribute.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/evaluate/distribute.mjs function IsObjectLike(type) { return IsObject(type) || IsTuple(type); } @@ -1493,7 +1407,7 @@ function Distribute$1(types, result = []) { return ShiftLeft(types, (left, right) => IsUnion(left) ? Distribute$1(right, DistributeUnion(left.anyOf, result)) : Distribute$1(right, DistributeType(left, result)), () => result); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/exclude/operation.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/exclude/operation.mjs function ExcludeType(left, right) { return IsExtendsTrueLike(Extends({}, left, right)) ? [] : [left]; } @@ -1507,7 +1421,7 @@ function ExcludeOperation(left, right) { return EvaluateUnion(ExcludeUnion(IsUnion(evaluated) ? evaluated.anyOf : [evaluated], right)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/evaluate/evaluate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/evaluate/evaluate.mjs function EvaluateDependent(if_, then_, else_) { return EvaluateUnion([Intersect([if_, then_]), ExcludeOperation(else_, if_)]); } @@ -1530,42 +1444,42 @@ function EvaluateUnionFast(types) { return IsEqual(types.length, 1) ? types[0] : IsEqual(types.length, 0) ? Never() : Union(types); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/record/from_key_enum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/record/from_key_enum.mjs function FromEnumKey(values, value) { return FromKey(EvaluateEnum(values), value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/record/from_key_integer.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/record/from_key_integer.mjs function FromIntegerKey(_key, value) { return CreateRecord(IntegerKey, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/record/from_key_intersect.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/record/from_key_intersect.mjs function FromIntersectKey(types, value) { return FromKey(EvaluateIntersect(types), value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/record/from_key_literal.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/record/from_key_literal.mjs function FromLiteralKey(key, value) { return IsString$2(key) || IsNumber$2(key) ? _Object_({ [key]: value }) : IsEqual(key, false) ? _Object_({ false: value }) : IsEqual(key, true) ? _Object_({ true: value }) : _Object_({}); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/record/from_key_number.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/record/from_key_number.mjs function FromNumberKey(_key, value) { return CreateRecord(NumberKey, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/record/from_key_string.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/record/from_key_string.mjs function FromStringKey(key, value) { return HasPropertyKey(key, "pattern") && (IsString$2(key.pattern) || key.pattern instanceof RegExp) ? CreateRecord(key.pattern.toString(), value) : CreateRecord(StringKey, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/record/from_key_template_literal.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/record/from_key_template_literal.mjs function FromTemplateKey(pattern, value) { return IsTemplateLiteralFinite(ParsePatternIntoTypes(pattern)) ? FromKey(EvaluateTemplateLiteral(pattern), value) : CreateRecord(pattern, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/evaluate/flatten.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/evaluate/flatten.mjs function FlattenType(type) { return IsUnion(type) ? Flatten(type.anyOf) : [type]; } @@ -1575,7 +1489,7 @@ function Flatten(types) { }, []); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/record/from_key_union.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/record/from_key_union.mjs function StringOrNumberCheck(types) { return types.some((type) => IsString(type) || IsNumber(type) || IsInteger(type)); } @@ -1599,12 +1513,12 @@ function FromUnionKey(types, value) { return IsSchema$1(record) ? record : CreateObject(flattened, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/record/from_key.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/record/from_key.mjs function FromKey(key, value) { return IsAny(key) ? FromAnyKey(value) : IsBoolean(key) ? FromBooleanKey(value) : IsEnum$1(key) ? FromEnumKey(key.enum, value) : IsInteger(key) ? FromIntegerKey(key, value) : IsIntersect(key) ? FromIntersectKey(key.allOf, value) : IsLiteral(key) ? FromLiteralKey(key.const, value) : IsNumber(key) ? FromNumberKey(key, value) : IsUnion(key) ? FromUnionKey(key.anyOf, value) : IsString(key) ? FromStringKey(key, value) : IsTemplateLiteral(key) ? FromTemplateKey(key.pattern, value) : _Object_({}); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/record/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/record/instantiate.mjs function RecordAction(key, value, options) { return CanInstantiate([key]) ? Update$1(FromKey(key, value), {}, options) : RecordDeferred(key, value, options); } @@ -1612,7 +1526,7 @@ function RecordInstantiate(context, state, key, value, options) { return RecordAction(InstantiateType(context, state, key), InstantiateType(context, state, value), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/record.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/record.mjs const IntegerKey = `^${IntegerPattern}$`; const NumberKey = `^${NumberPattern}$`; const StringKey = `^.*$`; @@ -1648,7 +1562,7 @@ function IsRecord(value) { return IsKind(value, "Record"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/rest.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/rest.mjs /** Creates a Rest instruction type. */ function Rest(type) { return Create({ "~kind": "Rest" }, { @@ -1661,13 +1575,13 @@ function IsRest(value) { return IsKind(value, "Rest"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/this.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/this.mjs /** Returns true if the given value is TThis. */ function IsThis(value) { return IsKind(value, "This"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/undefined.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/undefined.mjs /** Creates a Undefined type. */ function Undefined(options) { return Create({ "~kind": "Undefined" }, { type: "undefined" }, options); @@ -1677,13 +1591,13 @@ function IsUndefined(value) { return IsKind(value, "Undefined"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/void.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/void.mjs /** Returns true if the given value is TVoid. */ function IsVoid(value) { return IsKind(value, "Void"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/mapping.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/mapping.mjs function PatternBigIntMapping(input) { return BigInt$1(); } @@ -1721,7 +1635,7 @@ function PatternMapping(input) { return input[1]; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/token/internal/match.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/token/internal/match.mjs /** Checks the value is a Tuple-2 [string, string] result */ function IsMatch(value) { return IsEqual(value.length, 2); @@ -1731,7 +1645,7 @@ function Match$2(input, ok, fail) { return IsMatch(input) ? ok(input[0], input[1]) : fail(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/token/internal/take.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/token/internal/take.mjs function TakeVariant(variant, input) { return IsEqual(input.indexOf(variant), 0) ? [variant, input.slice(variant.length)] : []; } @@ -1744,14 +1658,14 @@ function Take(variants, input) { return []; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/token/internal/char.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/token/internal/char.mjs function Range(start, end) { return Array.from({ length: end - start + 1 }, (_, i) => String.fromCharCode(start + i)); } const Alpha = [...Range(97, 122), ...Range(65, 90)]; const Digit = ["0", ...Range(49, 57)]; //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/token/internal/trim.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/token/internal/trim.mjs const LineComment = "//"; const OpenComment = "/*"; const CloseComment = "*/"; @@ -1776,7 +1690,7 @@ function Trim(input) { } [...Digit]; //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/token/const.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/token/const.mjs function TakeConst(const_, input) { return Take([const_], input); } @@ -1791,7 +1705,7 @@ function Const(const_, input) { ], ...Digit]; [...Digit]; //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/token/until.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/token/until.mjs function TakeOne(input) { return IsEqual(input, "") ? [] : [input.slice(0, 1), input.slice(1)]; } @@ -1803,13 +1717,13 @@ function Until(end, input, result = "") { return Match$2(TakeOne(input), (One, Rest) => IsInputMatchSentinal(end, input) ? [result, input] : Until(end, Rest, `${result}${One}`), () => []); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/token/until_1.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/token/until_1.mjs /** Match Input until but not including End. No match if End not found or match is zero-length. */ function Until_1(end, input) { return Match$2(Until(end, input), (Until, UntilRest) => IsEqual(Until, "") ? [] : [Until, UntilRest], () => []); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/parser.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/parser.mjs const If = (result, left, right = () => []) => result.length === 2 ? left(result) : right(); const PatternBigInt = (input) => If(Const("-?(?:0|[1-9][0-9]*)n", input), ([_0, input]) => [PatternBigIntMapping(_0), input]); const PatternString = (input) => If(Const(".*", input), ([_0, input]) => [PatternStringMapping(_0), input]); @@ -1846,7 +1760,7 @@ const Pattern = (input) => If(If(Const("^", input), ([_0, input]) => If(PatternB _2 ], input]))), ([_0, input]) => [PatternMapping(_0), input]); //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/template_literal/encode.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/template_literal/encode.mjs function JoinString(input) { return input.join("|"); } @@ -1897,7 +1811,7 @@ function TemplateLiteralEncode(types) { return TemplateLiteralCreate(EncodePattern(types)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/template_literal/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/template_literal/instantiate.mjs function TemplateLiteralAction(types, options) { return CanInstantiate(types) ? Update$1(TemplateLiteralEncode(types), {}, options) : TemplateLiteralDeferred(types, options); } @@ -1905,7 +1819,7 @@ function TemplateLiteralInstantiate(context, state, types, options) { return TemplateLiteralAction(InstantiateTypes(context, state, types), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/template_literal.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/template_literal.mjs /** Creates a deferred TemplateLiteral action. */ function TemplateLiteralDeferred(types, options = {}) { return Deferred("TemplateLiteral", [types], options); @@ -1919,7 +1833,7 @@ function IsTemplateLiteral(value) { return IsKind(value, "TemplateLiteral"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/result.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/result.mjs function ExtendsUnion$1(inferred) { return Create({ ["~kind"]: "ExtendsUnion" }, { inferred }); } @@ -1945,7 +1859,7 @@ function Match$1(result, true_, false_) { return IsExtendsTrueLike(result) ? true_(result.inferred) : false_(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/extends_right.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/extends_right.mjs function ExtendsRightInfer(inferred, name, left, right) { return Match$1(ExtendsLeft(inferred, left, right), (checkInferred) => ExtendsTrue(Assign(Assign(inferred, checkInferred), { [name]: left })), () => ExtendsFalse()); } @@ -1971,12 +1885,12 @@ function ExtendsRight(inferred, left, right) { return IsAny(right) ? ExtendsRightAny(inferred, left) : IsDependent(right) ? ExtendsRightDependent(inferred, left, right.if, right.then, right.else) : IsEnum$1(right) ? ExtendsRightEnum(inferred, left, right.enum) : IsInfer(right) ? ExtendsRightInfer(inferred, right.name, left, right.extends) : IsIntersect(right) ? ExtendsRightIntersect(inferred, left, right.allOf) : IsTemplateLiteral(right) ? ExtendsRightTemplateLiteral(inferred, left, right.pattern) : IsUnion(right) ? ExtendsRightUnion(inferred, left, right.anyOf) : IsUnknown(right) ? ExtendsTrue(inferred) : ExtendsFalse(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/any.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/any.mjs function ExtendsAny(inferred, left, right) { return IsInfer(right) ? ExtendsRight(inferred, left, right) : IsAny(right) ? ExtendsTrue(inferred) : IsUnknown(right) ? ExtendsTrue(inferred) : ExtendsUnion$1(inferred); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/array.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/array.mjs function ExtendsImmutable(left, right) { const isImmutableLeft = IsImmutable(left); const isImmutableRight = IsImmutable(right); @@ -1986,22 +1900,17 @@ function ExtendsArray(inferred, arrayLeft, left, right) { return IsArray(right) ? ExtendsImmutable(arrayLeft, right) ? ExtendsLeft(inferred, left, right.items) : ExtendsFalse() : ExtendsRight(inferred, arrayLeft, right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/async_iterator.mjs -function ExtendsAsyncIterator(inferred, left, right) { - return IsAsyncIterator(right) ? ExtendsLeft(inferred, left, right.iteratorItems) : ExtendsRight(inferred, AsyncIterator(left), right); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/bigint.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/bigint.mjs function ExtendsBigInt(inferred, left, right) { return IsBigInt(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/boolean.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/boolean.mjs function ExtendsBoolean(inferred, left, right) { return IsBoolean(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/parameters.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/parameters.mjs function ParameterCompare(inferred, left, leftRest, right, rightRest) { const checkLeft = IsInfer(right) ? left : right; const checkRight = IsInfer(right) ? right : left; @@ -2019,47 +1928,42 @@ function ExtendsParameters(inferred, left, right) { return ParametersLeft(inferred, left, right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/return_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/return_type.mjs function ExtendsReturnType(inferred, left, right) { return IsVoid(right) ? ExtendsTrue(inferred) : ExtendsLeft(inferred, left, right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/constructor.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/constructor.mjs function ExtendsConstructor(inferred, parameters, returnType, right) { return IsAny(right) ? ExtendsTrue(inferred) : IsUnknown(right) ? ExtendsTrue(inferred) : IsConstructor(right) ? Match$1(ExtendsParameters(inferred, parameters, right["parameters"]), (inferred) => ExtendsReturnType(inferred, returnType, right["instanceType"]), () => ExtendsFalse()) : ExtendsFalse(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/dependent.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/dependent.mjs function ExtendsDependent(inferred, if_, then_, else_, right) { return Match$1(ExtendsLeft(inferred, if_, right), () => ExtendsLeft(inferred, then_, right), () => ExtendsLeft(inferred, else_, right)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/enum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/enum.mjs function ExtendsEnum(inferred, left, right) { return ExtendsLeft(inferred, EvaluateEnum(left), right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/function.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/function.mjs function ExtendsFunction(inferred, parameters, returnType, right) { return IsAny(right) ? ExtendsTrue(inferred) : IsUnknown(right) ? ExtendsTrue(inferred) : IsFunction(right) ? Match$1(ExtendsParameters(inferred, parameters, right["parameters"]), (inferred) => ExtendsReturnType(inferred, returnType, right["returnType"]), () => ExtendsFalse()) : ExtendsFalse(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/integer.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/integer.mjs function ExtendsInteger(inferred, left, right) { return IsInteger(right) ? ExtendsTrue(inferred) : IsNumber(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/intersect.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/intersect.mjs function ExtendsIntersect(inferred, left, right) { return ExtendsLeft(inferred, EvaluateIntersect(left), right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/iterator.mjs -function ExtendsIterator(inferred, left, right) { - return IsIterator(right) ? ExtendsLeft(inferred, left, right.iteratorItems) : ExtendsRight(inferred, Iterator(left), right); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/literal.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/literal.mjs function ExtendsLiteralValue(inferred, left, right) { return left === right ? ExtendsTrue(inferred) : ExtendsFalse(); } @@ -2079,22 +1983,22 @@ function ExtendsLiteral(inferred, left, right) { return IsBigInt$1(left.const) ? ExtendsLiteralBigInt(inferred, left.const, right) : IsBoolean$2(left.const) ? ExtendsLiteralBoolean(inferred, left.const, right) : IsNumber$2(left.const) ? ExtendsLiteralNumber(inferred, left.const, right) : IsString$2(left.const) ? ExtendsLiteralString(inferred, left.const, right) : Unreachable(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/never.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/never.mjs function ExtendsNever(inferred, left, right) { return IsInfer(right) ? ExtendsRight(inferred, left, right) : ExtendsTrue(inferred); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/null.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/null.mjs function ExtendsNull(inferred, left, right) { return IsNull(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/number.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/number.mjs function ExtendsNumber(inferred, left, right) { return IsNumber(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/object.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/object.mjs function ExtendsPropertyOptional(inferred, left, right) { return IsOptional(left) ? IsOptional(right) ? ExtendsTrue(inferred) : ExtendsFalse() : ExtendsTrue(inferred); } @@ -2141,38 +2045,33 @@ function ExtendsObject(inferred, left, right) { return IsRecord(right) ? ExtendsObjectToRecord(inferred, left, RecordPattern(right), RecordValue(right)) : IsObject(right) ? ExtendsObjectToObject(inferred, left, right.properties) : ExtendsRight(inferred, _Object_(left), right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/promise.mjs -function ExtendsPromise(inferred, left, right) { - return IsPromise(right) ? ExtendsLeft(inferred, left, right.item) : ExtendsRight(inferred, _Promise_(left), right); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/record.mjs -function FromObject$12(inferred, properties) { +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/record.mjs +function FromObject$11(inferred, properties) { return IsEqual(Keys(properties).length, 0) ? ExtendsTrue(inferred) : ExtendsFalse(); } function FromRecord$5(inferred, _leftKey, leftValue, _rightKey, rightValue) { return ExtendsLeft(inferred, leftValue, rightValue); } function ExtendsRecord(inferred, leftPattern, leftValue, right) { - return IsRecord(right) ? FromRecord$5(inferred, RecordPatternToType(leftPattern), leftValue, RecordPatternToType(RecordPattern(right)), RecordValue(right)) : IsObject(right) ? FromObject$12(inferred, right.properties) : IsAny(right) ? ExtendsTrue(inferred) : IsUnknown(right) ? ExtendsTrue(inferred) : ExtendsFalse(); + return IsRecord(right) ? FromRecord$5(inferred, RecordPatternToType(leftPattern), leftValue, RecordPatternToType(RecordPattern(right)), RecordValue(right)) : IsObject(right) ? FromObject$11(inferred, right.properties) : IsAny(right) ? ExtendsTrue(inferred) : IsUnknown(right) ? ExtendsTrue(inferred) : ExtendsFalse(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/string.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/string.mjs function ExtendsString(inferred, left, right) { return IsString(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/symbol.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/symbol.mjs function ExtendsSymbol(inferred, left, right) { return IsSymbol(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/template_literal.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/template_literal.mjs function ExtendsTemplateLiteral(inferred, left, right) { return ExtendsLeft(inferred, EvaluateTemplateLiteral(left), right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/inference.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/inference.mjs function Inferrable(name, type) { return Create({ "~kind": "Inferrable" }, { name, @@ -2200,7 +2099,7 @@ function InferUnionResult(inferred, name, left, right) { return IsArray$1(results) ? ExtendsTrue(Assign(inferred, { [name]: Union(results) })) : ExtendsFalse(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/tuple.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/tuple.mjs function Reverse(types) { return [...types].reverse(); } @@ -2238,12 +2137,12 @@ function ExtendsTuple(inferred, left, right) { return IsTuple(right) ? ExtendsTupleToTuple(inferred, instantiatedLeft, right.items) : IsArray(right) ? ExtendsTupleToArray(inferred, instantiatedLeft, right.items) : ExtendsRight(inferred, Tuple(instantiatedLeft), right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/undefined.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/undefined.mjs function ExtendsUndefined(inferred, left, right) { return IsVoid(right) ? ExtendsTrue(inferred) : IsUndefined(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/union.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/union.mjs function ExtendsUnionSome(inferred, type, unionTypes) { return ShiftLeft(unionTypes, (head, tail) => Match$1(ExtendsLeft(inferred, type, head), (inferred) => ExtendsTrue(inferred), () => ExtendsUnionSome(inferred, type, tail)), () => ExtendsFalse()); } @@ -2255,22 +2154,22 @@ function ExtendsUnion(inferred, left, right) { return IsInferable(inferrable) ? InferUnionResult(inferred, inferrable.name, left, inferrable.type) : IsUnion(right) ? ExtendsUnionLeft(inferred, left, right.anyOf) : ExtendsUnionLeft(inferred, left, [right]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/unknown.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/unknown.mjs function ExtendsUnknown(inferred, left, right) { return IsInfer(right) ? ExtendsRight(inferred, left, right) : IsAny(right) ? ExtendsTrue(inferred) : IsUnknown(right) ? ExtendsTrue(inferred) : ExtendsFalse(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/void.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/void.mjs function ExtendsVoid(inferred, left, right) { return IsVoid(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/extends_left.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/extends_left.mjs function ExtendsLeft(inferred, left, right) { - return IsAny(left) ? ExtendsAny(inferred, left, right) : IsArray(left) ? ExtendsArray(inferred, left, left.items, right) : IsAsyncIterator(left) ? ExtendsAsyncIterator(inferred, left.iteratorItems, right) : IsBigInt(left) ? ExtendsBigInt(inferred, left, right) : IsBoolean(left) ? ExtendsBoolean(inferred, left, right) : IsConstructor(left) ? ExtendsConstructor(inferred, left.parameters, left.instanceType, right) : IsDependent(left) ? ExtendsDependent(inferred, left.if, left.then, left.else, right) : IsEnum$1(left) ? ExtendsEnum(inferred, left.enum, right) : IsFunction(left) ? ExtendsFunction(inferred, left.parameters, left.returnType, right) : IsInteger(left) ? ExtendsInteger(inferred, left, right) : IsIntersect(left) ? ExtendsIntersect(inferred, left.allOf, right) : IsIterator(left) ? ExtendsIterator(inferred, left.iteratorItems, right) : IsLiteral(left) ? ExtendsLiteral(inferred, left, right) : IsNever(left) ? ExtendsNever(inferred, left, right) : IsNull(left) ? ExtendsNull(inferred, left, right) : IsNumber(left) ? ExtendsNumber(inferred, left, right) : IsObject(left) ? ExtendsObject(inferred, left.properties, right) : IsPromise(left) ? ExtendsPromise(inferred, left.item, right) : IsRecord(left) ? ExtendsRecord(inferred, RecordPattern(left), RecordValue(left), right) : IsString(left) ? ExtendsString(inferred, left, right) : IsSymbol(left) ? ExtendsSymbol(inferred, left, right) : IsTemplateLiteral(left) ? ExtendsTemplateLiteral(inferred, left.pattern, right) : IsTuple(left) ? ExtendsTuple(inferred, left.items, right) : IsUndefined(left) ? ExtendsUndefined(inferred, left, right) : IsUnion(left) ? ExtendsUnion(inferred, left.anyOf, right) : IsUnknown(left) ? ExtendsUnknown(inferred, left, right) : IsVoid(left) ? ExtendsVoid(inferred, left, right) : ExtendsFalse(); + return IsAny(left) ? ExtendsAny(inferred, left, right) : IsArray(left) ? ExtendsArray(inferred, left, left.items, right) : IsBigInt(left) ? ExtendsBigInt(inferred, left, right) : IsBoolean(left) ? ExtendsBoolean(inferred, left, right) : IsConstructor(left) ? ExtendsConstructor(inferred, left.parameters, left.instanceType, right) : IsDependent(left) ? ExtendsDependent(inferred, left.if, left.then, left.else, right) : IsEnum$1(left) ? ExtendsEnum(inferred, left.enum, right) : IsFunction(left) ? ExtendsFunction(inferred, left.parameters, left.returnType, right) : IsInteger(left) ? ExtendsInteger(inferred, left, right) : IsIntersect(left) ? ExtendsIntersect(inferred, left.allOf, right) : IsLiteral(left) ? ExtendsLiteral(inferred, left, right) : IsNever(left) ? ExtendsNever(inferred, left, right) : IsNull(left) ? ExtendsNull(inferred, left, right) : IsNumber(left) ? ExtendsNumber(inferred, left, right) : IsObject(left) ? ExtendsObject(inferred, left.properties, right) : IsRecord(left) ? ExtendsRecord(inferred, RecordPattern(left), RecordValue(left), right) : IsString(left) ? ExtendsString(inferred, left, right) : IsSymbol(left) ? ExtendsSymbol(inferred, left, right) : IsTemplateLiteral(left) ? ExtendsTemplateLiteral(inferred, left.pattern, right) : IsTuple(left) ? ExtendsTuple(inferred, left.items, right) : IsUndefined(left) ? ExtendsUndefined(inferred, left, right) : IsUnion(left) ? ExtendsUnion(inferred, left.anyOf, right) : IsUnknown(left) ? ExtendsUnknown(inferred, left, right) : IsVoid(left) ? ExtendsVoid(inferred, left, right) : ExtendsFalse(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/interface/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/interface/instantiate.mjs function InterfaceOperation(heritage, properties) { return EvaluateIntersect([...heritage, _Object_(properties)]); } @@ -2281,7 +2180,7 @@ function InterfaceInstantiate(context, state, heritage, properties, options) { return InterfaceAction(InstantiateTypes(context, state, heritage), InstantiateProperties(context, state, properties), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/interface.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/interface.mjs /** Creates a deferred Interface action. */ function InterfaceDeferred(heritage, properties, options = {}) { return Deferred("Interface", [heritage, properties], options); @@ -2291,7 +2190,7 @@ function IsInterfaceDeferred(value) { return IsSchema$1(value) && HasPropertyKey(value, "action") && IsEqual(value.action, "Interface"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/cyclic/check.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/cyclic/check.mjs function FromRef$7(stack, context, ref) { return stack.includes(ref) ? true : FromType$20([...stack, ref], context, context[ref]); } @@ -2302,14 +2201,14 @@ function FromTypes$4(stack, context, types) { return ShiftLeft(types, (left, right) => FromType$20(stack, context, left) ? true : FromTypes$4(stack, context, right), () => false); } function FromType$20(stack, context, type) { - return IsRef$1(type) ? FromRef$7(stack, context, type.$ref) : IsArray(type) ? FromType$20(stack, context, type.items) : IsAsyncIterator(type) ? FromType$20(stack, context, type.iteratorItems) : IsConstructor(type) ? FromTypes$4(stack, context, [...type.parameters, type.instanceType]) : IsFunction(type) ? FromTypes$4(stack, context, [...type.parameters, type.returnType]) : IsInterfaceDeferred(type) ? FromProperties$4(stack, context, type.parameters[1]) : IsIntersect(type) ? FromTypes$4(stack, context, type.allOf) : IsIterator(type) ? FromType$20(stack, context, type.iteratorItems) : IsObject(type) ? FromProperties$4(stack, context, type.properties) : IsPromise(type) ? FromType$20(stack, context, type.item) : IsUnion(type) ? FromTypes$4(stack, context, type.anyOf) : IsTuple(type) ? FromTypes$4(stack, context, type.items) : IsRecord(type) ? FromType$20(stack, context, RecordValue(type)) : false; + return IsRef$1(type) ? FromRef$7(stack, context, type.$ref) : IsArray(type) ? FromType$20(stack, context, type.items) : IsConstructor(type) ? FromTypes$4(stack, context, [...type.parameters, type.instanceType]) : IsFunction(type) ? FromTypes$4(stack, context, [...type.parameters, type.returnType]) : IsInterfaceDeferred(type) ? FromProperties$4(stack, context, type.parameters[1]) : IsIntersect(type) ? FromTypes$4(stack, context, type.allOf) : IsObject(type) ? FromProperties$4(stack, context, type.properties) : IsUnion(type) ? FromTypes$4(stack, context, type.anyOf) : IsTuple(type) ? FromTypes$4(stack, context, type.items) : IsRecord(type) ? FromType$20(stack, context, RecordValue(type)) : false; } /** Performs a cyclic check on the given type. Initial key stack can be empty, but faster if specified */ function CyclicCheck(stack, context, type) { return FromType$20(stack, context, type); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/cyclic/candidates.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/cyclic/candidates.mjs function ResolveCandidateKeys(context, keys) { return keys.reduce((result, left) => { return CyclicCheck([left], context, context[left]) ? [...result, left] : result; @@ -2320,7 +2219,7 @@ function CyclicCandidates(context) { return ResolveCandidateKeys(context, PropertyKeys(context)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/cyclic/dependencies.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/cyclic/dependencies.mjs function FromRef$6(context, ref, result) { return result.includes(ref) ? result : ref in context ? FromType$19(context, context[ref], [...result, ref]) : Unreachable(); } @@ -2333,14 +2232,14 @@ function FromTypes$3(context, types, result) { }, result); } function FromType$19(context, type, result) { - return IsRef$1(type) ? FromRef$6(context, type.$ref, result) : IsArray(type) ? FromType$19(context, type.items, result) : IsAsyncIterator(type) ? FromType$19(context, type.iteratorItems, result) : IsConstructor(type) ? FromTypes$3(context, [...type.parameters, type.instanceType], result) : IsFunction(type) ? FromTypes$3(context, [...type.parameters, type.returnType], result) : IsInterfaceDeferred(type) ? FromProperties$3(context, type.parameters[1], result) : IsIntersect(type) ? FromTypes$3(context, type.allOf, result) : IsIterator(type) ? FromType$19(context, type.iteratorItems, result) : IsObject(type) ? FromProperties$3(context, type.properties, result) : IsPromise(type) ? FromType$19(context, type.item, result) : IsUnion(type) ? FromTypes$3(context, type.anyOf, result) : IsTuple(type) ? FromTypes$3(context, type.items, result) : IsRecord(type) ? FromType$19(context, RecordValue(type), result) : result; + return IsRef$1(type) ? FromRef$6(context, type.$ref, result) : IsArray(type) ? FromType$19(context, type.items, result) : IsConstructor(type) ? FromTypes$3(context, [...type.parameters, type.instanceType], result) : IsFunction(type) ? FromTypes$3(context, [...type.parameters, type.returnType], result) : IsInterfaceDeferred(type) ? FromProperties$3(context, type.parameters[1], result) : IsIntersect(type) ? FromTypes$3(context, type.allOf, result) : IsObject(type) ? FromProperties$3(context, type.properties, result) : IsUnion(type) ? FromTypes$3(context, type.anyOf, result) : IsTuple(type) ? FromTypes$3(context, type.items, result) : IsRecord(type) ? FromType$19(context, RecordValue(type), result) : result; } /** Returns dependent cyclic keys for the given type. This function is used to dead-type-eliminate (DTE) for initializing TCyclic types. */ function CyclicDependencies(context, key, type) { return FromType$19(context, type, [key]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/cyclic/extends.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/cyclic/extends.mjs function FromRef$5(_ref) { return Any(); } @@ -2358,7 +2257,7 @@ function FromTypes$2(types) { }, []); } function FromType$18(type) { - return IsRef$1(type) ? FromRef$5(type.$ref) : IsArray(type) ? _Array_(FromType$18(type.items), ArrayOptions(type)) : IsAsyncIterator(type) ? AsyncIterator(FromType$18(type.iteratorItems)) : IsConstructor(type) ? Constructor(FromTypes$2(type.parameters), FromType$18(type.instanceType)) : IsFunction(type) ? _Function_(FromTypes$2(type.parameters), FromType$18(type.returnType)) : IsIntersect(type) ? Intersect(FromTypes$2(type.allOf)) : IsIterator(type) ? Iterator(FromType$18(type.iteratorItems)) : IsObject(type) ? _Object_(FromProperties$2(type.properties)) : IsPromise(type) ? _Promise_(FromType$18(type.item)) : IsRecord(type) ? Record(RecordKey(type), FromType$18(RecordValue(type))) : IsUnion(type) ? Union(FromTypes$2(type.anyOf)) : IsTuple(type) ? Tuple(FromTypes$2(type.items)) : type; + return IsRef$1(type) ? FromRef$5(type.$ref) : IsArray(type) ? _Array_(FromType$18(type.items), ArrayOptions(type)) : IsConstructor(type) ? Constructor(FromTypes$2(type.parameters), FromType$18(type.instanceType)) : IsFunction(type) ? _Function_(FromTypes$2(type.parameters), FromType$18(type.returnType)) : IsIntersect(type) ? Intersect(FromTypes$2(type.allOf)) : IsObject(type) ? _Object_(FromProperties$2(type.properties)) : IsRecord(type) ? Record(RecordKey(type), FromType$18(RecordValue(type))) : IsUnion(type) ? Union(FromTypes$2(type.anyOf)) : IsTuple(type) ? Tuple(FromTypes$2(type.items)) : type; } function CyclicAnyFromParameters(defs, ref) { return ref in defs ? FromType$18(defs[ref]) : Unknown(); @@ -2368,7 +2267,7 @@ function CyclicExtends(type) { return CyclicAnyFromParameters(type.$defs, type.$ref); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/cyclic/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/cyclic/instantiate.mjs function CyclicInterface(context, heritage, properties) { const instantiatedHeritage = InstantiateTypes(context, State([], []), heritage); const instantiatedProperties = InstantiateProperties({}, State([], []), properties); @@ -2388,7 +2287,7 @@ function InstantiateCyclic(context, ref, type) { return Cyclic(CyclicDefinitions(context, CyclicDependencies(context, ref, type)), ref); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/cyclic/target.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/cyclic/target.mjs function Resolve(defs, ref) { return ref in defs ? IsRef$1(defs[ref]) ? Resolve(defs, defs[ref].$ref) : defs[ref] : Never(); } @@ -2397,7 +2296,7 @@ function CyclicTarget(defs, ref) { return Resolve(defs, ref); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/extends.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/extends.mjs function Canonical(type) { return IsCyclic(type) ? CyclicExtends(type) : IsUnsafe(type) ? Unknown() : type; } @@ -2406,7 +2305,7 @@ function Extends(inferred, left, right) { return ExtendsLeft(inferred, Canonical(left), Canonical(right)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/evaluate/compare.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/evaluate/compare.mjs const ResultEqual = "equal"; const ResultDisjoint = "disjoint"; const ResultLeftInside = "left-inside"; @@ -2417,7 +2316,7 @@ function Compare(left, right) { return IsExtendsTrueLike(extendsCheck[0]) && IsExtendsTrueLike(extendsCheck[1]) ? ResultEqual : IsExtendsTrueLike(extendsCheck[0]) && IsExtendsFalse(extendsCheck[1]) ? ResultLeftInside : IsExtendsFalse(extendsCheck[0]) && IsExtendsTrueLike(extendsCheck[1]) ? ResultRightInside : ResultDisjoint; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/evaluate/broaden.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/evaluate/broaden.mjs function BroadFilter(type, types) { return types.filter((left) => { return Compare(type, left) === "right-inside" ? false : true; @@ -2443,7 +2342,7 @@ function Broaden(types) { return Flatten(BroadenTypes(types)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/evaluate/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/evaluate/instantiate.mjs function EvaluateAction(type, options) { return Update$1(EvaluateType(type), {}, options); } @@ -2451,7 +2350,7 @@ function EvaluateInstantiate(context, state, type, options) { return EvaluateAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/call/distribute_arguments.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/call/distribute_arguments.mjs function CollectDistributionNames(expression, result = []) { return IsDeferred(expression) && IsEqual(expression.action, "Conditional") ? IsRef$1(expression.parameters[0]) ? CollectDistributionNames(expression.parameters[2], CollectDistributionNames(expression.parameters[3], [...result, expression.parameters[0]["$ref"]])) : CollectDistributionNames(expression.parameters[2], CollectDistributionNames(expression.parameters[3], result)) : IsDeferred(expression) && IsEqual(expression.action, "Mapped") ? IsDeferred(expression.parameters[1]) && IsEqual(expression.parameters[1].action, "KeyOf") && IsRef$1(expression.parameters[1].parameters[0]) ? [...result, expression.parameters[1].parameters[0]["$ref"]] : result : result; } @@ -2482,7 +2381,7 @@ function DistributeArguments(parameters, arguments_, expression) { return IsDeferred(expression) && IsEqual(expression.action, "Conditional") ? Distribute(zippedArguments) : IsDeferred(expression) && IsEqual(expression.action, "Mapped") ? Distribute(zippedArguments) : [arguments_]; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/call/resolve_target.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/call/resolve_target.mjs function FromNotResolvable() { return ["(not-resolvable)", Never()]; } @@ -2503,7 +2402,7 @@ function ResolveTarget(context, target, arguments_) { return FromType$17(context, "(anonymous)", target, arguments_); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/call/resolve_arguments.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/call/resolve_arguments.mjs function AssertArgumentExtends(name, type, extends_) { if (IsInfer(type) || IsCall(type) || IsExtendsTrueLike(Extends({}, type, extends_))) return; const cause = { @@ -2530,7 +2429,7 @@ function ResolveArgumentsContext(context, state, parameters, arguments_) { return BindParameters(context, state, parameters, arguments_); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/call/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/call/instantiate.mjs function Peek(state) { return IsGreaterThan(state.callstack.length, 0) ? state.callstack[state.callstack.length - 1] : ""; } @@ -2557,7 +2456,7 @@ function CallInstantiate(context, state, target, arguments_) { return IsGeneric(type) ? IsTailCall(state, name) ? CallConstruct(Ref$1(name), instantiatedArguments) : CallImmediate(context, state, Ref$1(name), type.parameters, type.expression, instantiatedArguments) : CallConstruct(target, instantiatedArguments); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/call.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/call.mjs function CallConstruct(target, arguments_) { return Create({ ["~kind"]: "Call" }, { type: "call", @@ -2570,7 +2469,7 @@ function IsCall(value) { return IsKind(value, "Call"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/immutable/instantiate_remove.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/immutable/instantiate_remove.mjs function RemoveImmutableOperation(type) { return Discard(type, ["~immutable"]); } @@ -2581,73 +2480,56 @@ function RemoveImmutableInstantiate(context, state, type, options) { return RemoveImmutableAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/awaited.mjs -/** Creates a deferred Awaited action. */ -function AwaitedDeferred(type, options = {}) { - return Deferred("Awaited", [type], options); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/awaited/instantiate.mjs -function AwaitedOperation(type) { - return IsPromise(type) ? AwaitedOperation(type.item) : type; -} -function AwaitedAction(type, options) { - return CanInstantiate([type]) ? Update$1(AwaitedOperation(type), {}, options) : AwaitedDeferred(type, options); -} -function AwaitedInstantiate(context, state, type, options) { - return AwaitedAction(InstantiateType(context, state, type), options); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/intrinsics/mapping.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/intrinsics/mapping.mjs function ApplyMapping(mapping, value) { return mapping(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/intrinsics/from_literal.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/intrinsics/from_literal.mjs function FromLiteral$3(mapping, value) { return IsString$2(value) ? Literal(ApplyMapping(mapping, value)) : Literal(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/intrinsics/from_template_literal.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/intrinsics/from_template_literal.mjs function FromTemplateLiteral$3(mapping, pattern) { return FromType$16(mapping, EvaluateTemplateLiteral(pattern)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/intrinsics/from_union.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/intrinsics/from_union.mjs function FromUnion$10(mapping, types) { return Union(types.map((type) => FromType$16(mapping, type))); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/intrinsics/from_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/intrinsics/from_type.mjs function FromType$16(mapping, type) { return IsLiteral(type) ? FromLiteral$3(mapping, type.const) : IsTemplateLiteral(type) ? FromTemplateLiteral$3(mapping, type.pattern) : IsUnion(type) ? FromUnion$10(mapping, type.anyOf) : type; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/capitalize.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/capitalize.mjs /** Creates a deferred Capitalize action. */ function CapitalizeDeferred(type, options = {}) { return Deferred("Capitalize", [type], options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/lowercase.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/lowercase.mjs /** Creates a deferred Lowercase action. */ function LowercaseDeferred(type, options = {}) { return Deferred("Lowercase", [type], options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/uncapitalize.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/uncapitalize.mjs /** Creates a deferred Uncapitalize action. */ function UncapitalizeDeferred(type, options = {}) { return Deferred("Uncapitalize", [type], options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/uppercase.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/uppercase.mjs /** Creates a deferred Uppercase action. */ function UppercaseDeferred(type, options = {}) { return Deferred("Uppercase", [type], options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/intrinsics/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/intrinsics/instantiate.mjs const CapitalizeMapping = (input) => input[0].toUpperCase() + input.slice(1); const LowercaseMapping = (input) => input.toLowerCase(); const UncapitalizeMapping = (input) => input[0].toLowerCase() + input.slice(1); @@ -2677,7 +2559,7 @@ function UppercaseInstantiate(context, state, type, options) { return UppercaseAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/conditional.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/conditional.mjs /** Creates a deferred Conditional action. */ function ConditionalDeferred(left, right, true_, false_, options = {}) { return Deferred("Conditional", [ @@ -2688,7 +2570,7 @@ function ConditionalDeferred(left, right, true_, false_, options = {}) { ], options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/conditional/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/conditional/instantiate.mjs function ConditionalOperation(context, state, left, right, true_, false_) { const extendsResult = Extends(context, left, right); return IsExtendsUnion(extendsResult) ? Union([InstantiateType(extendsResult.inferred, state, true_), InstantiateType(context, state, false_)]) : IsExtendsTrue(extendsResult) ? InstantiateType(extendsResult.inferred, state, true_) : InstantiateType(context, state, false_); @@ -2700,13 +2582,13 @@ function ConditionalInstantiate(context, state, left, right, true_, false_, opti return ConditionalAction(context, state, InstantiateType(context, state, left), InstantiateType(context, state, right), true_, false_, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/constructor_parameters.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/constructor_parameters.mjs /** Creates a deferred ConstructorParameters action. */ function ConstructorParametersDeferred(type, options = {}) { return Deferred("ConstructorParameters", [type], options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/constructor_parameters/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/constructor_parameters/instantiate.mjs function ConstructorParametersOperation(type) { const parameters = IsConstructor(type) ? type["parameters"] : []; return Tuple(InstantiateElements({}, State([], []), parameters)); @@ -2718,13 +2600,13 @@ function ConstructorParametersInstantiate(context, state, type, options) { return ConstructorParametersAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/exclude.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/exclude.mjs /** Creates a deferred Exclude action. */ function ExcludeDeferred(left, right, options = {}) { return Deferred("Exclude", [left, right], options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/exclude/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/exclude/instantiate.mjs function ExcludeAction(left, right, options) { return CanInstantiate([left, right]) ? Update$1(ExcludeOperation(left, right), {}, options) : ExcludeDeferred(left, right, options); } @@ -2732,13 +2614,13 @@ function ExcludeInstantiate(context, state, left, right, options) { return ExcludeAction(InstantiateType(context, state, left), InstantiateType(context, state, right), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/extract.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/extract.mjs /** Creates a deferred Extract action. */ function ExtractDeferred(left, right, options = {}) { return Deferred("Extract", [left, right], options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/extract/operation.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/extract/operation.mjs function ExtractType(left, right) { return IsExtendsTrueLike(Extends({}, left, right)) ? [left] : []; } @@ -2752,7 +2634,7 @@ function ExtractOperation(left, right) { return EvaluateUnion(ExtractUnion(IsUnion(evaluated) ? evaluated.anyOf : [evaluated], right)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/extract/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/extract/instantiate.mjs function ExtractAction(left, right, options) { return CanInstantiate([left, right]) ? Update$1(ExtractOperation(left, right), {}, options) : ExtractDeferred(left, right, options); } @@ -2760,23 +2642,23 @@ function ExtractInstantiate(context, state, left, right, options) { return ExtractAction(InstantiateType(context, state, left), InstantiateType(context, state, right), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/indexed.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/indexed.mjs /** Creates a deferred Index action. */ function IndexDeferred(type, indexer, options = {}) { return Deferred("Index", [type, indexer], options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/object/from_cyclic.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/object/from_cyclic.mjs function FromCyclic$8(defs, ref) { return FromType$15(CyclicTarget(defs, ref)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/object/from_dependent.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/object/from_dependent.mjs function FromDependent$4(if_, then_, else_) { return FromType$15(EvaluateDependent(if_, then_, else_)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/object/from_intersect.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/object/from_intersect.mjs function CollapseIntersectProperties(left, right) { const leftKeys = Keys(left).filter((key) => !HasPropertyKey(right, key)); const rightKeys = Keys(right).filter((key) => !HasPropertyKey(left, key)); @@ -2801,17 +2683,17 @@ function FromIntersect$8(types) { }, {}); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/object/from_object.mjs -function FromObject$11(properties) { +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/object/from_object.mjs +function FromObject$10(properties) { return properties; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/object/from_tuple.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/object/from_tuple.mjs function FromTuple$7(types) { return FromType$15(TupleToObject(Tuple(types))); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/object/from_union.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/object/from_union.mjs function CollapseUnionProperties(left, right) { return Keys(left).filter((key) => key in right).reduce((result, key) => { return { @@ -2827,12 +2709,12 @@ function FromUnion$9(types) { return ShiftLeft(types, (left, right) => ReduceVariants(right, FromType$15(left)), () => Unreachable()); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/object/from_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/object/from_type.mjs function FromType$15(type) { - return IsCyclic(type) ? FromCyclic$8(type.$defs, type.$ref) : IsDependent(type) ? FromDependent$4(type.if, type.then, type.else) : IsIntersect(type) ? FromIntersect$8(type.allOf) : IsUnion(type) ? FromUnion$9(type.anyOf) : IsTuple(type) ? FromTuple$7(type.items) : IsObject(type) ? FromObject$11(type.properties) : {}; + return IsCyclic(type) ? FromCyclic$8(type.$defs, type.$ref) : IsDependent(type) ? FromDependent$4(type.if, type.then, type.else) : IsIntersect(type) ? FromIntersect$8(type.allOf) : IsUnion(type) ? FromUnion$9(type.anyOf) : IsTuple(type) ? FromTuple$7(type.items) : IsObject(type) ? FromObject$10(type.properties) : {}; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/object/collapse.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/object/collapse.mjs /** * Collapses a type into a TObject schema. This is a lossy fast path used to * normalize arbitrary TSchema types into a TObject structure. This function is @@ -2843,14 +2725,14 @@ function CollapseToObject(type) { return _Object_(FromType$15(type)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/helpers/keys.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/helpers/keys.mjs const integerKeyPattern = /* @__PURE__ */ new RegExp("^(?:0|[1-9][0-9]*)$"); function ConvertToIntegerKey(value) { const normal = `${value}`; return integerKeyPattern.test(normal) ? parseInt(normal) : value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexed/from_array.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexed/from_array.mjs function NormalizeLiteral(value) { return Literal(ConvertToIntegerKey(value)); } @@ -2860,53 +2742,53 @@ function NormalizeIndexerTypes(types) { function NormalizeIndexer(type) { return IsIntersect(type) ? Intersect(NormalizeIndexerTypes(type.allOf)) : IsUnion(type) ? Union(NormalizeIndexerTypes(type.anyOf)) : IsLiteral(type) ? NormalizeLiteral(type.const) : type; } -function FromArray$8(type, indexer) { +function FromArray$7(type, indexer) { return IsExtendsTrueLike(Extends({}, NormalizeIndexer(indexer), Number$1())) ? type : IsLiteral(indexer) && IsEqual(indexer.const, "length") ? Number$1() : Never(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexable/from_cyclic.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexable/from_cyclic.mjs function FromCyclic$7(defs, ref) { return FromType$14(CyclicTarget(defs, ref)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexable/from_dependent.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexable/from_dependent.mjs function FromDependent$3(if_, then_, else_) { return FromType$14(EvaluateDependent(if_, then_, else_)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexable/from_enum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexable/from_enum.mjs function FromEnum$2(values) { return FromType$14(EvaluateEnum(values)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexable/from_intersect.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexable/from_intersect.mjs function FromIntersect$7(types) { return FromType$14(EvaluateIntersect(types)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexable/from_literal.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexable/from_literal.mjs function FromLiteral$2(value) { return [`${value}`]; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexable/from_template_literal.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexable/from_template_literal.mjs function FromTemplateLiteral$2(pattern) { return FromType$14(EvaluateTemplateLiteral(pattern)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexable/from_union.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexable/from_union.mjs function FromUnion$8(types) { return types.reduce((result, left) => { return [...result, ...FromType$14(left)]; }, []); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexable/from_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexable/from_type.mjs function FromType$14(type) { return IsCyclic(type) ? FromCyclic$7(type.$defs, type.$ref) : IsDependent(type) ? FromDependent$3(type.if, type.then, type.else) : IsEnum$1(type) ? FromEnum$2(type.enum) : IsIntersect(type) ? FromIntersect$7(type.allOf) : IsLiteral(type) ? FromLiteral$2(type.const) : IsTemplateLiteral(type) ? FromTemplateLiteral$2(type.pattern) : IsUnion(type) ? FromUnion$8(type.anyOf) : []; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexable/to_indexable_keys.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexable/to_indexable_keys.mjs /** * Transforms a type meant as an Indexer into string[] array which is used by Indexable types * like Index, Pick and Omit to select from property keys. This function should only be used @@ -2917,18 +2799,18 @@ function ToIndexableKeys(type) { return FromType$14(type); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/this/expand_this.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/this/expand_this.mjs function FromTypes$1(properties, types) { return types.map((type) => FromType$13(properties, type)); } function FromType$13(properties, type) { - return IsArray(type) ? _Array_(FromType$13(properties, type.items)) : IsAsyncIterator(type) ? AsyncIterator(FromType$13(properties, type.iteratorItems)) : IsConstructor(type) ? Constructor(FromTypes$1(properties, type.parameters), FromType$13(properties, type.instanceType)) : IsFunction(type) ? _Function_(FromTypes$1(properties, type.parameters), FromType$13(properties, type.returnType)) : IsIterator(type) ? Iterator(FromType$13(properties, type.iteratorItems)) : IsPromise(type) ? _Promise_(FromType$13(properties, type.item)) : IsTuple(type) ? Tuple(FromTypes$1(properties, type.items)) : IsUnion(type) ? Union(FromTypes$1(properties, type.anyOf)) : IsIntersect(type) ? Intersect(FromTypes$1(properties, type.allOf)) : IsThis(type) ? _Object_(properties) : type; + return IsArray(type) ? _Array_(FromType$13(properties, type.items)) : IsConstructor(type) ? Constructor(FromTypes$1(properties, type.parameters), FromType$13(properties, type.instanceType)) : IsFunction(type) ? _Function_(FromTypes$1(properties, type.parameters), FromType$13(properties, type.returnType)) : IsTuple(type) ? Tuple(FromTypes$1(properties, type.items)) : IsUnion(type) ? Union(FromTypes$1(properties, type.anyOf)) : IsIntersect(type) ? Intersect(FromTypes$1(properties, type.allOf)) : IsThis(type) ? _Object_(properties) : type; } function ExpandThis(properties, type) { return FromType$13(properties, type); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexed/from_object.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexed/from_object.mjs function IndexProperty(properties, key) { return ExpandThis(properties, key in properties ? properties[key] : Never()); } @@ -2947,11 +2829,11 @@ function NumericKeys(keys) { function FromIndexerNumber(properties) { return EvaluateUnion(IndexProperties(properties, NumericKeys(PropertyKeys(properties)))); } -function FromObject$10(properties, indexer) { +function FromObject$9(properties, indexer) { return IsNumber(indexer) ? FromIndexerNumber(properties) : FromIndexer(properties, indexer); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexed/array_indexer.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexed/array_indexer.mjs function ConvertLiteral(value) { return Literal(ConvertToIntegerKey(value)); } @@ -2963,7 +2845,7 @@ function FormatArrayIndexer(type) { return IsIntersect(type) ? Intersect(ArrayIndexerTypes(type.allOf)) : IsUnion(type) ? Union(ArrayIndexerTypes(type.anyOf)) : IsLiteral(type) ? ConvertLiteral(type.const) : type; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexed/from_tuple.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexed/from_tuple.mjs function IndexElementsWithIndexer(types, indexer) { return types.reduceRight((result, right, index) => { return IsExtendsTrueLike(Extends({}, Literal(index), indexer)) ? [right, ...result] : result; @@ -2979,12 +2861,12 @@ function FromTuple$6(types, indexer) { return IsLiteral(indexer) && IsEqual(indexer.const, "length") ? Literal(types.length) : IsNumber(indexer) || IsInteger(indexer) ? FromTupleWithoutIndexer(types) : FromTupleWithIndexer(types, indexer); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexed/from_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexed/from_type.mjs function FromType$12(type, indexer) { - return IsArray(type) ? FromArray$8(type.items, indexer) : IsObject(type) ? FromObject$10(type.properties, indexer) : IsTuple(type) ? FromTuple$6(type.items, indexer) : Never(); + return IsArray(type) ? FromArray$7(type.items, indexer) : IsObject(type) ? FromObject$9(type.properties, indexer) : IsTuple(type) ? FromTuple$6(type.items, indexer) : Never(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexed/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexed/instantiate.mjs function NormalizeType$1(type) { return IsCyclic(type) || IsDependent(type) || IsIntersect(type) || IsUnion(type) ? CollapseToObject(type) : type; } @@ -2995,13 +2877,13 @@ function IndexInstantiate(context, state, type, indexer, options) { return IndexAction(InstantiateType(context, state, type), InstantiateType(context, state, indexer), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/instance_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/instance_type.mjs /** Creates a deferred InstanceType action. */ function InstanceTypeDeferred(type, options = {}) { return Deferred("InstanceType", [type], options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/instance_type/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/instance_type/instantiate.mjs function InstanceTypeOperation(type) { return IsConstructor(type) ? type["instanceType"] : Never(); } @@ -3012,13 +2894,13 @@ function InstanceTypeInstantiate(context, state, type, options = {}) { return InstanceTypeAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/keyof.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/keyof.mjs /** Creates a deferred KeyOf action. */ function KeyOfDeferred(type, options = {}) { return Deferred("KeyOf", [type], options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/keyof/from_any.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/keyof/from_any.mjs function FromAny() { return Union([ Number$1(), @@ -3027,37 +2909,37 @@ function FromAny() { ]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/keyof/from_array.mjs -function FromArray$7(_type) { +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/keyof/from_array.mjs +function FromArray$6(_type) { return Number$1(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/keyof/from_object.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/keyof/from_object.mjs function FromPropertyKeys(keys) { return keys.reduce((result, left) => { return IsLiteralValue(left) ? [...result, Literal(ConvertToIntegerKey(left))] : Unreachable(); }, []); } -function FromObject$9(properties) { +function FromObject$8(properties) { return EvaluateUnionFast(FromPropertyKeys(Keys(properties))); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/keyof/from_record.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/keyof/from_record.mjs function FromRecord$4(type) { return RecordKey(type); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/keyof/from_tuple.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/keyof/from_tuple.mjs function FromTuple$5(types) { return EvaluateUnionFast(types.map((_, index) => Literal(index))); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/keyof/from_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/keyof/from_type.mjs function FromType$11(type) { - return IsAny(type) ? FromAny() : IsArray(type) ? FromArray$7(type.items) : IsObject(type) ? FromObject$9(type.properties) : IsRecord(type) ? FromRecord$4(type) : IsTuple(type) ? FromTuple$5(type.items) : Never(); + return IsAny(type) ? FromAny() : IsArray(type) ? FromArray$6(type.items) : IsObject(type) ? FromObject$8(type.properties) : IsRecord(type) ? FromRecord$4(type) : IsTuple(type) ? FromTuple$5(type.items) : Never(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/keyof/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/keyof/instantiate.mjs function NormalizeType(type) { return IsCyclic(type) || IsDependent(type) || IsIntersect(type) || IsUnion(type) ? CollapseToObject(type) : type; } @@ -3068,7 +2950,7 @@ function KeyOfInstantiate(context, state, type, options) { return KeyOfAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/mapped.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/mapped.mjs /** Creates a deferred Mapped action. */ function MappedDeferred(identifier, type, as, property, options = {}) { return Deferred("Mapped", [ @@ -3079,7 +2961,7 @@ function MappedDeferred(identifier, type, as, property, options = {}) { ], options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/mapped/mapped_variants.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/mapped/mapped_variants.mjs function FromTemplateLiteral$1(pattern) { return FromType$10(EvaluateTemplateLiteral(pattern)); } @@ -3101,7 +2983,7 @@ function MappedVariants(type) { return FromType$10(type); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/mapped/mapped_operation.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/mapped/mapped_operation.mjs function CanonicalAs(instantiatedAs) { return IsTemplateLiteral(instantiatedAs) ? EvaluateTemplateLiteral(instantiatedAs.pattern) : instantiatedAs; } @@ -3125,7 +3007,7 @@ function MappedOperation(context, state, identifier, type, as, property) { return EvaluateIntersect(MappedObjects(MappedProperties(context, state, identifier, MappedVariants(type), as, property))); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/mapped/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/mapped/instantiate.mjs function MappedAction(context, state, identifier, type, as, property, options) { return CanInstantiate([type]) ? Update$1(MappedOperation(context, state, identifier, type, as, property), {}, options) : MappedDeferred(identifier, type, as, property, options); } @@ -3133,7 +3015,7 @@ function MappedInstantiate(context, state, identifier, type, as, property, optio return MappedAction(context, state, identifier, InstantiateType(context, state, type), as, property, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/module/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/module/instantiate.mjs function InstantiateCyclics(context, declarations, cyclicKeys) { const declarationContext = Assign(context, declarations); return Keys(declarations).filter((key) => cyclicKeys.includes(key)).reduce((result, key) => { @@ -3165,13 +3047,13 @@ function ModuleInstantiate(context, _state, declarations, options) { return InstantiateModule(context, declarations, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/non_nullable.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/non_nullable.mjs /** Creates a deferred NonNullable action. */ function NonNullableDeferred(type, options = {}) { return Deferred("NonNullable", [type], options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/non_nullable/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/non_nullable/instantiate.mjs function NonNullableOperation(type) { return ExcludeAction(type, Union([Null(), Undefined()]), {}); } @@ -3182,20 +3064,20 @@ function NonNullableInstantiate(context, state, type, options) { return NonNullableAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/omit.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/omit.mjs /** Creates a deferred Omit action. */ function OmitDeferred(type, indexer, options = {}) { return Deferred("Omit", [type, indexer], options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexable/to_indexable.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexable/to_indexable.mjs /** Transforms a type into a TProperties used for indexing operations */ function ToIndexable(type) { const collapsed = CollapseToObject(type); return IsObject(collapsed) ? collapsed.properties : Unreachable(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/omit/from_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/omit/from_type.mjs function FromKeys$1(properties, keys) { return Keys(properties).reduce((result, key) => { return keys.includes(key) ? result : { @@ -3208,7 +3090,7 @@ function FromType$9(type, indexer) { return _Object_(FromKeys$1(ToIndexable(type), ToIndexableKeys(indexer))); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/omit/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/omit/instantiate.mjs function OmitAction(type, indexer, options) { return CanInstantiate([type, indexer]) ? Update$1(FromType$9(type, indexer), {}, options) : OmitDeferred(type, indexer, options); } @@ -3216,13 +3098,13 @@ function OmitInstantiate(context, state, type, indexer, options) { return OmitAction(InstantiateType(context, state, type), InstantiateType(context, state, indexer), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/parameters.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/parameters.mjs /** Creates a deferred Parameters action. */ function ParametersDeferred(type, options = {}) { return Deferred("Parameters", [type], options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/parameters/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/parameters/instantiate.mjs function ParametersOperation(type) { const parameters = IsFunction(type) ? type["parameters"] : []; return Tuple(InstantiateElements({}, State([], []), parameters)); @@ -3234,35 +3116,35 @@ function ParametersInstantiate(context, state, type, options) { return ParametersAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/partial.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/partial.mjs /** Creates a deferred Partial action. */ function PartialDeferred(type, options = {}) { return Deferred("Partial", [type], options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/partial/from_cyclic.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/partial/from_cyclic.mjs function FromCyclic$6(defs, ref) { const partial = FromType$8(CyclicTarget(defs, ref)); return Cyclic(Assign(defs, { [ref]: partial }), ref); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/partial/from_dependent.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/partial/from_dependent.mjs function FromDependent$2(if_, then_, else_) { return FromType$8(EvaluateDependent(if_, then_, else_)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/partial/from_intersect.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/partial/from_intersect.mjs function FromIntersect$6(types) { return FromType$8(EvaluateIntersect(types)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/partial/from_union.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/partial/from_union.mjs function FromUnion$6(types) { return Union(types.map((type) => FromType$8(type))); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/partial/from_object.mjs -function FromObject$8(properties) { +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/partial/from_object.mjs +function FromObject$7(properties) { return _Object_(Keys(properties).reduce((result, left) => { return { ...result, @@ -3271,12 +3153,12 @@ function FromObject$8(properties) { }, {})); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/partial/from_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/partial/from_type.mjs function FromType$8(type) { - return IsCyclic(type) ? FromCyclic$6(type.$defs, type.$ref) : IsDependent(type) ? FromDependent$2(type.if, type.then, type.else) : IsIntersect(type) ? FromIntersect$6(type.allOf) : IsUnion(type) ? FromUnion$6(type.anyOf) : IsObject(type) ? FromObject$8(type.properties) : _Object_({}); + return IsCyclic(type) ? FromCyclic$6(type.$defs, type.$ref) : IsDependent(type) ? FromDependent$2(type.if, type.then, type.else) : IsIntersect(type) ? FromIntersect$6(type.allOf) : IsUnion(type) ? FromUnion$6(type.anyOf) : IsObject(type) ? FromObject$7(type.properties) : _Object_({}); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/partial/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/partial/instantiate.mjs function PartialAction(type, options) { return CanInstantiate([type]) ? Update$1(FromType$8(type), {}, options) : PartialDeferred(type, options); } @@ -3284,13 +3166,13 @@ function PartialInstantiate(context, state, type, options) { return PartialAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/pick.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/pick.mjs /** Creates a deferred Pick action. */ function PickDeferred(type, indexer, options = {}) { return Deferred("Pick", [type, indexer], options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/pick/from_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/pick/from_type.mjs function FromKeys(properties, keys) { return Keys(properties).reduce((result, key) => { return keys.includes(key) ? Assign(result, { [key]: properties[key] }) : result; @@ -3300,7 +3182,7 @@ function FromType$7(type, indexer) { return _Object_(FromKeys(ToIndexable(type), ToIndexableKeys(indexer))); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/pick/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/pick/instantiate.mjs function PickAction(type, indexer, options) { return CanInstantiate([type, indexer]) ? Update$1(FromType$7(type, indexer), {}, options) : PickDeferred(type, indexer, options); } @@ -3308,35 +3190,35 @@ function PickInstantiate(context, state, type, indexer, options) { return PickAction(InstantiateType(context, state, type), InstantiateType(context, state, indexer), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/readonly_object.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/readonly_object.mjs /** Creates a deferred ReadonlyType action. */ function ReadonlyObjectDeferred(type, options = {}) { return Deferred("ReadonlyObject", [type], options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/readonly_object/from_array.mjs -function FromArray$6(type) { +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/readonly_object/from_array.mjs +function FromArray$5(type) { return AddImmutable(_Array_(type)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/readonly_object/from_cyclic.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/readonly_object/from_cyclic.mjs function FromCyclic$5(defs, ref) { const partial = FromType$6(CyclicTarget(defs, ref)); return Cyclic(Assign(defs, { [ref]: partial }), ref); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/readonly_object/from_dependent.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/readonly_object/from_dependent.mjs function FromDependent$1(if_, then_, else_) { return FromType$6(EvaluateDependent(if_, then_, else_)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/readonly_object/from_intersect.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/readonly_object/from_intersect.mjs function FromIntersect$5(types) { return FromType$6(EvaluateIntersect(types)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/readonly_object/from_object.mjs -function FromObject$7(properties) { +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/readonly_object/from_object.mjs +function FromObject$6(properties) { return _Object_(Keys(properties).reduce((result, left) => { return { ...result, @@ -3345,22 +3227,22 @@ function FromObject$7(properties) { }, {})); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/readonly_object/from_tuple.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/readonly_object/from_tuple.mjs function FromTuple$4(types) { return AddImmutable(Tuple(types)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/readonly_object/from_union.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/readonly_object/from_union.mjs function FromUnion$5(types) { return Union(types.map((type) => FromType$6(type))); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/readonly_object/from_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/readonly_object/from_type.mjs function FromType$6(type) { - return IsArray(type) ? FromArray$6(type.items) : IsCyclic(type) ? FromCyclic$5(type.$defs, type.$ref) : IsDependent(type) ? FromDependent$1(type.if, type.then, type.else) : IsIntersect(type) ? FromIntersect$5(type.allOf) : IsObject(type) ? FromObject$7(type.properties) : IsTuple(type) ? FromTuple$4(type.items) : IsUnion(type) ? FromUnion$5(type.anyOf) : type; + return IsArray(type) ? FromArray$5(type.items) : IsCyclic(type) ? FromCyclic$5(type.$defs, type.$ref) : IsDependent(type) ? FromDependent$1(type.if, type.then, type.else) : IsIntersect(type) ? FromIntersect$5(type.allOf) : IsObject(type) ? FromObject$6(type.properties) : IsTuple(type) ? FromTuple$4(type.items) : IsUnion(type) ? FromUnion$5(type.anyOf) : type; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/readonly_object/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/readonly_object/instantiate.mjs function ReadonlyObjectAction(type, options) { return CanInstantiate([type]) ? Update$1(FromType$6(type), {}, options) : ReadonlyObjectDeferred(type); } @@ -3368,34 +3250,34 @@ function ReadonlyObjectInstantiate(context, state, type, options) { return ReadonlyObjectAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/ref/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/ref/instantiate.mjs function RefInstantiate(context, state, type, ref) { return state.visited.includes(ref) ? type : ref in context ? InstantiateType(context, State(state["callstack"], [...state["visited"], ref]), context[ref]) : type; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/required/from_cyclic.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/required/from_cyclic.mjs function FromCyclic$4(defs, ref) { const partial = FromType$5(CyclicTarget(defs, ref)); return Cyclic(Assign(defs, { [ref]: partial }), ref); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/required/from_dependent.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/required/from_dependent.mjs function FromDependent(if_, then_, else_) { return FromType$5(EvaluateDependent(if_, then_, else_)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/required/from_intersect.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/required/from_intersect.mjs function FromIntersect$4(types) { return FromType$5(EvaluateIntersect(types)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/required/from_union.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/required/from_union.mjs function FromUnion$4(types) { return Union(types.map((type) => FromType$5(type))); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/required/from_object.mjs -function FromObject$6(properties) { +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/required/from_object.mjs +function FromObject$5(properties) { return _Object_(Keys(properties).reduce((result, left) => { return { ...result, @@ -3404,18 +3286,18 @@ function FromObject$6(properties) { }, {})); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/required/from_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/required/from_type.mjs function FromType$5(type) { - return IsCyclic(type) ? FromCyclic$4(type.$defs, type.$ref) : IsDependent(type) ? FromDependent(type.if, type.then, type.else) : IsIntersect(type) ? FromIntersect$4(type.allOf) : IsUnion(type) ? FromUnion$4(type.anyOf) : IsObject(type) ? FromObject$6(type.properties) : _Object_({}); + return IsCyclic(type) ? FromCyclic$4(type.$defs, type.$ref) : IsDependent(type) ? FromDependent(type.if, type.then, type.else) : IsIntersect(type) ? FromIntersect$4(type.allOf) : IsUnion(type) ? FromUnion$4(type.anyOf) : IsObject(type) ? FromObject$5(type.properties) : _Object_({}); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/required.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/required.mjs /** Creates a deferred Required action. */ function RequiredDeferred(type, options = {}) { return Deferred("Required", [type], options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/required/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/required/instantiate.mjs function RequiredAction(type, options) { return CanInstantiate([type]) ? Update$1(FromType$5(type), {}, options) : RequiredDeferred(type, options); } @@ -3423,13 +3305,13 @@ function RequiredInstantiate(context, state, type, options) { return RequiredAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/return_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/return_type.mjs /** Creates a deferred ReturnType action. */ function ReturnTypeDeferred(type, options = {}) { return Deferred("ReturnType", [type], options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/return_type/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/return_type/instantiate.mjs function ReturnTypeOperation(type) { return IsFunction(type) ? type["returnType"] : Never(); } @@ -3440,7 +3322,7 @@ function ReturnTypeInstantiate(context, state, type, options = {}) { return ReturnTypeAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/with.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/with.mjs /** Creates a deferred With action. */ function WithDeferred(type, options) { return Deferred("With", [type, options], {}); @@ -3450,7 +3332,7 @@ function With(type, options) { return WithAction(type, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/with/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/with/instantiate.mjs function WithAction(type, options) { return CanInstantiate([type]) ? Update$1(type, {}, options) : WithDeferred(type, options); } @@ -3458,7 +3340,7 @@ function WithInstantiate(context, state, type, options) { return WithAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/rest/spread.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/rest/spread.mjs function SpreadElement(type) { return IsRest(type) ? IsTuple(type.items) ? RestSpread(type.items.items) : IsInfer(type.items) ? [type] : IsRef$1(type.items) ? [type] : [Never()] : [type]; } @@ -3468,7 +3350,7 @@ function RestSpread(types) { }, []); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/instantiate.mjs function State(callstack, visited) { return { callstack, @@ -3492,28 +3374,26 @@ function InstantiateElements(context, state, types) { function InstantiateTypes(context, state, types) { return types.map((type) => InstantiateType(context, state, type)); } +function WithModifiers(type, instantiatedType) { + const withOptional = IsOptional(type) ? AddOptionalAction(instantiatedType, {}) : instantiatedType; + const withReadonly = IsReadonly(type) ? AddReadonlyAction(withOptional, {}) : withOptional; + return IsImmutable(type) ? AddImmutableAction(withReadonly, {}) : withReadonly; +} function InstantiateDeferred(context, state, action, parameters, options) { - return IsEqual(action, "AddImmutable") ? AddImmutableInstantiate(context, state, parameters[0], options) : IsEqual(action, "RemoveImmutable") ? RemoveImmutableInstantiate(context, state, parameters[0], options) : IsEqual(action, "AddReadonly") ? AddReadonlyInstantiate(context, state, parameters[0], options) : IsEqual(action, "RemoveReadonly") ? RemoveReadonlyInstantiate(context, state, parameters[0], options) : IsEqual(action, "AddOptional") ? AddOptionalInstantiate(context, state, parameters[0], options) : IsEqual(action, "RemoveOptional") ? RemoveOptionalInstantiate(context, state, parameters[0], options) : IsEqual(action, "Awaited") ? AwaitedInstantiate(context, state, parameters[0], options) : IsEqual(action, "Capitalize") ? CapitalizeInstantiate(context, state, parameters[0], options) : IsEqual(action, "Conditional") ? ConditionalInstantiate(context, state, parameters[0], parameters[1], parameters[2], parameters[3], options) : IsEqual(action, "ConstructorParameters") ? ConstructorParametersInstantiate(context, state, parameters[0], options) : IsEqual(action, "Evaluate") ? EvaluateInstantiate(context, state, parameters[0], options) : IsEqual(action, "Exclude") ? ExcludeInstantiate(context, state, parameters[0], parameters[1], options) : IsEqual(action, "Extract") ? ExtractInstantiate(context, state, parameters[0], parameters[1], options) : IsEqual(action, "Index") ? IndexInstantiate(context, state, parameters[0], parameters[1], options) : IsEqual(action, "InstanceType") ? InstanceTypeInstantiate(context, state, parameters[0], options) : IsEqual(action, "Interface") ? InterfaceInstantiate(context, state, parameters[0], parameters[1], options) : IsEqual(action, "KeyOf") ? KeyOfInstantiate(context, state, parameters[0], options) : IsEqual(action, "Lowercase") ? LowercaseInstantiate(context, state, parameters[0], options) : IsEqual(action, "Mapped") ? MappedInstantiate(context, state, parameters[0], parameters[1], parameters[2], parameters[3], options) : IsEqual(action, "Module") ? ModuleInstantiate(context, state, parameters[0], options) : IsEqual(action, "NonNullable") ? NonNullableInstantiate(context, state, parameters[0], options) : IsEqual(action, "Pick") ? PickInstantiate(context, state, parameters[0], parameters[1], options) : IsEqual(action, "Parameters") ? ParametersInstantiate(context, state, parameters[0], options) : IsEqual(action, "Partial") ? PartialInstantiate(context, state, parameters[0], options) : IsEqual(action, "Omit") ? OmitInstantiate(context, state, parameters[0], parameters[1], options) : IsEqual(action, "ReadonlyObject") ? ReadonlyObjectInstantiate(context, state, parameters[0], options) : IsEqual(action, "Record") ? RecordInstantiate(context, state, parameters[0], parameters[1], options) : IsEqual(action, "Required") ? RequiredInstantiate(context, state, parameters[0], options) : IsEqual(action, "ReturnType") ? ReturnTypeInstantiate(context, state, parameters[0], options) : IsEqual(action, "TemplateLiteral") ? TemplateLiteralInstantiate(context, state, parameters[0], options) : IsEqual(action, "Uncapitalize") ? UncapitalizeInstantiate(context, state, parameters[0], options) : IsEqual(action, "Uppercase") ? UppercaseInstantiate(context, state, parameters[0], options) : IsEqual(action, "With") ? WithInstantiate(context, state, parameters[0], parameters[1]) : Deferred(action, parameters, options); + return IsEqual(action, "AddImmutable") ? AddImmutableInstantiate(context, state, parameters[0], options) : IsEqual(action, "RemoveImmutable") ? RemoveImmutableInstantiate(context, state, parameters[0], options) : IsEqual(action, "AddReadonly") ? AddReadonlyInstantiate(context, state, parameters[0], options) : IsEqual(action, "RemoveReadonly") ? RemoveReadonlyInstantiate(context, state, parameters[0], options) : IsEqual(action, "AddOptional") ? AddOptionalInstantiate(context, state, parameters[0], options) : IsEqual(action, "RemoveOptional") ? RemoveOptionalInstantiate(context, state, parameters[0], options) : IsEqual(action, "Capitalize") ? CapitalizeInstantiate(context, state, parameters[0], options) : IsEqual(action, "Conditional") ? ConditionalInstantiate(context, state, parameters[0], parameters[1], parameters[2], parameters[3], options) : IsEqual(action, "ConstructorParameters") ? ConstructorParametersInstantiate(context, state, parameters[0], options) : IsEqual(action, "Evaluate") ? EvaluateInstantiate(context, state, parameters[0], options) : IsEqual(action, "Exclude") ? ExcludeInstantiate(context, state, parameters[0], parameters[1], options) : IsEqual(action, "Extract") ? ExtractInstantiate(context, state, parameters[0], parameters[1], options) : IsEqual(action, "Index") ? IndexInstantiate(context, state, parameters[0], parameters[1], options) : IsEqual(action, "InstanceType") ? InstanceTypeInstantiate(context, state, parameters[0], options) : IsEqual(action, "Interface") ? InterfaceInstantiate(context, state, parameters[0], parameters[1], options) : IsEqual(action, "KeyOf") ? KeyOfInstantiate(context, state, parameters[0], options) : IsEqual(action, "Lowercase") ? LowercaseInstantiate(context, state, parameters[0], options) : IsEqual(action, "Mapped") ? MappedInstantiate(context, state, parameters[0], parameters[1], parameters[2], parameters[3], options) : IsEqual(action, "Module") ? ModuleInstantiate(context, state, parameters[0], options) : IsEqual(action, "NonNullable") ? NonNullableInstantiate(context, state, parameters[0], options) : IsEqual(action, "Pick") ? PickInstantiate(context, state, parameters[0], parameters[1], options) : IsEqual(action, "Parameters") ? ParametersInstantiate(context, state, parameters[0], options) : IsEqual(action, "Partial") ? PartialInstantiate(context, state, parameters[0], options) : IsEqual(action, "Omit") ? OmitInstantiate(context, state, parameters[0], parameters[1], options) : IsEqual(action, "ReadonlyObject") ? ReadonlyObjectInstantiate(context, state, parameters[0], options) : IsEqual(action, "Record") ? RecordInstantiate(context, state, parameters[0], parameters[1], options) : IsEqual(action, "Required") ? RequiredInstantiate(context, state, parameters[0], options) : IsEqual(action, "ReturnType") ? ReturnTypeInstantiate(context, state, parameters[0], options) : IsEqual(action, "TemplateLiteral") ? TemplateLiteralInstantiate(context, state, parameters[0], options) : IsEqual(action, "Uncapitalize") ? UncapitalizeInstantiate(context, state, parameters[0], options) : IsEqual(action, "Uppercase") ? UppercaseInstantiate(context, state, parameters[0], options) : IsEqual(action, "With") ? WithInstantiate(context, state, parameters[0], parameters[1]) : Deferred(action, parameters, options); } function InstantiateImmediate(context, state, type) { - type = IsBase(type) ? type.Clone() : type; - return IsRef$1(type) ? RefInstantiate(context, state, type, type.$ref) : IsArray(type) ? _Array_(InstantiateType(context, state, type.items), ArrayOptions(type)) : IsAsyncIterator(type) ? AsyncIterator(InstantiateType(context, state, type.iteratorItems), AsyncIteratorOptions(type)) : IsCall(type) ? CallInstantiate(context, state, type.target, type.arguments) : IsConstructor(type) ? Constructor(InstantiateTypes(context, state, type.parameters), InstantiateType(context, state, type.instanceType), ConstructorOptions(type)) : IsDeferred(type) ? InstantiateDeferred(context, state, type.action, type.parameters, type.options) : IsFunction(type) ? _Function_(InstantiateTypes(context, state, type.parameters), InstantiateType(context, state, type.returnType), FunctionOptions(type)) : IsDependent(type) ? Dependent(InstantiateType(context, state, type.if), InstantiateType(context, state, type.then), InstantiateType(context, state, type.else), DependentOptions(type)) : IsIntersect(type) ? Intersect(InstantiateTypes(context, state, type.allOf), IntersectOptions(type)) : IsIterator(type) ? Iterator(InstantiateType(context, state, type.iteratorItems), IteratorOptions(type)) : IsObject(type) ? _Object_(InstantiateProperties(context, state, type.properties), ObjectOptions(type)) : IsPromise(type) ? _Promise_(InstantiateType(context, state, type.item), PromiseOptions(type)) : IsRecord(type) ? RecordFromPattern(RecordPattern(type), InstantiateType(context, state, RecordValue(type))) : IsRest(type) ? Rest(InstantiateType(context, state, type.items)) : IsTuple(type) ? Tuple(InstantiateElements(context, state, type.items), TupleOptions(type)) : IsUnion(type) ? Union(InstantiateTypes(context, state, type.anyOf), UnionOptions(type)) : type; -} -function WithModifiers(type, instantiatedType) { - const withImmutable = IsImmutable(type) ? Immutable(instantiatedType) : instantiatedType; - const withReadonly = IsReadonly(type) ? Readonly(withImmutable) : withImmutable; - return IsOptional(type) ? Optional(withReadonly) : withReadonly; + return WithModifiers(type, IsRef$1(type) ? RefInstantiate(context, state, type, type.$ref) : IsArray(type) ? _Array_(InstantiateType(context, state, type.items), ArrayOptions(type)) : IsCall(type) ? CallInstantiate(context, state, type.target, type.arguments) : IsConstructor(type) ? Constructor(InstantiateTypes(context, state, type.parameters), InstantiateType(context, state, type.instanceType), ConstructorOptions(type)) : IsFunction(type) ? _Function_(InstantiateTypes(context, state, type.parameters), InstantiateType(context, state, type.returnType), FunctionOptions(type)) : IsDependent(type) ? Dependent(InstantiateType(context, state, type.if), InstantiateType(context, state, type.then), InstantiateType(context, state, type.else), DependentOptions(type)) : IsIntersect(type) ? Intersect(InstantiateTypes(context, state, type.allOf), IntersectOptions(type)) : IsObject(type) ? _Object_(InstantiateProperties(context, state, type.properties), ObjectOptions(type)) : IsRecord(type) ? RecordFromPattern(RecordPattern(type), InstantiateType(context, state, RecordValue(type))) : IsRest(type) ? Rest(InstantiateType(context, state, type.items)) : IsTuple(type) ? Tuple(InstantiateElements(context, state, type.items), TupleOptions(type)) : IsUnion(type) ? Union(InstantiateTypes(context, state, type.anyOf), UnionOptions(type)) : type); } function InstantiateType(context, state, type) { - const instantiatedType = InstantiateImmediate(context, state, type); - return IsDeferred(type) ? instantiatedType : WithModifiers(type, instantiatedType); + return IsDeferred(type) ? InstantiateDeferred(context, state, type.action, type.parameters, type.options) : InstantiateImmediate(context, state, type); } /** Instantiates computed schematics using the given context and type. */ function Instantiate(context, type) { return InstantiateType(context, State([], []), type); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/immutable/instantiate_add.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/immutable/instantiate_add.mjs function AddImmutableOperation(type) { return Update$1(type, { "~immutable": true }, {}); } @@ -3524,19 +3404,19 @@ function AddImmutableInstantiate(context, state, type, options) { return AddImmutableAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/_add_immutable.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/_add_immutable.mjs /** Applies an AddImmutable action to a type. */ function AddImmutable(type, options = {}) { return AddImmutableAction(type, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/evaluate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/evaluate.mjs /** Applies an Evaluate action to a type. */ function Evaluate(type, options = {}) { return EvaluateAction(type, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/priority/priority.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/priority/priority.mjs function Comparer(left, right) { const compareResult = Compare(left, right); return IsEqual(compareResult, "right-inside") ? 1 : IsEqual(compareResult, "disjoint") ? 1 : 0; @@ -3561,15 +3441,7 @@ function Priority(types) { return Sort(types); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/_guard.mjs -function IsGuardInterface(value) { - return IsObject$1(value) && HasPropertyKey(value, "check") && HasPropertyKey(value, "errors") && IsFunction$1(value.check) && IsFunction$1(value.errors); -} -function IsGuard(value) { - return HasPropertyKey(value, "~guard") && IsGuardInterface(value["~guard"]); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/_refine.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/_refine.mjs /** * Returns true if the schema contains an '~refine` keyword * @specification None @@ -3578,7 +3450,7 @@ function IsRefine(value) { return HasPropertyKey(value, "~refine") && IsArray$1(value["~refine"]) && Every(value["~refine"], 0, (value) => IsObject$1(value) && HasPropertyKey(value, "check") && HasPropertyKey(value, "error") && IsFunction$1(value.check) && IsFunction$1(value.error)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/schema.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/schema.mjs /** Returns true if this value is object like */ function IsSchemaObject(value) { return IsObject$1(value) && !IsArray$1(value); @@ -3592,7 +3464,7 @@ function IsSchema(value) { return IsSchemaObject(value) || IsBooleanSchema(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/additionalItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/additionalItems.mjs /** * Returns true if the schema contains a valid additionalItems property * @specification Json Schema 7 @@ -3601,7 +3473,7 @@ function IsAdditionalItems(schema) { return HasPropertyKey(schema, "additionalItems") && IsSchema(schema.additionalItems); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/additionalProperties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/additionalProperties.mjs /** * Returns true if the schema contains a valid additionalProperties property * @specification Json Schema 7 @@ -3610,7 +3482,7 @@ function IsAdditionalProperties(schema) { return HasPropertyKey(schema, "additionalProperties") && IsSchema(schema.additionalProperties); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/allOf.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/allOf.mjs /** * Returns true if the schema contains a valid allOf property * @specification Json Schema 7 @@ -3619,7 +3491,7 @@ function IsAllOf(schema) { return HasPropertyKey(schema, "allOf") && IsArray$1(schema.allOf) && schema.allOf.every((value) => IsSchema(value)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/anchor.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/anchor.mjs /** * Returns true if the schema contains a valid $anchor property */ @@ -3627,7 +3499,7 @@ function IsAnchor(schema) { return HasPropertyKey(schema, "$anchor") && IsString$2(schema.$anchor); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/anyOf.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/anyOf.mjs /** * Returns true if the schema contains a valid anyOf property * @specification Json Schema 7 @@ -3636,7 +3508,7 @@ function IsAnyOf(schema) { return HasPropertyKey(schema, "anyOf") && IsArray$1(schema.anyOf) && schema.anyOf.every((value) => IsSchema(value)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/const.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/const.mjs /** * Returns true if the schema contains a valid const property * @specification Json Schema 7 @@ -3645,7 +3517,7 @@ function IsConst(value) { return HasPropertyKey(value, "const"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/contains.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/contains.mjs /** * Returns true if the schema contains a valid contains property * @specification Json Schema 7 @@ -3654,7 +3526,7 @@ function IsContains(schema) { return HasPropertyKey(schema, "contains") && IsSchema(schema.contains); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/default.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/default.mjs /** * Returns true if the schema contains a valid contentMediaType property * @specification Json Schema 7 @@ -3663,7 +3535,7 @@ function IsDefault(schema) { return HasPropertyKey(schema, "default"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/dependencies.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/dependencies.mjs /** * Returns true if the schema contains a valid dependencies property * @specification Json Schema 7 @@ -3672,7 +3544,7 @@ function IsDependencies(schema) { return HasPropertyKey(schema, "dependencies") && IsObject$1(schema.dependencies) && Object.values(schema.dependencies).every((value) => IsSchema(value) || IsArray$1(value) && value.every((value) => IsString$2(value))); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/dependentRequired.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/dependentRequired.mjs /** * Returns true if the schema contains a valid dependentRequired property * @specification Json Schema 2019-09 @@ -3681,7 +3553,7 @@ function IsDependentRequired(schema) { return HasPropertyKey(schema, "dependentRequired") && IsObject$1(schema.dependentRequired) && Object.values(schema.dependentRequired).every((value) => IsArray$1(value) && value.every((value) => IsString$2(value))); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/dependentSchemas.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/dependentSchemas.mjs /** * Returns true if the schema contains a valid dependentRequired property * @specification Json Schema 2019-09 @@ -3690,7 +3562,7 @@ function IsDependentSchemas(schema) { return HasPropertyKey(schema, "dependentSchemas") && IsObject$1(schema.dependentSchemas) && Object.values(schema.dependentSchemas).every((value) => IsSchema(value)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/dynamicAnchor.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/dynamicAnchor.mjs /** * Returns true if the schema contains a valid $dynamicAnchor property */ @@ -3698,7 +3570,7 @@ function IsDynamicAnchor(schema) { return HasPropertyKey(schema, "$dynamicAnchor") && IsString$2(schema.$dynamicAnchor); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/dynamicRef.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/dynamicRef.mjs /** * Returns true if the schema contains a valid $dynamicRef property */ @@ -3706,7 +3578,7 @@ function IsDynamicRef(schema) { return HasPropertyKey(schema, "$dynamicRef") && IsString$2(schema.$dynamicRef); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/else.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/else.mjs /** * Returns true if the schema contains a valid else property * @specification Json Schema 7 @@ -3715,7 +3587,7 @@ function IsElse(schema) { return HasPropertyKey(schema, "else") && IsSchema(schema.else); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/enum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/enum.mjs /** * Returns true if the schema contains a valid enum property * @specification Json Schema 7 @@ -3724,7 +3596,7 @@ function IsEnum(schema) { return HasPropertyKey(schema, "enum") && IsArray$1(schema.enum); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/exclusiveMaximum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/exclusiveMaximum.mjs /** * Returns true if the schema contains a valid exclusiveMaximum property * @specification Json Schema 7 @@ -3733,7 +3605,7 @@ function IsExclusiveMaximum(schema) { return HasPropertyKey(schema, "exclusiveMaximum") && (IsNumber$2(schema.exclusiveMaximum) || IsBigInt$1(schema.exclusiveMaximum)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/exclusiveMinimum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/exclusiveMinimum.mjs /** * Returns true if the schema contains a valid exclusiveMinimum property * @specification Json Schema 7 @@ -3742,7 +3614,7 @@ function IsExclusiveMinimum(schema) { return HasPropertyKey(schema, "exclusiveMinimum") && (IsNumber$2(schema.exclusiveMinimum) || IsBigInt$1(schema.exclusiveMinimum)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/format.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/format.mjs /** * Returns true if the schema contains a valid format property * @specification Json Schema 7 @@ -3751,7 +3623,7 @@ function IsFormat(schema) { return HasPropertyKey(schema, "format") && IsString$2(schema.format); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/id.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/id.mjs /** * Returns true if the schema contains a valid $id property * @specification Json Schema 7 @@ -3760,7 +3632,7 @@ function IsId(schema) { return HasPropertyKey(schema, "$id") && IsString$2(schema.$id); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/if.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/if.mjs /** * Returns true if the schema contains a valid $id property * @specification Json Schema 7 @@ -3769,7 +3641,7 @@ function IsIf(schema) { return HasPropertyKey(schema, "if") && IsSchema(schema.if); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/items.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/items.mjs /** * Returns true if the schema contains a valid items property * @specification Json Schema 7 @@ -3784,7 +3656,7 @@ function IsItemsSized(schema) { return IsItems(schema) && IsArray$1(schema.items); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/maximum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/maximum.mjs /** * Returns true if the schema contains a valid maximum property * @specification Json Schema 7 @@ -3793,7 +3665,7 @@ function IsMaximum(schema) { return HasPropertyKey(schema, "maximum") && (IsNumber$2(schema.maximum) || IsBigInt$1(schema.maximum)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/maxContains.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/maxContains.mjs /** * Returns true if the schema contains a valid maxContains property * @specification Json Schema 2019-09 @@ -3802,7 +3674,7 @@ function IsMaxContains(schema) { return HasPropertyKey(schema, "maxContains") && IsNumber$2(schema.maxContains); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/maxItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/maxItems.mjs /** * Returns true if the schema contains a valid maxItems property * @specification Json Schema 7 @@ -3811,7 +3683,7 @@ function IsMaxItems(schema) { return HasPropertyKey(schema, "maxItems") && IsNumber$2(schema.maxItems); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/maxLength.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/maxLength.mjs /** * Returns true if the schema contains a valid maxLength property * @specification Json Schema 7 @@ -3820,7 +3692,7 @@ function IsMaxLength(schema) { return HasPropertyKey(schema, "maxLength") && IsNumber$2(schema.maxLength); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/maxProperties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/maxProperties.mjs /** * Returns true if the schema contains a valid maxProperties property * @specification Json Schema 7 @@ -3829,7 +3701,7 @@ function IsMaxProperties(schema) { return HasPropertyKey(schema, "maxProperties") && IsNumber$2(schema.maxProperties); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/minimum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/minimum.mjs /** * Returns true if the schema contains a valid minimum property * @specification Json Schema 7 @@ -3838,7 +3710,7 @@ function IsMinimum(schema) { return HasPropertyKey(schema, "minimum") && (IsNumber$2(schema.minimum) || IsBigInt$1(schema.minimum)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/minContains.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/minContains.mjs /** * Returns true if the schema contains a valid maxContains property * @specification Json Schema 2019-09 @@ -3847,7 +3719,7 @@ function IsMinContains(schema) { return HasPropertyKey(schema, "minContains") && IsNumber$2(schema.minContains); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/minItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/minItems.mjs /** * Returns true if the schema contains a valid minItems property * @specification Json Schema 7 @@ -3856,7 +3728,7 @@ function IsMinItems(schema) { return HasPropertyKey(schema, "minItems") && IsNumber$2(schema.minItems); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/minLength.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/minLength.mjs /** * Returns true if the schema contains a valid minLength property * @specification Json Schema 7 @@ -3865,7 +3737,7 @@ function IsMinLength(schema) { return HasPropertyKey(schema, "minLength") && IsNumber$2(schema.minLength); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/minProperties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/minProperties.mjs /** * Returns true if the schema contains a valid minProperties property * @specification Json Schema 7 @@ -3874,7 +3746,7 @@ function IsMinProperties(schema) { return HasPropertyKey(schema, "minProperties") && IsNumber$2(schema.minProperties); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/multipleOf.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/multipleOf.mjs /** * Returns true if the schema contains a valid multipleOf property * @specification Json Schema 7 @@ -3883,7 +3755,7 @@ function IsMultipleOf(schema) { return HasPropertyKey(schema, "multipleOf") && (IsNumber$2(schema.multipleOf) || IsBigInt$1(schema.multipleOf)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/not.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/not.mjs /** * Returns true if the schema contains a valid not property * @specification Json Schema 7 @@ -3892,7 +3764,7 @@ function IsNot(schema) { return HasPropertyKey(schema, "not") && IsSchema(schema.not); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/oneOf.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/oneOf.mjs /** * Returns true if the schema contains a valid oneOf property * @specification Json Schema 7 @@ -3901,7 +3773,7 @@ function IsOneOf(schema) { return HasPropertyKey(schema, "oneOf") && IsArray$1(schema.oneOf) && schema.oneOf.every((value) => IsSchema(value)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/pattern.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/pattern.mjs /** * Returns true if the schema contains a valid pattern property * @specification Json Schema 7 @@ -3910,7 +3782,7 @@ function IsPattern(schema) { return HasPropertyKey(schema, "pattern") && (IsString$2(schema.pattern) || schema.pattern instanceof RegExp); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/patternProperties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/patternProperties.mjs /** * Returns true if the schema contains a valid patternProperties property * @specification Json Schema 7 @@ -3919,7 +3791,7 @@ function IsPatternProperties(schema) { return HasPropertyKey(schema, "patternProperties") && IsObject$1(schema.patternProperties) && Object.values(schema.patternProperties).every((value) => IsSchema(value)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/prefixItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/prefixItems.mjs /** * Returns true if the schema contains a valid prefixItems property */ @@ -3927,7 +3799,7 @@ function IsPrefixItems(schema) { return HasPropertyKey(schema, "prefixItems") && IsArray$1(schema.prefixItems) && schema.prefixItems.every((schema) => IsSchema(schema)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/properties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/properties.mjs /** * Returns true if the schema contains a valid properties property * @specification Json Schema 7 @@ -3936,7 +3808,7 @@ function IsProperties(schema) { return HasPropertyKey(schema, "properties") && IsObject$1(schema.properties) && Object.values(schema.properties).every((value) => IsSchema(value)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/propertyNames.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/propertyNames.mjs /** * Returns true if the schema contains a valid propertyNames property * @specification Json Schema 7 @@ -3945,7 +3817,7 @@ function IsPropertyNames(schema) { return HasPropertyKey(schema, "propertyNames") && (IsObject$1(schema.propertyNames) || IsSchema(schema.propertyNames)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/recursiveAnchor.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/recursiveAnchor.mjs /** * Returns true if the schema contains a valid $recursiveAnchor property */ @@ -3959,7 +3831,7 @@ function IsRecursiveAnchorTrue(schema) { return IsRecursiveAnchor(schema) && IsEqual(schema.$recursiveAnchor, true); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/recursiveRef.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/recursiveRef.mjs /** * Returns true if the schema contains a valid $recursiveRef property */ @@ -3967,7 +3839,7 @@ function IsRecursiveRef(schema) { return HasPropertyKey(schema, "$recursiveRef") && IsString$2(schema.$recursiveRef); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/ref.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/ref.mjs /** * Returns true if the schema contains a valid $ref property * @specification Json Schema 7 @@ -3976,7 +3848,7 @@ function IsRef(schema) { return HasPropertyKey(schema, "$ref") && IsString$2(schema.$ref); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/required.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/required.mjs /** * Returns true if the schema contains a valid required property * @specification Json Schema 7 @@ -3985,7 +3857,7 @@ function IsRequired(schema) { return HasPropertyKey(schema, "required") && IsArray$1(schema.required) && schema.required.every((value) => IsString$2(value)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/then.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/then.mjs /** * Returns true if the schema contains a valid then property * @specification Json Schema 7 @@ -3994,7 +3866,7 @@ function IsThen(schema) { return HasPropertyKey(schema, "then") && IsSchema(schema.then); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/type.mjs /** * Returns true if the schema contains a valid type property * @specification Json Schema 7 @@ -4003,7 +3875,7 @@ function IsType(schema) { return HasPropertyKey(schema, "type") && (IsString$2(schema.type) || IsArray$1(schema.type) && schema.type.every((value) => IsString$2(value))); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/uniqueItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/uniqueItems.mjs /** * Returns true if the schema contains a valid uniqueItems property * @specification Json Schema 7 @@ -4012,7 +3884,7 @@ function IsUniqueItems(schema) { return HasPropertyKey(schema, "uniqueItems") && IsBoolean$2(schema.uniqueItems); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/unevaluatedItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/unevaluatedItems.mjs /** * Returns true if the schema contains a valid unevaluatedItems property * @specification Json Schema 2019-09 @@ -4021,7 +3893,7 @@ function IsUnevaluatedItems(schema) { return HasPropertyKey(schema, "unevaluatedItems") && IsSchema(schema.unevaluatedItems); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/unevaluatedProperties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/unevaluatedProperties.mjs /** * Returns true if the schema contains a valid unevaluatedProperties property * @specification Json Schema 2019-09 @@ -4030,7 +3902,7 @@ function IsUnevaluatedProperties(schema) { return HasPropertyKey(schema, "unevaluatedProperties") && IsSchema(schema.unevaluatedProperties); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/_context.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/_context.mjs var CheckContext = class { constructor() { const indices = /* @__PURE__ */ new Set(); @@ -4099,20 +3971,7 @@ var AccumulatedErrorContext = class extends ErrorContext { } }; //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/_guard.mjs -function CheckGuard(_stack, _context, schema, value) { - return schema["~guard"].check(value); -} -function ErrorGuard(_stack, context, schemaPath, instancePath, schema, value) { - return schema["~guard"].check(value) || context.AddError({ - keyword: "~guard", - schemaPath, - instancePath, - params: { errors: schema["~guard"].errors(value) } - }); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/_refine.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/_refine.mjs function CheckRefine(_stack, _context, schema, value) { return Every(schema["~refine"], 0, (refinement, _) => refinement.check(value)); } @@ -4130,7 +3989,7 @@ function ErrorRefine(_stack, context, schemaPath, instancePath, schema, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/additionalItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/additionalItems.mjs function IsValid$4(schema) { return IsItems(schema) && IsArray$1(schema.items); } @@ -4149,7 +4008,7 @@ function ErrorAdditionalItems(stack, context, schemaPath, instancePath, schema, }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/additionalProperties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/additionalProperties.mjs function GetPropertyKeyAsPattern(key) { return `^${key.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}$`; } @@ -4183,7 +4042,7 @@ function ErrorAdditionalProperties(stack, context, schemaPath, instancePath, sch }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/allOf.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/allOf.mjs function CheckAllOf(stack, context, schema, value) { const results = schema.allOf.reduce((result, schema) => { const nextContext = new CheckContext(); @@ -4205,7 +4064,7 @@ function ErrorAllOf(stack, context, schemaPath, instancePath, schema, value) { return isAllOf; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/anyOf.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/anyOf.mjs function CheckAnyOf(stack, context, schema, value) { const results = schema.anyOf.reduce((result, schema) => { const nextContext = new CheckContext(); @@ -4231,7 +4090,7 @@ function ErrorAnyOf(stack, context, schemaPath, instancePath, schema, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/boolean.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/boolean.mjs function CheckBooleanSchema(_stack, _context, schema, _value) { return schema; } @@ -4244,7 +4103,7 @@ function ErrorBooleanSchema(stack, context, schemaPath, instancePath, schema, va }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/const.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/const.mjs function CheckConst(_stack, _context, schema, value) { return IsValueLike(schema.const) ? IsEqual(value, schema.const) : IsDeepEqual(value, schema.const); } @@ -4257,7 +4116,7 @@ function ErrorConst(stack, context, schemaPath, instancePath, schema, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/contains.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/contains.mjs function IsValid$3(schema) { return !(IsMinContains(schema) && IsEqual(schema.minContains, 0)); } @@ -4274,7 +4133,7 @@ function ErrorContains(stack, context, schemaPath, instancePath, schema, value) }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/dependencies.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/dependencies.mjs function CheckDependencies(stack, context, schema, value) { const isLength = IsEqual(Keys(value).length, 0); const isEvery = Every(Entries(schema.dependencies), 0, ([key, schema]) => { @@ -4299,7 +4158,7 @@ function ErrorDependencies(stack, context, schemaPath, instancePath, schema, val return isLength || isEvery; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/dependentRequired.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/dependentRequired.mjs function CheckDependentRequired(_stack, _context, schema, value) { const isLength = IsEqual(Keys(value).length, 0); const isEvery = Every(Entries(schema.dependentRequired), 0, ([key, keys]) => { @@ -4323,7 +4182,7 @@ function ErrorDependentRequired(_stack, context, schemaPath, instancePath, schem return isLength || isEveryEntry; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/dependentSchemas.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/dependentSchemas.mjs function CheckDependentSchemas(stack, context, schema, value) { const isLength = IsEqual(Keys(value).length, 0); const isEvery = Every(Entries(schema.dependentSchemas), 0, ([key, schema]) => { @@ -4340,7 +4199,7 @@ function ErrorDependentSchemas(stack, context, schemaPath, instancePath, schema, return isLength || isEvery; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/dynamicRef.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/dynamicRef.mjs function CheckDynamicRef(stack, context, schema, value) { const target = stack.DynamicRef(schema) ?? false; return IsSchema(target) && CheckSchema(stack, context, target, value); @@ -4350,7 +4209,7 @@ function ErrorDynamicRef(stack, context, _schemaPath, instancePath, schema, valu return IsSchema(target) && ErrorSchema(stack, context, "#", instancePath, target, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/enum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/enum.mjs function CheckEnum(_stack, _context, schema, value) { return schema.enum.some((option) => IsValueLike(option) ? IsEqual(value, option) : IsDeepEqual(value, option)); } @@ -4363,7 +4222,7 @@ function ErrorEnum(stack, context, schemaPath, instancePath, schema, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/exclusiveMaximum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/exclusiveMaximum.mjs function CheckExclusiveMaximum(_stack, _context, schema, value) { return IsLessThan(value, schema.exclusiveMaximum); } @@ -4379,7 +4238,7 @@ function ErrorExclusiveMaximum(stack, context, schemaPath, instancePath, schema, }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/exclusiveMinimum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/exclusiveMinimum.mjs function CheckExclusiveMinimum(_stack, _context, schema, value) { return IsGreaterThan(value, schema.exclusiveMinimum); } @@ -4395,7 +4254,7 @@ function ErrorExclusiveMinimum(stack, context, schemaPath, instancePath, schema, }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/date.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/date.mjs const DAYS = [ 0, 31, @@ -4429,7 +4288,7 @@ function IsDate(value) { return month >= 1 && month <= 12 && day >= 1 && day <= (month === 2 && IsLeapYear(year) ? 29 : DAYS[month]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/time.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/time.mjs const TIME = /^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(?:Z|([+-])(\d\d):(\d\d))?$/i; /** * Returns true if the value is a ISO time string @@ -4452,7 +4311,7 @@ function IsTime(value, strictTimeZone = true) { return (utcHr === 23 || utcHr === -1) && (utcMin === 59 || utcMin === -1) && sec < 61; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/date_time.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/date_time.mjs /** * Returns true if the value is a ISO8601 DateTime string * @source ajv-formats @@ -4463,7 +4322,7 @@ function IsDateTime(value, strictTimeZone = true) { return dateTime.length === 2 && IsDate(dateTime[0]) && IsTime(dateTime[1], strictTimeZone); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/duration.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/duration.mjs const Duration = /^P((\d+Y(\d+M(\d+D)?)?|\d+M(\d+D)?|\d+D)(T(\d+H(\d+M(\d+S)?)?|\d+M(\d+S)?|\d+S))?|T(\d+H(\d+M(\d+S)?)?|\d+M(\d+S)?|\d+S)|\d+W)$/; /** * Returns true if the value is a valid ISO-8601 duration. @@ -4473,7 +4332,7 @@ function IsDuration(value) { return Duration.test(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/email.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/email.mjs const Email = /^(?!.*\.\.)[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i; /** * Returns true if the value is an Email @@ -4483,7 +4342,7 @@ function IsEmail(value) { return Email.test(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/_puny.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/_puny.mjs const PUNYCODE_BASE = 36; const PUNYCODE_TMIN = 1; const PUNYCODE_TMAX = 26; @@ -4541,7 +4400,7 @@ function Decode$7(value) { return globalThis.String.fromCodePoint(...output); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/_idna.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/_idna.mjs function IsNonspacingMark(cp) { return /\p{Mn}/u.test(String.fromCodePoint(cp)); } @@ -4676,7 +4535,11 @@ function IsPuny(value) { } function IsPunyLabel(value) { try { - return IsUnicodeLabel(Decode$7(value.slice(4))); + const payload = value.slice(4).toLowerCase(); + if (payload.lastIndexOf("-") === 0) return false; + const decoded = Decode$7(payload); + if (!decoded) return false; + return IsUnicodeLabel(decoded); } catch { return false; } @@ -4690,7 +4553,7 @@ function IsLabel(value) { return IsPuny(value) ? IsPunyLabel(value) : IsAsciiLabel(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/hostname.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/hostname.mjs /** * Returns true if the value is a valid hostname. * @specification https://tools.ietf.org/html/rfc1123 @@ -4704,7 +4567,7 @@ function IsHostname(value) { return true; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/idn_email.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/idn_email.mjs const IdnEmail = /^(?!.*\.\.)[\p{L}\p{N}!#$%&'*+/=?^_`{|}~-]+(?:\.[\p{L}\p{N}!#$%&'*+/=?^_`{|}~-]+)*@[\p{L}\p{N}](?:[\p{L}\p{N}-]{0,61}[\p{L}\p{N}])?(?:\.[\p{L}\p{N}](?:[\p{L}\p{N}-]{0,61}[\p{L}\p{N}])?)*$/iu; /** * Returns true if the value is an IdnEmail @@ -4714,7 +4577,7 @@ function IsIdnEmail(value) { return IdnEmail.test(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/idn_hostname.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/idn_hostname.mjs /** * Returns true if the value is a valid internationalized (IDN) hostname. * @specification https://tools.ietf.org/html/rfc3490 @@ -4729,7 +4592,7 @@ function IsIdnHostname(value) { return true; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/ipv4.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/ipv4.mjs function IsIPv4Internal(value, start, end) { let dots = 0; let num = 0; @@ -4759,7 +4622,7 @@ function IsIPv4(value) { return IsIPv4Internal(value, 0, value.length); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/ipv6.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/ipv6.mjs function InRange(ch) { return ch >= 48 && ch <= 57 || ch >= 65 && ch <= 70 || ch >= 97 && ch <= 102; } @@ -4809,7 +4672,7 @@ function IsIPv6(value) { return compressed ? groups <= 7 : groups === 8; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/iri_reference.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/iri_reference.mjs function TryUrl(value) { try { new URL(value, "http://example.com"); @@ -4836,7 +4699,7 @@ function IsIriReference(value) { } } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/iri.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/iri.mjs /** * Returns true if the value is a Iri * @specification @@ -4850,7 +4713,7 @@ function IsIri(value) { } } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/json_pointer_uri_fragment.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/json_pointer_uri_fragment.mjs const JsonPointerUriFragment = /^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i; /** * Returns true if the value is a json pointer uri fragment @@ -4861,7 +4724,7 @@ function IsJsonPointerUriFragment(value) { return JsonPointerUriFragment.test(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/json_pointer.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/json_pointer.mjs const JsonPointer = /^(?:\/(?:[^~/]|~0|~1)*)*$/; /** * Returns true if the value is a json pointer @@ -4872,7 +4735,7 @@ function IsJsonPointer(value) { return JsonPointer.test(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/regex.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/regex.mjs /** * Returns true if the value is a regular expression string pattern * @specification @@ -4888,7 +4751,7 @@ function IsRegex(value) { } } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/relative_json_pointer.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/relative_json_pointer.mjs const RelativeJsonPointer = /^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/; /** * Returns true if the value is a relative json pointer @@ -4899,7 +4762,7 @@ function IsRelativeJsonPointer(value) { return RelativeJsonPointer.test(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/uri_reference.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/uri_reference.mjs const UriReference = /^(?!.*[^\x00-\x7F])(?!.*\\)(?:(?:[a-z][a-z0-9+\-.]*:)?(?:\/\/[^\s[\]{}<>^`|]*)?|[^\s[\]{}<>^`|]*)(?:\?[^\s[\]{}<>^`|]*)?(?:#[^\s[\]{}<>^`|]*)?$/i; /** * Returns true if the value is a valid URI Reference. @@ -4909,7 +4772,7 @@ function IsUriReference(value) { return UriReference.test(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/uri_template.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/uri_template.mjs const UriTemplate = /^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i; /** * Returns true if the value is a uri template @@ -4920,7 +4783,7 @@ function IsUriTemplate(value) { return UriTemplate.test(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/uri.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/uri.mjs function IsAlpha(ch) { return ch >= 97 && ch <= 122 || ch >= 65 && ch <= 90; } @@ -5015,7 +4878,7 @@ function IsUri(value) { return true; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/url.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/url.mjs const Url = /^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu; /** * Returns true if the value is a Url @@ -5026,7 +4889,7 @@ function IsUrl(value) { return Url.test(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/uuid.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/uuid.mjs const Uuid = /^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i; /** * Returns true if the value is a uuid @@ -5037,7 +4900,7 @@ function IsUuid(value) { return Uuid.test(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/_registry.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/_registry.mjs const formats = /* @__PURE__ */ new Map(); /** Clears all entries */ function Clear() { @@ -5074,7 +4937,7 @@ function Reset() { } Reset(); //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/format.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/format.mjs function CheckFormat(_stack, _context, schema, value) { return Test(schema.format, value); } @@ -5087,7 +4950,7 @@ function ErrorFormat(stack, context, schemaPath, instancePath, schema, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/if.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/if.mjs function CheckIf(stack, context, schema, value) { const thenSchema = IsThen(schema) ? schema.then : true; const elseSchema = IsElse(schema) ? schema.else : true; @@ -5112,7 +4975,7 @@ function ErrorIf(stack, context, schemaPath, instancePath, schema, value) { return isIf; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/items.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/items.mjs function CheckItemsSized(stack, context, schema, value) { return Every(schema.items, 0, (schema, index) => { return IsLessEqualThan(value.length, index) || CheckSchemaPushStack(stack, context, schema, value[index]) && context.AddIndex(index); @@ -5142,7 +5005,7 @@ function ErrorItems(stack, context, schemaPath, instancePath, schema, value) { return IsItemsSized(schema) ? ErrorItemsSized(stack, context, schemaPath, instancePath, schema, value) : ErrorItemsUnsized(stack, context, schemaPath, instancePath, schema, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/maxContains.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/maxContains.mjs function IsValid$2(schema) { return IsContains(schema); } @@ -5163,7 +5026,7 @@ function ErrorMaxContains(stack, context, schemaPath, instancePath, schema, valu }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/maximum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/maximum.mjs function CheckMaximum(_stack, _context, schema, value) { return IsLessEqualThan(value, schema.maximum); } @@ -5179,7 +5042,7 @@ function ErrorMaximum(stack, context, schemaPath, instancePath, schema, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/maxItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/maxItems.mjs function CheckMaxItems(_stack, _context, schema, value) { return IsLessEqualThan(value.length, schema.maxItems); } @@ -5192,7 +5055,7 @@ function ErrorMaxItems(stack, context, schemaPath, instancePath, schema, value) }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/maxLength.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/maxLength.mjs function CheckMaxLength(_stack, _context, schema, value) { return IsMaxLength$1(value, schema.maxLength); } @@ -5205,7 +5068,7 @@ function ErrorMaxLength(stack, context, schemaPath, instancePath, schema, value) }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/maxProperties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/maxProperties.mjs function CheckMaxProperties(_stack, _context, schema, value) { return IsLessEqualThan(Keys(value).length, schema.maxProperties); } @@ -5218,7 +5081,7 @@ function ErrorMaxProperties(stack, context, schemaPath, instancePath, schema, va }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/minContains.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/minContains.mjs function IsValid$1(schema) { return IsContains(schema); } @@ -5235,7 +5098,7 @@ function ErrorMinContains(stack, context, schemaPath, instancePath, schema, valu }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/minimum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/minimum.mjs function CheckMinimum(_stack, _context, schema, value) { return IsGreaterEqualThan(value, schema.minimum); } @@ -5251,7 +5114,7 @@ function ErrorMinimum(stack, context, schemaPath, instancePath, schema, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/minItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/minItems.mjs function CheckMinItems(_stack, _context, schema, value) { return IsGreaterEqualThan(value.length, schema.minItems); } @@ -5264,7 +5127,7 @@ function ErrorMinItems(stack, context, schemaPath, instancePath, schema, value) }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/minLength.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/minLength.mjs function CheckMinLength(_stack, _context, schema, value) { return IsMinLength$1(value, schema.minLength); } @@ -5277,7 +5140,7 @@ function ErrorMinLength(stack, context, schemaPath, instancePath, schema, value) }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/minProperties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/minProperties.mjs function CheckMinProperties(_stack, _context, schema, value) { return IsGreaterEqualThan(Keys(value).length, schema.minProperties); } @@ -5290,7 +5153,7 @@ function ErrorMinProperties(stack, context, schemaPath, instancePath, schema, va }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/multipleOf.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/multipleOf.mjs function CheckMultipleOf(_stack, _context, schema, value) { return IsMultipleOf$1(value, schema.multipleOf); } @@ -5303,7 +5166,7 @@ function ErrorMultipleOf(stack, context, schemaPath, instancePath, schema, value }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/not.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/not.mjs function CheckNot(stack, context, schema, value) { const nextContext = new CheckContext(); return !CheckSchema(stack, nextContext, schema.not, value) && context.Merge([nextContext]); @@ -5317,7 +5180,7 @@ function ErrorNot(stack, context, schemaPath, instancePath, schema, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/oneOf.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/oneOf.mjs function CheckOneOf(stack, context, schema, value) { const passedContexts = schema.oneOf.reduce((result, schema) => { const nextContext = new CheckContext(); @@ -5345,7 +5208,7 @@ function ErrorOneOf(stack, context, schemaPath, instancePath, schema, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/pattern.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/pattern.mjs function CheckPattern(_stack, _context, schema, value) { return (IsString$2(schema.pattern) ? new RegExp(schema.pattern, "u") : schema.pattern).test(value); } @@ -5358,7 +5221,7 @@ function ErrorPattern(stack, context, schemaPath, instancePath, schema, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/patternProperties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/patternProperties.mjs function CheckPatternProperties(stack, context, schema, value) { return Every(Entries(schema.patternProperties), 0, ([pattern, schema]) => { const regexp = new RegExp(pattern, "u"); @@ -5378,7 +5241,7 @@ function ErrorPatternProperties(stack, context, schemaPath, instancePath, schema }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/prefixItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/prefixItems.mjs function CheckPrefixItems(stack, context, schema, value) { return IsEqual(value.length, 0) || Every(schema.prefixItems, 0, (schema, index) => { return IsLessEqualThan(value.length, index) || CheckSchemaPushStack(stack, context, schema, value[index]) && context.AddIndex(index); @@ -5392,7 +5255,7 @@ function ErrorPrefixItems(stack, context, schemaPath, instancePath, schema, valu }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/_exact_optional.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/_exact_optional.mjs function IsExactOptional(required, key) { return required.includes(key) || Get$2().exactOptionalPropertyTypes; } @@ -5400,7 +5263,7 @@ function InexactOptionalCheck(value, key) { return IsUndefined$1(value[key]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/properties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/properties.mjs function CheckProperties(stack, context, schema, value) { const required = IsRequired(schema) ? schema.required : []; return Every(Entries(schema.properties), 0, ([key, schema]) => { @@ -5418,7 +5281,7 @@ function ErrorProperties(stack, context, schemaPath, instancePath, schema, value }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/propertyNames.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/propertyNames.mjs function CheckPropertyNames(stack, context, schema, value) { return Every(Keys(value), 0, (key, _index) => CheckSchema(stack, context, schema.propertyNames, key)); } @@ -5438,7 +5301,7 @@ function ErrorPropertyNames(stack, context, schemaPath, instancePath, schema, va }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/recursiveRef.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/recursiveRef.mjs function CheckRecursiveRef(stack, context, schema, value) { const target = stack.RecursiveRef(schema) ?? false; return IsSchema(target) && CheckSchema(stack, context, target, value); @@ -5448,7 +5311,7 @@ function ErrorRecursiveRef(stack, context, _schemaPath, instancePath, schema, va return IsSchema(target) && ErrorSchema(stack, context, "#", instancePath, target, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/ref.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/ref.mjs function CheckRef(stack, context, schema, value) { const target = stack.Ref(schema) ?? false; const nextContext = new CheckContext(); @@ -5465,7 +5328,7 @@ function ErrorRef(stack, context, _schemaPath, instancePath, schema, value) { return result; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/required.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/required.mjs function CheckRequired(_stack, _context, schema, value) { return Every(schema.required, 0, (key) => HasPropertyKey(value, key)); } @@ -5483,9 +5346,9 @@ function ErrorRequired(_stack, context, schemaPath, instancePath, schema, value) }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/type.mjs function CheckTypeName(_stack, _context, type, _schema, value) { - return IsEqual(type, "object") ? IsObjectNotArray(value) : IsEqual(type, "array") ? IsArray$1(value) : IsEqual(type, "boolean") ? IsBoolean$2(value) : IsEqual(type, "integer") ? IsInteger$1(value) : IsEqual(type, "number") ? IsNumber$2(value) : IsEqual(type, "null") ? IsNull$1(value) : IsEqual(type, "string") ? IsString$2(value) : IsEqual(type, "asyncIterator") ? IsAsyncIterator$1(value) : IsEqual(type, "bigint") ? IsBigInt$1(value) : IsEqual(type, "constructor") ? IsConstructor$1(value) : IsEqual(type, "function") ? IsFunction$1(value) : IsEqual(type, "iterator") ? IsIterator$1(value) : IsEqual(type, "symbol") ? IsSymbol$1(value) : IsEqual(type, "undefined") ? IsUndefined$1(value) : IsEqual(type, "void") ? IsUndefined$1(value) : true; + return IsEqual(type, "object") ? IsObjectNotArray(value) : IsEqual(type, "array") ? IsArray$1(value) : IsEqual(type, "boolean") ? IsBoolean$2(value) : IsEqual(type, "integer") ? IsInteger$1(value) : IsEqual(type, "number") ? IsNumber$2(value) : IsEqual(type, "null") ? IsNull$1(value) : IsEqual(type, "string") ? IsString$2(value) : IsEqual(type, "bigint") ? IsBigInt$1(value) : IsEqual(type, "constructor") ? IsConstructor$1(value) : IsEqual(type, "function") ? IsFunction$1(value) : IsEqual(type, "symbol") ? IsSymbol$1(value) : IsEqual(type, "undefined") ? IsUndefined$1(value) : IsEqual(type, "void") ? IsUndefined$1(value) : true; } function CheckTypeNames(stack, context, types, schema, value) { return types.some((type) => CheckTypeName(stack, context, type, schema, value)); @@ -5502,7 +5365,7 @@ function ErrorType(stack, context, schemaPath, instancePath, schema, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/unevaluatedItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/unevaluatedItems.mjs function CheckUnevaluatedItems(stack, context, schema, value) { const indices = context.GetIndices(); return Every(value, 0, (item, index) => { @@ -5525,7 +5388,7 @@ function ErrorUnevaluatedItems(stack, context, schemaPath, instancePath, schema, }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/unevaluatedProperties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/unevaluatedProperties.mjs function CheckUnevaluatedProperties(stack, context, schema, value) { const keys = context.GetKeys(); return Every(Entries(value), 0, ([key, prop]) => { @@ -5548,7 +5411,7 @@ function ErrorUnevaluatedProperties(stack, context, schemaPath, instancePath, sc }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/uniqueItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/uniqueItems.mjs function IsValid(schema) { return !IsEqual(schema.uniqueItems, false); } @@ -5575,13 +5438,13 @@ function ErrorUniqueItems(_stack, context, schemaPath, instancePath, schema, val }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/schema.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/schema.mjs function CheckSchemaPushStack(stack, context, schema, value) { return context.Push() && CheckSchema(stack, context, schema, value) && context.Pop(); } function CheckSchema(stack, context, schema, value) { stack.Push(schema); - const result = IsBooleanSchema(schema) ? CheckBooleanSchema(stack, context, schema, value) : (!IsType(schema) || CheckType(stack, context, schema, value)) && (!(IsObject$1(value) && !IsArray$1(value)) || (!IsRequired(schema) || CheckRequired(stack, context, schema, value)) && (!IsAdditionalProperties(schema) || CheckAdditionalProperties(stack, context, schema, value)) && (!IsDependencies(schema) || CheckDependencies(stack, context, schema, value)) && (!IsDependentRequired(schema) || CheckDependentRequired(stack, context, schema, value)) && (!IsDependentSchemas(schema) || CheckDependentSchemas(stack, context, schema, value)) && (!IsPatternProperties(schema) || CheckPatternProperties(stack, context, schema, value)) && (!IsProperties(schema) || CheckProperties(stack, context, schema, value)) && (!IsPropertyNames(schema) || CheckPropertyNames(stack, context, schema, value)) && (!IsMinProperties(schema) || CheckMinProperties(stack, context, schema, value)) && (!IsMaxProperties(schema) || CheckMaxProperties(stack, context, schema, value))) && (!IsArray$1(value) || (!IsAdditionalItems(schema) || CheckAdditionalItems(stack, context, schema, value)) && (!IsContains(schema) || CheckContains(stack, context, schema, value)) && (!IsItems(schema) || CheckItems(stack, context, schema, value)) && (!IsMaxContains(schema) || CheckMaxContains(stack, context, schema, value)) && (!IsMaxItems(schema) || CheckMaxItems(stack, context, schema, value)) && (!IsMinContains(schema) || CheckMinContains(stack, context, schema, value)) && (!IsMinItems(schema) || CheckMinItems(stack, context, schema, value)) && (!IsPrefixItems(schema) || CheckPrefixItems(stack, context, schema, value)) && (!IsUniqueItems(schema) || CheckUniqueItems(stack, context, schema, value))) && (!IsString$2(value) || (!IsMaxLength(schema) || CheckMaxLength(stack, context, schema, value)) && (!IsMinLength(schema) || CheckMinLength(stack, context, schema, value)) && (!IsFormat(schema) || CheckFormat(stack, context, schema, value)) && (!IsPattern(schema) || CheckPattern(stack, context, schema, value))) && (!(IsNumber$2(value) || IsBigInt$1(value)) || (!IsExclusiveMaximum(schema) || CheckExclusiveMaximum(stack, context, schema, value)) && (!IsExclusiveMinimum(schema) || CheckExclusiveMinimum(stack, context, schema, value)) && (!IsMaximum(schema) || CheckMaximum(stack, context, schema, value)) && (!IsMinimum(schema) || CheckMinimum(stack, context, schema, value)) && (!IsMultipleOf(schema) || CheckMultipleOf(stack, context, schema, value))) && (!IsRef(schema) || CheckRef(stack, context, schema, value)) && (!IsRecursiveRef(schema) || CheckRecursiveRef(stack, context, schema, value)) && (!IsDynamicRef(schema) || CheckDynamicRef(stack, context, schema, value)) && (!IsGuard(schema) || CheckGuard(stack, context, schema, value)) && (!IsConst(schema) || CheckConst(stack, context, schema, value)) && (!IsEnum(schema) || CheckEnum(stack, context, schema, value)) && (!IsIf(schema) || CheckIf(stack, context, schema, value)) && (!IsNot(schema) || CheckNot(stack, context, schema, value)) && (!IsAllOf(schema) || CheckAllOf(stack, context, schema, value)) && (!IsAnyOf(schema) || CheckAnyOf(stack, context, schema, value)) && (!IsOneOf(schema) || CheckOneOf(stack, context, schema, value)) && (!IsUnevaluatedItems(schema) || !IsArray$1(value) || CheckUnevaluatedItems(stack, context, schema, value)) && (!IsUnevaluatedProperties(schema) || !IsObject$1(value) || CheckUnevaluatedProperties(stack, context, schema, value)) && (!IsRefine(schema) || CheckRefine(stack, context, schema, value)); + const result = IsBooleanSchema(schema) ? CheckBooleanSchema(stack, context, schema, value) : (!IsType(schema) || CheckType(stack, context, schema, value)) && (!(IsObject$1(value) && !IsArray$1(value)) || (!IsRequired(schema) || CheckRequired(stack, context, schema, value)) && (!IsAdditionalProperties(schema) || CheckAdditionalProperties(stack, context, schema, value)) && (!IsDependencies(schema) || CheckDependencies(stack, context, schema, value)) && (!IsDependentRequired(schema) || CheckDependentRequired(stack, context, schema, value)) && (!IsDependentSchemas(schema) || CheckDependentSchemas(stack, context, schema, value)) && (!IsPatternProperties(schema) || CheckPatternProperties(stack, context, schema, value)) && (!IsProperties(schema) || CheckProperties(stack, context, schema, value)) && (!IsPropertyNames(schema) || CheckPropertyNames(stack, context, schema, value)) && (!IsMinProperties(schema) || CheckMinProperties(stack, context, schema, value)) && (!IsMaxProperties(schema) || CheckMaxProperties(stack, context, schema, value))) && (!IsArray$1(value) || (!IsAdditionalItems(schema) || CheckAdditionalItems(stack, context, schema, value)) && (!IsContains(schema) || CheckContains(stack, context, schema, value)) && (!IsItems(schema) || CheckItems(stack, context, schema, value)) && (!IsMaxContains(schema) || CheckMaxContains(stack, context, schema, value)) && (!IsMaxItems(schema) || CheckMaxItems(stack, context, schema, value)) && (!IsMinContains(schema) || CheckMinContains(stack, context, schema, value)) && (!IsMinItems(schema) || CheckMinItems(stack, context, schema, value)) && (!IsPrefixItems(schema) || CheckPrefixItems(stack, context, schema, value)) && (!IsUniqueItems(schema) || CheckUniqueItems(stack, context, schema, value))) && (!IsString$2(value) || (!IsMaxLength(schema) || CheckMaxLength(stack, context, schema, value)) && (!IsMinLength(schema) || CheckMinLength(stack, context, schema, value)) && (!IsFormat(schema) || CheckFormat(stack, context, schema, value)) && (!IsPattern(schema) || CheckPattern(stack, context, schema, value))) && (!(IsNumber$2(value) || IsBigInt$1(value)) || (!IsExclusiveMaximum(schema) || CheckExclusiveMaximum(stack, context, schema, value)) && (!IsExclusiveMinimum(schema) || CheckExclusiveMinimum(stack, context, schema, value)) && (!IsMaximum(schema) || CheckMaximum(stack, context, schema, value)) && (!IsMinimum(schema) || CheckMinimum(stack, context, schema, value)) && (!IsMultipleOf(schema) || CheckMultipleOf(stack, context, schema, value))) && (!IsRef(schema) || CheckRef(stack, context, schema, value)) && (!IsRecursiveRef(schema) || CheckRecursiveRef(stack, context, schema, value)) && (!IsDynamicRef(schema) || CheckDynamicRef(stack, context, schema, value)) && (!IsConst(schema) || CheckConst(stack, context, schema, value)) && (!IsEnum(schema) || CheckEnum(stack, context, schema, value)) && (!IsIf(schema) || CheckIf(stack, context, schema, value)) && (!IsNot(schema) || CheckNot(stack, context, schema, value)) && (!IsAllOf(schema) || CheckAllOf(stack, context, schema, value)) && (!IsAnyOf(schema) || CheckAnyOf(stack, context, schema, value)) && (!IsOneOf(schema) || CheckOneOf(stack, context, schema, value)) && (!IsUnevaluatedItems(schema) || !IsArray$1(value) || CheckUnevaluatedItems(stack, context, schema, value)) && (!IsUnevaluatedProperties(schema) || !IsObject$1(value) || CheckUnevaluatedProperties(stack, context, schema, value)) && (!IsRefine(schema) || CheckRefine(stack, context, schema, value)); stack.Pop(schema); return result; } @@ -5590,12 +5453,12 @@ function ErrorSchemaPushStack(stack, context, schemaPath, instancePath, schema, } function ErrorSchema(stack, context, schemaPath, instancePath, schema, value) { stack.Push(schema); - const result = IsBooleanSchema(schema) ? ErrorBooleanSchema(stack, context, schemaPath, instancePath, schema, value) : !!(+(!IsType(schema) || ErrorType(stack, context, schemaPath, instancePath, schema, value)) & +(!(IsObject$1(value) && !IsArray$1(value)) || !!(+(!IsRequired(schema) || ErrorRequired(stack, context, schemaPath, instancePath, schema, value)) & +(!IsAdditionalProperties(schema) || ErrorAdditionalProperties(stack, context, schemaPath, instancePath, schema, value)) & +(!IsDependencies(schema) || ErrorDependencies(stack, context, schemaPath, instancePath, schema, value)) & +(!IsDependentRequired(schema) || ErrorDependentRequired(stack, context, schemaPath, instancePath, schema, value)) & +(!IsDependentSchemas(schema) || ErrorDependentSchemas(stack, context, schemaPath, instancePath, schema, value)) & +(!IsPatternProperties(schema) || ErrorPatternProperties(stack, context, schemaPath, instancePath, schema, value)) & +(!IsProperties(schema) || ErrorProperties(stack, context, schemaPath, instancePath, schema, value)) & +(!IsPropertyNames(schema) || ErrorPropertyNames(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMinProperties(schema) || ErrorMinProperties(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMaxProperties(schema) || ErrorMaxProperties(stack, context, schemaPath, instancePath, schema, value)))) & +(!IsArray$1(value) || !!(+(!IsAdditionalItems(schema) || ErrorAdditionalItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsContains(schema) || ErrorContains(stack, context, schemaPath, instancePath, schema, value)) & +(!IsItems(schema) || ErrorItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMaxContains(schema) || ErrorMaxContains(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMaxItems(schema) || ErrorMaxItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMinContains(schema) || ErrorMinContains(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMinItems(schema) || ErrorMinItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsPrefixItems(schema) || ErrorPrefixItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsUniqueItems(schema) || ErrorUniqueItems(stack, context, schemaPath, instancePath, schema, value)))) & +(!IsString$2(value) || !!(+(!IsMaxLength(schema) || ErrorMaxLength(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMinLength(schema) || ErrorMinLength(stack, context, schemaPath, instancePath, schema, value)) & +(!IsFormat(schema) || ErrorFormat(stack, context, schemaPath, instancePath, schema, value)) & +(!IsPattern(schema) || ErrorPattern(stack, context, schemaPath, instancePath, schema, value)))) & +(!(IsNumber$2(value) || IsBigInt$1(value)) || !!(+(!IsExclusiveMaximum(schema) || ErrorExclusiveMaximum(stack, context, schemaPath, instancePath, schema, value)) & +(!IsExclusiveMinimum(schema) || ErrorExclusiveMinimum(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMaximum(schema) || ErrorMaximum(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMinimum(schema) || ErrorMinimum(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMultipleOf(schema) || ErrorMultipleOf(stack, context, schemaPath, instancePath, schema, value)))) & +(!IsRef(schema) || ErrorRef(stack, context, schemaPath, instancePath, schema, value)) & +(!IsRecursiveRef(schema) || ErrorRecursiveRef(stack, context, schemaPath, instancePath, schema, value)) & +(!IsDynamicRef(schema) || ErrorDynamicRef(stack, context, schemaPath, instancePath, schema, value)) & +(!IsGuard(schema) || ErrorGuard(stack, context, schemaPath, instancePath, schema, value)) & +(!IsConst(schema) || ErrorConst(stack, context, schemaPath, instancePath, schema, value)) & +(!IsEnum(schema) || ErrorEnum(stack, context, schemaPath, instancePath, schema, value)) & +(!IsIf(schema) || ErrorIf(stack, context, schemaPath, instancePath, schema, value)) & +(!IsNot(schema) || ErrorNot(stack, context, schemaPath, instancePath, schema, value)) & +(!IsAllOf(schema) || ErrorAllOf(stack, context, schemaPath, instancePath, schema, value)) & +(!IsAnyOf(schema) || ErrorAnyOf(stack, context, schemaPath, instancePath, schema, value)) & +(!IsOneOf(schema) || ErrorOneOf(stack, context, schemaPath, instancePath, schema, value)) & +(!IsUnevaluatedItems(schema) || !IsArray$1(value) || ErrorUnevaluatedItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsUnevaluatedProperties(schema) || !IsObject$1(value) || ErrorUnevaluatedProperties(stack, context, schemaPath, instancePath, schema, value))) && (!IsRefine(schema) || ErrorRefine(stack, context, schemaPath, instancePath, schema, value)); + const result = IsBooleanSchema(schema) ? ErrorBooleanSchema(stack, context, schemaPath, instancePath, schema, value) : !!(+(!IsType(schema) || ErrorType(stack, context, schemaPath, instancePath, schema, value)) & +(!(IsObject$1(value) && !IsArray$1(value)) || !!(+(!IsRequired(schema) || ErrorRequired(stack, context, schemaPath, instancePath, schema, value)) & +(!IsAdditionalProperties(schema) || ErrorAdditionalProperties(stack, context, schemaPath, instancePath, schema, value)) & +(!IsDependencies(schema) || ErrorDependencies(stack, context, schemaPath, instancePath, schema, value)) & +(!IsDependentRequired(schema) || ErrorDependentRequired(stack, context, schemaPath, instancePath, schema, value)) & +(!IsDependentSchemas(schema) || ErrorDependentSchemas(stack, context, schemaPath, instancePath, schema, value)) & +(!IsPatternProperties(schema) || ErrorPatternProperties(stack, context, schemaPath, instancePath, schema, value)) & +(!IsProperties(schema) || ErrorProperties(stack, context, schemaPath, instancePath, schema, value)) & +(!IsPropertyNames(schema) || ErrorPropertyNames(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMinProperties(schema) || ErrorMinProperties(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMaxProperties(schema) || ErrorMaxProperties(stack, context, schemaPath, instancePath, schema, value)))) & +(!IsArray$1(value) || !!(+(!IsAdditionalItems(schema) || ErrorAdditionalItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsContains(schema) || ErrorContains(stack, context, schemaPath, instancePath, schema, value)) & +(!IsItems(schema) || ErrorItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMaxContains(schema) || ErrorMaxContains(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMaxItems(schema) || ErrorMaxItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMinContains(schema) || ErrorMinContains(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMinItems(schema) || ErrorMinItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsPrefixItems(schema) || ErrorPrefixItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsUniqueItems(schema) || ErrorUniqueItems(stack, context, schemaPath, instancePath, schema, value)))) & +(!IsString$2(value) || !!(+(!IsMaxLength(schema) || ErrorMaxLength(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMinLength(schema) || ErrorMinLength(stack, context, schemaPath, instancePath, schema, value)) & +(!IsFormat(schema) || ErrorFormat(stack, context, schemaPath, instancePath, schema, value)) & +(!IsPattern(schema) || ErrorPattern(stack, context, schemaPath, instancePath, schema, value)))) & +(!(IsNumber$2(value) || IsBigInt$1(value)) || !!(+(!IsExclusiveMaximum(schema) || ErrorExclusiveMaximum(stack, context, schemaPath, instancePath, schema, value)) & +(!IsExclusiveMinimum(schema) || ErrorExclusiveMinimum(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMaximum(schema) || ErrorMaximum(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMinimum(schema) || ErrorMinimum(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMultipleOf(schema) || ErrorMultipleOf(stack, context, schemaPath, instancePath, schema, value)))) & +(!IsRef(schema) || ErrorRef(stack, context, schemaPath, instancePath, schema, value)) & +(!IsRecursiveRef(schema) || ErrorRecursiveRef(stack, context, schemaPath, instancePath, schema, value)) & +(!IsDynamicRef(schema) || ErrorDynamicRef(stack, context, schemaPath, instancePath, schema, value)) & +(!IsConst(schema) || ErrorConst(stack, context, schemaPath, instancePath, schema, value)) & +(!IsEnum(schema) || ErrorEnum(stack, context, schemaPath, instancePath, schema, value)) & +(!IsIf(schema) || ErrorIf(stack, context, schemaPath, instancePath, schema, value)) & +(!IsNot(schema) || ErrorNot(stack, context, schemaPath, instancePath, schema, value)) & +(!IsAllOf(schema) || ErrorAllOf(stack, context, schemaPath, instancePath, schema, value)) & +(!IsAnyOf(schema) || ErrorAnyOf(stack, context, schemaPath, instancePath, schema, value)) & +(!IsOneOf(schema) || ErrorOneOf(stack, context, schemaPath, instancePath, schema, value)) & +(!IsUnevaluatedItems(schema) || !IsArray$1(value) || ErrorUnevaluatedItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsUnevaluatedProperties(schema) || !IsObject$1(value) || ErrorUnevaluatedProperties(stack, context, schemaPath, instancePath, schema, value))) && (!IsRefine(schema) || ErrorRefine(stack, context, schemaPath, instancePath, schema, value)); stack.Pop(schema); return result; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/pointer/pointer.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/pointer/pointer.mjs function GetIndex(index, value) { return IsObject$1(value) && !IsUnsafePropertyKey(index) ? value[index] : void 0; } @@ -5613,7 +5476,7 @@ function Get(value, pointer) { return GetIndices(Indices(pointer), value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/resolve/ref.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/resolve/ref.mjs function MatchId(schema, base, ref) { if (schema.$id === ref.hash) return schema; const absoluteId = new URL(schema.$id, base.href); @@ -5652,31 +5515,31 @@ function Match(schema, base, ref) { } return MatchHash(schema, base, ref); } -function FromArray$5(schema, base, ref) { +function FromArray$4(schema, base, ref) { return schema.reduce((result, item) => { - const match = FromValue$1(item, base, ref); + const match = FromValue(item, base, ref); return !IsUndefined$1(match) ? match : result; }, void 0); } -function FromObject$5(schema, base, ref) { +function FromObject$4(schema, base, ref) { return Keys(schema).reduce((result, key) => { - const match = FromValue$1(schema[key], base, ref); + const match = FromValue(schema[key], base, ref); return !IsUndefined$1(match) ? match : result; }, void 0); } -function FromValue$1(schema, base, ref) { +function FromValue(schema, base, ref) { const nextBase = IsSchemaObject(schema) && IsId(schema) ? new URL(schema.$id, base.href) : base; if (IsSchemaObject(schema)) { const result = Match(schema, nextBase, ref); if (!IsUndefined$1(result)) return result; } - if (IsArray$1(schema)) return FromArray$5(schema, nextBase, ref); - if (IsObject$1(schema)) return FromObject$5(schema, nextBase, ref); + if (IsArray$1(schema)) return FromArray$4(schema, nextBase, ref); + if (IsObject$1(schema)) return FromObject$4(schema, nextBase, ref); } function Ref(schema, ref) { const defaultBase = new URL("http://unknown/"); const initialBase = IsId(schema) ? new URL(schema.$id, defaultBase.href) : defaultBase; - return FromValue$1(schema, initialBase, new URL(ref, initialBase.href)); + return FromValue(schema, initialBase, new URL(ref, initialBase.href)); } function DynamicRef(root, base, dynamicRef, dynamicAnchors) { const fragmentTarget = dynamicRef.$dynamicRef.startsWith("#") ? Ref(base, dynamicRef.$dynamicRef) : Ref(root, dynamicRef.$dynamicRef); @@ -5686,7 +5549,7 @@ function DynamicRef(root, base, dynamicRef, dynamicAnchors) { return dynamicAnchors.find((anchor) => anchor.$dynamicAnchor === fragmentTarget.$dynamicAnchor) ?? fragmentTarget; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/_stack.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/_stack.mjs var __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"); @@ -5759,7 +5622,7 @@ _Stack_instances = /* @__PURE__ */ new WeakSet(), _Stack_PushResourceAnchors = f return !ref.$ref.startsWith("#") ? Ref(root, ref.$ref) : Ref(this.Base(), ref.$ref); }; //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/errors.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/errors.mjs /** Checks a value and returns validation errors */ function Errors$1(...args) { const [context, schema, value] = Match$3(args, { @@ -5786,7 +5649,7 @@ function Errors$1(...args) { }), "#", "", schema, value), errors]; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/check.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/check.mjs /** Checks a value against the provided schema */ function Check$1(...args) { const [context, schema, value] = Match$3(args, { @@ -5804,7 +5667,7 @@ function Check$1(...args) { return CheckSchema(new Stack(context, schema), new CheckContext(), schema, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/check/check.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/check/check.mjs /** Checks a value matches the provided type. */ function Check(...args) { const [context, type, value] = Match$3(args, { @@ -5822,7 +5685,7 @@ function Check(...args) { return Check$1(context, type, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/errors/errors.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/errors/errors.mjs /** * Performs an exhaustive Check on the specified value and reports any errors found. * If no errors are found, an empty array is returned. Unlike Check, this function @@ -5846,7 +5709,7 @@ function Errors(...args) { return errors; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/assert/assert.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/assert/assert.mjs var AssertError = class extends Error { constructor(source, value, errors) { super(source); @@ -5863,18 +5726,13 @@ var AssertError = class extends Error { } }; //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/clean/from_array.mjs -function FromArray$4(context, type, value) { +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/clean/from_array.mjs +function FromArray$3(context, type, value) { if (!IsArray$1(value)) return value; return value.map((value) => FromType$4(context, type.items, value)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/clean/from_base.mjs -function FromBase$2(_context, type, value) { - return type.Clean(value); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/clean/from_cyclic.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/clean/from_cyclic.mjs function FromCyclic$3(context, type, value) { return FromType$4({ ...context, @@ -5882,7 +5740,7 @@ function FromCyclic$3(context, type, value) { }, Ref$1(type.$ref), value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/clean/from_intersect.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/clean/from_intersect.mjs function EvaluateIntersection(context, type) { const additionalProperties = HasPropertyKey(type, "unevaluatedProperties") ? { additionalProperties: type.unevaluatedProperties } : {}; const evaluated = Evaluate(Instantiate(context, type)); @@ -5892,13 +5750,13 @@ function FromIntersect$3(context, type, value) { return FromType$4(context, EvaluateIntersection(context, type), value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/clean/additional.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/clean/additional.mjs function GetAdditionalProperties(type) { return HasPropertyKey(type, "additionalProperties") ? type.additionalProperties : void 0; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/clean/from_object.mjs -function FromObject$4(context, type, value) { +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/clean/from_object.mjs +function FromObject$3(context, type, value) { if (!IsObject$1(value) || IsArray$1(value)) return value; const additionalProperties = GetAdditionalProperties(type); for (const key of Keys(value)) { @@ -5915,7 +5773,7 @@ function FromObject$4(context, type, value) { return value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/clean/from_record.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/clean/from_record.mjs function FromRecord$3(context, type, value) { if (!IsObject$1(value)) return value; const additionalProperties = GetAdditionalProperties(type); @@ -5934,12 +5792,12 @@ function FromRecord$3(context, type, value) { return value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/clean/from_ref.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/clean/from_ref.mjs function FromRef$3(context, type, value) { return HasPropertyKey(context, type.$ref) ? FromType$4(context, context[type.$ref], value) : value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/clean/from_tuple.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/clean/from_tuple.mjs function FromTuple$3(context, schema, value) { if (!IsArray$1(value)) return value; const length = Math.min(value.length, schema.items.length); @@ -5947,52 +5805,16 @@ function FromTuple$3(context, schema, value) { return IsGreaterThan(value.length, length) ? value.slice(0, length) : value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/clone/clone.mjs -function FromClassInstance(value) { - return value; -} -function IsTypeInstance(value) { - return HasPropertyKey(value, "~kind"); -} -function FromTypeInstance(value) { - return Clone$1(value); -} -function FromObjectInstance(value) { - const result = {}; - for (const key of Keys(value)) { - if (IsUnsafePropertyKey(key)) continue; - result[key] = Clone(value[key]); - } - for (const key of Symbols(value)) result[key] = Clone(value[key]); - return result; -} -function FromObject$3(value) { - return IsClassInstance(value) ? FromClassInstance(value) : IsTypeInstance(value) ? FromTypeInstance(value) : FromObjectInstance(value); -} -function FromArray$3(value) { - return value.map((element) => Clone(element)); -} -function FromTypedArray(value) { - return value.slice(); -} -function FromMap(value) { - return new Map(Clone([...value.entries()])); -} -function FromSet(value) { - return new Set(Clone([...value.values()])); -} -function FromValue(value) { - return value; -} +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/clone/clone.mjs /** * Returns a Clone of the given value. This function is similar to structuredClone() * but also supports deep cloning instances of Map, Set and TypeArray. */ function Clone(value) { - return IsTypeArray(value) ? FromTypedArray(value) : IsMap(value) ? FromMap(value) : IsSet(value) ? FromSet(value) : IsArray$1(value) ? FromArray$3(value) : IsObject$1(value) ? FromObject$3(value) : FromValue(value); + return Clone$1(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/clean/from_union.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/clean/from_union.mjs function FromUnion$3(context, type, value) { for (const schema of type.anyOf) { const clean = FromType$4(context, schema, Clone(value)); @@ -6001,12 +5823,12 @@ function FromUnion$3(context, type, value) { return value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/clean/from_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/clean/from_type.mjs function FromType$4(context, type, value) { - return IsArray(type) ? FromArray$4(context, type, value) : IsBase(type) ? FromBase$2(context, type, value) : IsCyclic(type) ? FromCyclic$3(context, type, value) : IsIntersect(type) ? FromIntersect$3(context, type, value) : IsObject(type) ? FromObject$4(context, type, value) : IsRecord(type) ? FromRecord$3(context, type, value) : IsRef$1(type) ? FromRef$3(context, type, value) : IsTuple(type) ? FromTuple$3(context, type, value) : IsUnion(type) ? FromUnion$3(context, type, value) : value; + return IsArray(type) ? FromArray$3(context, type, value) : IsCyclic(type) ? FromCyclic$3(context, type, value) : IsIntersect(type) ? FromIntersect$3(context, type, value) : IsObject(type) ? FromObject$3(context, type, value) : IsRecord(type) ? FromRecord$3(context, type, value) : IsRef$1(type) ? FromRef$3(context, type, value) : IsTuple(type) ? FromTuple$3(context, type, value) : IsUnion(type) ? FromUnion$3(context, type, value) : value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/shared/union_priority_sort.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/shared/union_priority_sort.mjs function Modifiers(type, next) { for (const key of guard_default.Keys(type)) { if (guard_default.HasPropertyKey(next, key)) continue; @@ -6037,7 +5859,7 @@ function UnionPrioritySort(type) { return FromType$3(type); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/clean/clean.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/clean/clean.mjs /** * Cleans a value by removing non-evaluated properties and elements as derived from the provided type. * This function returns unknown so callers should Check the return value before use. This function @@ -6060,7 +5882,7 @@ function Clean(...args) { return FromType$4(context, Get$2().unionPrioritySort ? UnionPrioritySort(type) : type, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/try/try_result.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/try/try_result.mjs function IsOk(value) { return IsObject$1(value) && HasPropertyKey(value, "value"); } @@ -6068,12 +5890,12 @@ function Ok(value) { return { value }; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/try/try_array.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/try/try_array.mjs function TryArray(value) { return IsArray$1(value) ? Ok(value) : Ok([value]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/try/try_bigint.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/try/try_bigint.mjs function FromBoolean$4(value) { return IsEqual(value, true) ? Ok(BigInt(1)) : Ok(BigInt(0)); } @@ -6097,7 +5919,7 @@ function TryBigInt(value) { return IsBigInt$1(value) ? Ok(value) : IsBoolean$2(value) ? FromBoolean$4(value) : IsNumber$2(value) ? Ok(BigInt(Math.trunc(value))) : IsNull$1(value) ? Ok(BigInt(0)) : IsString$2(value) ? FromString$5(value) : IsUndefined$1(value) ? Ok(BigInt(0)) : void 0; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/try/try_boolean.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/try/try_boolean.mjs function FromBigInt$4(value) { return IsEqual(value, BigInt(0)) ? Ok(false) : IsEqual(value, BigInt(1)) ? Ok(true) : void 0; } @@ -6111,7 +5933,7 @@ function TryBoolean(value) { return IsBigInt$1(value) ? FromBigInt$4(value) : IsBoolean$2(value) ? Ok(value) : IsNumber$2(value) ? FromNumber$3(value) : IsNull$1(value) ? Ok(false) : IsString$2(value) ? FromString$4(value) : IsUndefined$1(value) ? Ok(false) : void 0; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/try/try_null.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/try/try_null.mjs function FromBigInt$3(value) { return IsEqual(value, BigInt(0)) ? Ok(null) : void 0; } @@ -6129,7 +5951,7 @@ function TryNull(value) { return IsBigInt$1(value) ? FromBigInt$3(value) : IsBoolean$2(value) ? FromBoolean$3(value) : IsNumber$2(value) ? FromNumber$2(value) : IsNull$1(value) ? Ok(null) : IsString$2(value) ? FromString$3(value) : IsUndefined$1(value) ? Ok(null) : void 0; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/try/try_number.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/try/try_number.mjs const maxBigInt = BigInt(Number.MAX_SAFE_INTEGER); const minBigInt = BigInt(Number.MIN_SAFE_INTEGER); function FromBigInt$2(value) { @@ -6151,12 +5973,12 @@ function TryNumber(value) { return IsBigInt$1(value) ? FromBigInt$2(value) : IsBoolean$2(value) ? FromBoolean$2(value) : IsNumber$2(value) ? Ok(value) : IsNull$1(value) ? Ok(0) : IsString$2(value) ? FromString$2(value) : IsUndefined$1(value) ? Ok(0) : void 0; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/try/try_string.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/try/try_string.mjs function TryString(value) { return IsBigInt$1(value) ? Ok(value.toString()) : IsBoolean$2(value) ? Ok(value.toString()) : IsNumber$2(value) ? Ok(value.toString()) : IsNull$1(value) ? Ok("null") : IsString$2(value) ? Ok(value) : IsUndefined$1(value) ? Ok("") : void 0; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/try/try_undefined.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/try/try_undefined.mjs function FromBigInt$1(value) { return IsEqual(value, BigInt(0)) ? Ok(void 0) : void 0; } @@ -6174,29 +5996,24 @@ function TryUndefined(value) { return IsBigInt$1(value) ? FromBigInt$1(value) : IsBoolean$2(value) ? FromBoolean$1(value) : IsNumber$2(value) ? FromNumber$1(value) : IsNull$1(value) ? Ok(void 0) : IsString$2(value) ? FromString$1(value) : IsUndefined$1(value) ? Ok(value) : void 0; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_array.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_array.mjs function FromArray$2(context, type, value) { return TryArray(value).value.map((value) => FromType$2(context, type.items, value)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_base.mjs -function FromBase$1(_context, type, value) { - return type.Convert(value); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_bigint.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_bigint.mjs function FromBigInt(_context, _type, value) { const result = TryBigInt(value); return IsOk(result) ? result.value : value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_boolean.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_boolean.mjs function FromBoolean(_context, _type, value) { const result = TryBoolean(value); return IsOk(result) ? result.value : value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_cyclic.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_cyclic.mjs function FromCyclic$2(context, type, value) { return FromType$2({ ...context, @@ -6204,23 +6021,23 @@ function FromCyclic$2(context, type, value) { }, Ref$1(type.$ref), value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_enum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_enum.mjs function FromEnum(context, type, value) { return FromType$2(context, Evaluate(type), value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_integer.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_integer.mjs function FromInteger(_context, _type, value) { const result = TryNumber(value); return IsOk(result) ? Math.trunc(result.value) : value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_intersect.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_intersect.mjs function FromIntersect$2(context, type, value) { return FromType$2(context, Evaluate(Instantiate(context, type)), value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_literal.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_literal.mjs function FromLiteralBigInt(_context, type, value) { const result = TryBigInt(value); return IsOk(result) && IsEqual(type.const, result.value) ? result.value : value; @@ -6242,19 +6059,19 @@ function FromLiteral(context, type, value) { return IsLiteralBigInt(type) ? FromLiteralBigInt(context, type, value) : IsLiteralBoolean(type) ? FromLiteralBoolean(context, type, value) : IsLiteralNumber(type) ? FromLiteralNumber(context, type, value) : IsLiteralString(type) ? FromLiteralString(context, type, value) : Unreachable(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_null.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_null.mjs function FromNull(_context, _type, value) { const result = TryNull(value); return IsOk(result) ? result.value : value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_number.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_number.mjs function FromNumber(_context, _type, value) { const result = TryNumber(value); return IsOk(result) ? result.value : value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_additional.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_additional.mjs /** * Used by Object and Record Types. The entries are derived from the known * properties obtained from 'properties' and 'patternProperties' respectively. @@ -6265,12 +6082,12 @@ function FromAdditionalProperties(context, entries, additionalProperties, value) return value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/shared/optional_undefined.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/shared/optional_undefined.mjs function IsOptionalUndefined(property, key, value) { return IsOptional(property) && IsUndefined$1(value[key]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_object.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_object.mjs function FromProperties(context, type, value) { const entries = EntriesRegExp(type.properties); const keys = Keys(value); @@ -6284,7 +6101,7 @@ function FromObject$2(context, type, value) { return IsObjectNotArray(value) ? FromProperties(context, type, value) : value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_record.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_record.mjs function FromPatternProperties(context, type, value) { const entries = EntriesRegExp(type.patternProperties); const keys = Keys(value); @@ -6295,53 +6112,53 @@ function FromRecord$2(context, type, value) { return IsObjectNotArray(value) ? FromPatternProperties(context, type, value) : value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_ref.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_ref.mjs function FromRef$2(context, type, value) { return HasPropertyKey(context, type.$ref) ? FromType$2(context, context[type.$ref], value) : value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_string.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_string.mjs function FromString(_context, _type, value) { const result = TryString(value); return IsOk(result) ? result.value : value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_template_literal.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_template_literal.mjs function FromTemplateLiteral(context, type, value) { return FromType$2(context, Evaluate(type), value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_tuple.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_tuple.mjs function FromTuple$2(context, type, value) { if (!IsArray$1(value)) return value; for (let index = 0; index < Math.min(type.items.length, value.length); index++) value[index] = FromType$2(context, type.items[index], value[index]); return value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_undefined.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_undefined.mjs function FromUndefined(_context, _type, value) { const result = TryUndefined(value); return IsOk(result) ? result.value : value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_union.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_union.mjs function FromUnion$2(context, type, value) { if (type.anyOf.some((type) => Check(context, type, value))) return value; const selected = type.anyOf.map((type) => FromType$2(context, type, Clone(value))).find((value) => Check(context, type, value)); return IsUndefined$1(selected) ? value : selected; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_void.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_void.mjs function FromVoid(_context, _type, value) { return IsOk(TryUndefined(value)) ? void 0 : value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_type.mjs function FromType$2(context, type, value) { - return IsArray(type) ? FromArray$2(context, type, value) : IsBase(type) ? FromBase$1(context, type, value) : IsBigInt(type) ? FromBigInt(context, type, value) : IsBoolean(type) ? FromBoolean(context, type, value) : IsCyclic(type) ? FromCyclic$2(context, type, value) : IsEnum$1(type) ? FromEnum(context, type, value) : IsInteger(type) ? FromInteger(context, type, value) : IsIntersect(type) ? FromIntersect$2(context, type, value) : IsLiteral(type) ? FromLiteral(context, type, value) : IsNull(type) ? FromNull(context, type, value) : IsNumber(type) ? FromNumber(context, type, value) : IsObject(type) ? FromObject$2(context, type, value) : IsRecord(type) ? FromRecord$2(context, type, value) : IsRef$1(type) ? FromRef$2(context, type, value) : IsString(type) ? FromString(context, type, value) : IsTemplateLiteral(type) ? FromTemplateLiteral(context, type, value) : IsTuple(type) ? FromTuple$2(context, type, value) : IsUndefined(type) ? FromUndefined(context, type, value) : IsUnion(type) ? FromUnion$2(context, type, value) : IsVoid(type) ? FromVoid(context, type, value) : value; + return IsArray(type) ? FromArray$2(context, type, value) : IsBigInt(type) ? FromBigInt(context, type, value) : IsBoolean(type) ? FromBoolean(context, type, value) : IsCyclic(type) ? FromCyclic$2(context, type, value) : IsEnum$1(type) ? FromEnum(context, type, value) : IsInteger(type) ? FromInteger(context, type, value) : IsIntersect(type) ? FromIntersect$2(context, type, value) : IsLiteral(type) ? FromLiteral(context, type, value) : IsNull(type) ? FromNull(context, type, value) : IsNumber(type) ? FromNumber(context, type, value) : IsObject(type) ? FromObject$2(context, type, value) : IsRecord(type) ? FromRecord$2(context, type, value) : IsRef$1(type) ? FromRef$2(context, type, value) : IsString(type) ? FromString(context, type, value) : IsTemplateLiteral(type) ? FromTemplateLiteral(context, type, value) : IsTuple(type) ? FromTuple$2(context, type, value) : IsUndefined(type) ? FromUndefined(context, type, value) : IsUnion(type) ? FromUnion$2(context, type, value) : IsVoid(type) ? FromVoid(context, type, value) : value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/convert.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/convert.mjs /** * Converts a value to the given type, coercing interior values if a reasonable conversion is possible. This * function returns unknown so callers should Check the return value before use. This function mutates the @@ -6363,19 +6180,14 @@ function Convert(...args) { return FromType$2(context, type, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/default/from_array.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/default/from_array.mjs function FromArray$1(context, type, value) { if (!IsArray$1(value)) return value; for (let i = 0; i < value.length; i++) value[i] = FromType$1(context, type.items, value[i]); return value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/default/from_base.mjs -function FromBase(context, type, value) { - return type.Default(value); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/default/from_cyclic.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/default/from_cyclic.mjs function FromCyclic$1(context, type, value) { return FromType$1({ ...context, @@ -6383,18 +6195,18 @@ function FromCyclic$1(context, type, value) { }, Ref$1(type.$ref), value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/default/from_default.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/default/from_default.mjs function FromDefault(type, value) { if (!IsUndefined$1(value)) return value; return IsFunction$1(type.default) ? type.default() : Clone(type.default); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/default/from_intersect.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/default/from_intersect.mjs function FromIntersect$1(context, type, value) { return FromType$1(context, Evaluate(Instantiate(context, type)), value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/default/from_object.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/default/from_object.mjs function FromObject$1(context, type, value) { if (!IsObject$1(value)) return value; const knownPropertyKeys = Keys(type.properties); @@ -6411,7 +6223,7 @@ function FromObject$1(context, type, value) { return value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/default/from_record.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/default/from_record.mjs function FromRecord$1(context, type, value) { if (!IsObject$1(value)) return value; const [recordKey, recordValue] = [new RegExp(RecordPattern(type)), RecordValue(type)]; @@ -6427,12 +6239,12 @@ function FromRecord$1(context, type, value) { return value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/default/from_ref.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/default/from_ref.mjs function FromRef$1(context, type, value) { return HasPropertyKey(context, type.$ref) ? FromType$1(context, context[type.$ref], value) : value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/default/from_tuple.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/default/from_tuple.mjs function FromTuple$1(context, schema, value) { if (!IsArray$1(value)) return value; const [items, max] = [schema.items, Math.max(schema.items.length, value.length)]; @@ -6440,7 +6252,7 @@ function FromTuple$1(context, schema, value) { return value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/default/from_union.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/default/from_union.mjs function FromUnion$1(context, schema, value) { for (const inner of schema.anyOf) { const result = FromType$1(context, inner, Clone(value)); @@ -6449,13 +6261,13 @@ function FromUnion$1(context, schema, value) { return value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/default/from_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/default/from_type.mjs function FromType$1(context, type, value) { const defaulted = IsDefault(type) ? FromDefault(type, value) : value; - return IsArray(type) ? FromArray$1(context, type, defaulted) : IsBase(type) ? FromBase(context, type, defaulted) : IsCyclic(type) ? FromCyclic$1(context, type, defaulted) : IsIntersect(type) ? FromIntersect$1(context, type, defaulted) : IsObject(type) ? FromObject$1(context, type, defaulted) : IsRecord(type) ? FromRecord$1(context, type, defaulted) : IsRef$1(type) ? FromRef$1(context, type, defaulted) : IsTuple(type) ? FromTuple$1(context, type, defaulted) : IsUnion(type) ? FromUnion$1(context, type, defaulted) : defaulted; + return IsArray(type) ? FromArray$1(context, type, defaulted) : IsCyclic(type) ? FromCyclic$1(context, type, defaulted) : IsIntersect(type) ? FromIntersect$1(context, type, defaulted) : IsObject(type) ? FromObject$1(context, type, defaulted) : IsRecord(type) ? FromRecord$1(context, type, defaulted) : IsRef$1(type) ? FromRef$1(context, type, defaulted) : IsTuple(type) ? FromTuple$1(context, type, defaulted) : IsUnion(type) ? FromUnion$1(context, type, defaulted) : defaulted; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/default/default.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/default/default.mjs /** * Patches missing properties on the value using default annotations specified on the provided type. This * function returns unknown so callers should Check the return value before use. This function mutates the @@ -6477,7 +6289,7 @@ function Default(...args) { return FromType$1(context, type, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/pipeline/pipeline.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/pipeline/pipeline.mjs /** Creates a value processing pipeline. */ function Pipeline(pipeline) { return (...args) => { @@ -6497,7 +6309,7 @@ function Pipeline(pipeline) { }; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/codec/callback.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/codec/callback.mjs function Decode$6(_context, type, value) { return type["~codec"].decode(value); } @@ -6509,7 +6321,7 @@ function Callback(direction, context, type, value) { return IsEqual(direction, "Decode") ? Decode$6(context, type, value) : Encode$6(context, type, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/codec/from_array.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/codec/from_array.mjs function Decode$5(direction, context, type, value) { if (!IsArray$1(value)) return value; for (let i = 0; i < value.length; i++) value[i] = FromType(direction, context, type.items, value[i]); @@ -6525,7 +6337,7 @@ function FromArray(direction, context, type, value) { return IsEqual(direction, "Decode") ? Decode$5(direction, context, type, value) : Encode$5(direction, context, type, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/codec/from_cyclic.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/codec/from_cyclic.mjs function FromCyclic(direction, context, type, value) { value = FromType(direction, { ...context, @@ -6534,7 +6346,7 @@ function FromCyclic(direction, context, type, value) { return Callback(direction, context, type, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/codec/from_intersect.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/codec/from_intersect.mjs function MergeInteriors(interiors) { return interiors.reduce((results, interior) => ({ ...results, @@ -6561,7 +6373,7 @@ function FromIntersect(direction, context, type, value) { return IsEqual(direction, "Decode") ? Decode$4(direction, context, type, value) : Encode$4(direction, context, type, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/codec/from_object.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/codec/from_object.mjs function Decode$3(direction, context, type, value) { if (!IsObjectNotArray(value)) return value; for (const key of Keys(type.properties)) { @@ -6583,7 +6395,7 @@ function FromObject(direction, context, type, value) { return IsEqual(direction, "Decode") ? Decode$3(direction, context, type, value) : Encode$3(direction, context, type, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/codec/from_record.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/codec/from_record.mjs function Decode$2(direction, context, type, value) { if (!IsObjectNotArray(value)) return value; const regexp = new RegExp(RecordPattern(type)); @@ -6607,7 +6419,7 @@ function FromRecord(direction, context, type, value) { return IsEqual(direction, "Decode") ? Decode$2(direction, context, type, value) : Encode$2(direction, context, type, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/codec/from_ref.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/codec/from_ref.mjs function ResolveRef(direction, context, type, value) { return HasPropertyKey(context, type.$ref) ? FromType(direction, context, context[type.$ref], value) : value; } @@ -6615,7 +6427,7 @@ function FromRef(direction, context, type, value) { return IsEqual(direction, "Decode") ? Callback(direction, context, type, ResolveRef(direction, context, type, value)) : ResolveRef(direction, context, type, Callback(direction, context, type, value)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/codec/from_tuple.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/codec/from_tuple.mjs function Decode$1(direction, context, type, value) { if (!IsArray$1(value)) return value; for (let i = 0; i < Math.min(type.items.length, value.length); i++) value[i] = FromType(direction, context, type.items[i], value[i]); @@ -6631,7 +6443,7 @@ function FromTuple(direction, context, type, value) { return IsEqual(direction, "Decode") ? Decode$1(direction, context, type, value) : Encode$1(direction, context, type, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/codec/from_union.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/codec/from_union.mjs function Decode(direction, context, type, value) { for (const schema of type.anyOf) { if (!Check(context, schema, value)) continue; @@ -6652,12 +6464,12 @@ function FromUnion(direction, context, type, value) { return IsEqual(direction, "Decode") ? Decode(direction, context, type, value) : Encode(direction, context, type, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/codec/from_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/codec/from_type.mjs function FromType(direction, context, type, value) { return IsArray(type) ? FromArray(direction, context, type, value) : IsCyclic(type) ? FromCyclic(direction, context, type, value) : IsIntersect(type) ? FromIntersect(direction, context, type, value) : IsObject(type) ? FromObject(direction, context, type, value) : IsRecord(type) ? FromRecord(direction, context, type, value) : IsRef$1(type) ? FromRef(direction, context, type, value) : IsTuple(type) ? FromTuple(direction, context, type, value) : IsUnion(type) ? FromUnion(direction, context, type, value) : Callback(direction, context, type, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/parse/parse.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/parse/parse.mjs var ParseError = class extends AssertError { constructor(value, errors) { super("Parse", value, errors); diff --git a/schemas/libraries/typebox/download_compiled/schema + compile/minified.js b/schemas/libraries/typebox/download_compiled/schema + compile/minified.js index ef84e224..8610aefe 100644 --- a/schemas/libraries/typebox/download_compiled/schema + compile/minified.js +++ b/schemas/libraries/typebox/download_compiled/schema + compile/minified.js @@ -1,2 +1,2 @@ -var e=Object.defineProperty,t=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r};const n={assign:0,create:0,clone:0,discard:0,update:0};function r(e,t,n){return e>=t&&e<=n}function i(e){return r(e,127462,127487)}function a(e){return r(e,65024,65039)}function o(e){return r(e,768,879)||r(e,6832,6911)||r(e,7616,7679)||r(e,65056,65071)}function s(e){return e>65535?2:1}function c(e,t){for(;t=t)return!0;return!1}function ne(e,t){let n=0,r=0;for(;rt)return!1;return!0}function re(e,t){if(t===0)return!0;let n=0;for(;n=t)return!0}return!1}function ie(e,t){let n=0;for(;nt)return!1}return!0}var ae=t({Entries:()=>C,EntriesRegExp:()=>Te,Every:()=>b,EveryAll:()=>x,GraphemeCount:()=>be,HasPropertyKey:()=>S,IsArray:()=>d,IsAsyncIterator:()=>oe,IsBigInt:()=>f,IsBoolean:()=>se,IsClassInstance:()=>ve,IsConstructor:()=>ce,IsDeepEqual:()=>Ae,IsEqual:()=>v,IsFunction:()=>p,IsGreaterEqualThan:()=>ge,IsGreaterThan:()=>me,IsInteger:()=>le,IsIterator:()=>ue,IsLessEqualThan:()=>y,IsLessThan:()=>he,IsMaxLength:()=>xe,IsMinLength:()=>Se,IsMultipleOf:()=>_e,IsNull:()=>de,IsNumber:()=>m,IsObject:()=>h,IsObjectNotArray:()=>fe,IsString:()=>g,IsSymbol:()=>pe,IsUndefined:()=>_,IsUnsafePropertyKey:()=>we,IsValueLike:()=>ye,Keys:()=>w,ShiftLeft:()=>Ce,Symbols:()=>Ee,Values:()=>De});function d(e){return Array.isArray(e)}function oe(e){return h(e)&&Symbol.asyncIterator in e}function f(e){return v(typeof e,`bigint`)}function se(e){return v(typeof e,`boolean`)}function ce(e){if(_(e)||!p(e))return!1;let t=Function.prototype.toString.call(e);return!!(/^class\s/.test(t)||/\[native code\]/.test(t))}function p(e){return v(typeof e,`function`)}function le(e){return Number.isInteger(e)}function ue(e){return h(e)&&Symbol.iterator in e}function de(e){return v(e,null)}function m(e){return Number.isFinite(e)}function fe(e){return h(e)&&!d(e)}function h(e){return v(typeof e,`object`)&&!de(e)}function g(e){return v(typeof e,`string`)}function pe(e){return v(typeof e,`symbol`)}function _(e){return v(e,void 0)}function v(e,t){return e===t}function me(e,t){return e>t}function he(e,t){return e=t}function _e(e,t){if(f(e)||f(t))return BigInt(e)%BigInt(t)===0n;if(!m(e)||le(e)&&1/t%1==0)return!0;let n=e%t;return Math.min(Math.abs(n),Math.abs(n-t))<1e-10}function ve(e){if(!h(e))return!1;let t=globalThis.Object.getPrototypeOf(e);return de(t)?!1:v(typeof t.constructor,`function`)&&!(v(t.constructor,globalThis.Object)||v(t.constructor.name,`Object`))}function ye(e){return f(e)||se(e)||de(e)||m(e)||g(e)||_(e)}function be(e){return ee(e)}function xe(e,t){return ie(e,t)}function Se(e,t){return re(e,t)}function b(e,t,n){for(let r=t;r[RegExp(`^${t}$`),e[t]])}function C(e){return Object.entries(e)}function w(e){return Object.getOwnPropertyNames(e)}function Ee(e){return Object.getOwnPropertySymbols(e)}function De(e){return Object.values(e)}function Oe(e,t){if(!h(t))return!1;let n=w(e);return v(n.length,w(t).length)&&n.every(n=>Ae(e[n],t[n]))}function ke(e,t){return d(t)&&v(e.length,t.length)&&e.every((n,r)=>Ae(e[r],t[r]))}function Ae(e,t){return d(e)?ke(e,t):h(e)?Oe(e,t):v(e,t)}const je=/^[\p{ID_Start}_$][\p{ID_Continue}_$\u200C\u200D]*$/u;function Me(e){return je.test(e)}function T(e,t){return`(${e} && ${t})`}function E(e,t){return`(${e} || ${t})`}function D(e){return`!(${e})`}function Ne(e){return`Array.isArray(${e})`}function Pe(e){return`Guard.IsAsyncIterator(${e})`}function Fe(e){return`typeof ${e} === "bigint"`}function Ie(e){return`typeof ${e} === "boolean"`}function Le(e){return`Number.isInteger(${e})`}function Re(e){return`Guard.IsIterator(${e})`}function ze(e){return`${e} === null`}function Be(e){return`Number.isFinite(${e})`}function Ve(e){return T(He(e),D(Ne(e)))}function He(e){return`typeof ${e} === "object" && ${e} !== null`}function Ue(e){return`typeof ${e} === "string"`}function We(e){return`typeof ${e} === "symbol"`}function Ge(e){return`${e} === undefined`}function Ke(e){return`typeof ${e} === "function"`}function qe(e){return`Guard.IsConstructor(${e})`}function O(e,t){return`${e} === ${t}`}function Je(e,t){return`${e} > ${t}`}function Ye(e,t){return`${e} < ${t}`}function Xe(e,t){return`${e} <= ${t}`}function Ze(e,t){return`${e} >= ${t}`}function Qe(e,t){return`Guard.IsMinLength(${e}, ${t})`}function $e(e,t){return`Guard.IsMaxLength(${e}, ${t})`}function k(e,t,n,r){return v(t,`0`)?`${e}.every((${n[0]}, ${n[1]}) => ${r})`:`((value, callback) => { for(let index = ${t}; index < value.length; index++) if (!callback(value[index], index)) return false; return true })(${e}, (${n[0]}, ${n[1]}) => ${r})`}function et(e){return`Object.entries(${e})`}function A(e){return`Object.getOwnPropertyNames(${e})`}function j(e,t){return v(t,`"__proto__"`)||v(t,`"constructor"`)?`Object.prototype.hasOwnProperty.call(${e}, ${t})`:`${t} in ${e}`}function tt(e,t){return`Guard.IsDeepEqual(${e}, ${t})`}function nt(e){return`[${e.join(`, `)}]`}function M(e,t){return`((${e.join(`, `)}) => ${t})`}function N(e,t){return`${e}(${t.join(`, `)})`}function rt(e,t){return`new ${e}(${t.join(`, `)})`}function P(e,t){return`${e}${Me(t)?`.${t}`:`[${F(t)}]`}`}function F(e){return g(e)?JSON.stringify(e):`${e}`}function it(e,t,n){return`(${e} ? ${t} : ${n})`}function at(e){return`{ ${e.join(`; `)}; }`}function I(e,t){return`const ${e} = ${t}`}function ot(e,t){return`if(${e}) { ${t} }`}function st(e){return`return ${e}`}function L(e){return v(e.length,0)?`true`:e.reduce((e,t)=>T(e,t))}function ct(e){return v(e.length,0)?`false`:e.reduce((e,t)=>E(e,t))}function lt(e){return`++${e}`}function ut(e,t){return`Guard.IsMultipleOf(${e}, ${t})`}function dt(e){return e instanceof Boolean}function ft(e){return e instanceof Number}function pt(e){return e instanceof String}function mt(e){return globalThis.ArrayBuffer.isView(e)}function ht(e){return e instanceof globalThis.RegExp}function gt(e){return e instanceof globalThis.Date}function _t(e){return h(e)&&S(e,`~guard`)}function vt(e){return e}function yt(e){return e.map(e=>Ct(e))}function bt(e){let t={},n=Object.getOwnPropertyDescriptors(e);for(let e of Object.keys(n)){let r=n[e];S(r,`value`)&&Object.defineProperty(t,e,{...r,value:Ct(r.value)})}return t}function xt(e){return new RegExp(e.source,e.flags)}function St(e){return e}function Ct(e){return e instanceof RegExp?xt(e):_t(e)?vt(e):d(e)?yt(e):h(e)?bt(e):St(e)}function wt(e){return n.clone+=1,Ct(e)}const Tt={immutableTypes:!1,maxErrors:8,useAcceleration:!0,exactOptionalPropertyTypes:!1,enumerableKind:!1,correctiveParse:!1,unionPrioritySort:!0};function Et(){return Tt}function Dt(e,t){for(let n of Object.keys(t))Object.defineProperty(e,n,{configurable:!0,writable:!0,enumerable:!1,value:t[n]});return e}function Ot(e,t){return{...e,...t}}function kt(e,t,r={}){n.create+=1;let i=Et(),a=Ot(t,r),o=i.enumerableKind?Ot(a,e):Dt(a,e);return i.immutableTypes?Object.freeze(o):o}function At(e,t,r){n.update+=1;let i=Et(),a=wt(e);for(let e of Object.keys(t))Object.defineProperty(a,e,{configurable:!0,writable:!0,enumerable:i.enumerableKind,value:t[e]});for(let e of Object.keys(r))Object.defineProperty(a,e,{configurable:!0,enumerable:!0,writable:!0,value:r[e]});return a}function jt(e){return h(e)}function Mt(e,t){return kt({"~kind":`Array`},{type:`array`,items:e},t)}function Nt(e){return jt(e)&&S(e,`~optional`)}function Pt(e){return w(e).filter(t=>!Nt(e[t]))}function Ft(e,t={}){let n=Pt(e);return kt({"~kind":`Object`},{type:`object`,...n.length>0?{required:n}:{},properties:e},t)}function It(e){return At(e,{"~unsafe":null},{})}function Lt(e,t){return t[e.length]?.(...e)??(()=>{throw Error(`Invalid Arguments`)})()}function Rt(e){return fe(e)}function zt(e){return w(e).filter(e=>isNaN(e)).reduce((t,n)=>[...t,e[n]],[])}function Bt(e,t){return kt({"~kind":`Enum`},{enum:Rt(e)?zt(e):e},t)}let Vt;function Ht(){try{return Wt(`null`)(),!0}catch{return!1}}function Ut(){return _(Vt)&&(Vt=Ht()),Vt&&Et().useAcceleration}function Wt(...e){return new globalThis.Function(...e)}function Gt(){throw Error(`Unreachable`)}var Kt=t({Hash:()=>yn,HashCode:()=>vn});function qt(e){let t=new Set,n=e;for(;n&&n!==Object.prototype;){for(let e of Reflect.ownKeys(n))e!==`constructor`&&typeof e!=`symbol`&&t.add(e);n=Object.getPrototypeOf(n)}return[...t]}function Jt(e){return typeof e==`number`}var R;(function(e){e[e.Array=0]=`Array`,e[e.BigInt=1]=`BigInt`,e[e.Boolean=2]=`Boolean`,e[e.Date=3]=`Date`,e[e.Constructor=4]=`Constructor`,e[e.Function=5]=`Function`,e[e.Null=6]=`Null`,e[e.Number=7]=`Number`,e[e.Object=8]=`Object`,e[e.RegExp=9]=`RegExp`,e[e.String=10]=`String`,e[e.Symbol=11]=`Symbol`,e[e.TypeArray=12]=`TypeArray`,e[e.Undefined=13]=`Undefined`})(R||={});let Yt=BigInt(`14695981039346656037`);const[Xt,Zt]=[BigInt(`1099511628211`),BigInt(`18446744073709551616`)],Qt=Array.from({length:256}).map((e,t)=>BigInt(t)),$t=new Float64Array(1),en=new DataView($t.buffer),tn=new Uint8Array($t.buffer);function z(e){Yt^=Qt[e],Yt=Yt*Xt%Zt}function nn(e){z(R.Array);for(let t of e)B(t)}function rn(e){z(R.BigInt),en.setBigInt64(0,e);for(let e of tn)z(e)}function an(e){z(R.Boolean),z(+!!e)}function on(e){z(R.Constructor),B(e.toString())}function sn(e){z(R.Date),B(e.getTime())}function cn(e){z(R.Function),B(e.toString())}function ln(e){z(R.Null)}function un(e){z(R.Number),en.setFloat64(0,e,!0);for(let e of tn)z(e)}function dn(e){z(R.Object);for(let t of qt(e).sort())B(t),B(e[t])}function fn(e){z(R.RegExp),mn(e.toString())}const pn=new TextEncoder;function mn(e){z(R.String);for(let t of pn.encode(e))z(t)}function hn(e){z(R.Symbol),B(e.toString())}function gn(e){z(R.TypeArray);let t=new Uint8Array(e.buffer);for(let e=0;e[e,t,n],2:(e,t)=>[e,t,()=>`Refine Error`]});return Cn(t,{check:n,error:g(r)?()=>r:r})}function Tn(e){return fe(e)&&S(e,`check`)&&S(e,`error`)&&p(e.check)&&p(e.error)}function En(e){return jt(e)&&S(e,`~refine`)&&d(e[`~refine`])&&b(e[`~refine`],0,e=>Tn(e))}function Dn(e){return kt({"~kind":`Null`},{type:`null`},e)}function V(e){return kt({"~kind":`Number`},{type:`number`},e)}function H(e){return kt({"~kind":`String`},{type:`string`},e)}function On(e,t={}){return kt({"~kind":`Union`},{anyOf:e},t)}function kn(e,t){return Array.from({length:t-e+1},(t,n)=>String.fromCharCode(e+n))}const An=[...kn(97,122),...kn(65,90)],jn=[`0`,...kn(49,57)];[...jn],[...An,...jn],[...jn];function Mn(e){return h(e)&&S(e,`check`)&&S(e,`errors`)&&p(e.check)&&p(e.errors)}function Nn(e){return S(e,`~guard`)&&Mn(e[`~guard`])}function Pn(e){return S(e,`~refine`)&&d(e[`~refine`])&&b(e[`~refine`],0,e=>h(e)&&S(e,`check`)&&S(e,`error`)&&p(e.check)&&p(e.error))}function U(e){return h(e)&&!d(e)}function Fn(e){return se(e)}function W(e){return U(e)||Fn(e)}function In(e){return S(e,`additionalItems`)&&W(e.additionalItems)}function Ln(e){return S(e,`additionalProperties`)&&W(e.additionalProperties)}function Rn(e){return S(e,`allOf`)&&d(e.allOf)&&e.allOf.every(e=>W(e))}function zn(e){return S(e,`$anchor`)&&g(e.$anchor)}function Bn(e){return S(e,`anyOf`)&&d(e.anyOf)&&e.anyOf.every(e=>W(e))}function Vn(e){return S(e,`const`)}function Hn(e){return S(e,`contains`)&&W(e.contains)}function Un(e){return S(e,`dependencies`)&&h(e.dependencies)&&Object.values(e.dependencies).every(e=>W(e)||d(e)&&e.every(e=>g(e)))}function Wn(e){return S(e,`dependentRequired`)&&h(e.dependentRequired)&&Object.values(e.dependentRequired).every(e=>d(e)&&e.every(e=>g(e)))}function Gn(e){return S(e,`dependentSchemas`)&&h(e.dependentSchemas)&&Object.values(e.dependentSchemas).every(e=>W(e))}function Kn(e){return S(e,`$dynamicAnchor`)&&g(e.$dynamicAnchor)}function qn(e){return S(e,`$dynamicRef`)&&g(e.$dynamicRef)}function Jn(e){return S(e,`else`)&&W(e.else)}function Yn(e){return S(e,`enum`)&&d(e.enum)}function Xn(e){return S(e,`exclusiveMaximum`)&&(m(e.exclusiveMaximum)||f(e.exclusiveMaximum))}function Zn(e){return S(e,`exclusiveMinimum`)&&(m(e.exclusiveMinimum)||f(e.exclusiveMinimum))}function Qn(e){return S(e,`format`)&&g(e.format)}function $n(e){return S(e,`$id`)&&g(e.$id)}function er(e){return S(e,`if`)&&W(e.if)}function tr(e){return S(e,`items`)&&(W(e.items)||d(e.items)&&e.items.every(e=>W(e)))}function nr(e){return tr(e)&&d(e.items)}function rr(e){return S(e,`maximum`)&&(m(e.maximum)||f(e.maximum))}function ir(e){return S(e,`maxContains`)&&m(e.maxContains)}function ar(e){return S(e,`maxItems`)&&m(e.maxItems)}function or(e){return S(e,`maxLength`)&&m(e.maxLength)}function sr(e){return S(e,`maxProperties`)&&m(e.maxProperties)}function cr(e){return S(e,`minimum`)&&(m(e.minimum)||f(e.minimum))}function lr(e){return S(e,`minContains`)&&m(e.minContains)}function ur(e){return S(e,`minItems`)&&m(e.minItems)}function dr(e){return S(e,`minLength`)&&m(e.minLength)}function fr(e){return S(e,`minProperties`)&&m(e.minProperties)}function pr(e){return S(e,`multipleOf`)&&(m(e.multipleOf)||f(e.multipleOf))}function mr(e){return S(e,`not`)&&W(e.not)}function hr(e){return S(e,`oneOf`)&&d(e.oneOf)&&e.oneOf.every(e=>W(e))}function gr(e){return S(e,`pattern`)&&(g(e.pattern)||e.pattern instanceof RegExp)}function _r(e){return S(e,`patternProperties`)&&h(e.patternProperties)&&Object.values(e.patternProperties).every(e=>W(e))}function vr(e){return S(e,`prefixItems`)&&d(e.prefixItems)&&e.prefixItems.every(e=>W(e))}function yr(e){return S(e,`properties`)&&h(e.properties)&&Object.values(e.properties).every(e=>W(e))}function br(e){return S(e,`propertyNames`)&&(h(e.propertyNames)||W(e.propertyNames))}function xr(e){return S(e,`$recursiveAnchor`)&&se(e.$recursiveAnchor)}function Sr(e){return xr(e)&&v(e.$recursiveAnchor,!0)}function Cr(e){return S(e,`$recursiveRef`)&&g(e.$recursiveRef)}function wr(e){return S(e,`$ref`)&&g(e.$ref)}function G(e){return S(e,`required`)&&d(e.required)&&e.required.every(e=>g(e))}function Tr(e){return S(e,`then`)&&W(e.then)}function Er(e){return S(e,`type`)&&(g(e.type)||d(e.type)&&e.type.every(e=>g(e)))}function Dr(e){return S(e,`uniqueItems`)&&se(e.uniqueItems)}function Or(e){return S(e,`unevaluatedItems`)&&W(e.unevaluatedItems)}function kr(e){return S(e,`unevaluatedProperties`)&&W(e.unevaluatedProperties)}function Ar(e){return Or(e)||kr(e)||w(e).some(t=>Mr(e[t]))}function jr(e){return e.some(e=>Mr(e))}function Mr(e){return d(e)?jr(e):h(e)?Ar(e):!1}function Nr(e,t){return Mr(t)||w(e).some(t=>Mr(e[t]))}var Pr=class{constructor(e){this.hasUnevaluated=e}UseUnevaluated(){return this.hasUnevaluated}Push(){return N(P(`context`,`Push`),[])}Pop(){return N(P(`context`,`Pop`),[])}AddIndex(e){return N(P(`context`,`AddIndex`),[e])}AddKey(e){return N(P(`context`,`AddKey`),[e])}Merge(e){return N(P(`context`,`Merge`),[e])}},K=class{constructor(){let e=new Set,t=new Set;this.stack=[{indices:e,keys:t}]}Push(){let e=new Set,t=new Set;return this.stack.push({indices:e,keys:t}),!0}Pop(){return this.stack.pop(),!0}AddIndex(e){return this.GetIndices().add(e),!0}AddKey(e){return this.GetKeys().add(e),!0}GetIndices(){return this.stack[this.stack.length-1].indices}GetKeys(){return this.stack[this.stack.length-1].keys}Merge(e){for(let t of e)t.GetIndices().forEach(e=>this.GetIndices().add(e)),t.GetKeys().forEach(e=>this.GetKeys().add(e));return!0}},Fr=class extends K{constructor(e){super(),this.callback=e}AddError(e){return this.callback(e),!1}},q=class extends Fr{constructor(){super(e=>this.errors.push(e)),this.errors=[]}AddError(e){return this.errors.push(e),!1}GetErrors(){return this.errors}};const Ir={identifier:`External`,variables:[]};function Lr(e){let t=`External[${Ir.variables.length}]`;return Ir.variables.push(e),t}function Rr(){Ir.variables=[]}function zr(){return{...Ir}}function Br(e,t,n,r){return N(P(P(Lr(n),`~guard`),`check`),[r])}function Vr(e,t,n,r){return n[`~guard`].check(r)}function Hr(e,t,n,r,i,a){return i[`~guard`].check(a)||t.AddError({keyword:`~guard`,schemaPath:n,instancePath:r,params:{errors:i[`~guard`].errors(a)}})}function Ur(e,t,n,r){return k(Lr(n[`~refine`].map(e=>e)),F(0),[`refinement`,`_`],N(P(`refinement`,`check`),[r]))}function Wr(e,t,n,r){return b(n[`~refine`],0,(e,t)=>e.check(r))}function Gr(e,t,n,r,i,a){return x(i[`~refine`],0,(e,i)=>e.check(a)||t.AddError({keyword:`~refine`,schemaPath:n,instancePath:r,params:{index:i,message:e.error(a)}}))}let Kr=0;function J(){return`var_${Kr++}`}function qr(e){return tr(e)&&d(e.items)}function Jr(e,t,n,r){if(!qr(n))return F(!0);let[i,a]=[J(),J()],o=Sc(e,t,n.additionalItems,i),s=Ye(a,F(n.items.length)),c=t.AddIndex(a),l=t.UseUnevaluated()?E(s,T(o,c)):E(s,o);return N(P(r,`every`),[M([i,a],l)])}function Yr(e,t,n,r){return qr(n)?r.every((r,i)=>he(i,n.items.length)||Cc(e,t,n.additionalItems,r)&&t.AddIndex(i)):!0}function Xr(e,t,n,r,i,a){return qr(i)?a.every((a,o)=>{let s=`${n}/additionalItems`,c=`${r}/${o}`;return he(o,i.items.length)||wc(e,t,s,c,i.additionalItems,a)&&t.AddIndex(o)}):!0}function Zr(e){return`^${e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}$`}function Qr(e){let t=[];return _r(e)&&t.push(...w(e.patternProperties)),yr(e)&&t.push(...w(e.properties).map(Zr)),v(t.length,0)?`(?!)`:`(${t.join(`|`)})`}function $r(e,t,n){return G(t)&&yr(t)&&!_r(t)&&v(t.additionalProperties,!1)&&v(w(t.properties).length,t.required.length)}function ei(e,t,n){return O(P(N(P(`Object`,`getOwnPropertyNames`),[n]),`length`),F(t.required.length))}function ti(e,t,n,r){let[i,a]=[J(),J()],o=Lr(new RegExp(Qr(n))),s=Sc(e,t,n.additionalProperties,`${r}[${i}]`),c=N(P(o,`test`),[i]),l=t.AddKey(i),u=t.UseUnevaluated()?E(c,T(s,l)):E(c,s);return k(A(r),F(0),[i,a],u)}function ni(e,t,n,r){return $r(t,n,r)?ei(t,n,r):ti(e,t,n,r)}function ri(e,t,n,r){let i=new RegExp(Qr(n));return b(w(r),0,(a,o)=>i.test(a)||Cc(e,t,n.additionalProperties,r[a])&&t.AddKey(a))}function ii(e,t,n,r,i,a){let o=new RegExp(Qr(i)),s=[];return x(w(a),0,(c,l)=>{let u=`${n}/additionalProperties`,ee=`${r}/${c}`,te=new q,ne=o.test(c)||wc(e,te,u,ee,i.additionalProperties,a[c])&&t.AddKey(c);return ne||s.push(c),ne})||t.AddError({keyword:`additionalProperties`,schemaPath:n,instancePath:r,params:{additionalProperties:s}})}function ai(e,t,n,r,i){let a=I(`results`,`[]`),o=n.map((e,t)=>I(`context_${t}`,rt(`CheckContext`,[]))),s=n.map((n,i)=>I(`condition_${i}`,N(M([`context`],X(e,t,n,r)),[`context_${i}`]))),c=n.map((e,t)=>ot(`condition_${t}`,N(P(`results`,`push`),[`context_${t}`]))),l=st(T(i,t.Merge(`results`)));return N(M([],at([a,...o,...s,...c,l])),[])}function oi(e,t,n,r){return ai(e,t,n.allOf,r,O(P(`results`,`length`),F(n.allOf.length)))}function si(e,t,n,r){return L(n.allOf.map(n=>X(e,t,n,r)))}function ci(e,t,n,r){return t.UseUnevaluated()?oi(e,t,n,r):si(e,t,n,r)}function li(e,t,n,r){let i=n.allOf.reduce((t,n)=>{let i=new K;return Z(e,i,n,r)?[...t,i]:t},[]);return v(i.length,n.allOf.length)&&t.Merge(i)}function ui(e,t,n,r,i,a){let o=[],s=i.allOf.reduce((t,i,s)=>{let c=`${n}/allOf/${s}`,l=new q,u=Q(e,l,c,r,i,a);return u||o.push(l),u?[...t,l]:t},[]),c=v(s.length,i.allOf.length)&&t.Merge(s);return c||o.forEach(e=>e.GetErrors().forEach(e=>t.AddError(e))),c}function di(e,t,n,r){return ai(e,t,n.anyOf,r,Je(P(`results`,`length`),F(0)))}function fi(e,t,n,r){return ct(n.anyOf.map(n=>X(e,t,n,r)))}function pi(e,t,n,r){return t.UseUnevaluated()?di(e,t,n,r):fi(e,t,n,r)}function mi(e,t,n,r){let i=n.anyOf.reduce((t,n)=>{let i=new K;return Z(e,i,n,r)?[...t,i]:t},[]);return me(i.length,0)&&t.Merge(i)}function hi(e,t,n,r,i,a){let o=[],s=i.anyOf.reduce((t,i,s)=>{let c=new q,l=Q(e,c,`${n}/anyOf/${s}`,r,i,a);return l||o.push(c),l?[...t,c]:t},[]),c=me(s.length,0)&&t.Merge(s);return c||o.forEach(e=>e.GetErrors().forEach(e=>t.AddError(e))),c||t.AddError({keyword:`anyOf`,schemaPath:n,instancePath:r,params:{}})}function gi(e,t,n,r){return F(!!n)}function _i(e,t,n,r){return n}function vi(e,t,n,r,i,a){return _i(e,t,i,a)||t.AddError({keyword:`boolean`,schemaPath:n,instancePath:r,params:{}})}function yi(e,t,n,r){return ye(n.const)?O(r,F(n.const)):tt(r,Lr(n.const))}function bi(e,t,n,r){return ye(n.const)?v(r,n.const):Ae(r,n.const)}function xi(e,t,n,r,i,a){return bi(e,t,i,a)||t.AddError({keyword:`const`,schemaPath:n,instancePath:r,params:{allowedValue:i.const}})}function Si(e){return!(lr(e)&&v(e.minContains,0))}function Ci(e,t,n,r){if(!Si(n))return F(!0);let i=J();return T(D(O(P(r,`length`),F(0))),N(P(r,`some`),[M([i],X(e,t,n.contains,i))]))}function wi(e,t,n,r){return Si(n)?!v(r.length,0)&&r.some(r=>Z(e,t,n.contains,r)):!0}function Ti(e,t,n,r,i,a){return wi(e,t,i,a)||t.AddError({keyword:`contains`,schemaPath:n,instancePath:r,params:{minContains:1}})}function Ei(e,t,n,r){return E(O(P(A(r),`length`),F(0)),L(C(n.dependencies).map(([n,i])=>{let a=D(j(r,F(n))),o=X(e,t,i,r);return E(a,d(i)?(e=>L(e.map(e=>j(r,F(e)))))(i):o)})))}function Di(e,t,n,r){let i=v(w(r).length,0),a=b(C(n.dependencies),0,([n,i])=>!S(r,n)||(d(i)?i.every(e=>S(r,e)):Z(e,t,i,r)));return i||a}function Oi(e,t,n,r,i,a){let o=v(w(a).length,0),s=x(C(i.dependencies),0,([i,o])=>{let s=`${n}/dependencies/${i}`;return!S(a,i)||(d(o)?o.every(e=>S(a,e)||t.AddError({keyword:`dependencies`,schemaPath:n,instancePath:r,params:{property:i,dependencies:o}})):Q(e,t,s,r,o,a))});return o||s}function ki(e,t,n,r){return E(O(P(A(r),`length`),F(0)),L(C(n.dependentRequired).map(([e,t])=>E(D(j(r,F(e))),L(t.map(e=>j(r,F(e))))))))}function Ai(e,t,n,r){let i=v(w(r).length,0),a=b(C(n.dependentRequired),0,([e,t])=>!S(r,e)||t.every(e=>S(r,e)));return i||a}function ji(e,t,n,r,i,a){let o=v(w(a).length,0),s=x(C(i.dependentRequired),0,([e,i])=>!S(a,e)||x(i,0,o=>S(a,o)||t.AddError({keyword:`dependentRequired`,schemaPath:n,instancePath:r,params:{property:e,dependencies:i}})));return o||s}function Mi(e,t,n,r){return E(O(P(A(r),`length`),F(0)),L(C(n.dependentSchemas).map(([n,i])=>E(D(j(r,F(n))),X(e,t,i,r)))))}function Ni(e,t,n,r){let i=v(w(r).length,0),a=b(C(n.dependentSchemas),0,([n,i])=>!S(r,n)||Z(e,t,i,r));return i||a}function Pi(e,t,n,r,i,a){let o=v(w(a).length,0),s=x(C(i.dependentSchemas),0,([i,o])=>{let s=`${n}/dependentSchemas/${i}`;return!S(a,i)||Q(e,t,s,r,o,a)});return o||s}function Fi(e,t,n,r){return Ac(e,t,e.DynamicRef(n)??!1,r)}function Ii(e,t,n,r){let i=e.DynamicRef(n)??!1;return W(i)&&Z(e,t,i,r)}function Li(e,t,n,r,i,a){let o=e.DynamicRef(i)??!1;return W(o)&&Q(e,t,`#`,r,o,a)}function Ri(e,t,n,r){return ct(n.enum.map(e=>ye(e)?O(r,F(e)):tt(r,Lr(e))))}function zi(e,t,n,r){return n.enum.some(e=>ye(e)?v(r,e):Ae(r,e))}function Bi(e,t,n,r,i,a){return zi(e,t,i,a)||t.AddError({keyword:`enum`,schemaPath:n,instancePath:r,params:{allowedValues:i.enum}})}function Vi(e,t,n,r){return Ye(r,F(n.exclusiveMaximum))}function Hi(e,t,n,r){return he(r,n.exclusiveMaximum)}function Ui(e,t,n,r,i,a){return Hi(e,t,i,a)||t.AddError({keyword:`exclusiveMaximum`,schemaPath:n,instancePath:r,params:{comparison:`<`,limit:i.exclusiveMaximum}})}function Wi(e,t,n,r){return Je(r,F(n.exclusiveMinimum))}function Gi(e,t,n,r){return me(r,n.exclusiveMinimum)}function Ki(e,t,n,r,i,a){return Gi(e,t,i,a)||t.AddError({keyword:`exclusiveMinimum`,schemaPath:n,instancePath:r,params:{comparison:`>`,limit:i.exclusiveMinimum}})}const qi=[0,31,28,31,30,31,30,31,31,30,31,30,31],Ji=/^(\d\d\d\d)-(\d\d)-(\d\d)$/;function Yi(e){return e%4==0&&(e%100!=0||e%400==0)}function Xi(e){let t=Ji.exec(e);if(!t)return!1;let n=+t[1],r=+t[2],i=+t[3];return r>=1&&r<=12&&i>=1&&i<=(r===2&&Yi(n)?29:qi[r])}const Zi=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(?:Z|([+-])(\d\d):(\d\d))?$/i;function Qi(e,t=!0){let n=Zi.exec(e);if(!n)return!1;let r=+n[1],i=+n[2],a=+n[3],o=n[4]===`-`?-1:1,s=+(n[5]||0),c=+(n[6]||0);if(s>23||c>59||t&&!n[4]&&e.toLowerCase().indexOf(`z`)===-1)return!1;if(r<=23&&i<=59&&a<60)return!0;let l=i-c*o,u=r-s*o-+(l<0);return(u===23||u===-1)&&(l===59||l===-1)&&a<61}function $i(e,t=!0){let n=e.split(/T/i);return n.length===2&&Xi(n[0])&&Qi(n[1],t)}const ea=/^P((\d+Y(\d+M(\d+D)?)?|\d+M(\d+D)?|\d+D)(T(\d+H(\d+M(\d+S)?)?|\d+M(\d+S)?|\d+S))?|T(\d+H(\d+M(\d+S)?)?|\d+M(\d+S)?|\d+S)|\d+W)$/;function ta(e){return ea.test(e)}const na=/^(?!.*\.\.)[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i;function ra(e){return na.test(e)}function ia(e,t,n){e=n?Math.floor(e/700):e>>1,e+=Math.floor(e/t);let r=0;for(;e>455;)e=Math.floor(e/35),r+=36;return r+Math.floor(36*e/(e+38))}function aa(e){let t=[],n=128,r=0,i=72,a=e.lastIndexOf(`-`);if(a>0)for(let n=0;n=128)throw Error(`Invalid punycode: non-basic before delimiter`);t.push(r)}let o=a<0?0:a+1;for(;o=e.length)throw Error(`Invalid punycode: unexpected end of input`);let t=e.charCodeAt(o++),n;if(t>=97&&t<=122)n=t-97;else if(t>=48&&t<=57)n=t-48+26;else if(t>=65&&t<=90)n=t-65;else throw Error(`Invalid punycode: bad digit character`);r+=n*s;let a=c<=i?1:c>=i+26?26:c-i;if(n=1632&&e<=1641}function va(e){return e>=1776&&e<=1785}function ya(e){return da.has(e)}function ba(e){if(e.length===0)return!1;let t=[...e].map(e=>e.codePointAt(0)),n=t.length;if(t[0]===45||t[n-1]===45||n>=4&&t[2]===45&&t[3]===45||la(t[0]))return!1;let r=!1,i=!1,a=!1;for(let e=0;e=4&&e.charCodeAt(2)===45&&e.charCodeAt(3)===45)return!1;for(let t=0;t=97&&n<=122||n>=65&&n<=90||n>=48&&n<=57||n===45))return!1}return!0}function Sa(e){return e.toLowerCase().startsWith(`xn--`)}function Ca(e){try{return ba(aa(e.slice(4)))}catch{return!1}}function wa(e){return e.length===0||e.length>63?!1:Sa(e)?Ca(e):ba(e)}function Ta(e){return e.length===0||e.length>63?!1:Sa(e)?Ca(e):xa(e)}function Ea(e){if(e.length===0||e.length>253||e.charCodeAt(e.length-1)===46)return!1;for(let t of e.split(`.`))if(!Ta(t))return!1;return!0}const Da=/^(?!.*\.\.)[\p{L}\p{N}!#$%&'*+/=?^_`{|}~-]+(?:\.[\p{L}\p{N}!#$%&'*+/=?^_`{|}~-]+)*@[\p{L}\p{N}](?:[\p{L}\p{N}-]{0,61}[\p{L}\p{N}])?(?:\.[\p{L}\p{N}](?:[\p{L}\p{N}-]{0,61}[\p{L}\p{N}])?)*$/iu;function Oa(e){return Da.test(e)}function ka(e){if(e.length===0||e.includes(` `))return!1;let t=e.normalize(`NFC`).replace(/[\u002E\u3002\uFF0E\uFF61]/g,`.`);if(t.length>253)return!1;for(let e of t.split(`.`))if(!wa(e))return!1;return!0}function Aa(e,t,n){let r=0,i=0,a=0,o=0;for(let s=t;s255||o===48&&a>1)return!1;r++,i=0,a=0,o=0}else if(t>=48&&t<=57)a===0&&(o=t),i=i*10+(t-48),a++;else return!1}return r===3&&a>0&&i<=255&&!(o===48&&a>1)}function ja(e){return Aa(e,0,e.length)}function Ma(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Na(e){let t=e.length;if(t===0)return!1;let n=0,r=!1,i=0;if(e.charCodeAt(0)===58&&e.charCodeAt(1)===58){if(t===2)return!0;r=!0,i=2}for(;i4)return!1;if(n++,i===t)break;if(s!==58)return!1;if(i++,e.charCodeAt(i)===58){if(r||e.charCodeAt(i+1)===58)return!1;if(r=!0,i++,i===t)break}}return r?n<=7:n===8}function Pa(e){try{return new URL(e,`http://example.com`),!0}catch{return!1}}function Fa(e){if(e.includes(` `)||e.includes(`\\`)||/[\x00-\x1F\x7F]/.test(e)||/%(?![0-9a-fA-F]{2})/.test(e))return!1;if(e===``)return!0;let t=e.indexOf(`:`);return t>0&&/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(e.substring(0,t))?Pa(e):e.match(/^([a-zA-Z][a-zA-Z0-9+\-.]*)(\/\/)/)&&t===-1?!1:Pa(e)}function Ia(e){try{return new URL(e),!0}catch{return!1}}const La=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i;function Ra(e){return La.test(e)}const za=/^(?:\/(?:[^~/]|~0|~1)*)*$/;function Ba(e){return za.test(e)}function Va(e){if(e.length===0)return!1;try{return new RegExp(e),!0}catch{return!1}}const Ha=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;function Ua(e){return Ha.test(e)}const Wa=/^(?!.*[^\x00-\x7F])(?!.*\\)(?:(?:[a-z][a-z0-9+\-.]*:)?(?:\/\/[^\s[\]{}<>^`|]*)?|[^\s[\]{}<>^`|]*)(?:\?[^\s[\]{}<>^`|]*)?(?:#[^\s[\]{}<>^`|]*)?$/i;function Ga(e){return Wa.test(e)}const Ka=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i;function qa(e){return Ka.test(e)}function Ja(e){return e>=97&&e<=122||e>=65&&e<=90}function Ya(e){return Ja(e)||e>=48&&e<=57}function Xa(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Za(e){return Ya(e)||e===43||e===45||e===46}function Qa(e){return Ya(e)||e===45||e===46||e===95||e===126}function $a(e){return e===33||e===36||e===38||e===39||e===40||e===41||e===42||e===43||e===44||e===59||e===61}function eo(e){return Qa(e)||$a(e)||e===58||e===64}function to(e){let t=e.length;if(t===0||!Ja(e.charCodeAt(0)))return!1;let n=1;for(;n=i||!Xa(e.charCodeAt(t+1))||!Xa(e.charCodeAt(t+2)))return!1;t+=2}else if(!Qa(n)&&!$a(n)&&n!==58)return!1}n=i+1}if(e.charCodeAt(n)===91){for(n++;n57)return!1;n++}}for(;n=t||!Xa(e.charCodeAt(n+1))||!Xa(e.charCodeAt(n+2)))return!1;n+=2}else if(r>127)return!1;else if(!(eo(r)||r===47||r===63||r===35))return!1;n++}return!0}const no=/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu;function ro(e){return no.test(e)}const io=/^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;function ao(e){return io.test(e)}const Y=new Map;function oo(){Y.clear()}function so(){return[...Y.entries()]}function co(e,t){Y.set(e,t)}function lo(e){return Y.has(e)}function uo(e){return Y.get(e)}function fo(e,t){return Y.get(e)?.(t)??!0}function po(){oo(),Y.set(`date-time`,$i),Y.set(`date`,Xi),Y.set(`duration`,ta),Y.set(`email`,ra),Y.set(`hostname`,Ea),Y.set(`idn-email`,Oa),Y.set(`idn-hostname`,ka),Y.set(`ipv4`,ja),Y.set(`ipv6`,Na),Y.set(`iri-reference`,Fa),Y.set(`iri`,Ia),Y.set(`json-pointer-uri-fragment`,Ra),Y.set(`json-pointer`,Ba),Y.set(`regex`,Va),Y.set(`relative-json-pointer`,Ua),Y.set(`time`,Qi),Y.set(`uri-reference`,Ga),Y.set(`uri-template`,qa),Y.set(`uri`,to),Y.set(`url`,ro),Y.set(`uuid`,ao)}po();var mo=t({Clear:()=>oo,Entries:()=>so,Get:()=>uo,Has:()=>lo,IsDate:()=>Xi,IsDateTime:()=>$i,IsDuration:()=>ta,IsEmail:()=>ra,IsHostname:()=>Ea,IsIPv4:()=>ja,IsIPv6:()=>Na,IsIdnEmail:()=>Oa,IsIdnHostname:()=>ka,IsIri:()=>Ia,IsIriReference:()=>Fa,IsJsonPointer:()=>Ba,IsJsonPointerUriFragment:()=>Ra,IsRegex:()=>Va,IsRelativeJsonPointer:()=>Ua,IsTime:()=>Qi,IsUri:()=>to,IsUriReference:()=>Ga,IsUriTemplate:()=>qa,IsUrl:()=>ro,IsUuid:()=>ao,Reset:()=>po,Set:()=>co,Test:()=>fo});function ho(e,t,n,r){return N(P(`Format`,`Test`),[F(n.format),r])}function go(e,t,n,r){return fo(n.format,r)}function _o(e,t,n,r,i,a){return go(e,t,i,a)||t.AddError({keyword:`format`,schemaPath:n,instancePath:r,params:{format:i.format}})}function vo(e,t,n,r){let i=Tr(n)?n.then:!0,a=Jn(n)?n.else:!0;return it(X(e,t,n.if,r),X(e,t,i,r),X(e,t,a,r))}function yo(e,t,n,r){let i=Tr(n)?n.then:!0,a=Jn(n)?n.else:!0;return Z(e,t,n.if,r)?Z(e,t,i,r):Z(e,t,a,r)}function bo(e,t,n,r,i,a){let o=Tr(i)?i.then:!0,s=Jn(i)?i.else:!0,c=new q,l=Q(e,c,`${n}/if`,r,i.if,a)?Q(e,c,`${n}/then`,r,o,a)||t.AddError({keyword:`if`,schemaPath:n,instancePath:r,params:{failingKeyword:`then`}}):Q(e,t,`${n}/else`,r,s,a)||t.AddError({keyword:`if`,schemaPath:n,instancePath:r,params:{failingKeyword:`else`}});return l&&t.Merge([c]),l}function xo(e,t,n,r){return L(n.items.map((n,i)=>{let a=Xe(P(r,`length`),F(i)),o=Sc(e,t,n,`${r}[${i}]`),s=t.AddIndex(F(i));return E(a,t.UseUnevaluated()?T(o,s):o)}))}function So(e,t,n,r){return b(n.items,0,(n,i)=>y(r.length,i)||Cc(e,t,n,r[i])&&t.AddIndex(i))}function Co(e,t,n,r,i,a){return x(i.items,0,(i,o)=>{let s=`${n}/items/${o}`,c=`${r}/${o}`;return y(a.length,o)||wc(e,t,s,c,i,a[o])&&t.AddIndex(o)})}function wo(e,t,n,r){let i=vr(n)?n.prefixItems.length:0,a=Sc(e,t,n.items,`element`),o=t.AddIndex(`index`),s=t.UseUnevaluated()?T(a,o):a;return k(r,F(i),[`element`,`index`],s)}function To(e,t,n,r){return b(r,vr(n)?n.prefixItems.length:0,(r,i)=>Cc(e,t,n.items,r)&&t.AddIndex(i))}function Eo(e,t,n,r,i,a){return x(a,vr(i)?i.prefixItems.length:0,(a,o)=>wc(e,t,`${n}/items`,`${r}/${o}`,i.items,a)&&t.AddIndex(o))}function Do(e,t,n,r){return nr(n)?xo(e,t,n,r):wo(e,t,n,r)}function Oo(e,t,n,r){return nr(n)?So(e,t,n,r):To(e,t,n,r)}function ko(e,t,n,r,i,a){return nr(i)?Co(e,t,n,r,i,a):Eo(e,t,n,r,i,a)}function Ao(e){return Hn(e)}function jo(e,t,n,r){if(!Ao(n))return F(!0);let[i,a]=[J(),J()];return Xe(N(P(r,`reduce`),[M([i,a],it(X(e,t,n.contains,a),lt(i),i)),F(0)]),F(n.maxContains))}function Mo(e,t,n,r){return Ao(n)?y(r.reduce((r,i)=>Z(e,t,n.contains,i)?++r:r,0),n.maxContains):!0}function No(e,t,n,r,i,a){let o=lr(i)?i.minContains:1;return Mo(e,t,i,a)||t.AddError({keyword:`contains`,schemaPath:n,instancePath:r,params:{minContains:o,maxContains:i.maxContains}})}function Po(e,t,n,r){return Xe(r,F(n.maximum))}function Fo(e,t,n,r){return y(r,n.maximum)}function Io(e,t,n,r,i,a){return Fo(e,t,i,a)||t.AddError({keyword:`maximum`,schemaPath:n,instancePath:r,params:{comparison:`<=`,limit:i.maximum}})}function Lo(e,t,n,r){return Xe(P(r,`length`),F(n.maxItems))}function Ro(e,t,n,r){return y(r.length,n.maxItems)}function zo(e,t,n,r,i,a){return Ro(e,t,i,a)||t.AddError({keyword:`maxItems`,schemaPath:n,instancePath:r,params:{limit:i.maxItems}})}function Bo(e,t,n,r){return $e(r,F(n.maxLength))}function Vo(e,t,n,r){return xe(r,n.maxLength)}function Ho(e,t,n,r,i,a){return Vo(e,t,i,a)||t.AddError({keyword:`maxLength`,schemaPath:n,instancePath:r,params:{limit:i.maxLength}})}function Uo(e,t,n,r){return Xe(P(A(r),`length`),F(n.maxProperties))}function Wo(e,t,n,r){return y(w(r).length,n.maxProperties)}function Go(e,t,n,r,i,a){return Wo(e,t,i,a)||t.AddError({keyword:`maxProperties`,schemaPath:n,instancePath:r,params:{limit:i.maxProperties}})}function Ko(e){return Hn(e)}function qo(e,t,n,r){if(!Ko(n))return F(!0);let[i,a]=[J(),J()];return Ze(N(P(r,`reduce`),[M([i,a],it(X(e,t,n.contains,a),lt(i),i)),F(0)]),F(n.minContains))}function Jo(e,t,n,r){return Ko(n)?ge(r.reduce((r,i)=>Z(e,t,n.contains,i)?++r:r,0),n.minContains):!0}function Yo(e,t,n,r,i,a){return Jo(e,t,i,a)||t.AddError({keyword:`contains`,schemaPath:n,instancePath:r,params:{minContains:i.minContains}})}function Xo(e,t,n,r){return Ze(r,F(n.minimum))}function Zo(e,t,n,r){return ge(r,n.minimum)}function Qo(e,t,n,r,i,a){return Zo(e,t,i,a)||t.AddError({keyword:`minimum`,schemaPath:n,instancePath:r,params:{comparison:`>=`,limit:i.minimum}})}function $o(e,t,n,r){return Ze(P(r,`length`),F(n.minItems))}function es(e,t,n,r){return ge(r.length,n.minItems)}function ts(e,t,n,r,i,a){return es(e,t,i,a)||t.AddError({keyword:`minItems`,schemaPath:n,instancePath:r,params:{limit:i.minItems}})}function ns(e,t,n,r){return Qe(r,F(n.minLength))}function rs(e,t,n,r){return Se(r,n.minLength)}function is(e,t,n,r,i,a){return rs(e,t,i,a)||t.AddError({keyword:`minLength`,schemaPath:n,instancePath:r,params:{limit:i.minLength}})}function as(e,t,n,r){return Ze(P(A(r),`length`),F(n.minProperties))}function os(e,t,n,r){return ge(w(r).length,n.minProperties)}function ss(e,t,n,r,i,a){return os(e,t,i,a)||t.AddError({keyword:`minProperties`,schemaPath:n,instancePath:r,params:{limit:i.minProperties}})}function cs(e,t,n,r){return ut(r,F(n.multipleOf))}function ls(e,t,n,r){return _e(r,n.multipleOf)}function us(e,t,n,r,i,a){return ls(e,t,i,a)||t.AddError({keyword:`multipleOf`,schemaPath:n,instancePath:r,params:{multipleOf:i.multipleOf}})}function ds(e,t,n,r){return ai(e,t,[n.not],r,D(O(P(`results`,`length`),F(1))))}function fs(e,t,n,r){return D(X(e,t,n.not,r))}function ps(e,t,n,r){return t.UseUnevaluated()?ds(e,t,n,r):fs(e,t,n,r)}function ms(e,t,n,r){let i=new K;return!Z(e,i,n.not,r)&&t.Merge([i])}function hs(e,t,n,r,i,a){return ms(e,t,i,a)||t.AddError({keyword:`not`,schemaPath:n,instancePath:r,params:{}})}function gs(e,t,n,r){return ai(e,t,n.oneOf,r,O(P(`results`,`length`),F(1)))}function _s(e,t,n,r){return O(N(P(nt(n.oneOf.map(n=>X(e,t,n,r))),`reduce`),[M([`count`,`result`],it(O(`result`,F(!0)),lt(`count`),`count`)),F(0)]),F(1))}function vs(e,t,n,r){return t.UseUnevaluated()?gs(e,t,n,r):_s(e,t,n,r)}function ys(e,t,n,r){let i=n.oneOf.reduce((t,n)=>{let i=new K;return Z(e,i,n,r)?[...t,i]:t},[]);return v(i.length,1)&&t.Merge(i)}function bs(e,t,n,r,i,a){let o=[],s=[],c=i.oneOf.reduce((t,i,c)=>{let l=new q,u=Q(e,l,`${n}/oneOf/${c}`,r,i,a);return u&&s.push(c),u||o.push(l),u?[...t,l]:t},[]),l=v(c.length,1)&&t.Merge(c);return!l&&v(s.length,0)&&o.forEach(e=>e.GetErrors().forEach(e=>t.AddError(e))),l||t.AddError({keyword:`oneOf`,schemaPath:n,instancePath:r,params:{passingSchemas:s}})}function xs(e,t,n,r){return N(P(Lr(g(n.pattern)?new RegExp(n.pattern,`u`):n.pattern),`test`),[r])}function Ss(e,t,n,r){return(g(n.pattern)?new RegExp(n.pattern,`u`):n.pattern).test(r)}function Cs(e,t,n,r,i,a){return Ss(e,t,i,a)||t.AddError({keyword:`pattern`,schemaPath:n,instancePath:r,params:{pattern:i.pattern}})}function ws(e,t,n,r){return L(C(n.patternProperties).map(([n,i])=>{let[a,o]=[J(),J()],s=D(N(P(Lr(new RegExp(n,`u`)),`test`),[a])),c=Sc(e,t,i,o),l=t.AddKey(a),u=t.UseUnevaluated()?E(s,T(c,l)):E(s,c);return k(et(r),F(0),[`[${a}, ${o}]`,`_`],u)}))}function Ts(e,t,n,r){return b(C(n.patternProperties),0,([n,i])=>{let a=new RegExp(n,`u`);return b(C(r),0,([n,r])=>!a.test(n)||Cc(e,t,i,r)&&t.AddKey(n))})}function Es(e,t,n,r,i,a){return x(C(i.patternProperties),0,([i,o])=>{let s=`${n}/patternProperties/${i}`,c=new RegExp(i,`u`);return x(C(a),0,([n,i])=>{let a=`${r}/${n}`;return!c.test(n)||wc(e,t,s,a,o,i)&&t.AddKey(n)})})}function Ds(e,t,n,r){return L(n.prefixItems.map((n,i)=>{let a=Xe(P(r,`length`),F(i)),o=Sc(e,t,n,`${r}[${i}]`),s=t.AddIndex(F(i));return E(a,t.UseUnevaluated()?T(o,s):o)}))}function Os(e,t,n,r){return v(r.length,0)||b(n.prefixItems,0,(n,i)=>y(r.length,i)||Cc(e,t,n,r[i])&&t.AddIndex(i))}function ks(e,t,n,r,i,a){return v(a.length,0)||x(i.prefixItems,0,(i,o)=>{let s=`${n}/prefixItems/${o}`,c=`${r}/${o}`;return y(a.length,o)||wc(e,t,s,c,i,a[o])&&t.AddIndex(o)})}function As(e,t){return e.includes(t)||Et().exactOptionalPropertyTypes}function js(e,t){return Ge(P(e,t))}function Ms(e,t){return _(e[t])}function Ns(e,t,n,r){let i=G(n)?n.required:[];return L(C(n.properties).map(([n,a])=>{let o=D(j(r,F(n))),s=Sc(e,t,a,P(r,n)),c=t.AddKey(F(n)),l=t.UseUnevaluated()?T(s,c):s,u=i.includes(n)?l:E(o,l);return As(i,n)?u:E(js(r,n),u)}))}function Ps(e,t,n,r){let i=G(n)?n.required:[];return b(C(n.properties),0,([n,a])=>{let o=!S(r,n)||Cc(e,t,a,r[n])&&t.AddKey(n);return As(i,n)?o:Ms(r,n)||o})}function Fs(e,t,n,r,i,a){let o=G(i)?i.required:[];return x(C(i.properties),0,([i,s])=>{let c=`${n}/properties/${i}`,l=`${r}/${i}`,u=()=>!S(a,i)||wc(e,t,c,l,s,a[i])&&t.AddKey(i);return As(o,i)?u():Ms(a,i)||u()})}function Is(e,t,n,r){let[i,a]=[J(),J()];return k(A(r),F(0),[i,a],X(e,t,n.propertyNames,i))}function Ls(e,t,n,r){return b(w(r),0,(r,i)=>Z(e,t,n.propertyNames,r))}function Rs(e,t,n,r,i,a){let o=[];return x(w(a),0,(t,a)=>{let s=`${r}/${t}`,c=`${n}/propertyNames`,l=Q(e,new q,c,s,i.propertyNames,t);return l||o.push(t),l})||t.AddError({keyword:`propertyNames`,schemaPath:n,instancePath:r,params:{propertyNames:o}})}function zs(e,t,n,r){return Ac(e,t,e.RecursiveRef(n)??!1,r)}function Bs(e,t,n,r){let i=e.RecursiveRef(n)??!1;return W(i)&&Z(e,t,i,r)}function Vs(e,t,n,r,i,a){let o=e.RecursiveRef(i)??!1;return W(o)&&Q(e,t,`#`,r,o,a)}function Hs(e,t,n,r){let i=M([`context`,`value`],Ac(e,t,n,`value`));return N(M([`context`,`value`],at([I(`nextContext`,rt(`CheckContext`,[])),I(`result`,N(i,[`nextContext`,`value`])),ot(`result`,t.Merge(`[nextContext]`)),st(`result`)])),[`context`,r])}function Us(e,t,n,r){return Ac(e,t,n,r)}function Ws(e,t,n,r){let i=e.Ref(n)??!1;return t.UseUnevaluated()?Hs(e,t,i,r):Us(e,t,i,r)}function Gs(e,t,n,r){let i=e.Ref(n)??!1,a=new K,o=W(i)&&Z(e,a,i,r);return o&&t.Merge([a]),o}function Ks(e,t,n,r,i,a){let o=e.Ref(i)??!1,s=new q,c=W(o)&&Q(e,s,`#`,r,o,a);return c&&t.Merge([s]),c||s.GetErrors().forEach(e=>t.AddError(e)),c}function qs(e,t,n,r){return L(n.required.map(e=>j(r,F(e))))}function Js(e,t,n,r){return b(n.required,0,e=>S(r,e))}function Ys(e,t,n,r,i,a){let o=[];return x(i.required,0,e=>{let t=S(a,e);return t||o.push(e),t})||t.AddError({keyword:`required`,schemaPath:n,instancePath:r,params:{requiredProperties:o}})}function Xs(e,t,n,r){return v(n,`object`)?Ve(r):v(n,`array`)?Ne(r):v(n,`boolean`)?Ie(r):v(n,`integer`)?Le(r):v(n,`number`)?Be(r):v(n,`null`)?ze(r):v(n,`string`)?Ue(r):v(n,`asyncIterator`)?Pe(r):v(n,`bigint`)?Fe(r):v(n,`constructor`)?qe(r):v(n,`function`)?Ke(r):v(n,`iterator`)?Re(r):v(n,`symbol`)?We(r):v(n,`undefined`)||v(n,`void`)?Ge(r):F(!0)}function Zs(e,t,n,r,i){return v(n,`object`)?fe(i):v(n,`array`)?d(i):v(n,`boolean`)?se(i):v(n,`integer`)?le(i):v(n,`number`)?m(i):v(n,`null`)?de(i):v(n,`string`)?g(i):v(n,`asyncIterator`)?oe(i):v(n,`bigint`)?f(i):v(n,`constructor`)?ce(i):v(n,`function`)?p(i):v(n,`iterator`)?ue(i):v(n,`symbol`)?pe(i):v(n,`undefined`)||v(n,`void`)?_(i):!0}function Qs(e,t,n,r){return ct(n.map(n=>Xs(e,t,n,r)))}function $s(e,t,n,r,i){return n.some(n=>Zs(e,t,n,r,i))}function ec(e,t,n,r){return d(n.type)?Qs(e,t,n.type,r):Xs(e,t,n.type,r)}function tc(e,t,n,r){return d(n.type)?$s(e,t,n.type,n,r):Zs(e,t,n.type,n,r)}function nc(e,t,n,r,i,a){return(d(i.type)?$s(e,t,i.type,i,a):Zs(e,t,i.type,i,a))||t.AddError({keyword:`type`,schemaPath:n,instancePath:r,params:{type:i.type}})}function rc(e,t,n,r){let[i,a]=[J(),J()],o=N(P(`context`,`GetIndices`),[]),s=N(P(`indices`,`has`),[i]),c=X(e,t,n.unevaluatedItems,a),l=N(P(`context`,`AddIndex`),[i]),u=k(r,F(0),[a,i],T(E(s,c),l));return N(M([`context`],at([I(`indices`,o),st(u)])),[`context`])}function ic(e,t,n,r){let i=t.GetIndices();return b(r,0,(r,a)=>(i.has(a)||Z(e,t,n.unevaluatedItems,r))&&t.AddIndex(a))}function ac(e,t,n,r,i,a){let o=t.GetIndices(),s=[];return x(a,0,(a,c)=>{let l=new q,u=(o.has(c)||Q(e,l,n,r,i.unevaluatedItems,a))&&t.AddIndex(c);return u||s.push(c),u})||t.AddError({keyword:`unevaluatedItems`,schemaPath:n,instancePath:r,params:{unevaluatedItems:s}})}function oc(e,t,n,r){let[i,a]=[J(),J()],o=N(P(`context`,`GetKeys`),[]),s=N(P(`keys`,`has`),[i]),c=N(P(`context`,`AddKey`),[i]),l=X(e,t,n.unevaluatedProperties,a),u=k(et(r),F(0),[`[${i}, ${a}]`,`_`],E(s,T(l,c)));return N(M([`context`],at([I(`keys`,o),st(u)])),[`context`])}function sc(e,t,n,r){let i=t.GetKeys();return b(C(r),0,([r,a])=>i.has(r)||Z(e,t,n.unevaluatedProperties,a)&&t.AddKey(r))}function cc(e,t,n,r,i,a){let o=t.GetKeys(),s=[];return x(C(a),0,([a,c])=>{let l=new q,u=o.has(a)||Q(e,l,n,r,i.unevaluatedProperties,c)&&t.AddKey(a);return u||s.push(a),u})||t.AddError({keyword:`unevaluatedProperties`,schemaPath:n,instancePath:r,params:{unevaluatedProperties:s}})}function lc(e){return!v(e.uniqueItems,!1)}function uc(e,t,n,r){return lc(n)?O(P(rt(`Set`,[N(P(r,`map`),[P(`Hashing`,`Hash`)])]),`size`),P(r,`length`)):F(!0)}function dc(e,t,n,r){if(!lc(n))return!0;let i=new Set(r.map(yn)).size,a=r.length;return v(i,a)}function fc(e,t,n,r,i,a){if(!lc(i))return!0;let o=new Set,s=a.reduce((e,t,n)=>{let r=yn(t);return o.has(r)?[...e,n]:(o.add(r),e)},[]);return v(s.length,0)||t.AddError({keyword:`uniqueItems`,schemaPath:n,instancePath:r,params:{duplicateItems:s}})}function pc(e,t){return Er(e)&&(d(e.type)&&e.type.includes(t)||v(e.type,t))}function mc(e){return pc(e,`object`)}function hc(e){return U(e)&&(Ln(e)||Un(e)||Wn(e)||Gn(e)||yr(e)||_r(e)||br(e)||fr(e)||sr(e)||G(e)||kr(e))}function gc(e){return pc(e,`array`)}function _c(e){return U(e)&&(In(e)||tr(e)||Hn(e)||ir(e)||ar(e)||lr(e)||ur(e)||vr(e)||Or(e)||Dr(e))}function vc(e){return pc(e,`string`)}function yc(e){return U(e)&&(dr(e)||or(e)||Qn(e)||gr(e))}function bc(e){return pc(e,`number`)||pc(e,`bigint`)}function xc(e){return U(e)&&(cr(e)||rr(e)||Xn(e)||Zn(e)||pr(e))}function Sc(e,t,n,r){return t.UseUnevaluated()?T(T(t.Push(),X(e,t,n,r)),t.Pop()):X(e,t,n,r)}function X(e,t,n,r){e.Push(n);let i=[];if(Fn(n))return gi(e,t,n,r);if(Er(n)&&i.push(ec(e,t,n,r)),hc(n)){let a=[];G(n)&&a.push(qs(e,t,n,r)),Ln(n)&&a.push(ni(e,t,n,r)),Un(n)&&a.push(Ei(e,t,n,r)),Wn(n)&&a.push(ki(e,t,n,r)),Gn(n)&&a.push(Mi(e,t,n,r)),_r(n)&&a.push(ws(e,t,n,r)),yr(n)&&a.push(Ns(e,t,n,r)),br(n)&&a.push(Is(e,t,n,r)),fr(n)&&a.push(as(e,t,n,r)),sr(n)&&a.push(Uo(e,t,n,r));let o=L(a),s=E(D(Ve(r)),o);i.push(mc(n)?o:s)}if(_c(n)){let a=[];In(n)&&a.push(Jr(e,t,n,r)),Hn(n)&&a.push(Ci(e,t,n,r)),tr(n)&&a.push(Do(e,t,n,r)),ir(n)&&a.push(jo(e,t,n,r)),ar(n)&&a.push(Lo(e,t,n,r)),lr(n)&&a.push(qo(e,t,n,r)),ur(n)&&a.push($o(e,t,n,r)),vr(n)&&a.push(Ds(e,t,n,r)),Dr(n)&&a.push(uc(e,t,n,r));let o=L(a),s=E(D(Ne(r)),o);i.push(gc(n)?o:s)}if(yc(n)){let a=[];or(n)&&a.push(Bo(e,t,n,r)),dr(n)&&a.push(ns(e,t,n,r)),Qn(n)&&a.push(ho(e,t,n,r)),gr(n)&&a.push(xs(e,t,n,r));let o=L(a),s=E(D(Ue(r)),o);i.push(vc(n)?o:s)}if(xc(n)){let a=[];Xn(n)&&a.push(Vi(e,t,n,r)),Zn(n)&&a.push(Wi(e,t,n,r)),rr(n)&&a.push(Po(e,t,n,r)),cr(n)&&a.push(Xo(e,t,n,r)),pr(n)&&a.push(cs(e,t,n,r));let o=L(a),s=E(D(E(Be(r),Fe(r))),o);i.push(bc(n)?o:s)}wr(n)&&i.push(Ws(e,t,n,r)),Cr(n)&&i.push(zs(e,t,n,r)),qn(n)&&i.push(Fi(e,t,n,r)),Nn(n)&&i.push(Br(e,t,n,r)),Vn(n)&&i.push(yi(e,t,n,r)),Yn(n)&&i.push(Ri(e,t,n,r)),er(n)&&i.push(vo(e,t,n,r)),mr(n)&&i.push(ps(e,t,n,r)),Rn(n)&&i.push(ci(e,t,n,r)),Bn(n)&&i.push(pi(e,t,n,r)),hr(n)&&i.push(vs(e,t,n,r)),Or(n)&&i.push(E(D(Ne(r)),rc(e,t,n,r))),kr(n)&&i.push(E(D(He(r)),oc(e,t,n,r))),Pn(n)&&i.push(Ur(e,t,n,r));let a=L(i);return e.Pop(n),a}function Cc(e,t,n,r){return t.Push()&&Z(e,t,n,r)&&t.Pop()}function Z(e,t,n,r){e.Push(n);let i=Fn(n)?_i(e,t,n,r):(!Er(n)||tc(e,t,n,r))&&(!(h(r)&&!d(r))||(!G(n)||Js(e,t,n,r))&&(!Ln(n)||ri(e,t,n,r))&&(!Un(n)||Di(e,t,n,r))&&(!Wn(n)||Ai(e,t,n,r))&&(!Gn(n)||Ni(e,t,n,r))&&(!_r(n)||Ts(e,t,n,r))&&(!yr(n)||Ps(e,t,n,r))&&(!br(n)||Ls(e,t,n,r))&&(!fr(n)||os(e,t,n,r))&&(!sr(n)||Wo(e,t,n,r)))&&(!d(r)||(!In(n)||Yr(e,t,n,r))&&(!Hn(n)||wi(e,t,n,r))&&(!tr(n)||Oo(e,t,n,r))&&(!ir(n)||Mo(e,t,n,r))&&(!ar(n)||Ro(e,t,n,r))&&(!lr(n)||Jo(e,t,n,r))&&(!ur(n)||es(e,t,n,r))&&(!vr(n)||Os(e,t,n,r))&&(!Dr(n)||dc(e,t,n,r)))&&(!g(r)||(!or(n)||Vo(e,t,n,r))&&(!dr(n)||rs(e,t,n,r))&&(!Qn(n)||go(e,t,n,r))&&(!gr(n)||Ss(e,t,n,r)))&&(!(m(r)||f(r))||(!Xn(n)||Hi(e,t,n,r))&&(!Zn(n)||Gi(e,t,n,r))&&(!rr(n)||Fo(e,t,n,r))&&(!cr(n)||Zo(e,t,n,r))&&(!pr(n)||ls(e,t,n,r)))&&(!wr(n)||Gs(e,t,n,r))&&(!Cr(n)||Bs(e,t,n,r))&&(!qn(n)||Ii(e,t,n,r))&&(!Nn(n)||Vr(e,t,n,r))&&(!Vn(n)||bi(e,t,n,r))&&(!Yn(n)||zi(e,t,n,r))&&(!er(n)||yo(e,t,n,r))&&(!mr(n)||ms(e,t,n,r))&&(!Rn(n)||li(e,t,n,r))&&(!Bn(n)||mi(e,t,n,r))&&(!hr(n)||ys(e,t,n,r))&&(!Or(n)||!d(r)||ic(e,t,n,r))&&(!kr(n)||!h(r)||sc(e,t,n,r))&&(!Pn(n)||Wr(e,t,n,r));return e.Pop(n),i}function wc(e,t,n,r,i,a){return t.Push()&&Q(e,t,n,r,i,a)&&t.Pop()}function Q(e,t,n,r,i,a){e.Push(i);let o=Fn(i)?vi(e,t,n,r,i,a):!!((!Er(i)||nc(e,t,n,r,i,a))&+(!(h(a)&&!d(a))||!!((!G(i)||Ys(e,t,n,r,i,a))&+(!Ln(i)||ii(e,t,n,r,i,a))&(!Un(i)||Oi(e,t,n,r,i,a))&(!Wn(i)||ji(e,t,n,r,i,a))&(!Gn(i)||Pi(e,t,n,r,i,a))&(!_r(i)||Es(e,t,n,r,i,a))&(!yr(i)||Fs(e,t,n,r,i,a))&(!br(i)||Rs(e,t,n,r,i,a))&(!fr(i)||ss(e,t,n,r,i,a))&(!sr(i)||Go(e,t,n,r,i,a))))&(!d(a)||!!((!In(i)||Xr(e,t,n,r,i,a))&+(!Hn(i)||Ti(e,t,n,r,i,a))&(!tr(i)||ko(e,t,n,r,i,a))&(!ir(i)||No(e,t,n,r,i,a))&(!ar(i)||zo(e,t,n,r,i,a))&(!lr(i)||Yo(e,t,n,r,i,a))&(!ur(i)||ts(e,t,n,r,i,a))&(!vr(i)||ks(e,t,n,r,i,a))&(!Dr(i)||fc(e,t,n,r,i,a))))&(!g(a)||!!((!or(i)||Ho(e,t,n,r,i,a))&+(!dr(i)||is(e,t,n,r,i,a))&(!Qn(i)||_o(e,t,n,r,i,a))&(!gr(i)||Cs(e,t,n,r,i,a))))&(!(m(a)||f(a))||!!((!Xn(i)||Ui(e,t,n,r,i,a))&+(!Zn(i)||Ki(e,t,n,r,i,a))&(!rr(i)||Io(e,t,n,r,i,a))&(!cr(i)||Qo(e,t,n,r,i,a))&(!pr(i)||us(e,t,n,r,i,a))))&(!wr(i)||Ks(e,t,n,r,i,a))&(!Cr(i)||Vs(e,t,n,r,i,a))&(!qn(i)||Li(e,t,n,r,i,a))&(!Nn(i)||Hr(e,t,n,r,i,a))&(!Vn(i)||xi(e,t,n,r,i,a))&(!Yn(i)||Bi(e,t,n,r,i,a))&(!er(i)||bo(e,t,n,r,i,a))&(!mr(i)||hs(e,t,n,r,i,a))&(!Rn(i)||ui(e,t,n,r,i,a))&(!Bn(i)||hi(e,t,n,r,i,a))&(!hr(i)||bs(e,t,n,r,i,a))&(!Or(i)||!d(a)||ac(e,t,n,r,i,a))&(!kr(i)||!h(a)||cc(e,t,n,r,i,a)))&&(!Pn(i)||Gr(e,t,n,r,i,a));return e.Pop(i),o}const Tc=new Map;function Ec(e,t,n,r){return e.UseUnevaluated()?N(`check_${n}`,[`context`,r]):N(`check_${n}`,[r])}function Dc(e,t,n,r){let i=X(e,t,n,`value`);return t.UseUnevaluated()?I(`check_${r}`,M([`context`,`value`],i)):I(`check_${r}`,M([`value`],i))}function Oc(){Tc.clear()}function kc(){return[...Tc.values()]}function Ac(e,t,n,r){let i=U(n)?yn({__baseURL:e.BaseURL().href,...n}):yn(n),a=Ec(t,n,i,r);return Tc.has(i)?a:(Tc.set(i,``),Tc.set(i,Dc(e,t,n,i)),a)}function jc(e,t){return h(t)&&!we(e)?t[e]:void 0}function Mc(e,t){return e.reduce((e,t)=>jc(t,e),t)}function Nc(e){if(v(e.length,0))return[];let t=e.split(`/`).map(e=>e.replace(/~1/g,`/`).replace(/~0/g,`~`));return t.length>0&&t[0]===``?t.slice(1):t}function Pc(e,t){return Mc(Nc(t),e)}function Fc(e,t,n){if(e.$id===n.hash)return e;let r=new URL(e.$id,t.href),i=new URL(n.href,t.href);if(v(r.pathname,i.pathname))return n.hash.startsWith(`#`)?Rc(e,t,n):e}function Ic(e,t,n){let r=new URL(`#${e.$anchor}`,t.href),i=new URL(n.href,t.href);return v(r.href,i.href)?e:void 0}function Lc(e,t,n){let r=new URL(`#${e.$dynamicAnchor}`,t.href),i=new URL(n.href,t.href);return v(r.href,i.href)?e:void 0}function Rc(e,t,n){if(n.href.endsWith(`#`))return e;if(!n.hash.startsWith(`#`))return;let r=decodeURIComponent(n.hash.slice(1));if(r.startsWith(`/`))return Pc(e,r)}function zc(e,t,n){if($n(e)){let r=Fc(e,t,n);if(!_(r))return r}if(zn(e)){let r=Ic(e,t,n);if(!_(r))return r}if(Kn(e)){let r=Lc(e,t,n);if(!_(r))return r}return Rc(e,t,n)}function Bc(e,t,n){return e.reduce((e,r)=>{let i=Hc(r,t,n);return _(i)?e:i},void 0)}function Vc(e,t,n){return w(e).reduce((r,i)=>{let a=Hc(e[i],t,n);return _(a)?r:a},void 0)}function Hc(e,t,n){let r=U(e)&&$n(e)?new URL(e.$id,t.href):t;if(U(e)){let t=zc(e,r,n);if(!_(t))return t}if(d(e))return Bc(e,r,n);if(h(e))return Vc(e,r,n)}function Uc(e,t){let n=new URL(`http://unknown/`),r=$n(e)?new URL(e.$id,n.href):n;return Hc(e,r,new URL(t,r.href))}function Wc(e,t,n,r){let i=n.$dynamicRef.startsWith(`#`)?Uc(t,n.$dynamicRef):Uc(e,n.$dynamicRef);if(!_(i))return!U(i)||!Kn(i)||new URL(n.$dynamicRef,`http://unknown/`).hash.startsWith(`#/`)?i:r.find(e=>e.$dynamicAnchor===i.$dynamicAnchor)??i}var Gc=function(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)},$,Kc,qc,Jc,Yc,Xc=class{constructor(e,t){$.add(this),this.context=e,this.schema=t,this.ids=[],this.anchors=[],this.recursiveAnchors=[],this.dynamicAnchors=[]}BaseURL(){return this.ids.reduce((e,t)=>new URL(t.$id,e),new URL(`http://unknown`))}Base(){return this.ids[this.ids.length-1]??this.schema}Push(e){U(e)&&($n(e)&&(this.ids.push(e),Gc(this,$,`m`,Kc).call(this,e)),zn(e)&&this.anchors.push(e),Sr(e)&&this.recursiveAnchors.push(e),Kn(e)&&this.dynamicAnchors.push(e))}Pop(e){U(e)&&($n(e)&&(this.ids.pop(),Gc(this,$,`m`,qc).call(this,e)),zn(e)&&this.anchors.pop(),Sr(e)&&this.recursiveAnchors.pop(),Kn(e)&&this.dynamicAnchors.pop())}Ref(e){return Gc(this,$,`m`,Jc).call(this,e)??Gc(this,$,`m`,Yc).call(this,e)}RecursiveRef(e){return Sr(this.Base())?Uc(this.recursiveAnchors[0],e.$recursiveRef):Uc(this.Base(),e.$recursiveRef)}DynamicRef(e){let t=this.schema;return Wc(t,this.Base(),e,this.dynamicAnchors)}};$=new WeakSet,Kc=function e(t,n=!0){if(!U(t))return;let r=t;if(!(!n&&$n(r))){!n&&Kn(r)&&this.dynamicAnchors.push(r);for(let t of w(r))Gc(this,$,`m`,e).call(this,r[t],!1)}},qc=function e(t,n=!0){if(!U(t))return;let r=t;if(!(!n&&$n(r))){!n&&Kn(r)&&this.dynamicAnchors.pop();for(let t of w(r))Gc(this,$,`m`,e).call(this,r[t],!1)}},Jc=function(e){return S(this.context,e.$ref)?this.context[e.$ref]:void 0},Yc=function(e){let t=this.schema;return e.$ref.startsWith(`#`)?Uc(this.Base(),e.$ref):Uc(t,e.$ref)};function Zc(e){return`${e.Functions().join(`; -`)}; return (value) => { ${(e.UseUnevaluated()?[`const context = new CheckContext({}, {})`,`return ${e.Entry()}`]:[`return ${e.Entry()}`]).join(`; `)} }`}function Qc(e,t){return Wt(`CheckContext`,`Guard`,`Format`,`Hashing`,e.External().identifier,t)(K,ae,mo,Kt,e.External().variables)}function $c(e){let t=new Xc(e.Context(),e.Schema()),n=new K;return r=>Z(t,n,e.Schema(),r)}function el(e,t){return Ut()?Qc(e,t):$c(e)}var tl=class{constructor(e,t,n){this.isAccelerated=e,this.code=t,this.check=n}IsAccelerated(){return this.isAccelerated}Code(){return this.code}Check(e){return this.check(e)}},nl=class{constructor(e,t,n,r,i,a){this.context=e,this.schema=t,this.external=n,this.functions=r,this.entry=i,this.useUnevaluated=a}Context(){return this.context}Schema(){return this.schema}UseUnevaluated(){return this.useUnevaluated}External(){return this.external}Functions(){return this.functions}Entry(){return this.entry}Evaluate(){let e=Zc(this),t=el(this,e);return new tl(Ut(),e,t)}};function rl(...e){let[t,n]=Lt(e,{2:(e,t)=>[e,t],1:e=>[{},e]});Rr(),Oc();let r=new Xc(t,n),i=new Pr(Nr(t,n)),a=Ac(r,i,n,`value`),o=kc();return new nl(t,n,zr(),o,a,i.UseUnevaluated())}function il(...e){let[t,n,r]=Lt(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]}),i=Et(),a=Sn(),o=[];return[Q(new Xc(t,n),new Fr(e=>{if(!ge(o.length,i.maxErrors))return o.push({...e,message:a(e)})}),`#`,``,n,r),o]}var al=class{constructor(e,t,n){this.schema=e,this.value=t,this.errors=n}},ol=class{constructor(e,t){this.buildResult=rl(e,t),this.evaluateResult=this.buildResult.Evaluate()}IsAccelerated(){return this.evaluateResult.IsAccelerated()}Schema(){return this.buildResult.Schema()}Check(e){return this.evaluateResult.Check(e)}Parse(e){if(this.evaluateResult.Check(e))return e;let[t,n]=il(this.buildResult.Context(),this.buildResult.Schema(),e);throw new al(this.buildResult.Schema(),e,n)}Errors(e){return il(this.buildResult.Context(),this.buildResult.Schema(),e)}};function sl(...e){let[t,n]=Lt(e,{2:(e,t)=>[e,t],1:e=>[{},e]});return new ol(t,n)}const cl=wn(It({}),e=>e instanceof Date),ll=Ft({id:V(),created:cl,title:H({minLength:1,maxLength:100}),type:Bt([`jpg`,`png`]),size:V(),url:H({format:`url`})}),ul=Ft({id:V(),stars:V({minimum:1,maximum:5}),title:H({minLength:1,maxLength:100}),text:H({minLength:1,maxLength:1e3}),images:Mt(ll)});sl(Ft({id:V(),created:cl,title:H({minLength:1,maxLength:100}),brand:H({minLength:1,maxLength:30}),description:H({minLength:1,maxLength:500}),price:V({minimum:1,maximum:1e4}),discount:On([V({minimum:1,maximum:100}),Dn()]),quantity:V({minimum:1,maximum:10}),tags:Mt(H({minLength:1,maxLength:30})),images:Mt(ll),ratings:Mt(ul)})).Parse({}); \ No newline at end of file +var e=Object.defineProperty,t=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r};const n={assign:0,create:0,clone:0,discard:0,update:0};function r(e,t,n){return e>=t&&e<=n}function i(e){return r(e,127462,127487)}function a(e){return r(e,65024,65039)}function o(e){return r(e,768,879)||r(e,6832,6911)||r(e,7616,7679)||r(e,65056,65071)}function s(e){return e>65535?2:1}function c(e,t){for(;t=t)return!0;return!1}function ne(e,t){let n=0,r=0;for(;rt)return!1;return!0}function re(e,t){if(t===0)return!0;let n=0;for(;n=t)return!0}return!1}function ie(e,t){let n=0;for(;nt)return!1}return!0}var ae=t({Entries:()=>C,EntriesRegExp:()=>Ce,Every:()=>b,EveryAll:()=>x,GraphemeCount:()=>ve,HasPropertyKey:()=>S,IsArray:()=>d,IsBigInt:()=>f,IsBoolean:()=>oe,IsClassInstance:()=>ge,IsConstructor:()=>se,IsDeepEqual:()=>Oe,IsEqual:()=>v,IsFunction:()=>p,IsGreaterEqualThan:()=>me,IsGreaterThan:()=>fe,IsInteger:()=>ce,IsLessEqualThan:()=>y,IsLessThan:()=>pe,IsMaxLength:()=>ye,IsMinLength:()=>be,IsMultipleOf:()=>he,IsNull:()=>le,IsNumber:()=>m,IsObject:()=>h,IsObjectNotArray:()=>ue,IsString:()=>g,IsSymbol:()=>de,IsUndefined:()=>_,IsUnsafePropertyKey:()=>Se,IsValueLike:()=>_e,Keys:()=>w,ShiftLeft:()=>xe,Symbols:()=>we,Values:()=>Te});function d(e){return Array.isArray(e)}function f(e){return v(typeof e,`bigint`)}function oe(e){return v(typeof e,`boolean`)}function se(e){if(_(e)||!p(e))return!1;let t=Function.prototype.toString.call(e);return!!(/^class\s/.test(t)||/\[native code\]/.test(t))}function p(e){return v(typeof e,`function`)}function ce(e){return Number.isInteger(e)}function le(e){return v(e,null)}function m(e){return Number.isFinite(e)}function ue(e){return h(e)&&!d(e)}function h(e){return v(typeof e,`object`)&&!le(e)}function g(e){return v(typeof e,`string`)}function de(e){return v(typeof e,`symbol`)}function _(e){return v(e,void 0)}function v(e,t){return e===t}function fe(e,t){return e>t}function pe(e,t){return e=t}function he(e,t){if(f(e)||f(t))return BigInt(e)%BigInt(t)===0n;if(!m(e)||ce(e)&&1/t%1==0)return!0;let n=e%t;return Math.min(Math.abs(n),Math.abs(n-t))<1e-10}function ge(e){if(!h(e))return!1;let t=globalThis.Object.getPrototypeOf(e);return le(t)?!1:v(typeof t.constructor,`function`)&&!(v(t.constructor,globalThis.Object)||v(t.constructor.name,`Object`))}function _e(e){return f(e)||oe(e)||le(e)||m(e)||g(e)||_(e)}function ve(e){return ee(e)}function ye(e,t){return ie(e,t)}function be(e,t){return re(e,t)}function b(e,t,n){for(let r=t;r[RegExp(`^${t}$`),e[t]])}function C(e){return Object.entries(e)}function w(e){return Object.getOwnPropertyNames(e)}function we(e){return Object.getOwnPropertySymbols(e)}function Te(e){return Object.values(e)}function Ee(e,t){if(!h(t))return!1;let n=w(e);return v(n.length,w(t).length)&&n.every(n=>Oe(e[n],t[n]))}function De(e,t){return d(t)&&v(e.length,t.length)&&e.every((n,r)=>Oe(e[r],t[r]))}function Oe(e,t){return d(e)?De(e,t):h(e)?Ee(e,t):v(e,t)}const ke=/^[\p{ID_Start}_$][\p{ID_Continue}_$\u200C\u200D]*$/u;function Ae(e){return ke.test(e)}function T(e,t){return`(${e} && ${t})`}function E(e,t){return`(${e} || ${t})`}function D(e){return`!(${e})`}function je(e){return`Array.isArray(${e})`}function Me(e){return`typeof ${e} === "bigint"`}function Ne(e){return`typeof ${e} === "boolean"`}function Pe(e){return`Number.isInteger(${e})`}function Fe(e){return`${e} === null`}function Ie(e){return`Number.isFinite(${e})`}function Le(e){return T(Re(e),D(je(e)))}function Re(e){return`typeof ${e} === "object" && ${e} !== null`}function ze(e){return`typeof ${e} === "string"`}function Be(e){return`typeof ${e} === "symbol"`}function Ve(e){return`${e} === undefined`}function He(e){return`typeof ${e} === "function"`}function Ue(e){return`Guard.IsConstructor(${e})`}function O(e,t){return`${e} === ${t}`}function We(e,t){return`${e} > ${t}`}function Ge(e,t){return`${e} < ${t}`}function Ke(e,t){return`${e} <= ${t}`}function qe(e,t){return`${e} >= ${t}`}function Je(e,t){return`Guard.IsMinLength(${e}, ${t})`}function Ye(e,t){return`Guard.IsMaxLength(${e}, ${t})`}function k(e,t,n,r){return v(t,`0`)?`${e}.every((${n[0]}, ${n[1]}) => ${r})`:`((value, callback) => { for(let index = ${t}; index < value.length; index++) if (!callback(value[index], index)) return false; return true })(${e}, (${n[0]}, ${n[1]}) => ${r})`}function Xe(e){return`Object.entries(${e})`}function Ze(e){return`Object.getOwnPropertyNames(${e})`}function Qe(e,t){return v(t,`"__proto__"`)||v(t,`"constructor"`)?`Object.prototype.hasOwnProperty.call(${e}, ${t})`:`${t} in ${e}`}function $e(e,t){return`Guard.IsDeepEqual(${e}, ${t})`}function et(e){return`[${e.join(`, `)}]`}function A(e,t){return`((${e.join(`, `)}) => ${t})`}function j(e,t){return`${e}(${t.join(`, `)})`}function tt(e,t){return`new ${e}(${t.join(`, `)})`}function M(e,t){return`${e}${Ae(t)?`.${t}`:`[${N(t)}]`}`}function N(e){return g(e)?JSON.stringify(e):`${e}`}function nt(e,t,n){return`(${e} ? ${t} : ${n})`}function rt(e){return`{ ${e.join(`; `)}; }`}function P(e,t){return`const ${e} = ${t}`}function it(e,t){return`if(${e}) { ${t} }`}function at(e){return`return ${e}`}function F(e){return v(e.length,0)?`true`:e.reduce((e,t)=>T(e,t))}function ot(e){return v(e.length,0)?`false`:e.reduce((e,t)=>E(e,t))}function st(e){return`++${e}`}function ct(e,t){return`Guard.IsMultipleOf(${e}, ${t})`}function lt(e){return e instanceof Boolean}function ut(e){return e instanceof Number}function dt(e){return e instanceof String}function ft(e){return globalThis.ArrayBuffer.isView(e)}function pt(e){return e instanceof globalThis.RegExp}function mt(e){return e instanceof globalThis.Date}function ht(e){return e instanceof globalThis.Set}function gt(e){return e instanceof globalThis.Map}function _t(e){return e}function vt(e){return S(e,`~kind`)}function yt(e){let t={},n=Object.getOwnPropertyDescriptors(e);for(let e of Object.keys(n)){if(Se(e))continue;let r=n[e];S(r,`value`)&&Object.defineProperty(t,e,{...r,value:I(r.value)})}return t}function bt(e){let t={};for(let n of w(e))Se(n)||(t[n]=I(e[n]));for(let n of we(e))t[n]=I(e[n]);return t}function xt(e){return ge(e)?_t(e):vt(e)?yt(e):bt(e)}function St(e){return e.map(e=>I(e))}function Ct(e){return e.slice()}function wt(e){return new RegExp(e.source,e.flags)}function Tt(e){return new Map(I([...e.entries()]))}function Et(e){return new Set(I([...e.values()]))}function I(e){return ft(e)?Ct(e):pt(e)?wt(e):gt(e)?Tt(e):ht(e)?Et(e):d(e)?St(e):h(e)?xt(e):e}function Dt(e){return n.clone+=1,I(e)}const Ot={immutableTypes:!1,maxErrors:8,useAcceleration:!0,exactOptionalPropertyTypes:!1,enumerableKind:!1,correctiveParse:!1,unionPrioritySort:!0};function kt(){return Ot}function At(e,t){for(let n of Object.keys(t))Object.defineProperty(e,n,{configurable:!0,writable:!0,enumerable:!1,value:t[n]});return e}function jt(e,t){return{...e,...t}}function Mt(e,t,r={}){n.create+=1;let i=kt(),a=jt(t,r),o=i.enumerableKind?jt(a,e):At(a,e);return i.immutableTypes?Object.freeze(o):o}function Nt(e,t,r){n.update+=1;let i=kt(),a=Dt(e);for(let e of Object.keys(t))Object.defineProperty(a,e,{configurable:!0,writable:!0,enumerable:i.enumerableKind,value:t[e]});for(let e of Object.keys(r))Object.defineProperty(a,e,{configurable:!0,enumerable:!0,writable:!0,value:r[e]});return a}function Pt(e){return h(e)}function Ft(e,t){return Mt({"~kind":`Array`},{type:`array`,items:e},t)}function It(e){return Pt(e)&&S(e,`~optional`)}function Lt(e){return w(e).filter(t=>!It(e[t]))}function Rt(e,t={}){let n=Lt(e);return Mt({"~kind":`Object`},{type:`object`,...n.length>0?{required:n}:{},properties:e},t)}function zt(e){return Nt(e,{"~unsafe":null},{})}function Bt(e,t){return t[e.length]?.(...e)??(()=>{throw Error(`Invalid Arguments`)})()}function Vt(e){return ue(e)}function Ht(e){return w(e).filter(e=>isNaN(e)).reduce((t,n)=>[...t,e[n]],[])}function Ut(e,t){return Mt({"~kind":`Enum`},{enum:Vt(e)?Ht(e):e},t)}let Wt;function Gt(){try{return qt(`null`)(),!0}catch{return!1}}function Kt(){return _(Wt)&&(Wt=Gt()),Wt&&kt().useAcceleration}function qt(...e){return new globalThis.Function(...e)}function Jt(){throw Error(`Unreachable`)}var Yt=t({Hash:()=>Sn,HashCode:()=>xn});function Xt(e){let t=new Set,n=e;for(;n&&n!==Object.prototype;){for(let e of Reflect.ownKeys(n))e!==`constructor`&&typeof e!=`symbol`&&t.add(e);n=Object.getPrototypeOf(n)}return[...t]}function Zt(e){return typeof e==`number`}var L;(function(e){e[e.Array=0]=`Array`,e[e.BigInt=1]=`BigInt`,e[e.Boolean=2]=`Boolean`,e[e.Date=3]=`Date`,e[e.Constructor=4]=`Constructor`,e[e.Function=5]=`Function`,e[e.Null=6]=`Null`,e[e.Number=7]=`Number`,e[e.Object=8]=`Object`,e[e.RegExp=9]=`RegExp`,e[e.String=10]=`String`,e[e.Symbol=11]=`Symbol`,e[e.TypeArray=12]=`TypeArray`,e[e.Undefined=13]=`Undefined`})(L||={});let Qt=BigInt(`14695981039346656037`);const[$t,en]=[BigInt(`1099511628211`),BigInt(`18446744073709551616`)],tn=Array.from({length:256}).map((e,t)=>BigInt(t)),nn=new Float64Array(1),rn=new DataView(nn.buffer),an=new Uint8Array(nn.buffer);function R(e){Qt^=tn[e],Qt=Qt*$t%en}function on(e){R(L.Array);for(let t of e)z(t)}function sn(e){R(L.BigInt),rn.setBigInt64(0,e);for(let e of an)R(e)}function cn(e){R(L.Boolean),R(+!!e)}function ln(e){R(L.Constructor),z(e.toString())}function un(e){R(L.Date),z(e.getTime())}function dn(e){R(L.Function),z(e.toString())}function fn(e){R(L.Null)}function pn(e){R(L.Number),rn.setFloat64(0,e,!0);for(let e of an)R(e)}function mn(e){R(L.Object);for(let t of Xt(e).sort())z(t),z(e[t])}function hn(e){R(L.RegExp),_n(e.toString())}const gn=new TextEncoder;function _n(e){R(L.String);for(let t of gn.encode(e))R(t)}function vn(e){R(L.Symbol),z(e.toString())}function yn(e){R(L.TypeArray);let t=new Uint8Array(e.buffer);for(let e=0;e[e,t,n],2:(e,t)=>[e,t,()=>`Refine Error`]});return En(t,{check:n,error:r})}function On(e){return ue(e)&&S(e,`check`)&&S(e,`error`)&&p(e.check)&&p(e.error)}function kn(e){return Pt(e)&&S(e,`~refine`)&&d(e[`~refine`])&&b(e[`~refine`],0,e=>On(e))}function An(e){return Mt({"~kind":`Null`},{type:`null`},e)}function B(e){return Mt({"~kind":`Number`},{type:`number`},e)}function V(e){return Mt({"~kind":`String`},{type:`string`},e)}function jn(e,t={}){return Mt({"~kind":`Union`},{anyOf:e},t)}function Mn(e,t){return Array.from({length:t-e+1},(t,n)=>String.fromCharCode(e+n))}const Nn=[...Mn(97,122),...Mn(65,90)],Pn=[`0`,...Mn(49,57)];[...Pn],[...Nn,...Pn],[...Pn];function Fn(e){return S(e,`~refine`)&&d(e[`~refine`])&&b(e[`~refine`],0,e=>h(e)&&S(e,`check`)&&S(e,`error`)&&p(e.check)&&p(e.error))}function H(e){return h(e)&&!d(e)}function In(e){return oe(e)}function U(e){return H(e)||In(e)}function Ln(e){return S(e,`additionalItems`)&&U(e.additionalItems)}function Rn(e){return S(e,`additionalProperties`)&&U(e.additionalProperties)}function zn(e){return S(e,`allOf`)&&d(e.allOf)&&e.allOf.every(e=>U(e))}function Bn(e){return S(e,`$anchor`)&&g(e.$anchor)}function Vn(e){return S(e,`anyOf`)&&d(e.anyOf)&&e.anyOf.every(e=>U(e))}function Hn(e){return S(e,`const`)}function Un(e){return S(e,`contains`)&&U(e.contains)}function Wn(e){return S(e,`dependencies`)&&h(e.dependencies)&&Object.values(e.dependencies).every(e=>U(e)||d(e)&&e.every(e=>g(e)))}function Gn(e){return S(e,`dependentRequired`)&&h(e.dependentRequired)&&Object.values(e.dependentRequired).every(e=>d(e)&&e.every(e=>g(e)))}function Kn(e){return S(e,`dependentSchemas`)&&h(e.dependentSchemas)&&Object.values(e.dependentSchemas).every(e=>U(e))}function qn(e){return S(e,`$dynamicAnchor`)&&g(e.$dynamicAnchor)}function Jn(e){return S(e,`$dynamicRef`)&&g(e.$dynamicRef)}function Yn(e){return S(e,`else`)&&U(e.else)}function Xn(e){return S(e,`enum`)&&d(e.enum)}function Zn(e){return S(e,`exclusiveMaximum`)&&(m(e.exclusiveMaximum)||f(e.exclusiveMaximum))}function Qn(e){return S(e,`exclusiveMinimum`)&&(m(e.exclusiveMinimum)||f(e.exclusiveMinimum))}function $n(e){return S(e,`format`)&&g(e.format)}function er(e){return S(e,`$id`)&&g(e.$id)}function tr(e){return S(e,`if`)&&U(e.if)}function nr(e){return S(e,`items`)&&(U(e.items)||d(e.items)&&e.items.every(e=>U(e)))}function rr(e){return nr(e)&&d(e.items)}function ir(e){return S(e,`maximum`)&&(m(e.maximum)||f(e.maximum))}function ar(e){return S(e,`maxContains`)&&m(e.maxContains)}function or(e){return S(e,`maxItems`)&&m(e.maxItems)}function sr(e){return S(e,`maxLength`)&&m(e.maxLength)}function cr(e){return S(e,`maxProperties`)&&m(e.maxProperties)}function lr(e){return S(e,`minimum`)&&(m(e.minimum)||f(e.minimum))}function ur(e){return S(e,`minContains`)&&m(e.minContains)}function dr(e){return S(e,`minItems`)&&m(e.minItems)}function fr(e){return S(e,`minLength`)&&m(e.minLength)}function pr(e){return S(e,`minProperties`)&&m(e.minProperties)}function mr(e){return S(e,`multipleOf`)&&(m(e.multipleOf)||f(e.multipleOf))}function hr(e){return S(e,`not`)&&U(e.not)}function gr(e){return S(e,`oneOf`)&&d(e.oneOf)&&e.oneOf.every(e=>U(e))}function _r(e){return S(e,`pattern`)&&(g(e.pattern)||e.pattern instanceof RegExp)}function vr(e){return S(e,`patternProperties`)&&h(e.patternProperties)&&Object.values(e.patternProperties).every(e=>U(e))}function yr(e){return S(e,`prefixItems`)&&d(e.prefixItems)&&e.prefixItems.every(e=>U(e))}function br(e){return S(e,`properties`)&&h(e.properties)&&Object.values(e.properties).every(e=>U(e))}function xr(e){return S(e,`propertyNames`)&&(h(e.propertyNames)||U(e.propertyNames))}function Sr(e){return S(e,`$recursiveAnchor`)&&oe(e.$recursiveAnchor)}function Cr(e){return Sr(e)&&v(e.$recursiveAnchor,!0)}function wr(e){return S(e,`$recursiveRef`)&&g(e.$recursiveRef)}function Tr(e){return S(e,`$ref`)&&g(e.$ref)}function W(e){return S(e,`required`)&&d(e.required)&&e.required.every(e=>g(e))}function Er(e){return S(e,`then`)&&U(e.then)}function Dr(e){return S(e,`type`)&&(g(e.type)||d(e.type)&&e.type.every(e=>g(e)))}function Or(e){return S(e,`uniqueItems`)&&oe(e.uniqueItems)}function kr(e){return S(e,`unevaluatedItems`)&&U(e.unevaluatedItems)}function Ar(e){return S(e,`unevaluatedProperties`)&&U(e.unevaluatedProperties)}function jr(e){return kr(e)||Ar(e)||w(e).some(t=>Nr(e[t]))}function Mr(e){return e.some(e=>Nr(e))}function Nr(e){return d(e)?Mr(e):h(e)?jr(e):!1}function Pr(e,t){return Nr(t)||w(e).some(t=>Nr(e[t]))}var Fr=class{constructor(e){this.hasUnevaluated=e}UseUnevaluated(){return this.hasUnevaluated}Push(){return j(M(`context`,`Push`),[])}Pop(){return j(M(`context`,`Pop`),[])}AddIndex(e){return j(M(`context`,`AddIndex`),[e])}AddKey(e){return j(M(`context`,`AddKey`),[e])}Merge(e){return j(M(`context`,`Merge`),[e])}},G=class{constructor(){let e=new Set,t=new Set;this.stack=[{indices:e,keys:t}]}Push(){let e=new Set,t=new Set;return this.stack.push({indices:e,keys:t}),!0}Pop(){return this.stack.pop(),!0}AddIndex(e){return this.GetIndices().add(e),!0}AddKey(e){return this.GetKeys().add(e),!0}GetIndices(){return this.stack[this.stack.length-1].indices}GetKeys(){return this.stack[this.stack.length-1].keys}Merge(e){for(let t of e)t.GetIndices().forEach(e=>this.GetIndices().add(e)),t.GetKeys().forEach(e=>this.GetKeys().add(e));return!0}},Ir=class extends G{constructor(e){super(),this.callback=e}AddError(e){return this.callback(e),!1}},K=class extends Ir{constructor(){super(e=>this.errors.push(e)),this.errors=[]}AddError(e){return this.errors.push(e),!1}GetErrors(){return this.errors}};const Lr={identifier:`External`,variables:[]};function Rr(e){let t=`External[${Lr.variables.length}]`;return Lr.variables.push(e),t}function zr(){Lr.variables=[]}function Br(){return{...Lr}}function Vr(e,t,n,r){return k(Rr(n[`~refine`].map(e=>e)),N(0),[`refinement`,`_`],j(M(`refinement`,`check`),[r]))}function Hr(e,t,n,r){return b(n[`~refine`],0,(e,t)=>e.check(r))}function Ur(e,t,n,r,i,a){return x(i[`~refine`],0,(e,i)=>e.check(a)||t.AddError({keyword:`~refine`,schemaPath:n,instancePath:r,params:{index:i,message:e.error(a)}}))}let Wr=0;function q(){return`var_${Wr++}`}function Gr(e){return nr(e)&&d(e.items)}function Kr(e,t,n,r){if(!Gr(n))return N(!0);let[i,a]=[q(),q()],o=Y(e,t,n.additionalItems,i),s=Ge(a,N(n.items.length)),c=t.AddIndex(a),l=t.UseUnevaluated()?E(s,T(o,c)):E(s,o);return j(M(r,`every`),[A([i,a],l)])}function qr(e,t,n,r){return Gr(n)?r.every((r,i)=>pe(i,n.items.length)||bc(e,t,n.additionalItems,r)&&t.AddIndex(i)):!0}function Jr(e,t,n,r,i,a){return Gr(i)?a.every((a,o)=>{let s=`${n}/additionalItems`,c=`${r}/${o}`;return pe(o,i.items.length)||xc(e,t,s,c,i.additionalItems,a)&&t.AddIndex(o)}):!0}function Yr(e){return`^${e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}$`}function Xr(e){let t=[];return vr(e)&&t.push(...w(e.patternProperties)),br(e)&&t.push(...w(e.properties).map(Yr)),v(t.length,0)?`(?!)`:`(${t.join(`|`)})`}function Zr(e,t,n){return W(t)&&br(t)&&!vr(t)&&v(t.additionalProperties,!1)&&v(w(t.properties).length,t.required.length)}function Qr(e,t,n){return O(M(j(M(`Object`,`getOwnPropertyNames`),[n]),`length`),N(t.required.length))}function $r(e,t,n,r){let[i,a]=[q(),q()],o=Rr(new RegExp(Xr(n))),s=Y(e,t,n.additionalProperties,`${r}[${i}]`),c=j(M(o,`test`),[i]),l=t.AddKey(i),u=t.UseUnevaluated()?E(c,T(s,l)):E(c,s);return k(Ze(r),N(0),[i,a],u)}function ei(e,t,n,r){return Zr(t,n,r)?Qr(t,n,r):$r(e,t,n,r)}function ti(e,t,n,r){let i=new RegExp(Xr(n));return b(w(r),0,(a,o)=>i.test(a)||bc(e,t,n.additionalProperties,r[a])&&t.AddKey(a))}function ni(e,t,n,r,i,a){let o=new RegExp(Xr(i)),s=[];return x(w(a),0,(c,l)=>{let u=`${n}/additionalProperties`,ee=`${r}/${c}`,te=new K,ne=o.test(c)||xc(e,te,u,ee,i.additionalProperties,a[c])&&t.AddKey(c);return ne||s.push(c),ne})||t.AddError({keyword:`additionalProperties`,schemaPath:n,instancePath:r,params:{additionalProperties:s}})}function ri(e,t,n,r,i){let a=P(`results`,`[]`),o=n.map((e,t)=>P(`context_${t}`,tt(`CheckContext`,[]))),s=n.map((n,i)=>P(`condition_${i}`,j(A([`context`],X(e,t,n,r)),[`context_${i}`]))),c=n.map((e,t)=>it(`condition_${t}`,j(M(`results`,`push`),[`context_${t}`]))),l=at(T(i,t.Merge(`results`)));return j(A([],rt([a,...o,...s,...c,l])),[])}function ii(e,t,n,r){return ri(e,t,n.allOf,r,O(M(`results`,`length`),N(n.allOf.length)))}function ai(e,t,n,r){return F(n.allOf.map(n=>X(e,t,n,r)))}function oi(e,t,n,r){return t.UseUnevaluated()?ii(e,t,n,r):ai(e,t,n,r)}function si(e,t,n,r){let i=n.allOf.reduce((t,n)=>{let i=new G;return Z(e,i,n,r)?[...t,i]:t},[]);return v(i.length,n.allOf.length)&&t.Merge(i)}function ci(e,t,n,r,i,a){let o=[],s=i.allOf.reduce((t,i,s)=>{let c=`${n}/allOf/${s}`,l=new K,u=Q(e,l,c,r,i,a);return u||o.push(l),u?[...t,l]:t},[]),c=v(s.length,i.allOf.length)&&t.Merge(s);return c||o.forEach(e=>e.GetErrors().forEach(e=>t.AddError(e))),c}function li(e,t,n,r){return ri(e,t,n.anyOf,r,We(M(`results`,`length`),N(0)))}function ui(e,t,n,r){return ot(n.anyOf.map(n=>X(e,t,n,r)))}function di(e,t,n,r){return t.UseUnevaluated()?li(e,t,n,r):ui(e,t,n,r)}function fi(e,t,n,r){let i=n.anyOf.reduce((t,n)=>{let i=new G;return Z(e,i,n,r)?[...t,i]:t},[]);return fe(i.length,0)&&t.Merge(i)}function pi(e,t,n,r,i,a){let o=[],s=i.anyOf.reduce((t,i,s)=>{let c=new K,l=Q(e,c,`${n}/anyOf/${s}`,r,i,a);return l||o.push(c),l?[...t,c]:t},[]),c=fe(s.length,0)&&t.Merge(s);return c||o.forEach(e=>e.GetErrors().forEach(e=>t.AddError(e))),c||t.AddError({keyword:`anyOf`,schemaPath:n,instancePath:r,params:{}})}function mi(e,t,n,r){return N(!!n)}function hi(e,t,n,r){return n}function gi(e,t,n,r,i,a){return hi(e,t,i,a)||t.AddError({keyword:`boolean`,schemaPath:n,instancePath:r,params:{}})}function _i(e,t,n,r){return _e(n.const)?O(r,N(n.const)):$e(r,Rr(n.const))}function vi(e,t,n,r){return _e(n.const)?v(r,n.const):Oe(r,n.const)}function yi(e,t,n,r,i,a){return vi(e,t,i,a)||t.AddError({keyword:`const`,schemaPath:n,instancePath:r,params:{allowedValue:i.const}})}function bi(e){return!(ur(e)&&v(e.minContains,0))}function xi(e,t,n,r){if(!bi(n))return N(!0);let i=q();return T(D(O(M(r,`length`),N(0))),j(M(r,`some`),[A([i],X(e,t,n.contains,i))]))}function Si(e,t,n,r){return bi(n)?!v(r.length,0)&&r.some(r=>Z(e,t,n.contains,r)):!0}function Ci(e,t,n,r,i,a){return Si(e,t,i,a)||t.AddError({keyword:`contains`,schemaPath:n,instancePath:r,params:{minContains:1}})}function wi(e,t,n,r){return E(O(M(Ze(r),`length`),N(0)),F(C(n.dependencies).map(([n,i])=>{let a=D(Qe(r,N(n))),o=X(e,t,i,r);return E(a,d(i)?(e=>F(e.map(e=>Qe(r,N(e)))))(i):o)})))}function Ti(e,t,n,r){let i=v(w(r).length,0),a=b(C(n.dependencies),0,([n,i])=>!S(r,n)||(d(i)?i.every(e=>S(r,e)):Z(e,t,i,r)));return i||a}function Ei(e,t,n,r,i,a){let o=v(w(a).length,0),s=x(C(i.dependencies),0,([i,o])=>{let s=`${n}/dependencies/${i}`;return!S(a,i)||(d(o)?o.every(e=>S(a,e)||t.AddError({keyword:`dependencies`,schemaPath:n,instancePath:r,params:{property:i,dependencies:o}})):Q(e,t,s,r,o,a))});return o||s}function Di(e,t,n,r){return E(O(M(Ze(r),`length`),N(0)),F(C(n.dependentRequired).map(([e,t])=>E(D(Qe(r,N(e))),F(t.map(e=>Qe(r,N(e))))))))}function Oi(e,t,n,r){let i=v(w(r).length,0),a=b(C(n.dependentRequired),0,([e,t])=>!S(r,e)||t.every(e=>S(r,e)));return i||a}function ki(e,t,n,r,i,a){let o=v(w(a).length,0),s=x(C(i.dependentRequired),0,([e,i])=>!S(a,e)||x(i,0,o=>S(a,o)||t.AddError({keyword:`dependentRequired`,schemaPath:n,instancePath:r,params:{property:e,dependencies:i}})));return o||s}function Ai(e,t,n,r){return E(O(M(Ze(r),`length`),N(0)),F(C(n.dependentSchemas).map(([n,i])=>E(D(Qe(r,N(n))),X(e,t,i,r)))))}function ji(e,t,n,r){let i=v(w(r).length,0),a=b(C(n.dependentSchemas),0,([n,i])=>!S(r,n)||Z(e,t,i,r));return i||a}function Mi(e,t,n,r,i,a){let o=v(w(a).length,0),s=x(C(i.dependentSchemas),0,([i,o])=>{let s=`${n}/dependentSchemas/${i}`;return!S(a,i)||Q(e,t,s,r,o,a)});return o||s}function Ni(e,t,n,r){return Dc(e,t,e.DynamicRef(n)??!1,r)}function Pi(e,t,n,r){let i=e.DynamicRef(n)??!1;return U(i)&&Z(e,t,i,r)}function Fi(e,t,n,r,i,a){let o=e.DynamicRef(i)??!1;return U(o)&&Q(e,t,`#`,r,o,a)}function Ii(e,t,n,r){return ot(n.enum.map(e=>_e(e)?O(r,N(e)):$e(r,Rr(e))))}function Li(e,t,n,r){return n.enum.some(e=>_e(e)?v(r,e):Oe(r,e))}function Ri(e,t,n,r,i,a){return Li(e,t,i,a)||t.AddError({keyword:`enum`,schemaPath:n,instancePath:r,params:{allowedValues:i.enum}})}function zi(e,t,n,r){return Ge(r,N(n.exclusiveMaximum))}function Bi(e,t,n,r){return pe(r,n.exclusiveMaximum)}function Vi(e,t,n,r,i,a){return Bi(e,t,i,a)||t.AddError({keyword:`exclusiveMaximum`,schemaPath:n,instancePath:r,params:{comparison:`<`,limit:i.exclusiveMaximum}})}function Hi(e,t,n,r){return We(r,N(n.exclusiveMinimum))}function Ui(e,t,n,r){return fe(r,n.exclusiveMinimum)}function Wi(e,t,n,r,i,a){return Ui(e,t,i,a)||t.AddError({keyword:`exclusiveMinimum`,schemaPath:n,instancePath:r,params:{comparison:`>`,limit:i.exclusiveMinimum}})}const Gi=[0,31,28,31,30,31,30,31,31,30,31,30,31],Ki=/^(\d\d\d\d)-(\d\d)-(\d\d)$/;function qi(e){return e%4==0&&(e%100!=0||e%400==0)}function Ji(e){let t=Ki.exec(e);if(!t)return!1;let n=+t[1],r=+t[2],i=+t[3];return r>=1&&r<=12&&i>=1&&i<=(r===2&&qi(n)?29:Gi[r])}const Yi=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(?:Z|([+-])(\d\d):(\d\d))?$/i;function Xi(e,t=!0){let n=Yi.exec(e);if(!n)return!1;let r=+n[1],i=+n[2],a=+n[3],o=n[4]===`-`?-1:1,s=+(n[5]||0),c=+(n[6]||0);if(s>23||c>59||t&&!n[4]&&e.toLowerCase().indexOf(`z`)===-1)return!1;if(r<=23&&i<=59&&a<60)return!0;let l=i-c*o,u=r-s*o-+(l<0);return(u===23||u===-1)&&(l===59||l===-1)&&a<61}function Zi(e,t=!0){let n=e.split(/T/i);return n.length===2&&Ji(n[0])&&Xi(n[1],t)}const Qi=/^P((\d+Y(\d+M(\d+D)?)?|\d+M(\d+D)?|\d+D)(T(\d+H(\d+M(\d+S)?)?|\d+M(\d+S)?|\d+S))?|T(\d+H(\d+M(\d+S)?)?|\d+M(\d+S)?|\d+S)|\d+W)$/;function $i(e){return Qi.test(e)}const ea=/^(?!.*\.\.)[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i;function ta(e){return ea.test(e)}function na(e,t,n){e=n?Math.floor(e/700):e>>1,e+=Math.floor(e/t);let r=0;for(;e>455;)e=Math.floor(e/35),r+=36;return r+Math.floor(36*e/(e+38))}function ra(e){let t=[],n=128,r=0,i=72,a=e.lastIndexOf(`-`);if(a>0)for(let n=0;n=128)throw Error(`Invalid punycode: non-basic before delimiter`);t.push(r)}let o=a<0?0:a+1;for(;o=e.length)throw Error(`Invalid punycode: unexpected end of input`);let t=e.charCodeAt(o++),n;if(t>=97&&t<=122)n=t-97;else if(t>=48&&t<=57)n=t-48+26;else if(t>=65&&t<=90)n=t-65;else throw Error(`Invalid punycode: bad digit character`);r+=n*s;let a=c<=i?1:c>=i+26?26:c-i;if(n=1632&&e<=1641}function ga(e){return e>=1776&&e<=1785}function _a(e){return la.has(e)}function va(e){if(e.length===0)return!1;let t=[...e].map(e=>e.codePointAt(0)),n=t.length;if(t[0]===45||t[n-1]===45||n>=4&&t[2]===45&&t[3]===45||sa(t[0]))return!1;let r=!1,i=!1,a=!1;for(let e=0;e=4&&e.charCodeAt(2)===45&&e.charCodeAt(3)===45)return!1;for(let t=0;t=97&&n<=122||n>=65&&n<=90||n>=48&&n<=57||n===45))return!1}return!0}function ba(e){return e.toLowerCase().startsWith(`xn--`)}function xa(e){try{let t=e.slice(4).toLowerCase();if(t.lastIndexOf(`-`)===0)return!1;let n=ra(t);return n?va(n):!1}catch{return!1}}function Sa(e){return e.length===0||e.length>63?!1:ba(e)?xa(e):va(e)}function Ca(e){return e.length===0||e.length>63?!1:ba(e)?xa(e):ya(e)}function wa(e){if(e.length===0||e.length>253||e.charCodeAt(e.length-1)===46)return!1;for(let t of e.split(`.`))if(!Ca(t))return!1;return!0}const Ta=/^(?!.*\.\.)[\p{L}\p{N}!#$%&'*+/=?^_`{|}~-]+(?:\.[\p{L}\p{N}!#$%&'*+/=?^_`{|}~-]+)*@[\p{L}\p{N}](?:[\p{L}\p{N}-]{0,61}[\p{L}\p{N}])?(?:\.[\p{L}\p{N}](?:[\p{L}\p{N}-]{0,61}[\p{L}\p{N}])?)*$/iu;function Ea(e){return Ta.test(e)}function Da(e){if(e.length===0||e.includes(` `))return!1;let t=e.normalize(`NFC`).replace(/[\u002E\u3002\uFF0E\uFF61]/g,`.`);if(t.length>253)return!1;for(let e of t.split(`.`))if(!Sa(e))return!1;return!0}function Oa(e,t,n){let r=0,i=0,a=0,o=0;for(let s=t;s255||o===48&&a>1)return!1;r++,i=0,a=0,o=0}else if(t>=48&&t<=57)a===0&&(o=t),i=i*10+(t-48),a++;else return!1}return r===3&&a>0&&i<=255&&!(o===48&&a>1)}function ka(e){return Oa(e,0,e.length)}function Aa(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function ja(e){let t=e.length;if(t===0)return!1;let n=0,r=!1,i=0;if(e.charCodeAt(0)===58&&e.charCodeAt(1)===58){if(t===2)return!0;r=!0,i=2}for(;i4)return!1;if(n++,i===t)break;if(s!==58)return!1;if(i++,e.charCodeAt(i)===58){if(r||e.charCodeAt(i+1)===58)return!1;if(r=!0,i++,i===t)break}}return r?n<=7:n===8}function Ma(e){try{return new URL(e,`http://example.com`),!0}catch{return!1}}function Na(e){if(e.includes(` `)||e.includes(`\\`)||/[\x00-\x1F\x7F]/.test(e)||/%(?![0-9a-fA-F]{2})/.test(e))return!1;if(e===``)return!0;let t=e.indexOf(`:`);return t>0&&/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(e.substring(0,t))?Ma(e):e.match(/^([a-zA-Z][a-zA-Z0-9+\-.]*)(\/\/)/)&&t===-1?!1:Ma(e)}function Pa(e){try{return new URL(e),!0}catch{return!1}}const Fa=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i;function Ia(e){return Fa.test(e)}const La=/^(?:\/(?:[^~/]|~0|~1)*)*$/;function Ra(e){return La.test(e)}function za(e){if(e.length===0)return!1;try{return new RegExp(e),!0}catch{return!1}}const Ba=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;function Va(e){return Ba.test(e)}const Ha=/^(?!.*[^\x00-\x7F])(?!.*\\)(?:(?:[a-z][a-z0-9+\-.]*:)?(?:\/\/[^\s[\]{}<>^`|]*)?|[^\s[\]{}<>^`|]*)(?:\?[^\s[\]{}<>^`|]*)?(?:#[^\s[\]{}<>^`|]*)?$/i;function Ua(e){return Ha.test(e)}const Wa=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i;function Ga(e){return Wa.test(e)}function Ka(e){return e>=97&&e<=122||e>=65&&e<=90}function qa(e){return Ka(e)||e>=48&&e<=57}function Ja(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Ya(e){return qa(e)||e===43||e===45||e===46}function Xa(e){return qa(e)||e===45||e===46||e===95||e===126}function Za(e){return e===33||e===36||e===38||e===39||e===40||e===41||e===42||e===43||e===44||e===59||e===61}function Qa(e){return Xa(e)||Za(e)||e===58||e===64}function $a(e){let t=e.length;if(t===0||!Ka(e.charCodeAt(0)))return!1;let n=1;for(;n=i||!Ja(e.charCodeAt(t+1))||!Ja(e.charCodeAt(t+2)))return!1;t+=2}else if(!Xa(n)&&!Za(n)&&n!==58)return!1}n=i+1}if(e.charCodeAt(n)===91){for(n++;n57)return!1;n++}}for(;n=t||!Ja(e.charCodeAt(n+1))||!Ja(e.charCodeAt(n+2)))return!1;n+=2}else if(r>127)return!1;else if(!(Qa(r)||r===47||r===63||r===35))return!1;n++}return!0}const eo=/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu;function to(e){return eo.test(e)}const no=/^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;function ro(e){return no.test(e)}const J=new Map;function io(){J.clear()}function ao(){return[...J.entries()]}function oo(e,t){J.set(e,t)}function so(e){return J.has(e)}function co(e){return J.get(e)}function lo(e,t){return J.get(e)?.(t)??!0}function uo(){io(),J.set(`date-time`,Zi),J.set(`date`,Ji),J.set(`duration`,$i),J.set(`email`,ta),J.set(`hostname`,wa),J.set(`idn-email`,Ea),J.set(`idn-hostname`,Da),J.set(`ipv4`,ka),J.set(`ipv6`,ja),J.set(`iri-reference`,Na),J.set(`iri`,Pa),J.set(`json-pointer-uri-fragment`,Ia),J.set(`json-pointer`,Ra),J.set(`regex`,za),J.set(`relative-json-pointer`,Va),J.set(`time`,Xi),J.set(`uri-reference`,Ua),J.set(`uri-template`,Ga),J.set(`uri`,$a),J.set(`url`,to),J.set(`uuid`,ro)}uo();var fo=t({Clear:()=>io,Entries:()=>ao,Get:()=>co,Has:()=>so,IsDate:()=>Ji,IsDateTime:()=>Zi,IsDuration:()=>$i,IsEmail:()=>ta,IsHostname:()=>wa,IsIPv4:()=>ka,IsIPv6:()=>ja,IsIdnEmail:()=>Ea,IsIdnHostname:()=>Da,IsIri:()=>Pa,IsIriReference:()=>Na,IsJsonPointer:()=>Ra,IsJsonPointerUriFragment:()=>Ia,IsRegex:()=>za,IsRelativeJsonPointer:()=>Va,IsTime:()=>Xi,IsUri:()=>$a,IsUriReference:()=>Ua,IsUriTemplate:()=>Ga,IsUrl:()=>to,IsUuid:()=>ro,Reset:()=>uo,Set:()=>oo,Test:()=>lo});function po(e,t,n,r){return j(M(`Format`,`Test`),[N(n.format),r])}function mo(e,t,n,r){return lo(n.format,r)}function ho(e,t,n,r,i,a){return mo(e,t,i,a)||t.AddError({keyword:`format`,schemaPath:n,instancePath:r,params:{format:i.format}})}function go(e,t,n,r){let i=Er(n)?n.then:!0,a=Yn(n)?n.else:!0;return nt(X(e,t,n.if,r),X(e,t,i,r),X(e,t,a,r))}function _o(e,t,n,r){let i=Er(n)?n.then:!0,a=Yn(n)?n.else:!0;return Z(e,t,n.if,r)?Z(e,t,i,r):Z(e,t,a,r)}function vo(e,t,n,r,i,a){let o=Er(i)?i.then:!0,s=Yn(i)?i.else:!0,c=new K,l=Q(e,c,`${n}/if`,r,i.if,a)?Q(e,c,`${n}/then`,r,o,a)||t.AddError({keyword:`if`,schemaPath:n,instancePath:r,params:{failingKeyword:`then`}}):Q(e,t,`${n}/else`,r,s,a)||t.AddError({keyword:`if`,schemaPath:n,instancePath:r,params:{failingKeyword:`else`}});return l&&t.Merge([c]),l}function yo(e,t,n,r){return F(n.items.map((n,i)=>{let a=Ke(M(r,`length`),N(i)),o=Y(e,t,n,`${r}[${i}]`),s=t.AddIndex(N(i));return E(a,t.UseUnevaluated()?T(o,s):o)}))}function bo(e,t,n,r){return b(n.items,0,(n,i)=>y(r.length,i)||bc(e,t,n,r[i])&&t.AddIndex(i))}function xo(e,t,n,r,i,a){return x(i.items,0,(i,o)=>{let s=`${n}/items/${o}`,c=`${r}/${o}`;return y(a.length,o)||xc(e,t,s,c,i,a[o])&&t.AddIndex(o)})}function So(e,t,n,r){let i=yr(n)?n.prefixItems.length:0,a=Y(e,t,n.items,`element`),o=t.AddIndex(`index`),s=t.UseUnevaluated()?T(a,o):a;return k(r,N(i),[`element`,`index`],s)}function Co(e,t,n,r){return b(r,yr(n)?n.prefixItems.length:0,(r,i)=>bc(e,t,n.items,r)&&t.AddIndex(i))}function wo(e,t,n,r,i,a){return x(a,yr(i)?i.prefixItems.length:0,(a,o)=>xc(e,t,`${n}/items`,`${r}/${o}`,i.items,a)&&t.AddIndex(o))}function To(e,t,n,r){return rr(n)?yo(e,t,n,r):So(e,t,n,r)}function Eo(e,t,n,r){return rr(n)?bo(e,t,n,r):Co(e,t,n,r)}function Do(e,t,n,r,i,a){return rr(i)?xo(e,t,n,r,i,a):wo(e,t,n,r,i,a)}function Oo(e){return Un(e)}function ko(e,t,n,r){if(!Oo(n))return N(!0);let[i,a]=[q(),q()];return Ke(j(M(r,`reduce`),[A([i,a],nt(X(e,t,n.contains,a),st(i),i)),N(0)]),N(n.maxContains))}function Ao(e,t,n,r){return Oo(n)?y(r.reduce((r,i)=>Z(e,t,n.contains,i)?++r:r,0),n.maxContains):!0}function jo(e,t,n,r,i,a){let o=ur(i)?i.minContains:1;return Ao(e,t,i,a)||t.AddError({keyword:`contains`,schemaPath:n,instancePath:r,params:{minContains:o,maxContains:i.maxContains}})}function Mo(e,t,n,r){return Ke(r,N(n.maximum))}function No(e,t,n,r){return y(r,n.maximum)}function Po(e,t,n,r,i,a){return No(e,t,i,a)||t.AddError({keyword:`maximum`,schemaPath:n,instancePath:r,params:{comparison:`<=`,limit:i.maximum}})}function Fo(e,t,n,r){return Ke(M(r,`length`),N(n.maxItems))}function Io(e,t,n,r){return y(r.length,n.maxItems)}function Lo(e,t,n,r,i,a){return Io(e,t,i,a)||t.AddError({keyword:`maxItems`,schemaPath:n,instancePath:r,params:{limit:i.maxItems}})}function Ro(e,t,n,r){return Ye(r,N(n.maxLength))}function zo(e,t,n,r){return ye(r,n.maxLength)}function Bo(e,t,n,r,i,a){return zo(e,t,i,a)||t.AddError({keyword:`maxLength`,schemaPath:n,instancePath:r,params:{limit:i.maxLength}})}function Vo(e,t,n,r){return Ke(M(Ze(r),`length`),N(n.maxProperties))}function Ho(e,t,n,r){return y(w(r).length,n.maxProperties)}function Uo(e,t,n,r,i,a){return Ho(e,t,i,a)||t.AddError({keyword:`maxProperties`,schemaPath:n,instancePath:r,params:{limit:i.maxProperties}})}function Wo(e){return Un(e)}function Go(e,t,n,r){if(!Wo(n))return N(!0);let[i,a]=[q(),q()];return qe(j(M(r,`reduce`),[A([i,a],nt(X(e,t,n.contains,a),st(i),i)),N(0)]),N(n.minContains))}function Ko(e,t,n,r){return Wo(n)?me(r.reduce((r,i)=>Z(e,t,n.contains,i)?++r:r,0),n.minContains):!0}function qo(e,t,n,r,i,a){return Ko(e,t,i,a)||t.AddError({keyword:`contains`,schemaPath:n,instancePath:r,params:{minContains:i.minContains}})}function Jo(e,t,n,r){return qe(r,N(n.minimum))}function Yo(e,t,n,r){return me(r,n.minimum)}function Xo(e,t,n,r,i,a){return Yo(e,t,i,a)||t.AddError({keyword:`minimum`,schemaPath:n,instancePath:r,params:{comparison:`>=`,limit:i.minimum}})}function Zo(e,t,n,r){return qe(M(r,`length`),N(n.minItems))}function Qo(e,t,n,r){return me(r.length,n.minItems)}function $o(e,t,n,r,i,a){return Qo(e,t,i,a)||t.AddError({keyword:`minItems`,schemaPath:n,instancePath:r,params:{limit:i.minItems}})}function es(e,t,n,r){return Je(r,N(n.minLength))}function ts(e,t,n,r){return be(r,n.minLength)}function ns(e,t,n,r,i,a){return ts(e,t,i,a)||t.AddError({keyword:`minLength`,schemaPath:n,instancePath:r,params:{limit:i.minLength}})}function rs(e,t,n,r){return qe(M(Ze(r),`length`),N(n.minProperties))}function is(e,t,n,r){return me(w(r).length,n.minProperties)}function as(e,t,n,r,i,a){return is(e,t,i,a)||t.AddError({keyword:`minProperties`,schemaPath:n,instancePath:r,params:{limit:i.minProperties}})}function os(e,t,n,r){return ct(r,N(n.multipleOf))}function ss(e,t,n,r){return he(r,n.multipleOf)}function cs(e,t,n,r,i,a){return ss(e,t,i,a)||t.AddError({keyword:`multipleOf`,schemaPath:n,instancePath:r,params:{multipleOf:i.multipleOf}})}function ls(e,t,n,r){return ri(e,t,[n.not],r,D(O(M(`results`,`length`),N(1))))}function us(e,t,n,r){return D(X(e,t,n.not,r))}function ds(e,t,n,r){return t.UseUnevaluated()?ls(e,t,n,r):us(e,t,n,r)}function fs(e,t,n,r){let i=new G;return!Z(e,i,n.not,r)&&t.Merge([i])}function ps(e,t,n,r,i,a){return fs(e,t,i,a)||t.AddError({keyword:`not`,schemaPath:n,instancePath:r,params:{}})}function ms(e,t,n,r){return ri(e,t,n.oneOf,r,O(M(`results`,`length`),N(1)))}function hs(e,t,n,r){return O(j(M(et(n.oneOf.map(n=>X(e,t,n,r))),`reduce`),[A([`count`,`result`],nt(O(`result`,N(!0)),st(`count`),`count`)),N(0)]),N(1))}function gs(e,t,n,r){return t.UseUnevaluated()?ms(e,t,n,r):hs(e,t,n,r)}function _s(e,t,n,r){let i=n.oneOf.reduce((t,n)=>{let i=new G;return Z(e,i,n,r)?[...t,i]:t},[]);return v(i.length,1)&&t.Merge(i)}function vs(e,t,n,r,i,a){let o=[],s=[],c=i.oneOf.reduce((t,i,c)=>{let l=new K,u=Q(e,l,`${n}/oneOf/${c}`,r,i,a);return u&&s.push(c),u||o.push(l),u?[...t,l]:t},[]),l=v(c.length,1)&&t.Merge(c);return!l&&v(s.length,0)&&o.forEach(e=>e.GetErrors().forEach(e=>t.AddError(e))),l||t.AddError({keyword:`oneOf`,schemaPath:n,instancePath:r,params:{passingSchemas:s}})}function ys(e,t,n,r){return j(M(Rr(g(n.pattern)?new RegExp(n.pattern,`u`):n.pattern),`test`),[r])}function bs(e,t,n,r){return(g(n.pattern)?new RegExp(n.pattern,`u`):n.pattern).test(r)}function xs(e,t,n,r,i,a){return bs(e,t,i,a)||t.AddError({keyword:`pattern`,schemaPath:n,instancePath:r,params:{pattern:i.pattern}})}function Ss(e,t,n,r){return F(C(n.patternProperties).map(([n,i])=>{let[a,o]=[q(),q()],s=D(j(M(Rr(new RegExp(n,`u`)),`test`),[a])),c=Y(e,t,i,o),l=t.AddKey(a),u=t.UseUnevaluated()?E(s,T(c,l)):E(s,c);return k(Xe(r),N(0),[`[${a}, ${o}]`,`_`],u)}))}function Cs(e,t,n,r){return b(C(n.patternProperties),0,([n,i])=>{let a=new RegExp(n,`u`);return b(C(r),0,([n,r])=>!a.test(n)||bc(e,t,i,r)&&t.AddKey(n))})}function ws(e,t,n,r,i,a){return x(C(i.patternProperties),0,([i,o])=>{let s=`${n}/patternProperties/${i}`,c=new RegExp(i,`u`);return x(C(a),0,([n,i])=>{let a=`${r}/${n}`;return!c.test(n)||xc(e,t,s,a,o,i)&&t.AddKey(n)})})}function Ts(e,t,n,r){return F(n.prefixItems.map((n,i)=>{let a=Ke(M(r,`length`),N(i)),o=Y(e,t,n,`${r}[${i}]`),s=t.AddIndex(N(i));return E(a,t.UseUnevaluated()?T(o,s):o)}))}function Es(e,t,n,r){return v(r.length,0)||b(n.prefixItems,0,(n,i)=>y(r.length,i)||bc(e,t,n,r[i])&&t.AddIndex(i))}function Ds(e,t,n,r,i,a){return v(a.length,0)||x(i.prefixItems,0,(i,o)=>{let s=`${n}/prefixItems/${o}`,c=`${r}/${o}`;return y(a.length,o)||xc(e,t,s,c,i,a[o])&&t.AddIndex(o)})}function Os(e,t){return e.includes(t)||kt().exactOptionalPropertyTypes}function ks(e,t){return Ve(M(e,t))}function As(e,t){return _(e[t])}function js(e,t,n,r){let i=W(n)?n.required:[];return F(C(n.properties).map(([n,a])=>{let o=D(Qe(r,N(n))),s=Y(e,t,a,M(r,n)),c=t.AddKey(N(n)),l=t.UseUnevaluated()?T(s,c):s,u=i.includes(n)?l:E(o,l);return Os(i,n)?u:E(ks(r,n),u)}))}function Ms(e,t,n,r){let i=W(n)?n.required:[];return b(C(n.properties),0,([n,a])=>{let o=!S(r,n)||bc(e,t,a,r[n])&&t.AddKey(n);return Os(i,n)?o:As(r,n)||o})}function Ns(e,t,n,r,i,a){let o=W(i)?i.required:[];return x(C(i.properties),0,([i,s])=>{let c=`${n}/properties/${i}`,l=`${r}/${i}`,u=()=>!S(a,i)||xc(e,t,c,l,s,a[i])&&t.AddKey(i);return Os(o,i)?u():As(a,i)||u()})}function Ps(e,t,n,r){let[i,a]=[q(),q()];return k(Ze(r),N(0),[i,a],X(e,t,n.propertyNames,i))}function Fs(e,t,n,r){return b(w(r),0,(r,i)=>Z(e,t,n.propertyNames,r))}function Is(e,t,n,r,i,a){let o=[];return x(w(a),0,(t,a)=>{let s=`${r}/${t}`,c=`${n}/propertyNames`,l=Q(e,new K,c,s,i.propertyNames,t);return l||o.push(t),l})||t.AddError({keyword:`propertyNames`,schemaPath:n,instancePath:r,params:{propertyNames:o}})}function Ls(e,t,n,r){return Dc(e,t,e.RecursiveRef(n)??!1,r)}function Rs(e,t,n,r){let i=e.RecursiveRef(n)??!1;return U(i)&&Z(e,t,i,r)}function zs(e,t,n,r,i,a){let o=e.RecursiveRef(i)??!1;return U(o)&&Q(e,t,`#`,r,o,a)}function Bs(e,t,n,r){let i=A([`context`,`value`],Dc(e,t,n,`value`));return j(A([`context`,`value`],rt([P(`nextContext`,tt(`CheckContext`,[])),P(`result`,j(i,[`nextContext`,`value`])),it(`result`,t.Merge(`[nextContext]`)),at(`result`)])),[`context`,r])}function Vs(e,t,n,r){return Dc(e,t,n,r)}function Hs(e,t,n,r){let i=e.Ref(n)??!1;return t.UseUnevaluated()?Bs(e,t,i,r):Vs(e,t,i,r)}function Us(e,t,n,r){let i=e.Ref(n)??!1,a=new G,o=U(i)&&Z(e,a,i,r);return o&&t.Merge([a]),o}function Ws(e,t,n,r,i,a){let o=e.Ref(i)??!1,s=new K,c=U(o)&&Q(e,s,`#`,r,o,a);return c&&t.Merge([s]),c||s.GetErrors().forEach(e=>t.AddError(e)),c}function Gs(e,t,n,r){return F(n.required.map(e=>Qe(r,N(e))))}function Ks(e,t,n,r){return b(n.required,0,e=>S(r,e))}function qs(e,t,n,r,i,a){let o=[];return x(i.required,0,e=>{let t=S(a,e);return t||o.push(e),t})||t.AddError({keyword:`required`,schemaPath:n,instancePath:r,params:{requiredProperties:o}})}function Js(e,t,n,r){return v(n,`object`)?Le(r):v(n,`array`)?je(r):v(n,`boolean`)?Ne(r):v(n,`integer`)?Pe(r):v(n,`number`)?Ie(r):v(n,`null`)?Fe(r):v(n,`string`)?ze(r):v(n,`bigint`)?Me(r):v(n,`constructor`)?Ue(r):v(n,`function`)?He(r):v(n,`symbol`)?Be(r):v(n,`undefined`)||v(n,`void`)?Ve(r):N(!0)}function Ys(e,t,n,r,i){return v(n,`object`)?ue(i):v(n,`array`)?d(i):v(n,`boolean`)?oe(i):v(n,`integer`)?ce(i):v(n,`number`)?m(i):v(n,`null`)?le(i):v(n,`string`)?g(i):v(n,`bigint`)?f(i):v(n,`constructor`)?se(i):v(n,`function`)?p(i):v(n,`symbol`)?de(i):v(n,`undefined`)||v(n,`void`)?_(i):!0}function Xs(e,t,n,r){return ot(n.map(n=>Js(e,t,n,r)))}function Zs(e,t,n,r,i){return n.some(n=>Ys(e,t,n,r,i))}function Qs(e,t,n,r){return d(n.type)?Xs(e,t,n.type,r):Js(e,t,n.type,r)}function $s(e,t,n,r){return d(n.type)?Zs(e,t,n.type,n,r):Ys(e,t,n.type,n,r)}function ec(e,t,n,r,i,a){return(d(i.type)?Zs(e,t,i.type,i,a):Ys(e,t,i.type,i,a))||t.AddError({keyword:`type`,schemaPath:n,instancePath:r,params:{type:i.type}})}function tc(e,t,n,r){let[i,a]=[q(),q()],o=j(M(`context`,`GetIndices`),[]),s=j(M(`indices`,`has`),[i]),c=X(e,t,n.unevaluatedItems,a),l=j(M(`context`,`AddIndex`),[i]),u=k(r,N(0),[a,i],T(E(s,c),l));return j(A([`context`],rt([P(`indices`,o),at(u)])),[`context`])}function nc(e,t,n,r){let i=t.GetIndices();return b(r,0,(r,a)=>(i.has(a)||Z(e,t,n.unevaluatedItems,r))&&t.AddIndex(a))}function rc(e,t,n,r,i,a){let o=t.GetIndices(),s=[];return x(a,0,(a,c)=>{let l=new K,u=(o.has(c)||Q(e,l,n,r,i.unevaluatedItems,a))&&t.AddIndex(c);return u||s.push(c),u})||t.AddError({keyword:`unevaluatedItems`,schemaPath:n,instancePath:r,params:{unevaluatedItems:s}})}function ic(e,t,n,r){let[i,a]=[q(),q()],o=j(M(`context`,`GetKeys`),[]),s=j(M(`keys`,`has`),[i]),c=j(M(`context`,`AddKey`),[i]),l=X(e,t,n.unevaluatedProperties,a),u=k(Xe(r),N(0),[`[${i}, ${a}]`,`_`],E(s,T(l,c)));return j(A([`context`],rt([P(`keys`,o),at(u)])),[`context`])}function ac(e,t,n,r){let i=t.GetKeys();return b(C(r),0,([r,a])=>i.has(r)||Z(e,t,n.unevaluatedProperties,a)&&t.AddKey(r))}function oc(e,t,n,r,i,a){let o=t.GetKeys(),s=[];return x(C(a),0,([a,c])=>{let l=new K,u=o.has(a)||Q(e,l,n,r,i.unevaluatedProperties,c)&&t.AddKey(a);return u||s.push(a),u})||t.AddError({keyword:`unevaluatedProperties`,schemaPath:n,instancePath:r,params:{unevaluatedProperties:s}})}function sc(e){return!v(e.uniqueItems,!1)}function cc(e,t,n,r){return sc(n)?O(M(tt(`Set`,[j(M(r,`map`),[M(`Hashing`,`Hash`)])]),`size`),M(r,`length`)):N(!0)}function lc(e,t,n,r){if(!sc(n))return!0;let i=new Set(r.map(Sn)).size,a=r.length;return v(i,a)}function uc(e,t,n,r,i,a){if(!sc(i))return!0;let o=new Set,s=a.reduce((e,t,n)=>{let r=Sn(t);return o.has(r)?[...e,n]:(o.add(r),e)},[]);return v(s.length,0)||t.AddError({keyword:`uniqueItems`,schemaPath:n,instancePath:r,params:{duplicateItems:s}})}function dc(e,t){return Dr(e)&&(d(e.type)&&e.type.includes(t)||v(e.type,t))}function fc(e){return dc(e,`object`)}function pc(e){return H(e)&&(Rn(e)||Wn(e)||Gn(e)||Kn(e)||br(e)||vr(e)||xr(e)||pr(e)||cr(e)||W(e)||Ar(e))}function mc(e){return dc(e,`array`)}function hc(e){return H(e)&&(Ln(e)||nr(e)||Un(e)||ar(e)||or(e)||ur(e)||dr(e)||yr(e)||kr(e)||Or(e))}function gc(e){return dc(e,`string`)}function _c(e){return H(e)&&(fr(e)||sr(e)||$n(e)||_r(e))}function vc(e){return dc(e,`number`)||dc(e,`bigint`)}function yc(e){return H(e)&&(lr(e)||ir(e)||Zn(e)||Qn(e)||mr(e))}function Y(e,t,n,r){return t.UseUnevaluated()?T(T(t.Push(),X(e,t,n,r)),t.Pop()):X(e,t,n,r)}function X(e,t,n,r){e.Push(n);let i=[];if(In(n))return mi(e,t,n,r);if(Dr(n)&&i.push(Qs(e,t,n,r)),pc(n)){let a=[];W(n)&&a.push(Gs(e,t,n,r)),Rn(n)&&a.push(ei(e,t,n,r)),Wn(n)&&a.push(wi(e,t,n,r)),Gn(n)&&a.push(Di(e,t,n,r)),Kn(n)&&a.push(Ai(e,t,n,r)),vr(n)&&a.push(Ss(e,t,n,r)),br(n)&&a.push(js(e,t,n,r)),xr(n)&&a.push(Ps(e,t,n,r)),pr(n)&&a.push(rs(e,t,n,r)),cr(n)&&a.push(Vo(e,t,n,r));let o=F(a),s=E(D(Le(r)),o);i.push(fc(n)?o:s)}if(hc(n)){let a=[];Ln(n)&&a.push(Kr(e,t,n,r)),Un(n)&&a.push(xi(e,t,n,r)),nr(n)&&a.push(To(e,t,n,r)),ar(n)&&a.push(ko(e,t,n,r)),or(n)&&a.push(Fo(e,t,n,r)),ur(n)&&a.push(Go(e,t,n,r)),dr(n)&&a.push(Zo(e,t,n,r)),yr(n)&&a.push(Ts(e,t,n,r)),Or(n)&&a.push(cc(e,t,n,r));let o=F(a),s=E(D(je(r)),o);i.push(mc(n)?o:s)}if(_c(n)){let a=[];sr(n)&&a.push(Ro(e,t,n,r)),fr(n)&&a.push(es(e,t,n,r)),$n(n)&&a.push(po(e,t,n,r)),_r(n)&&a.push(ys(e,t,n,r));let o=F(a),s=E(D(ze(r)),o);i.push(gc(n)?o:s)}if(yc(n)){let a=[];Zn(n)&&a.push(zi(e,t,n,r)),Qn(n)&&a.push(Hi(e,t,n,r)),ir(n)&&a.push(Mo(e,t,n,r)),lr(n)&&a.push(Jo(e,t,n,r)),mr(n)&&a.push(os(e,t,n,r));let o=F(a),s=E(D(E(Ie(r),Me(r))),o);i.push(vc(n)?o:s)}Tr(n)&&i.push(Hs(e,t,n,r)),wr(n)&&i.push(Ls(e,t,n,r)),Jn(n)&&i.push(Ni(e,t,n,r)),Hn(n)&&i.push(_i(e,t,n,r)),Xn(n)&&i.push(Ii(e,t,n,r)),tr(n)&&i.push(go(e,t,n,r)),hr(n)&&i.push(ds(e,t,n,r)),zn(n)&&i.push(oi(e,t,n,r)),Vn(n)&&i.push(di(e,t,n,r)),gr(n)&&i.push(gs(e,t,n,r)),kr(n)&&i.push(E(D(je(r)),tc(e,t,n,r))),Ar(n)&&i.push(E(D(Re(r)),ic(e,t,n,r))),Fn(n)&&i.push(Vr(e,t,n,r));let a=F(i);return e.Pop(n),a}function bc(e,t,n,r){return t.Push()&&Z(e,t,n,r)&&t.Pop()}function Z(e,t,n,r){e.Push(n);let i=In(n)?hi(e,t,n,r):(!Dr(n)||$s(e,t,n,r))&&(!(h(r)&&!d(r))||(!W(n)||Ks(e,t,n,r))&&(!Rn(n)||ti(e,t,n,r))&&(!Wn(n)||Ti(e,t,n,r))&&(!Gn(n)||Oi(e,t,n,r))&&(!Kn(n)||ji(e,t,n,r))&&(!vr(n)||Cs(e,t,n,r))&&(!br(n)||Ms(e,t,n,r))&&(!xr(n)||Fs(e,t,n,r))&&(!pr(n)||is(e,t,n,r))&&(!cr(n)||Ho(e,t,n,r)))&&(!d(r)||(!Ln(n)||qr(e,t,n,r))&&(!Un(n)||Si(e,t,n,r))&&(!nr(n)||Eo(e,t,n,r))&&(!ar(n)||Ao(e,t,n,r))&&(!or(n)||Io(e,t,n,r))&&(!ur(n)||Ko(e,t,n,r))&&(!dr(n)||Qo(e,t,n,r))&&(!yr(n)||Es(e,t,n,r))&&(!Or(n)||lc(e,t,n,r)))&&(!g(r)||(!sr(n)||zo(e,t,n,r))&&(!fr(n)||ts(e,t,n,r))&&(!$n(n)||mo(e,t,n,r))&&(!_r(n)||bs(e,t,n,r)))&&(!(m(r)||f(r))||(!Zn(n)||Bi(e,t,n,r))&&(!Qn(n)||Ui(e,t,n,r))&&(!ir(n)||No(e,t,n,r))&&(!lr(n)||Yo(e,t,n,r))&&(!mr(n)||ss(e,t,n,r)))&&(!Tr(n)||Us(e,t,n,r))&&(!wr(n)||Rs(e,t,n,r))&&(!Jn(n)||Pi(e,t,n,r))&&(!Hn(n)||vi(e,t,n,r))&&(!Xn(n)||Li(e,t,n,r))&&(!tr(n)||_o(e,t,n,r))&&(!hr(n)||fs(e,t,n,r))&&(!zn(n)||si(e,t,n,r))&&(!Vn(n)||fi(e,t,n,r))&&(!gr(n)||_s(e,t,n,r))&&(!kr(n)||!d(r)||nc(e,t,n,r))&&(!Ar(n)||!h(r)||ac(e,t,n,r))&&(!Fn(n)||Hr(e,t,n,r));return e.Pop(n),i}function xc(e,t,n,r,i,a){return t.Push()&&Q(e,t,n,r,i,a)&&t.Pop()}function Q(e,t,n,r,i,a){e.Push(i);let o=In(i)?gi(e,t,n,r,i,a):!!((!Dr(i)||ec(e,t,n,r,i,a))&+(!(h(a)&&!d(a))||!!((!W(i)||qs(e,t,n,r,i,a))&+(!Rn(i)||ni(e,t,n,r,i,a))&(!Wn(i)||Ei(e,t,n,r,i,a))&(!Gn(i)||ki(e,t,n,r,i,a))&(!Kn(i)||Mi(e,t,n,r,i,a))&(!vr(i)||ws(e,t,n,r,i,a))&(!br(i)||Ns(e,t,n,r,i,a))&(!xr(i)||Is(e,t,n,r,i,a))&(!pr(i)||as(e,t,n,r,i,a))&(!cr(i)||Uo(e,t,n,r,i,a))))&(!d(a)||!!((!Ln(i)||Jr(e,t,n,r,i,a))&+(!Un(i)||Ci(e,t,n,r,i,a))&(!nr(i)||Do(e,t,n,r,i,a))&(!ar(i)||jo(e,t,n,r,i,a))&(!or(i)||Lo(e,t,n,r,i,a))&(!ur(i)||qo(e,t,n,r,i,a))&(!dr(i)||$o(e,t,n,r,i,a))&(!yr(i)||Ds(e,t,n,r,i,a))&(!Or(i)||uc(e,t,n,r,i,a))))&(!g(a)||!!((!sr(i)||Bo(e,t,n,r,i,a))&+(!fr(i)||ns(e,t,n,r,i,a))&(!$n(i)||ho(e,t,n,r,i,a))&(!_r(i)||xs(e,t,n,r,i,a))))&(!(m(a)||f(a))||!!((!Zn(i)||Vi(e,t,n,r,i,a))&+(!Qn(i)||Wi(e,t,n,r,i,a))&(!ir(i)||Po(e,t,n,r,i,a))&(!lr(i)||Xo(e,t,n,r,i,a))&(!mr(i)||cs(e,t,n,r,i,a))))&(!Tr(i)||Ws(e,t,n,r,i,a))&(!wr(i)||zs(e,t,n,r,i,a))&(!Jn(i)||Fi(e,t,n,r,i,a))&(!Hn(i)||yi(e,t,n,r,i,a))&(!Xn(i)||Ri(e,t,n,r,i,a))&(!tr(i)||vo(e,t,n,r,i,a))&(!hr(i)||ps(e,t,n,r,i,a))&(!zn(i)||ci(e,t,n,r,i,a))&(!Vn(i)||pi(e,t,n,r,i,a))&(!gr(i)||vs(e,t,n,r,i,a))&(!kr(i)||!d(a)||rc(e,t,n,r,i,a))&(!Ar(i)||!h(a)||oc(e,t,n,r,i,a)))&&(!Fn(i)||Ur(e,t,n,r,i,a));return e.Pop(i),o}const Sc=new Map;function Cc(e,t,n,r){return e.UseUnevaluated()?j(`check_${n}`,[`context`,r]):j(`check_${n}`,[r])}function wc(e,t,n,r){let i=X(e,t,n,`value`);return t.UseUnevaluated()?P(`check_${r}`,A([`context`,`value`],i)):P(`check_${r}`,A([`value`],i))}function Tc(){Sc.clear()}function Ec(){return[...Sc.values()]}function Dc(e,t,n,r){let i=H(n)?Sn({__baseURL:e.BaseURL().href,...n}):Sn(n),a=Cc(t,n,i,r);return Sc.has(i)?a:(Sc.set(i,``),Sc.set(i,wc(e,t,n,i)),a)}function Oc(e,t){return h(t)&&!Se(e)?t[e]:void 0}function kc(e,t){return e.reduce((e,t)=>Oc(t,e),t)}function Ac(e){if(v(e.length,0))return[];let t=e.split(`/`).map(e=>e.replace(/~1/g,`/`).replace(/~0/g,`~`));return t.length>0&&t[0]===``?t.slice(1):t}function jc(e,t){return kc(Ac(t),e)}function Mc(e,t,n){if(e.$id===n.hash)return e;let r=new URL(e.$id,t.href),i=new URL(n.href,t.href);if(v(r.pathname,i.pathname))return n.hash.startsWith(`#`)?Fc(e,t,n):e}function Nc(e,t,n){let r=new URL(`#${e.$anchor}`,t.href),i=new URL(n.href,t.href);return v(r.href,i.href)?e:void 0}function Pc(e,t,n){let r=new URL(`#${e.$dynamicAnchor}`,t.href),i=new URL(n.href,t.href);return v(r.href,i.href)?e:void 0}function Fc(e,t,n){if(n.href.endsWith(`#`))return e;if(!n.hash.startsWith(`#`))return;let r=decodeURIComponent(n.hash.slice(1));if(r.startsWith(`/`))return jc(e,r)}function Ic(e,t,n){if(er(e)){let r=Mc(e,t,n);if(!_(r))return r}if(Bn(e)){let r=Nc(e,t,n);if(!_(r))return r}if(qn(e)){let r=Pc(e,t,n);if(!_(r))return r}return Fc(e,t,n)}function Lc(e,t,n){return e.reduce((e,r)=>{let i=zc(r,t,n);return _(i)?e:i},void 0)}function Rc(e,t,n){return w(e).reduce((r,i)=>{let a=zc(e[i],t,n);return _(a)?r:a},void 0)}function zc(e,t,n){let r=H(e)&&er(e)?new URL(e.$id,t.href):t;if(H(e)){let t=Ic(e,r,n);if(!_(t))return t}if(d(e))return Lc(e,r,n);if(h(e))return Rc(e,r,n)}function Bc(e,t){let n=new URL(`http://unknown/`),r=er(e)?new URL(e.$id,n.href):n;return zc(e,r,new URL(t,r.href))}function Vc(e,t,n,r){let i=n.$dynamicRef.startsWith(`#`)?Bc(t,n.$dynamicRef):Bc(e,n.$dynamicRef);if(!_(i))return!H(i)||!qn(i)||new URL(n.$dynamicRef,`http://unknown/`).hash.startsWith(`#/`)?i:r.find(e=>e.$dynamicAnchor===i.$dynamicAnchor)??i}var Hc=function(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)},$,Uc,Wc,Gc,Kc,qc=class{constructor(e,t){$.add(this),this.context=e,this.schema=t,this.ids=[],this.anchors=[],this.recursiveAnchors=[],this.dynamicAnchors=[]}BaseURL(){return this.ids.reduce((e,t)=>new URL(t.$id,e),new URL(`http://unknown`))}Base(){return this.ids[this.ids.length-1]??this.schema}Push(e){H(e)&&(er(e)&&(this.ids.push(e),Hc(this,$,`m`,Uc).call(this,e)),Bn(e)&&this.anchors.push(e),Cr(e)&&this.recursiveAnchors.push(e),qn(e)&&this.dynamicAnchors.push(e))}Pop(e){H(e)&&(er(e)&&(this.ids.pop(),Hc(this,$,`m`,Wc).call(this,e)),Bn(e)&&this.anchors.pop(),Cr(e)&&this.recursiveAnchors.pop(),qn(e)&&this.dynamicAnchors.pop())}Ref(e){return Hc(this,$,`m`,Gc).call(this,e)??Hc(this,$,`m`,Kc).call(this,e)}RecursiveRef(e){return Cr(this.Base())?Bc(this.recursiveAnchors[0],e.$recursiveRef):Bc(this.Base(),e.$recursiveRef)}DynamicRef(e){let t=this.schema;return Vc(t,this.Base(),e,this.dynamicAnchors)}};$=new WeakSet,Uc=function e(t,n=!0){if(!H(t))return;let r=t;if(!(!n&&er(r))){!n&&qn(r)&&this.dynamicAnchors.push(r);for(let t of w(r))Hc(this,$,`m`,e).call(this,r[t],!1)}},Wc=function e(t,n=!0){if(!H(t))return;let r=t;if(!(!n&&er(r))){!n&&qn(r)&&this.dynamicAnchors.pop();for(let t of w(r))Hc(this,$,`m`,e).call(this,r[t],!1)}},Gc=function(e){return S(this.context,e.$ref)?this.context[e.$ref]:void 0},Kc=function(e){let t=this.schema;return e.$ref.startsWith(`#`)?Bc(this.Base(),e.$ref):Bc(t,e.$ref)};function Jc(e){return`${e.Functions().join(`; +`)}; return (value) => { ${(e.UseUnevaluated()?[`const context = new CheckContext({}, {})`,`return ${e.Entry()}`]:[`return ${e.Entry()}`]).join(`; `)} }`}function Yc(e,t){return qt(`CheckContext`,`Guard`,`Format`,`Hashing`,e.External().identifier,t)(G,ae,fo,Yt,e.External().variables)}function Xc(e){let t=new qc(e.Context(),e.Schema()),n=new G;return r=>Z(t,n,e.Schema(),r)}function Zc(e,t){return Kt()?Yc(e,t):Xc(e)}var Qc=class{constructor(e,t,n){this.isAccelerated=e,this.code=t,this.check=n}IsAccelerated(){return this.isAccelerated}Code(){return this.code}Check(e){return this.check(e)}},$c=class{constructor(e,t,n,r,i,a){this.context=e,this.schema=t,this.external=n,this.functions=r,this.entry=i,this.useUnevaluated=a}Context(){return this.context}Schema(){return this.schema}UseUnevaluated(){return this.useUnevaluated}External(){return this.external}Functions(){return this.functions}Entry(){return this.entry}Evaluate(){let e=Jc(this),t=Zc(this,e);return new Qc(Kt(),e,t)}};function el(...e){let[t,n]=Bt(e,{2:(e,t)=>[e,t],1:e=>[{},e]});zr(),Tc();let r=new qc(t,n),i=new Fr(Pr(t,n)),a=Dc(r,i,n,`value`),o=Ec();return new $c(t,n,Br(),o,a,i.UseUnevaluated())}function tl(...e){let[t,n,r]=Bt(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]}),i=kt(),a=Tn(),o=[];return[Q(new qc(t,n),new Ir(e=>{if(!me(o.length,i.maxErrors))return o.push({...e,message:a(e)})}),`#`,``,n,r),o]}var nl=class{constructor(e,t,n){this.schema=e,this.value=t,this.errors=n}},rl=class{constructor(e,t){this.buildResult=el(e,t),this.evaluateResult=this.buildResult.Evaluate()}IsAccelerated(){return this.evaluateResult.IsAccelerated()}Schema(){return this.buildResult.Schema()}Check(e){return this.evaluateResult.Check(e)}Parse(e){if(this.evaluateResult.Check(e))return e;let[t,n]=tl(this.buildResult.Context(),this.buildResult.Schema(),e);throw new nl(this.buildResult.Schema(),e,n)}Errors(e){return tl(this.buildResult.Context(),this.buildResult.Schema(),e)}};function il(...e){let[t,n]=Bt(e,{2:(e,t)=>[e,t],1:e=>[{},e]});return new rl(t,n)}const al=Dn(zt({}),e=>e instanceof Date),ol=Rt({id:B(),created:al,title:V({minLength:1,maxLength:100}),type:Ut([`jpg`,`png`]),size:B(),url:V({format:`url`})}),sl=Rt({id:B(),stars:B({minimum:1,maximum:5}),title:V({minLength:1,maxLength:100}),text:V({minLength:1,maxLength:1e3}),images:Ft(ol)});il(Rt({id:B(),created:al,title:V({minLength:1,maxLength:100}),brand:V({minLength:1,maxLength:30}),description:V({minLength:1,maxLength:500}),price:B({minimum:1,maximum:1e4}),discount:jn([B({minimum:1,maximum:100}),An()]),quantity:B({minimum:1,maximum:10}),tags:Ft(V({minLength:1,maxLength:30})),images:Ft(ol),ratings:Ft(sl)})).Parse({}); \ No newline at end of file diff --git a/schemas/libraries/typebox/download_compiled/schema + compile/unminified.js b/schemas/libraries/typebox/download_compiled/schema + compile/unminified.js index ecf9d4bf..36e276ba 100644 --- a/schemas/libraries/typebox/download_compiled/schema + compile/unminified.js +++ b/schemas/libraries/typebox/download_compiled/schema + compile/unminified.js @@ -10,7 +10,7 @@ var __exportAll = (all, no_symbols) => { return target; }; //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/memory/metrics.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/memory/metrics.mjs /** TypeBox instantiation metrics */ const Metrics = { assign: 0, @@ -20,7 +20,7 @@ const Metrics = { update: 0 }; //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/guard/string.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/guard/string.mjs function IsBetween(value, min, max) { return value >= min && value <= max; } @@ -114,7 +114,7 @@ function IsMaxLengthFast(value, maxLength) { return true; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/guard/guard.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/guard/guard.mjs var guard_exports = /* @__PURE__ */ __exportAll({ Entries: () => Entries$2, EntriesRegExp: () => EntriesRegExp, @@ -123,7 +123,6 @@ var guard_exports = /* @__PURE__ */ __exportAll({ GraphemeCount: () => GraphemeCount, HasPropertyKey: () => HasPropertyKey$1, IsArray: () => IsArray$1, - IsAsyncIterator: () => IsAsyncIterator$1, IsBigInt: () => IsBigInt$1, IsBoolean: () => IsBoolean$2, IsClassInstance: () => IsClassInstance, @@ -134,7 +133,6 @@ var guard_exports = /* @__PURE__ */ __exportAll({ IsGreaterEqualThan: () => IsGreaterEqualThan$1, IsGreaterThan: () => IsGreaterThan$1, IsInteger: () => IsInteger$1, - IsIterator: () => IsIterator$1, IsLessEqualThan: () => IsLessEqualThan$1, IsLessThan: () => IsLessThan$1, IsMaxLength: () => IsMaxLength$2, @@ -158,10 +156,6 @@ var guard_exports = /* @__PURE__ */ __exportAll({ function IsArray$1(value) { return Array.isArray(value); } -/** Returns true if this value is an async iterator */ -function IsAsyncIterator$1(value) { - return IsObject$1(value) && Symbol.asyncIterator in value; -} /** Returns true if this value is bigint */ function IsBigInt$1(value) { return IsEqual$1(typeof value, "bigint"); @@ -186,10 +180,6 @@ function IsFunction$1(value) { function IsInteger$1(value) { return Number.isInteger(value); } -/** Returns true if this value is an iterator */ -function IsIterator$1(value) { - return IsObject$1(value) && Symbol.iterator in value; -} /** Returns true if this value is null */ function IsNull$1(value) { return IsEqual$1(value, null); @@ -319,7 +309,7 @@ function IsDeepEqual$1(left, right) { return IsArray$1(left) ? DeepEqualArray(left, right) : IsObject$1(left) ? DeepEqualObject(left, right) : IsEqual$1(left, right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/guard/emit.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/guard/emit.mjs const identifierRegExp = /^[\p{ID_Start}_$][\p{ID_Continue}_$\u200C\u200D]*$/u; /** Returns true if this value is a valid JavaScript identifier */ function IsIdentifier(value) { @@ -338,10 +328,6 @@ function Not(expr) { function IsArray(value) { return `Array.isArray(${value})`; } -/** Returns true if this value is an async iterator */ -function IsAsyncIterator(value) { - return `Guard.IsAsyncIterator(${value})`; -} /** Returns true if this value is bigint */ function IsBigInt(value) { return `typeof ${value} === "bigint"`; @@ -354,10 +340,6 @@ function IsBoolean$1(value) { function IsInteger(value) { return `Number.isInteger(${value})`; } -/** Returns true if this value is an iterator */ -function IsIterator(value) { - return `Guard.IsIterator(${value})`; -} /** Returns true if this value is null */ function IsNull(value) { return `${value} === null`; @@ -474,7 +456,7 @@ function MultipleOf(dividend, divisor) { return `Guard.IsMultipleOf(${dividend}, ${divisor})`; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/guard/globals.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/guard/globals.mjs function IsBoolean(value) { return value instanceof Boolean; } @@ -495,21 +477,27 @@ function IsRegExp(value) { function IsDate$1(value) { return value instanceof globalThis.Date; } -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/memory/clone.mjs -function IsGuard$1(value) { - return IsObject$1(value) && HasPropertyKey$1(value, "~guard"); +/** Returns true if the value is a Set */ +function IsSet(value) { + return value instanceof globalThis.Set; +} +/** Returns true if the value is a Map */ +function IsMap(value) { + return value instanceof globalThis.Map; } -function FromGuard(value) { +//#endregion +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/memory/clone.mjs +function FromClassInstance(value) { return value; } -function FromArray$2(value) { - return value.map((value) => FromValue$2(value)); +function IsKindedObject(value) { + return HasPropertyKey$1(value, "~kind"); } -function FromObject$2(value) { +function FromKindedObject(value) { const result = {}; const descriptors = Object.getOwnPropertyDescriptors(value); for (const key of Object.keys(descriptors)) { + if (IsUnsafePropertyKey(key)) continue; const descriptor = descriptors[key]; if (HasPropertyKey$1(descriptor, "value")) Object.defineProperty(result, key, { ...descriptor, @@ -518,26 +506,46 @@ function FromObject$2(value) { } return result; } +function FromPlainObject(value) { + const result = {}; + for (const key of Keys$1(value)) { + if (IsUnsafePropertyKey(key)) continue; + result[key] = FromValue$2(value[key]); + } + for (const key of Symbols(value)) result[key] = FromValue$2(value[key]); + return result; +} +function FromObject$2(value) { + return IsClassInstance(value) ? FromClassInstance(value) : IsKindedObject(value) ? FromKindedObject(value) : FromPlainObject(value); +} +function FromArray$2(value) { + return value.map((element) => FromValue$2(element)); +} +function FromTypedArray(value) { + return value.slice(); +} function FromRegExp$1(value) { return new RegExp(value.source, value.flags); } -function FromUnknown(value) { - return value; +function FromMap(value) { + return new Map(FromValue$2([...value.entries()])); +} +function FromSet(value) { + return new Set(FromValue$2([...value.values()])); } function FromValue$2(value) { - return value instanceof RegExp ? FromRegExp$1(value) : IsGuard$1(value) ? FromGuard(value) : IsArray$1(value) ? FromArray$2(value) : IsObject$1(value) ? FromObject$2(value) : FromUnknown(value); + return IsTypeArray(value) ? FromTypedArray(value) : IsRegExp(value) ? FromRegExp$1(value) : IsMap(value) ? FromMap(value) : IsSet(value) ? FromSet(value) : IsArray$1(value) ? FromArray$2(value) : IsObject$1(value) ? FromObject$2(value) : value; } /** -* Clones a value using the TypeBox type cloning strategy. This function preserves non-enumerable -* properties from the source value. This is to ensure cloned types retain discriminable -* hidden properties. +* Returns a Clone of the given value. This function is similar to structuredClone() +* but also supports deep cloning instances of Map, Set and TypeArray. */ function Clone(value) { Metrics.clone += 1; return FromValue$2(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/settings/settings.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/settings/settings.mjs const settings = { immutableTypes: false, maxErrors: 8, @@ -552,7 +560,7 @@ function Get$3() { return settings; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/memory/create.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/memory/create.mjs function MergeHidden(left, right) { for (const key of Object.keys(right)) Object.defineProperty(left, key, { configurable: true, @@ -581,7 +589,7 @@ function Create(hidden, enumerable, options = {}) { return settings.immutableTypes ? Object.freeze(withHidden) : withHidden; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/memory/update.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/memory/update.mjs /** * Updates a value with new properties while preserving property enumerability. Use this function to modify * existing types without altering their configuration. @@ -605,12 +613,12 @@ function Update(current, hidden, enumerable) { return result; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/schema.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/schema.mjs function IsSchema$1(value) { return IsObject$1(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/array.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/array.mjs /** Creates an Array type. */ function _Array_(items, options) { return Create({ "~kind": "Array" }, { @@ -619,19 +627,19 @@ function _Array_(items, options) { }, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/_optional.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/_optional.mjs /** Returns true if the given value is TOptional */ function IsOptional(value) { return IsSchema$1(value) && HasPropertyKey$1(value, "~optional"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/properties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/properties.mjs /** Creates a RequiredArray derived from the given TProperties value. */ function RequiredArray(properties) { return Keys$1(properties).filter((key) => !IsOptional(properties[key])); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/object.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/object.mjs /** Creates an Object type. */ function _Object_(properties, options = {}) { const requiredKeys = RequiredArray(properties); @@ -642,13 +650,13 @@ function _Object_(properties, options = {}) { }, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/unsafe.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/unsafe.mjs /** Creates a Unsafe type. */ function Unsafe(schema) { return Update(schema, { ["~unsafe"]: null }, {}); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/arguments/arguments.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/arguments/arguments.mjs /** * Match arguments for overloaded functions that use the `...args: unknown[]` pattern. Arguments * are parsed using argument length only. @@ -659,7 +667,7 @@ function Match$1(args, match) { })(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/enum/typescript_enum_to_enum_values.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/enum/typescript_enum_to_enum_values.mjs function IsTypeScriptEnumLike(value) { return IsObjectNotArray$1(value); } @@ -667,13 +675,13 @@ function TypeScriptEnumToEnumValues(type) { return Keys$1(type).filter((key) => isNaN(key)).reduce((result, key) => [...result, type[key]], []); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/enum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/enum.mjs /** Creates an Enum type. */ function Enum(value, options) { return Create({ "~kind": "Enum" }, { enum: IsTypeScriptEnumLike(value) ? TypeScriptEnumToEnumValues(value) : value }, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/environment/evaluate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/environment/evaluate.mjs let supported = void 0; function TryEvaluate() { try { @@ -698,13 +706,13 @@ function Evaluate(...args) { return new globalThis.Function(...args); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/unreachable/unreachable.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/unreachable/unreachable.mjs /** Used for unreachable logic */ function Unreachable() { throw new Error("Unreachable"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/hashing/hash.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/hashing/hash.mjs var hash_exports = /* @__PURE__ */ __exportAll({ Hash: () => Hash, HashCode: () => HashCode @@ -823,7 +831,7 @@ function Hash(value) { return HashCode(value).toString(16).padStart(16, "0"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/locale/en_US.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/locale/en_US.mjs /** en_US: English (United States) - ISO 639-1 language code 'en' with ISO 3166-1 alpha-2 country code 'US' for United States. */ function en_US(error) { switch (error.keyword) { @@ -857,27 +865,26 @@ function en_US(error) { case "unevaluatedItems": return "must not have unevaluated items"; case "unevaluatedProperties": return "must not have unevaluated properties"; case "uniqueItems": return `must not have duplicate items`; - case "~guard": return `must match check function`; case "~refine": return error.params.message; default: return "an unknown validation error occurred"; } } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/locale/_config.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/locale/_config.mjs let locale = en_US; /** Gets the locale */ function Get$2() { return locale; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/_refine.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/_refine.mjs /** Applies a Refine check to the given type. */ function RefineAdd(type, refinement) { return Update(type, { "~refine": IsRefine$1(type) ? [...type["~refine"], refinement] : [refinement] }, {}); } /** Refines a type with an explicit check */ function Refine(...args) { - const [type, check, error_or_message] = Match$1(args, { + const [type, check, error] = Match$1(args, { 3: (type, check, error) => [ type, check, @@ -891,7 +898,7 @@ function Refine(...args) { }); return RefineAdd(type, { check, - error: IsString$2(error_or_message) ? () => error_or_message : error_or_message + error }); } /** Returns true if the given value is a TRefinement. */ @@ -903,10 +910,10 @@ function IsRefine$1(value) { return IsSchema$1(value) && HasPropertyKey$1(value, "~refine") && IsArray$1(value["~refine"]) && Every$1(value["~refine"], 0, (value) => IsRefinement(value)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/integer.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/integer.mjs const IntegerPattern = "-?(?:0|[1-9][0-9]*)"; //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/null.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/null.mjs /** Creates a Null type. */ function Null(options) { return Create({ "~kind": "Null" }, { type: "null" }, options); @@ -916,22 +923,22 @@ function Number$1(options) { return Create({ "~kind": "Number" }, { type: "number" }, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/string.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/string.mjs /** Creates a String type. */ function String$1(options) { return Create({ "~kind": "String" }, { type: "string" }, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/union.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/union.mjs /** Creates a Union type. */ function Union(anyOf, options = {}) { return Create({ "~kind": "Union" }, { anyOf }, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/record.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/record.mjs const IntegerKey = `^${IntegerPattern}$`; //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/token/internal/char.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/token/internal/char.mjs function Range(start, end) { return Array.from({ length: end - start + 1 }, (_, i) => String.fromCharCode(start + i)); } @@ -946,15 +953,7 @@ const Digit = ["0", ...Range(49, 57)]; [...Digit]; new RegExp(IntegerKey); //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/_guard.mjs -function IsGuardInterface(value) { - return IsObject$1(value) && HasPropertyKey$1(value, "check") && HasPropertyKey$1(value, "errors") && IsFunction$1(value.check) && IsFunction$1(value.errors); -} -function IsGuard(value) { - return HasPropertyKey$1(value, "~guard") && IsGuardInterface(value["~guard"]); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/_refine.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/_refine.mjs /** * Returns true if the schema contains an '~refine` keyword * @specification None @@ -963,7 +962,7 @@ function IsRefine(value) { return HasPropertyKey$1(value, "~refine") && IsArray$1(value["~refine"]) && Every$1(value["~refine"], 0, (value) => IsObject$1(value) && HasPropertyKey$1(value, "check") && HasPropertyKey$1(value, "error") && IsFunction$1(value.check) && IsFunction$1(value.error)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/schema.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/schema.mjs /** Returns true if this value is object like */ function IsSchemaObject(value) { return IsObject$1(value) && !IsArray$1(value); @@ -977,7 +976,7 @@ function IsSchema(value) { return IsSchemaObject(value) || IsBooleanSchema(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/additionalItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/additionalItems.mjs /** * Returns true if the schema contains a valid additionalItems property * @specification Json Schema 7 @@ -986,7 +985,7 @@ function IsAdditionalItems(schema) { return HasPropertyKey$1(schema, "additionalItems") && IsSchema(schema.additionalItems); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/additionalProperties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/additionalProperties.mjs /** * Returns true if the schema contains a valid additionalProperties property * @specification Json Schema 7 @@ -995,7 +994,7 @@ function IsAdditionalProperties(schema) { return HasPropertyKey$1(schema, "additionalProperties") && IsSchema(schema.additionalProperties); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/allOf.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/allOf.mjs /** * Returns true if the schema contains a valid allOf property * @specification Json Schema 7 @@ -1004,7 +1003,7 @@ function IsAllOf(schema) { return HasPropertyKey$1(schema, "allOf") && IsArray$1(schema.allOf) && schema.allOf.every((value) => IsSchema(value)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/anchor.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/anchor.mjs /** * Returns true if the schema contains a valid $anchor property */ @@ -1012,7 +1011,7 @@ function IsAnchor(schema) { return HasPropertyKey$1(schema, "$anchor") && IsString$2(schema.$anchor); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/anyOf.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/anyOf.mjs /** * Returns true if the schema contains a valid anyOf property * @specification Json Schema 7 @@ -1021,7 +1020,7 @@ function IsAnyOf(schema) { return HasPropertyKey$1(schema, "anyOf") && IsArray$1(schema.anyOf) && schema.anyOf.every((value) => IsSchema(value)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/const.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/const.mjs /** * Returns true if the schema contains a valid const property * @specification Json Schema 7 @@ -1030,7 +1029,7 @@ function IsConst(value) { return HasPropertyKey$1(value, "const"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/contains.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/contains.mjs /** * Returns true if the schema contains a valid contains property * @specification Json Schema 7 @@ -1039,7 +1038,7 @@ function IsContains(schema) { return HasPropertyKey$1(schema, "contains") && IsSchema(schema.contains); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/dependencies.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/dependencies.mjs /** * Returns true if the schema contains a valid dependencies property * @specification Json Schema 7 @@ -1048,7 +1047,7 @@ function IsDependencies(schema) { return HasPropertyKey$1(schema, "dependencies") && IsObject$1(schema.dependencies) && Object.values(schema.dependencies).every((value) => IsSchema(value) || IsArray$1(value) && value.every((value) => IsString$2(value))); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/dependentRequired.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/dependentRequired.mjs /** * Returns true if the schema contains a valid dependentRequired property * @specification Json Schema 2019-09 @@ -1057,7 +1056,7 @@ function IsDependentRequired(schema) { return HasPropertyKey$1(schema, "dependentRequired") && IsObject$1(schema.dependentRequired) && Object.values(schema.dependentRequired).every((value) => IsArray$1(value) && value.every((value) => IsString$2(value))); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/dependentSchemas.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/dependentSchemas.mjs /** * Returns true if the schema contains a valid dependentRequired property * @specification Json Schema 2019-09 @@ -1066,7 +1065,7 @@ function IsDependentSchemas(schema) { return HasPropertyKey$1(schema, "dependentSchemas") && IsObject$1(schema.dependentSchemas) && Object.values(schema.dependentSchemas).every((value) => IsSchema(value)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/dynamicAnchor.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/dynamicAnchor.mjs /** * Returns true if the schema contains a valid $dynamicAnchor property */ @@ -1074,7 +1073,7 @@ function IsDynamicAnchor(schema) { return HasPropertyKey$1(schema, "$dynamicAnchor") && IsString$2(schema.$dynamicAnchor); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/dynamicRef.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/dynamicRef.mjs /** * Returns true if the schema contains a valid $dynamicRef property */ @@ -1082,7 +1081,7 @@ function IsDynamicRef(schema) { return HasPropertyKey$1(schema, "$dynamicRef") && IsString$2(schema.$dynamicRef); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/else.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/else.mjs /** * Returns true if the schema contains a valid else property * @specification Json Schema 7 @@ -1091,7 +1090,7 @@ function IsElse(schema) { return HasPropertyKey$1(schema, "else") && IsSchema(schema.else); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/enum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/enum.mjs /** * Returns true if the schema contains a valid enum property * @specification Json Schema 7 @@ -1100,7 +1099,7 @@ function IsEnum(schema) { return HasPropertyKey$1(schema, "enum") && IsArray$1(schema.enum); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/exclusiveMaximum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/exclusiveMaximum.mjs /** * Returns true if the schema contains a valid exclusiveMaximum property * @specification Json Schema 7 @@ -1109,7 +1108,7 @@ function IsExclusiveMaximum(schema) { return HasPropertyKey$1(schema, "exclusiveMaximum") && (IsNumber$2(schema.exclusiveMaximum) || IsBigInt$1(schema.exclusiveMaximum)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/exclusiveMinimum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/exclusiveMinimum.mjs /** * Returns true if the schema contains a valid exclusiveMinimum property * @specification Json Schema 7 @@ -1118,7 +1117,7 @@ function IsExclusiveMinimum(schema) { return HasPropertyKey$1(schema, "exclusiveMinimum") && (IsNumber$2(schema.exclusiveMinimum) || IsBigInt$1(schema.exclusiveMinimum)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/format.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/format.mjs /** * Returns true if the schema contains a valid format property * @specification Json Schema 7 @@ -1127,7 +1126,7 @@ function IsFormat(schema) { return HasPropertyKey$1(schema, "format") && IsString$2(schema.format); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/id.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/id.mjs /** * Returns true if the schema contains a valid $id property * @specification Json Schema 7 @@ -1136,7 +1135,7 @@ function IsId(schema) { return HasPropertyKey$1(schema, "$id") && IsString$2(schema.$id); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/if.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/if.mjs /** * Returns true if the schema contains a valid $id property * @specification Json Schema 7 @@ -1145,7 +1144,7 @@ function IsIf(schema) { return HasPropertyKey$1(schema, "if") && IsSchema(schema.if); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/items.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/items.mjs /** * Returns true if the schema contains a valid items property * @specification Json Schema 7 @@ -1160,7 +1159,7 @@ function IsItemsSized(schema) { return IsItems(schema) && IsArray$1(schema.items); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/maximum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/maximum.mjs /** * Returns true if the schema contains a valid maximum property * @specification Json Schema 7 @@ -1169,7 +1168,7 @@ function IsMaximum(schema) { return HasPropertyKey$1(schema, "maximum") && (IsNumber$2(schema.maximum) || IsBigInt$1(schema.maximum)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/maxContains.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/maxContains.mjs /** * Returns true if the schema contains a valid maxContains property * @specification Json Schema 2019-09 @@ -1178,7 +1177,7 @@ function IsMaxContains(schema) { return HasPropertyKey$1(schema, "maxContains") && IsNumber$2(schema.maxContains); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/maxItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/maxItems.mjs /** * Returns true if the schema contains a valid maxItems property * @specification Json Schema 7 @@ -1187,7 +1186,7 @@ function IsMaxItems(schema) { return HasPropertyKey$1(schema, "maxItems") && IsNumber$2(schema.maxItems); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/maxLength.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/maxLength.mjs /** * Returns true if the schema contains a valid maxLength property * @specification Json Schema 7 @@ -1196,7 +1195,7 @@ function IsMaxLength(schema) { return HasPropertyKey$1(schema, "maxLength") && IsNumber$2(schema.maxLength); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/maxProperties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/maxProperties.mjs /** * Returns true if the schema contains a valid maxProperties property * @specification Json Schema 7 @@ -1205,7 +1204,7 @@ function IsMaxProperties(schema) { return HasPropertyKey$1(schema, "maxProperties") && IsNumber$2(schema.maxProperties); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/minimum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/minimum.mjs /** * Returns true if the schema contains a valid minimum property * @specification Json Schema 7 @@ -1214,7 +1213,7 @@ function IsMinimum(schema) { return HasPropertyKey$1(schema, "minimum") && (IsNumber$2(schema.minimum) || IsBigInt$1(schema.minimum)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/minContains.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/minContains.mjs /** * Returns true if the schema contains a valid maxContains property * @specification Json Schema 2019-09 @@ -1223,7 +1222,7 @@ function IsMinContains(schema) { return HasPropertyKey$1(schema, "minContains") && IsNumber$2(schema.minContains); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/minItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/minItems.mjs /** * Returns true if the schema contains a valid minItems property * @specification Json Schema 7 @@ -1232,7 +1231,7 @@ function IsMinItems(schema) { return HasPropertyKey$1(schema, "minItems") && IsNumber$2(schema.minItems); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/minLength.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/minLength.mjs /** * Returns true if the schema contains a valid minLength property * @specification Json Schema 7 @@ -1241,7 +1240,7 @@ function IsMinLength(schema) { return HasPropertyKey$1(schema, "minLength") && IsNumber$2(schema.minLength); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/minProperties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/minProperties.mjs /** * Returns true if the schema contains a valid minProperties property * @specification Json Schema 7 @@ -1250,7 +1249,7 @@ function IsMinProperties(schema) { return HasPropertyKey$1(schema, "minProperties") && IsNumber$2(schema.minProperties); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/multipleOf.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/multipleOf.mjs /** * Returns true if the schema contains a valid multipleOf property * @specification Json Schema 7 @@ -1259,7 +1258,7 @@ function IsMultipleOf(schema) { return HasPropertyKey$1(schema, "multipleOf") && (IsNumber$2(schema.multipleOf) || IsBigInt$1(schema.multipleOf)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/not.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/not.mjs /** * Returns true if the schema contains a valid not property * @specification Json Schema 7 @@ -1268,7 +1267,7 @@ function IsNot(schema) { return HasPropertyKey$1(schema, "not") && IsSchema(schema.not); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/oneOf.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/oneOf.mjs /** * Returns true if the schema contains a valid oneOf property * @specification Json Schema 7 @@ -1277,7 +1276,7 @@ function IsOneOf(schema) { return HasPropertyKey$1(schema, "oneOf") && IsArray$1(schema.oneOf) && schema.oneOf.every((value) => IsSchema(value)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/pattern.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/pattern.mjs /** * Returns true if the schema contains a valid pattern property * @specification Json Schema 7 @@ -1286,7 +1285,7 @@ function IsPattern(schema) { return HasPropertyKey$1(schema, "pattern") && (IsString$2(schema.pattern) || schema.pattern instanceof RegExp); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/patternProperties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/patternProperties.mjs /** * Returns true if the schema contains a valid patternProperties property * @specification Json Schema 7 @@ -1295,7 +1294,7 @@ function IsPatternProperties(schema) { return HasPropertyKey$1(schema, "patternProperties") && IsObject$1(schema.patternProperties) && Object.values(schema.patternProperties).every((value) => IsSchema(value)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/prefixItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/prefixItems.mjs /** * Returns true if the schema contains a valid prefixItems property */ @@ -1303,7 +1302,7 @@ function IsPrefixItems(schema) { return HasPropertyKey$1(schema, "prefixItems") && IsArray$1(schema.prefixItems) && schema.prefixItems.every((schema) => IsSchema(schema)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/properties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/properties.mjs /** * Returns true if the schema contains a valid properties property * @specification Json Schema 7 @@ -1312,7 +1311,7 @@ function IsProperties(schema) { return HasPropertyKey$1(schema, "properties") && IsObject$1(schema.properties) && Object.values(schema.properties).every((value) => IsSchema(value)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/propertyNames.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/propertyNames.mjs /** * Returns true if the schema contains a valid propertyNames property * @specification Json Schema 7 @@ -1321,7 +1320,7 @@ function IsPropertyNames(schema) { return HasPropertyKey$1(schema, "propertyNames") && (IsObject$1(schema.propertyNames) || IsSchema(schema.propertyNames)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/recursiveAnchor.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/recursiveAnchor.mjs /** * Returns true if the schema contains a valid $recursiveAnchor property */ @@ -1335,7 +1334,7 @@ function IsRecursiveAnchorTrue(schema) { return IsRecursiveAnchor(schema) && IsEqual$1(schema.$recursiveAnchor, true); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/recursiveRef.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/recursiveRef.mjs /** * Returns true if the schema contains a valid $recursiveRef property */ @@ -1343,7 +1342,7 @@ function IsRecursiveRef(schema) { return HasPropertyKey$1(schema, "$recursiveRef") && IsString$2(schema.$recursiveRef); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/ref.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/ref.mjs /** * Returns true if the schema contains a valid $ref property * @specification Json Schema 7 @@ -1352,7 +1351,7 @@ function IsRef(schema) { return HasPropertyKey$1(schema, "$ref") && IsString$2(schema.$ref); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/required.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/required.mjs /** * Returns true if the schema contains a valid required property * @specification Json Schema 7 @@ -1361,7 +1360,7 @@ function IsRequired(schema) { return HasPropertyKey$1(schema, "required") && IsArray$1(schema.required) && schema.required.every((value) => IsString$2(value)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/then.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/then.mjs /** * Returns true if the schema contains a valid then property * @specification Json Schema 7 @@ -1370,7 +1369,7 @@ function IsThen(schema) { return HasPropertyKey$1(schema, "then") && IsSchema(schema.then); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/type.mjs /** * Returns true if the schema contains a valid type property * @specification Json Schema 7 @@ -1379,7 +1378,7 @@ function IsType(schema) { return HasPropertyKey$1(schema, "type") && (IsString$2(schema.type) || IsArray$1(schema.type) && schema.type.every((value) => IsString$2(value))); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/uniqueItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/uniqueItems.mjs /** * Returns true if the schema contains a valid uniqueItems property * @specification Json Schema 7 @@ -1388,7 +1387,7 @@ function IsUniqueItems(schema) { return HasPropertyKey$1(schema, "uniqueItems") && IsBoolean$2(schema.uniqueItems); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/unevaluatedItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/unevaluatedItems.mjs /** * Returns true if the schema contains a valid unevaluatedItems property * @specification Json Schema 2019-09 @@ -1397,7 +1396,7 @@ function IsUnevaluatedItems(schema) { return HasPropertyKey$1(schema, "unevaluatedItems") && IsSchema(schema.unevaluatedItems); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/unevaluatedProperties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/unevaluatedProperties.mjs /** * Returns true if the schema contains a valid unevaluatedProperties property * @specification Json Schema 2019-09 @@ -1406,7 +1405,7 @@ function IsUnevaluatedProperties(schema) { return HasPropertyKey$1(schema, "unevaluatedProperties") && IsSchema(schema.unevaluatedProperties); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/_context.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/_context.mjs function HasUnevaluatedFromObject(value) { return IsUnevaluatedItems(value) || IsUnevaluatedProperties(value) || Keys$1(value).some((key) => HasUnevaluatedFromUnknown(value[key])); } @@ -1510,7 +1509,7 @@ var AccumulatedErrorContext = class extends ErrorContext { } }; //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/_externals.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/_externals.mjs const state = { identifier: "External", variables: [] @@ -1527,23 +1526,7 @@ function GetExternal() { return { ...state }; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/_guard.mjs -function BuildGuard(_stack, _context, schema, value) { - return Call(Member(Member(CreateVariable(schema), "~guard"), "check"), [value]); -} -function CheckGuard(_stack, _context, schema, value) { - return schema["~guard"].check(value); -} -function ErrorGuard(_stack, context, schemaPath, instancePath, schema, value) { - return schema["~guard"].check(value) || context.AddError({ - keyword: "~guard", - schemaPath, - instancePath, - params: { errors: schema["~guard"].errors(value) } - }); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/_refine.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/_refine.mjs function BuildRefine(_stack, _context, schema, value) { return Every(CreateVariable(schema["~refine"].map((refinement) => refinement)), Constant(0), ["refinement", "_"], Call(Member("refinement", "check"), [value])); } @@ -1564,14 +1547,14 @@ function ErrorRefine(_stack, context, schemaPath, instancePath, schema, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/_unique.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/_unique.mjs let index = 0; /** Returns a Unique Variable Name */ function Unique() { return `var_${index++}`; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/additionalItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/additionalItems.mjs function IsValid$4(schema) { return IsItems(schema) && IsArray$1(schema.items); } @@ -1599,7 +1582,7 @@ function ErrorAdditionalItems(stack, context, schemaPath, instancePath, schema, }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/additionalProperties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/additionalProperties.mjs function GetPropertyKeyAsPattern(key) { return `^${key.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}$`; } @@ -1651,7 +1634,7 @@ function ErrorAdditionalProperties(stack, context, schemaPath, instancePath, sch }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/_reducer.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/_reducer.mjs function Reducer(stack, context, schemas, value, check) { const results = ConstDeclaration("results", "[]"); const context_n = schemas.map((_schema, index) => ConstDeclaration(`context_${index}`, New("CheckContext", []))); @@ -1667,7 +1650,7 @@ function Reducer(stack, context, schemas, value, check) { ])), []); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/allOf.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/allOf.mjs function BuildAllOfStandard(stack, context, schema, value) { return Reducer(stack, context, schema.allOf, value, IsEqual(Member("results", "length"), Constant(schema.allOf.length))); } @@ -1698,7 +1681,7 @@ function ErrorAllOf(stack, context, schemaPath, instancePath, schema, value) { return isAllOf; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/anyOf.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/anyOf.mjs function BuildAnyOfStandard(stack, context, schema, value) { return Reducer(stack, context, schema.anyOf, value, IsGreaterThan(Member("results", "length"), Constant(0))); } @@ -1733,7 +1716,7 @@ function ErrorAnyOf(stack, context, schemaPath, instancePath, schema, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/boolean.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/boolean.mjs function BuildBooleanSchema(_stack, _context, schema, _value) { return schema ? Constant(true) : Constant(false); } @@ -1749,7 +1732,7 @@ function ErrorBooleanSchema(stack, context, schemaPath, instancePath, schema, va }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/const.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/const.mjs function BuildConst(_stack, _context, schema, value) { return IsValueLike(schema.const) ? IsEqual(value, Constant(schema.const)) : IsDeepEqual(value, CreateVariable(schema.const)); } @@ -1765,7 +1748,7 @@ function ErrorConst(stack, context, schemaPath, instancePath, schema, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/contains.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/contains.mjs function IsValid$3(schema) { return !(IsMinContains(schema) && IsEqual$1(schema.minContains, 0)); } @@ -1787,7 +1770,7 @@ function ErrorContains(stack, context, schemaPath, instancePath, schema, value) }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/dependencies.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/dependencies.mjs function BuildDependencies(stack, context, schema, value) { return Or(IsEqual(Member(Keys(value), "length"), Constant(0)), ReduceAnd(Entries$2(schema.dependencies).map(([key, schema]) => { const notKey = Not(HasPropertyKey(value, Constant(key))); @@ -1820,7 +1803,7 @@ function ErrorDependencies(stack, context, schemaPath, instancePath, schema, val return isLength || isEvery; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/dependentRequired.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/dependentRequired.mjs function BuildDependentRequired(_stack, _context, schema, value) { return Or(IsEqual(Member(Keys(value), "length"), Constant(0)), ReduceAnd(Entries$2(schema.dependentRequired).map(([key, keys]) => { return Or(Not(HasPropertyKey(value, Constant(key))), ReduceAnd(keys.map((key) => HasPropertyKey(value, Constant(key))))); @@ -1849,7 +1832,7 @@ function ErrorDependentRequired(_stack, context, schemaPath, instancePath, schem return isLength || isEveryEntry; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/dependentSchemas.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/dependentSchemas.mjs function BuildDependentSchemas(stack, context, schema, value) { return Or(IsEqual(Member(Keys(value), "length"), Constant(0)), ReduceAnd(Entries$2(schema.dependentSchemas).map(([key, schema]) => { return Or(Not(HasPropertyKey(value, Constant(key))), BuildSchema(stack, context, schema, value)); @@ -1871,7 +1854,7 @@ function ErrorDependentSchemas(stack, context, schemaPath, instancePath, schema, return isLength || isEvery; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/dynamicRef.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/dynamicRef.mjs function BuildDynamicRef(stack, context, schema, value) { return CreateFunction(stack, context, stack.DynamicRef(schema) ?? false, value); } @@ -1884,7 +1867,7 @@ function ErrorDynamicRef(stack, context, _schemaPath, instancePath, schema, valu return IsSchema(target) && ErrorSchema(stack, context, "#", instancePath, target, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/enum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/enum.mjs function BuildEnum(_stack, _context, schema, value) { return ReduceOr(schema.enum.map((option) => { if (IsValueLike(option)) return IsEqual(value, Constant(option)); @@ -1903,7 +1886,7 @@ function ErrorEnum(stack, context, schemaPath, instancePath, schema, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/exclusiveMaximum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/exclusiveMaximum.mjs function BuildExclusiveMaximum(_stack, _context, schema, value) { return IsLessThan(value, Constant(schema.exclusiveMaximum)); } @@ -1922,7 +1905,7 @@ function ErrorExclusiveMaximum(stack, context, schemaPath, instancePath, schema, }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/exclusiveMinimum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/exclusiveMinimum.mjs function BuildExclusiveMinimum(_stack, _context, schema, value) { return IsGreaterThan(value, Constant(schema.exclusiveMinimum)); } @@ -1941,7 +1924,7 @@ function ErrorExclusiveMinimum(stack, context, schemaPath, instancePath, schema, }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/date.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/date.mjs const DAYS = [ 0, 31, @@ -1975,7 +1958,7 @@ function IsDate(value) { return month >= 1 && month <= 12 && day >= 1 && day <= (month === 2 && IsLeapYear(year) ? 29 : DAYS[month]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/time.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/time.mjs const TIME = /^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(?:Z|([+-])(\d\d):(\d\d))?$/i; /** * Returns true if the value is a ISO time string @@ -1998,7 +1981,7 @@ function IsTime(value, strictTimeZone = true) { return (utcHr === 23 || utcHr === -1) && (utcMin === 59 || utcMin === -1) && sec < 61; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/date_time.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/date_time.mjs /** * Returns true if the value is a ISO8601 DateTime string * @source ajv-formats @@ -2009,7 +1992,7 @@ function IsDateTime(value, strictTimeZone = true) { return dateTime.length === 2 && IsDate(dateTime[0]) && IsTime(dateTime[1], strictTimeZone); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/duration.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/duration.mjs const Duration = /^P((\d+Y(\d+M(\d+D)?)?|\d+M(\d+D)?|\d+D)(T(\d+H(\d+M(\d+S)?)?|\d+M(\d+S)?|\d+S))?|T(\d+H(\d+M(\d+S)?)?|\d+M(\d+S)?|\d+S)|\d+W)$/; /** * Returns true if the value is a valid ISO-8601 duration. @@ -2019,7 +2002,7 @@ function IsDuration(value) { return Duration.test(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/email.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/email.mjs const Email = /^(?!.*\.\.)[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i; /** * Returns true if the value is an Email @@ -2029,7 +2012,7 @@ function IsEmail(value) { return Email.test(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/_puny.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/_puny.mjs const PUNYCODE_BASE = 36; const PUNYCODE_TMIN = 1; const PUNYCODE_TMAX = 26; @@ -2087,7 +2070,7 @@ function Decode(value) { return globalThis.String.fromCodePoint(...output); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/_idna.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/_idna.mjs function IsNonspacingMark(cp) { return /\p{Mn}/u.test(String.fromCodePoint(cp)); } @@ -2222,7 +2205,11 @@ function IsPuny(value) { } function IsPunyLabel(value) { try { - return IsUnicodeLabel(Decode(value.slice(4))); + const payload = value.slice(4).toLowerCase(); + if (payload.lastIndexOf("-") === 0) return false; + const decoded = Decode(payload); + if (!decoded) return false; + return IsUnicodeLabel(decoded); } catch { return false; } @@ -2236,7 +2223,7 @@ function IsLabel(value) { return IsPuny(value) ? IsPunyLabel(value) : IsAsciiLabel(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/hostname.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/hostname.mjs /** * Returns true if the value is a valid hostname. * @specification https://tools.ietf.org/html/rfc1123 @@ -2250,7 +2237,7 @@ function IsHostname(value) { return true; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/idn_email.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/idn_email.mjs const IdnEmail = /^(?!.*\.\.)[\p{L}\p{N}!#$%&'*+/=?^_`{|}~-]+(?:\.[\p{L}\p{N}!#$%&'*+/=?^_`{|}~-]+)*@[\p{L}\p{N}](?:[\p{L}\p{N}-]{0,61}[\p{L}\p{N}])?(?:\.[\p{L}\p{N}](?:[\p{L}\p{N}-]{0,61}[\p{L}\p{N}])?)*$/iu; /** * Returns true if the value is an IdnEmail @@ -2260,7 +2247,7 @@ function IsIdnEmail(value) { return IdnEmail.test(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/idn_hostname.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/idn_hostname.mjs /** * Returns true if the value is a valid internationalized (IDN) hostname. * @specification https://tools.ietf.org/html/rfc3490 @@ -2275,7 +2262,7 @@ function IsIdnHostname(value) { return true; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/ipv4.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/ipv4.mjs function IsIPv4Internal(value, start, end) { let dots = 0; let num = 0; @@ -2305,7 +2292,7 @@ function IsIPv4(value) { return IsIPv4Internal(value, 0, value.length); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/ipv6.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/ipv6.mjs function InRange(ch) { return ch >= 48 && ch <= 57 || ch >= 65 && ch <= 70 || ch >= 97 && ch <= 102; } @@ -2355,7 +2342,7 @@ function IsIPv6(value) { return compressed ? groups <= 7 : groups === 8; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/iri_reference.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/iri_reference.mjs function TryUrl(value) { try { new URL(value, "http://example.com"); @@ -2382,7 +2369,7 @@ function IsIriReference(value) { } } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/iri.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/iri.mjs /** * Returns true if the value is a Iri * @specification @@ -2396,7 +2383,7 @@ function IsIri(value) { } } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/json_pointer_uri_fragment.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/json_pointer_uri_fragment.mjs const JsonPointerUriFragment = /^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i; /** * Returns true if the value is a json pointer uri fragment @@ -2407,7 +2394,7 @@ function IsJsonPointerUriFragment(value) { return JsonPointerUriFragment.test(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/json_pointer.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/json_pointer.mjs const JsonPointer = /^(?:\/(?:[^~/]|~0|~1)*)*$/; /** * Returns true if the value is a json pointer @@ -2418,7 +2405,7 @@ function IsJsonPointer(value) { return JsonPointer.test(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/regex.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/regex.mjs /** * Returns true if the value is a regular expression string pattern * @specification @@ -2434,7 +2421,7 @@ function IsRegex(value) { } } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/relative_json_pointer.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/relative_json_pointer.mjs const RelativeJsonPointer = /^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/; /** * Returns true if the value is a relative json pointer @@ -2445,7 +2432,7 @@ function IsRelativeJsonPointer(value) { return RelativeJsonPointer.test(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/uri_reference.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/uri_reference.mjs const UriReference = /^(?!.*[^\x00-\x7F])(?!.*\\)(?:(?:[a-z][a-z0-9+\-.]*:)?(?:\/\/[^\s[\]{}<>^`|]*)?|[^\s[\]{}<>^`|]*)(?:\?[^\s[\]{}<>^`|]*)?(?:#[^\s[\]{}<>^`|]*)?$/i; /** * Returns true if the value is a valid URI Reference. @@ -2455,7 +2442,7 @@ function IsUriReference(value) { return UriReference.test(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/uri_template.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/uri_template.mjs const UriTemplate = /^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i; /** * Returns true if the value is a uri template @@ -2466,7 +2453,7 @@ function IsUriTemplate(value) { return UriTemplate.test(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/uri.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/uri.mjs function IsAlpha(ch) { return ch >= 97 && ch <= 122 || ch >= 65 && ch <= 90; } @@ -2561,7 +2548,7 @@ function IsUri(value) { return true; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/url.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/url.mjs const Url = /^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu; /** * Returns true if the value is a Url @@ -2572,7 +2559,7 @@ function IsUrl(value) { return Url.test(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/uuid.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/uuid.mjs const Uuid = /^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i; /** * Returns true if the value is a uuid @@ -2583,7 +2570,7 @@ function IsUuid(value) { return Uuid.test(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/_registry.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/_registry.mjs const formats = /* @__PURE__ */ new Map(); /** Clears all entries */ function Clear() { @@ -2636,7 +2623,7 @@ function Reset() { } Reset(); //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/format.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/format.mjs var format_exports = /* @__PURE__ */ __exportAll({ Clear: () => Clear, Entries: () => Entries, @@ -2668,7 +2655,7 @@ var format_exports = /* @__PURE__ */ __exportAll({ Test: () => Test }); //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/format.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/format.mjs function BuildFormat(_stack, _context, schema, value) { return Call(Member("Format", "Test"), [Constant(schema.format), value]); } @@ -2684,7 +2671,7 @@ function ErrorFormat(stack, context, schemaPath, instancePath, schema, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/if.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/if.mjs function BuildIf(stack, context, schema, value) { const thenSchema = IsThen(schema) ? schema.then : true; const elseSchema = IsElse(schema) ? schema.else : true; @@ -2714,7 +2701,7 @@ function ErrorIf(stack, context, schemaPath, instancePath, schema, value) { return isIf; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/items.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/items.mjs function BuildItemsSized(stack, context, schema, value) { return ReduceAnd(schema.items.map((schema, index) => { const isLength = IsLessEqualThan(Member(value, "length"), Constant(index)); @@ -2762,7 +2749,7 @@ function ErrorItems(stack, context, schemaPath, instancePath, schema, value) { return IsItemsSized(schema) ? ErrorItemsSized(stack, context, schemaPath, instancePath, schema, value) : ErrorItemsUnsized(stack, context, schemaPath, instancePath, schema, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/maxContains.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/maxContains.mjs function IsValid$2(schema) { return IsContains(schema); } @@ -2788,7 +2775,7 @@ function ErrorMaxContains(stack, context, schemaPath, instancePath, schema, valu }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/maximum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/maximum.mjs function BuildMaximum(_stack, _context, schema, value) { return IsLessEqualThan(value, Constant(schema.maximum)); } @@ -2807,7 +2794,7 @@ function ErrorMaximum(stack, context, schemaPath, instancePath, schema, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/maxItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/maxItems.mjs function BuildMaxItems(_stack, _context, schema, value) { return IsLessEqualThan(Member(value, "length"), Constant(schema.maxItems)); } @@ -2823,7 +2810,7 @@ function ErrorMaxItems(stack, context, schemaPath, instancePath, schema, value) }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/maxLength.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/maxLength.mjs function BuildMaxLength(_stack, _context, schema, value) { return IsMaxLength$1(value, Constant(schema.maxLength)); } @@ -2839,7 +2826,7 @@ function ErrorMaxLength(stack, context, schemaPath, instancePath, schema, value) }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/maxProperties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/maxProperties.mjs function BuildMaxProperties(_stack, _context, schema, value) { return IsLessEqualThan(Member(Keys(value), "length"), Constant(schema.maxProperties)); } @@ -2855,7 +2842,7 @@ function ErrorMaxProperties(stack, context, schemaPath, instancePath, schema, va }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/minContains.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/minContains.mjs function IsValid$1(schema) { return IsContains(schema); } @@ -2877,7 +2864,7 @@ function ErrorMinContains(stack, context, schemaPath, instancePath, schema, valu }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/minimum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/minimum.mjs function BuildMinimum(_stack, _context, schema, value) { return IsGreaterEqualThan(value, Constant(schema.minimum)); } @@ -2896,7 +2883,7 @@ function ErrorMinimum(stack, context, schemaPath, instancePath, schema, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/minItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/minItems.mjs function BuildMinItems(_stack, _context, schema, value) { return IsGreaterEqualThan(Member(value, "length"), Constant(schema.minItems)); } @@ -2912,7 +2899,7 @@ function ErrorMinItems(stack, context, schemaPath, instancePath, schema, value) }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/minLength.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/minLength.mjs function BuildMinLength(_stack, _context, schema, value) { return IsMinLength$1(value, Constant(schema.minLength)); } @@ -2928,7 +2915,7 @@ function ErrorMinLength(stack, context, schemaPath, instancePath, schema, value) }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/minProperties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/minProperties.mjs function BuildMinProperties(_stack, _context, schema, value) { return IsGreaterEqualThan(Member(Keys(value), "length"), Constant(schema.minProperties)); } @@ -2944,7 +2931,7 @@ function ErrorMinProperties(stack, context, schemaPath, instancePath, schema, va }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/multipleOf.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/multipleOf.mjs function BuildMultipleOf(_stack, _context, schema, value) { return MultipleOf(value, Constant(schema.multipleOf)); } @@ -2960,7 +2947,7 @@ function ErrorMultipleOf(stack, context, schemaPath, instancePath, schema, value }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/not.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/not.mjs function BuildNotUnevaluated(stack, context, schema, value) { return Reducer(stack, context, [schema.not], value, Not(IsEqual(Member("results", "length"), Constant(1)))); } @@ -2983,7 +2970,7 @@ function ErrorNot(stack, context, schemaPath, instancePath, schema, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/oneOf.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/oneOf.mjs function BuildOneOfUnevaluated(stack, context, schema, value) { return Reducer(stack, context, schema.oneOf, value, IsEqual(Member("results", "length"), Constant(1))); } @@ -3020,7 +3007,7 @@ function ErrorOneOf(stack, context, schemaPath, instancePath, schema, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/pattern.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/pattern.mjs function BuildPattern(_stack, _context, schema, value) { return Call(Member(CreateVariable(IsString$2(schema.pattern) ? new RegExp(schema.pattern, "u") : schema.pattern), "test"), [value]); } @@ -3036,7 +3023,7 @@ function ErrorPattern(stack, context, schemaPath, instancePath, schema, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/patternProperties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/patternProperties.mjs function BuildPatternProperties(stack, context, schema, value) { return ReduceAnd(Entries$2(schema.patternProperties).map(([pattern, schema]) => { const [key, prop] = [Unique(), Unique()]; @@ -3066,7 +3053,7 @@ function ErrorPatternProperties(stack, context, schemaPath, instancePath, schema }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/prefixItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/prefixItems.mjs function BuildPrefixItems(stack, context, schema, value) { return ReduceAnd(schema.prefixItems.map((schema, index) => { const isLength = IsLessEqualThan(Member(value, "length"), Constant(index)); @@ -3088,7 +3075,7 @@ function ErrorPrefixItems(stack, context, schemaPath, instancePath, schema, valu }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/_exact_optional.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/_exact_optional.mjs function IsExactOptional(required, key) { return required.includes(key) || Get$3().exactOptionalPropertyTypes; } @@ -3099,7 +3086,7 @@ function InexactOptionalCheck(value, key) { return IsUndefined$1(value[key]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/properties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/properties.mjs function BuildProperties(stack, context, schema, value) { const required = IsRequired(schema) ? schema.required : []; return ReduceAnd(Entries$2(schema.properties).map(([key, schema]) => { @@ -3128,7 +3115,7 @@ function ErrorProperties(stack, context, schemaPath, instancePath, schema, value }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/propertyNames.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/propertyNames.mjs function BuildPropertyNames(stack, context, schema, value) { const [key, _index] = [Unique(), Unique()]; return Every(Keys(value), Constant(0), [key, _index], BuildSchema(stack, context, schema.propertyNames, key)); @@ -3152,7 +3139,7 @@ function ErrorPropertyNames(stack, context, schemaPath, instancePath, schema, va }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/recursiveRef.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/recursiveRef.mjs function BuildRecursiveRef(stack, context, schema, value) { return CreateFunction(stack, context, stack.RecursiveRef(schema) ?? false, value); } @@ -3165,7 +3152,7 @@ function ErrorRecursiveRef(stack, context, _schemaPath, instancePath, schema, va return IsSchema(target) && ErrorSchema(stack, context, "#", instancePath, target, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/ref.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/ref.mjs function BuildRefStandard(stack, context, target, value) { const interior = ArrowFunction(["context", "value"], CreateFunction(stack, context, target, "value")); return Call(ArrowFunction(["context", "value"], Statements([ @@ -3198,7 +3185,7 @@ function ErrorRef(stack, context, _schemaPath, instancePath, schema, value) { return result; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/required.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/required.mjs function BuildRequired(_stack, _context, schema, value) { return ReduceAnd(schema.required.map((key) => HasPropertyKey(value, Constant(key)))); } @@ -3219,12 +3206,12 @@ function ErrorRequired(_stack, context, schemaPath, instancePath, schema, value) }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/type.mjs function BuildTypeName(_stack, _context, type, value) { - return IsEqual$1(type, "object") ? IsObjectNotArray(value) : IsEqual$1(type, "array") ? IsArray(value) : IsEqual$1(type, "boolean") ? IsBoolean$1(value) : IsEqual$1(type, "integer") ? IsInteger(value) : IsEqual$1(type, "number") ? IsNumber$1(value) : IsEqual$1(type, "null") ? IsNull(value) : IsEqual$1(type, "string") ? IsString$1(value) : IsEqual$1(type, "asyncIterator") ? IsAsyncIterator(value) : IsEqual$1(type, "bigint") ? IsBigInt(value) : IsEqual$1(type, "constructor") ? IsConstructor(value) : IsEqual$1(type, "function") ? IsFunction(value) : IsEqual$1(type, "iterator") ? IsIterator(value) : IsEqual$1(type, "symbol") ? IsSymbol(value) : IsEqual$1(type, "undefined") ? IsUndefined(value) : IsEqual$1(type, "void") ? IsUndefined(value) : Constant(true); + return IsEqual$1(type, "object") ? IsObjectNotArray(value) : IsEqual$1(type, "array") ? IsArray(value) : IsEqual$1(type, "boolean") ? IsBoolean$1(value) : IsEqual$1(type, "integer") ? IsInteger(value) : IsEqual$1(type, "number") ? IsNumber$1(value) : IsEqual$1(type, "null") ? IsNull(value) : IsEqual$1(type, "string") ? IsString$1(value) : IsEqual$1(type, "bigint") ? IsBigInt(value) : IsEqual$1(type, "constructor") ? IsConstructor(value) : IsEqual$1(type, "function") ? IsFunction(value) : IsEqual$1(type, "symbol") ? IsSymbol(value) : IsEqual$1(type, "undefined") ? IsUndefined(value) : IsEqual$1(type, "void") ? IsUndefined(value) : Constant(true); } function CheckTypeName(_stack, _context, type, _schema, value) { - return IsEqual$1(type, "object") ? IsObjectNotArray$1(value) : IsEqual$1(type, "array") ? IsArray$1(value) : IsEqual$1(type, "boolean") ? IsBoolean$2(value) : IsEqual$1(type, "integer") ? IsInteger$1(value) : IsEqual$1(type, "number") ? IsNumber$2(value) : IsEqual$1(type, "null") ? IsNull$1(value) : IsEqual$1(type, "string") ? IsString$2(value) : IsEqual$1(type, "asyncIterator") ? IsAsyncIterator$1(value) : IsEqual$1(type, "bigint") ? IsBigInt$1(value) : IsEqual$1(type, "constructor") ? IsConstructor$1(value) : IsEqual$1(type, "function") ? IsFunction$1(value) : IsEqual$1(type, "iterator") ? IsIterator$1(value) : IsEqual$1(type, "symbol") ? IsSymbol$1(value) : IsEqual$1(type, "undefined") ? IsUndefined$1(value) : IsEqual$1(type, "void") ? IsUndefined$1(value) : true; + return IsEqual$1(type, "object") ? IsObjectNotArray$1(value) : IsEqual$1(type, "array") ? IsArray$1(value) : IsEqual$1(type, "boolean") ? IsBoolean$2(value) : IsEqual$1(type, "integer") ? IsInteger$1(value) : IsEqual$1(type, "number") ? IsNumber$2(value) : IsEqual$1(type, "null") ? IsNull$1(value) : IsEqual$1(type, "string") ? IsString$2(value) : IsEqual$1(type, "bigint") ? IsBigInt$1(value) : IsEqual$1(type, "constructor") ? IsConstructor$1(value) : IsEqual$1(type, "function") ? IsFunction$1(value) : IsEqual$1(type, "symbol") ? IsSymbol$1(value) : IsEqual$1(type, "undefined") ? IsUndefined$1(value) : IsEqual$1(type, "void") ? IsUndefined$1(value) : true; } function BuildTypeNames(stack, context, typenames, value) { return ReduceOr(typenames.map((type) => BuildTypeName(stack, context, type, value))); @@ -3247,7 +3234,7 @@ function ErrorType(stack, context, schemaPath, instancePath, schema, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/unevaluatedItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/unevaluatedItems.mjs function BuildUnevaluatedItems(stack, context, schema, value) { const [index, item] = [Unique(), Unique()]; const indices = Call(Member("context", "GetIndices"), []); @@ -3279,7 +3266,7 @@ function ErrorUnevaluatedItems(stack, context, schemaPath, instancePath, schema, }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/unevaluatedProperties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/unevaluatedProperties.mjs function BuildUnevaluatedProperties(stack, context, schema, value) { const [key, prop] = [Unique(), Unique()]; const keys = Call(Member("context", "GetKeys"), []); @@ -3311,7 +3298,7 @@ function ErrorUnevaluatedProperties(stack, context, schemaPath, instancePath, sc }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/uniqueItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/uniqueItems.mjs function IsValid(schema) { return !IsEqual$1(schema.uniqueItems, false); } @@ -3342,7 +3329,7 @@ function ErrorUniqueItems(_stack, context, schemaPath, instancePath, schema, val }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/schema.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/schema.mjs function HasTypeName(schema, typename) { return IsType(schema) && (IsArray$1(schema.type) && schema.type.includes(typename) || IsEqual$1(schema.type, typename)); } @@ -3433,7 +3420,6 @@ function BuildSchema(stack, context, schema, value) { if (IsRef(schema)) conditions.push(BuildRef(stack, context, schema, value)); if (IsRecursiveRef(schema)) conditions.push(BuildRecursiveRef(stack, context, schema, value)); if (IsDynamicRef(schema)) conditions.push(BuildDynamicRef(stack, context, schema, value)); - if (IsGuard(schema)) conditions.push(BuildGuard(stack, context, schema, value)); if (IsConst(schema)) conditions.push(BuildConst(stack, context, schema, value)); if (IsEnum(schema)) conditions.push(BuildEnum(stack, context, schema, value)); if (IsIf(schema)) conditions.push(BuildIf(stack, context, schema, value)); @@ -3453,7 +3439,7 @@ function CheckSchemaPushStack(stack, context, schema, value) { } function CheckSchema(stack, context, schema, value) { stack.Push(schema); - const result = IsBooleanSchema(schema) ? CheckBooleanSchema(stack, context, schema, value) : (!IsType(schema) || CheckType(stack, context, schema, value)) && (!(IsObject$1(value) && !IsArray$1(value)) || (!IsRequired(schema) || CheckRequired(stack, context, schema, value)) && (!IsAdditionalProperties(schema) || CheckAdditionalProperties(stack, context, schema, value)) && (!IsDependencies(schema) || CheckDependencies(stack, context, schema, value)) && (!IsDependentRequired(schema) || CheckDependentRequired(stack, context, schema, value)) && (!IsDependentSchemas(schema) || CheckDependentSchemas(stack, context, schema, value)) && (!IsPatternProperties(schema) || CheckPatternProperties(stack, context, schema, value)) && (!IsProperties(schema) || CheckProperties(stack, context, schema, value)) && (!IsPropertyNames(schema) || CheckPropertyNames(stack, context, schema, value)) && (!IsMinProperties(schema) || CheckMinProperties(stack, context, schema, value)) && (!IsMaxProperties(schema) || CheckMaxProperties(stack, context, schema, value))) && (!IsArray$1(value) || (!IsAdditionalItems(schema) || CheckAdditionalItems(stack, context, schema, value)) && (!IsContains(schema) || CheckContains(stack, context, schema, value)) && (!IsItems(schema) || CheckItems(stack, context, schema, value)) && (!IsMaxContains(schema) || CheckMaxContains(stack, context, schema, value)) && (!IsMaxItems(schema) || CheckMaxItems(stack, context, schema, value)) && (!IsMinContains(schema) || CheckMinContains(stack, context, schema, value)) && (!IsMinItems(schema) || CheckMinItems(stack, context, schema, value)) && (!IsPrefixItems(schema) || CheckPrefixItems(stack, context, schema, value)) && (!IsUniqueItems(schema) || CheckUniqueItems(stack, context, schema, value))) && (!IsString$2(value) || (!IsMaxLength(schema) || CheckMaxLength(stack, context, schema, value)) && (!IsMinLength(schema) || CheckMinLength(stack, context, schema, value)) && (!IsFormat(schema) || CheckFormat(stack, context, schema, value)) && (!IsPattern(schema) || CheckPattern(stack, context, schema, value))) && (!(IsNumber$2(value) || IsBigInt$1(value)) || (!IsExclusiveMaximum(schema) || CheckExclusiveMaximum(stack, context, schema, value)) && (!IsExclusiveMinimum(schema) || CheckExclusiveMinimum(stack, context, schema, value)) && (!IsMaximum(schema) || CheckMaximum(stack, context, schema, value)) && (!IsMinimum(schema) || CheckMinimum(stack, context, schema, value)) && (!IsMultipleOf(schema) || CheckMultipleOf(stack, context, schema, value))) && (!IsRef(schema) || CheckRef(stack, context, schema, value)) && (!IsRecursiveRef(schema) || CheckRecursiveRef(stack, context, schema, value)) && (!IsDynamicRef(schema) || CheckDynamicRef(stack, context, schema, value)) && (!IsGuard(schema) || CheckGuard(stack, context, schema, value)) && (!IsConst(schema) || CheckConst(stack, context, schema, value)) && (!IsEnum(schema) || CheckEnum(stack, context, schema, value)) && (!IsIf(schema) || CheckIf(stack, context, schema, value)) && (!IsNot(schema) || CheckNot(stack, context, schema, value)) && (!IsAllOf(schema) || CheckAllOf(stack, context, schema, value)) && (!IsAnyOf(schema) || CheckAnyOf(stack, context, schema, value)) && (!IsOneOf(schema) || CheckOneOf(stack, context, schema, value)) && (!IsUnevaluatedItems(schema) || !IsArray$1(value) || CheckUnevaluatedItems(stack, context, schema, value)) && (!IsUnevaluatedProperties(schema) || !IsObject$1(value) || CheckUnevaluatedProperties(stack, context, schema, value)) && (!IsRefine(schema) || CheckRefine(stack, context, schema, value)); + const result = IsBooleanSchema(schema) ? CheckBooleanSchema(stack, context, schema, value) : (!IsType(schema) || CheckType(stack, context, schema, value)) && (!(IsObject$1(value) && !IsArray$1(value)) || (!IsRequired(schema) || CheckRequired(stack, context, schema, value)) && (!IsAdditionalProperties(schema) || CheckAdditionalProperties(stack, context, schema, value)) && (!IsDependencies(schema) || CheckDependencies(stack, context, schema, value)) && (!IsDependentRequired(schema) || CheckDependentRequired(stack, context, schema, value)) && (!IsDependentSchemas(schema) || CheckDependentSchemas(stack, context, schema, value)) && (!IsPatternProperties(schema) || CheckPatternProperties(stack, context, schema, value)) && (!IsProperties(schema) || CheckProperties(stack, context, schema, value)) && (!IsPropertyNames(schema) || CheckPropertyNames(stack, context, schema, value)) && (!IsMinProperties(schema) || CheckMinProperties(stack, context, schema, value)) && (!IsMaxProperties(schema) || CheckMaxProperties(stack, context, schema, value))) && (!IsArray$1(value) || (!IsAdditionalItems(schema) || CheckAdditionalItems(stack, context, schema, value)) && (!IsContains(schema) || CheckContains(stack, context, schema, value)) && (!IsItems(schema) || CheckItems(stack, context, schema, value)) && (!IsMaxContains(schema) || CheckMaxContains(stack, context, schema, value)) && (!IsMaxItems(schema) || CheckMaxItems(stack, context, schema, value)) && (!IsMinContains(schema) || CheckMinContains(stack, context, schema, value)) && (!IsMinItems(schema) || CheckMinItems(stack, context, schema, value)) && (!IsPrefixItems(schema) || CheckPrefixItems(stack, context, schema, value)) && (!IsUniqueItems(schema) || CheckUniqueItems(stack, context, schema, value))) && (!IsString$2(value) || (!IsMaxLength(schema) || CheckMaxLength(stack, context, schema, value)) && (!IsMinLength(schema) || CheckMinLength(stack, context, schema, value)) && (!IsFormat(schema) || CheckFormat(stack, context, schema, value)) && (!IsPattern(schema) || CheckPattern(stack, context, schema, value))) && (!(IsNumber$2(value) || IsBigInt$1(value)) || (!IsExclusiveMaximum(schema) || CheckExclusiveMaximum(stack, context, schema, value)) && (!IsExclusiveMinimum(schema) || CheckExclusiveMinimum(stack, context, schema, value)) && (!IsMaximum(schema) || CheckMaximum(stack, context, schema, value)) && (!IsMinimum(schema) || CheckMinimum(stack, context, schema, value)) && (!IsMultipleOf(schema) || CheckMultipleOf(stack, context, schema, value))) && (!IsRef(schema) || CheckRef(stack, context, schema, value)) && (!IsRecursiveRef(schema) || CheckRecursiveRef(stack, context, schema, value)) && (!IsDynamicRef(schema) || CheckDynamicRef(stack, context, schema, value)) && (!IsConst(schema) || CheckConst(stack, context, schema, value)) && (!IsEnum(schema) || CheckEnum(stack, context, schema, value)) && (!IsIf(schema) || CheckIf(stack, context, schema, value)) && (!IsNot(schema) || CheckNot(stack, context, schema, value)) && (!IsAllOf(schema) || CheckAllOf(stack, context, schema, value)) && (!IsAnyOf(schema) || CheckAnyOf(stack, context, schema, value)) && (!IsOneOf(schema) || CheckOneOf(stack, context, schema, value)) && (!IsUnevaluatedItems(schema) || !IsArray$1(value) || CheckUnevaluatedItems(stack, context, schema, value)) && (!IsUnevaluatedProperties(schema) || !IsObject$1(value) || CheckUnevaluatedProperties(stack, context, schema, value)) && (!IsRefine(schema) || CheckRefine(stack, context, schema, value)); stack.Pop(schema); return result; } @@ -3462,12 +3448,12 @@ function ErrorSchemaPushStack(stack, context, schemaPath, instancePath, schema, } function ErrorSchema(stack, context, schemaPath, instancePath, schema, value) { stack.Push(schema); - const result = IsBooleanSchema(schema) ? ErrorBooleanSchema(stack, context, schemaPath, instancePath, schema, value) : !!(+(!IsType(schema) || ErrorType(stack, context, schemaPath, instancePath, schema, value)) & +(!(IsObject$1(value) && !IsArray$1(value)) || !!(+(!IsRequired(schema) || ErrorRequired(stack, context, schemaPath, instancePath, schema, value)) & +(!IsAdditionalProperties(schema) || ErrorAdditionalProperties(stack, context, schemaPath, instancePath, schema, value)) & +(!IsDependencies(schema) || ErrorDependencies(stack, context, schemaPath, instancePath, schema, value)) & +(!IsDependentRequired(schema) || ErrorDependentRequired(stack, context, schemaPath, instancePath, schema, value)) & +(!IsDependentSchemas(schema) || ErrorDependentSchemas(stack, context, schemaPath, instancePath, schema, value)) & +(!IsPatternProperties(schema) || ErrorPatternProperties(stack, context, schemaPath, instancePath, schema, value)) & +(!IsProperties(schema) || ErrorProperties(stack, context, schemaPath, instancePath, schema, value)) & +(!IsPropertyNames(schema) || ErrorPropertyNames(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMinProperties(schema) || ErrorMinProperties(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMaxProperties(schema) || ErrorMaxProperties(stack, context, schemaPath, instancePath, schema, value)))) & +(!IsArray$1(value) || !!(+(!IsAdditionalItems(schema) || ErrorAdditionalItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsContains(schema) || ErrorContains(stack, context, schemaPath, instancePath, schema, value)) & +(!IsItems(schema) || ErrorItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMaxContains(schema) || ErrorMaxContains(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMaxItems(schema) || ErrorMaxItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMinContains(schema) || ErrorMinContains(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMinItems(schema) || ErrorMinItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsPrefixItems(schema) || ErrorPrefixItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsUniqueItems(schema) || ErrorUniqueItems(stack, context, schemaPath, instancePath, schema, value)))) & +(!IsString$2(value) || !!(+(!IsMaxLength(schema) || ErrorMaxLength(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMinLength(schema) || ErrorMinLength(stack, context, schemaPath, instancePath, schema, value)) & +(!IsFormat(schema) || ErrorFormat(stack, context, schemaPath, instancePath, schema, value)) & +(!IsPattern(schema) || ErrorPattern(stack, context, schemaPath, instancePath, schema, value)))) & +(!(IsNumber$2(value) || IsBigInt$1(value)) || !!(+(!IsExclusiveMaximum(schema) || ErrorExclusiveMaximum(stack, context, schemaPath, instancePath, schema, value)) & +(!IsExclusiveMinimum(schema) || ErrorExclusiveMinimum(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMaximum(schema) || ErrorMaximum(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMinimum(schema) || ErrorMinimum(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMultipleOf(schema) || ErrorMultipleOf(stack, context, schemaPath, instancePath, schema, value)))) & +(!IsRef(schema) || ErrorRef(stack, context, schemaPath, instancePath, schema, value)) & +(!IsRecursiveRef(schema) || ErrorRecursiveRef(stack, context, schemaPath, instancePath, schema, value)) & +(!IsDynamicRef(schema) || ErrorDynamicRef(stack, context, schemaPath, instancePath, schema, value)) & +(!IsGuard(schema) || ErrorGuard(stack, context, schemaPath, instancePath, schema, value)) & +(!IsConst(schema) || ErrorConst(stack, context, schemaPath, instancePath, schema, value)) & +(!IsEnum(schema) || ErrorEnum(stack, context, schemaPath, instancePath, schema, value)) & +(!IsIf(schema) || ErrorIf(stack, context, schemaPath, instancePath, schema, value)) & +(!IsNot(schema) || ErrorNot(stack, context, schemaPath, instancePath, schema, value)) & +(!IsAllOf(schema) || ErrorAllOf(stack, context, schemaPath, instancePath, schema, value)) & +(!IsAnyOf(schema) || ErrorAnyOf(stack, context, schemaPath, instancePath, schema, value)) & +(!IsOneOf(schema) || ErrorOneOf(stack, context, schemaPath, instancePath, schema, value)) & +(!IsUnevaluatedItems(schema) || !IsArray$1(value) || ErrorUnevaluatedItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsUnevaluatedProperties(schema) || !IsObject$1(value) || ErrorUnevaluatedProperties(stack, context, schemaPath, instancePath, schema, value))) && (!IsRefine(schema) || ErrorRefine(stack, context, schemaPath, instancePath, schema, value)); + const result = IsBooleanSchema(schema) ? ErrorBooleanSchema(stack, context, schemaPath, instancePath, schema, value) : !!(+(!IsType(schema) || ErrorType(stack, context, schemaPath, instancePath, schema, value)) & +(!(IsObject$1(value) && !IsArray$1(value)) || !!(+(!IsRequired(schema) || ErrorRequired(stack, context, schemaPath, instancePath, schema, value)) & +(!IsAdditionalProperties(schema) || ErrorAdditionalProperties(stack, context, schemaPath, instancePath, schema, value)) & +(!IsDependencies(schema) || ErrorDependencies(stack, context, schemaPath, instancePath, schema, value)) & +(!IsDependentRequired(schema) || ErrorDependentRequired(stack, context, schemaPath, instancePath, schema, value)) & +(!IsDependentSchemas(schema) || ErrorDependentSchemas(stack, context, schemaPath, instancePath, schema, value)) & +(!IsPatternProperties(schema) || ErrorPatternProperties(stack, context, schemaPath, instancePath, schema, value)) & +(!IsProperties(schema) || ErrorProperties(stack, context, schemaPath, instancePath, schema, value)) & +(!IsPropertyNames(schema) || ErrorPropertyNames(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMinProperties(schema) || ErrorMinProperties(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMaxProperties(schema) || ErrorMaxProperties(stack, context, schemaPath, instancePath, schema, value)))) & +(!IsArray$1(value) || !!(+(!IsAdditionalItems(schema) || ErrorAdditionalItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsContains(schema) || ErrorContains(stack, context, schemaPath, instancePath, schema, value)) & +(!IsItems(schema) || ErrorItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMaxContains(schema) || ErrorMaxContains(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMaxItems(schema) || ErrorMaxItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMinContains(schema) || ErrorMinContains(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMinItems(schema) || ErrorMinItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsPrefixItems(schema) || ErrorPrefixItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsUniqueItems(schema) || ErrorUniqueItems(stack, context, schemaPath, instancePath, schema, value)))) & +(!IsString$2(value) || !!(+(!IsMaxLength(schema) || ErrorMaxLength(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMinLength(schema) || ErrorMinLength(stack, context, schemaPath, instancePath, schema, value)) & +(!IsFormat(schema) || ErrorFormat(stack, context, schemaPath, instancePath, schema, value)) & +(!IsPattern(schema) || ErrorPattern(stack, context, schemaPath, instancePath, schema, value)))) & +(!(IsNumber$2(value) || IsBigInt$1(value)) || !!(+(!IsExclusiveMaximum(schema) || ErrorExclusiveMaximum(stack, context, schemaPath, instancePath, schema, value)) & +(!IsExclusiveMinimum(schema) || ErrorExclusiveMinimum(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMaximum(schema) || ErrorMaximum(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMinimum(schema) || ErrorMinimum(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMultipleOf(schema) || ErrorMultipleOf(stack, context, schemaPath, instancePath, schema, value)))) & +(!IsRef(schema) || ErrorRef(stack, context, schemaPath, instancePath, schema, value)) & +(!IsRecursiveRef(schema) || ErrorRecursiveRef(stack, context, schemaPath, instancePath, schema, value)) & +(!IsDynamicRef(schema) || ErrorDynamicRef(stack, context, schemaPath, instancePath, schema, value)) & +(!IsConst(schema) || ErrorConst(stack, context, schemaPath, instancePath, schema, value)) & +(!IsEnum(schema) || ErrorEnum(stack, context, schemaPath, instancePath, schema, value)) & +(!IsIf(schema) || ErrorIf(stack, context, schemaPath, instancePath, schema, value)) & +(!IsNot(schema) || ErrorNot(stack, context, schemaPath, instancePath, schema, value)) & +(!IsAllOf(schema) || ErrorAllOf(stack, context, schemaPath, instancePath, schema, value)) & +(!IsAnyOf(schema) || ErrorAnyOf(stack, context, schemaPath, instancePath, schema, value)) & +(!IsOneOf(schema) || ErrorOneOf(stack, context, schemaPath, instancePath, schema, value)) & +(!IsUnevaluatedItems(schema) || !IsArray$1(value) || ErrorUnevaluatedItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsUnevaluatedProperties(schema) || !IsObject$1(value) || ErrorUnevaluatedProperties(stack, context, schemaPath, instancePath, schema, value))) && (!IsRefine(schema) || ErrorRefine(stack, context, schemaPath, instancePath, schema, value)); stack.Pop(schema); return result; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/_functions.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/_functions.mjs const functions = /* @__PURE__ */ new Map(); function CreateCallExpression(context, _schema, hash, value) { return context.UseUnevaluated() ? Call(`check_${hash}`, ["context", value]) : Call(`check_${hash}`, [value]); @@ -3494,7 +3480,7 @@ function CreateFunction(stack, context, schema, value) { return call; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/pointer/pointer.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/pointer/pointer.mjs function GetIndex(index, value) { return IsObject$1(value) && !IsUnsafePropertyKey(index) ? value[index] : void 0; } @@ -3512,7 +3498,7 @@ function Get(value, pointer) { return GetIndices(Indices(pointer), value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/resolve/ref.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/resolve/ref.mjs function MatchId(schema, base, ref) { if (schema.$id === ref.hash) return schema; const absoluteId = new URL(schema.$id, base.href); @@ -3585,7 +3571,7 @@ function DynamicRef(root, base, dynamicRef, dynamicAnchors) { return dynamicAnchors.find((anchor) => anchor.$dynamicAnchor === fragmentTarget.$dynamicAnchor) ?? fragmentTarget; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/_stack.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/_stack.mjs var __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"); @@ -3658,7 +3644,7 @@ _Stack_instances = /* @__PURE__ */ new WeakSet(), _Stack_PushResourceAnchors = f return !ref.$ref.startsWith("#") ? Ref(root, ref.$ref) : Ref(this.Base(), ref.$ref); }; //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/build.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/build.mjs function CreateCode(build) { return `${build.Functions().join(";\n")}; return (value) => { ${(build.UseUnevaluated() ? ["const context = new CheckContext({}, {})", `return ${build.Entry()}`] : [`return ${build.Entry()}`]).join("; ")} }`; } @@ -3744,7 +3730,7 @@ function Build(...args) { return new BuildResult(context, schema, GetExternal(), functions, call, build.UseUnevaluated()); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/errors.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/errors.mjs /** Checks a value and returns validation errors */ function Errors(...args) { const [context, schema, value] = Match$1(args, { @@ -3771,7 +3757,7 @@ function Errors(...args) { }), "#", "", schema, value), errors]; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/parse.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/parse.mjs var ParseError = class { constructor(schema, value, errors) { this.schema = schema; @@ -3780,7 +3766,7 @@ var ParseError = class { } }; //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/compile.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/compile.mjs var Validator = class { constructor(context, schema) { this.buildResult = Build(context, schema); diff --git a/schemas/libraries/typebox/download_compiled/schema/minified.js b/schemas/libraries/typebox/download_compiled/schema/minified.js index 5ae1fe5f..d0068ca6 100644 --- a/schemas/libraries/typebox/download_compiled/schema/minified.js +++ b/schemas/libraries/typebox/download_compiled/schema/minified.js @@ -1 +1 @@ -const e={assign:0,create:0,clone:0,discard:0,update:0};function t(e,t,n){return e>=t&&e<=n}function n(e){return t(e,127462,127487)}function r(e){return t(e,65024,65039)}function i(e){return t(e,768,879)||t(e,6832,6911)||t(e,7616,7679)||t(e,65056,65071)}function a(e){return e>65535?2:1}function o(e,t){for(;t=t)return!0;return!1}function u(e,t){let n=0,r=0;for(;rt)return!1;return!0}function ee(e,t){if(t===0)return!0;let n=0;for(;n=t)return!0}return!1}function te(e,t){let n=0;for(;nt)return!1}return!0}function d(e){return Array.isArray(e)}function ne(e){return g(e)&&Symbol.asyncIterator in e}function f(e){return y(typeof e,`bigint`)}function p(e){return y(typeof e,`boolean`)}function re(e){if(v(e)||!m(e))return!1;let t=Function.prototype.toString.call(e);return!!(/^class\s/.test(t)||/\[native code\]/.test(t))}function m(e){return y(typeof e,`function`)}function ie(e){return Number.isInteger(e)}function ae(e){return g(e)&&Symbol.iterator in e}function oe(e){return y(e,null)}function h(e){return Number.isFinite(e)}function se(e){return g(e)&&!d(e)}function g(e){return y(typeof e,`object`)&&!oe(e)}function _(e){return y(typeof e,`string`)}function ce(e){return y(typeof e,`symbol`)}function v(e){return y(e,void 0)}function y(e,t){return e===t}function le(e,t){return e>t}function ue(e,t){return e=t}function de(e,t){if(f(e)||f(t))return BigInt(e)%BigInt(t)===0n;if(!h(e)||ie(e)&&1/t%1==0)return!0;let n=e%t;return Math.min(Math.abs(n),Math.abs(n-t))<1e-10}function fe(e){return f(e)||p(e)||oe(e)||h(e)||_(e)||v(e)}function pe(e,t){return te(e,t)}function me(e,t){return ee(e,t)}function S(e,t,n){for(let r=t;rD(e[n],t[n]))}function _e(e,t){return d(t)&&y(e.length,t.length)&&e.every((n,r)=>D(e[r],t[r]))}function D(e,t){return d(e)?_e(e,t):g(e)?ge(e,t):y(e,t)}function ve(e){return e instanceof Boolean}function ye(e){return e instanceof Number}function be(e){return e instanceof String}function xe(e){return globalThis.ArrayBuffer.isView(e)}function Se(e){return e instanceof globalThis.RegExp}function Ce(e){return e instanceof globalThis.Date}function we(e){return g(e)&&w(e,`~guard`)}function Te(e){return e}function Ee(e){return e.map(e=>Ae(e))}function De(e){let t={},n=Object.getOwnPropertyDescriptors(e);for(let e of Object.keys(n)){let r=n[e];w(r,`value`)&&Object.defineProperty(t,e,{...r,value:Ae(r.value)})}return t}function Oe(e){return new RegExp(e.source,e.flags)}function ke(e){return e}function Ae(e){return e instanceof RegExp?Oe(e):we(e)?Te(e):d(e)?Ee(e):g(e)?De(e):ke(e)}function je(t){return e.clone+=1,Ae(t)}const Me={immutableTypes:!1,maxErrors:8,useAcceleration:!0,exactOptionalPropertyTypes:!1,enumerableKind:!1,correctiveParse:!1,unionPrioritySort:!0};function Ne(){return Me}function Pe(e,t){for(let n of Object.keys(t))Object.defineProperty(e,n,{configurable:!0,writable:!0,enumerable:!1,value:t[n]});return e}function Fe(e,t){return{...e,...t}}function O(t,n,r={}){e.create+=1;let i=Ne(),a=Fe(n,r),o=i.enumerableKind?Fe(a,t):Pe(a,t);return i.immutableTypes?Object.freeze(o):o}function Ie(t,n,r){e.update+=1;let i=Ne(),a=je(t);for(let e of Object.keys(n))Object.defineProperty(a,e,{configurable:!0,writable:!0,enumerable:i.enumerableKind,value:n[e]});for(let e of Object.keys(r))Object.defineProperty(a,e,{configurable:!0,enumerable:!0,writable:!0,value:r[e]});return a}function Le(e){return g(e)}function Re(e,t){return O({"~kind":`Array`},{type:`array`,items:e},t)}function ze(e){return Le(e)&&w(e,`~optional`)}function Be(e){return E(e).filter(t=>!ze(e[t]))}function Ve(e,t={}){let n=Be(e);return O({"~kind":`Object`},{type:`object`,...n.length>0?{required:n}:{},properties:e},t)}function He(e){return Ie(e,{"~unsafe":null},{})}function Ue(e,t){return t[e.length]?.(...e)??(()=>{throw Error(`Invalid Arguments`)})()}function We(e){return se(e)}function Ge(e){return E(e).filter(e=>isNaN(e)).reduce((t,n)=>[...t,e[n]],[])}function Ke(e,t){return O({"~kind":`Enum`},{enum:We(e)?Ge(e):e},t)}function qe(){throw Error(`Unreachable`)}function Je(e){let t=new Set,n=e;for(;n&&n!==Object.prototype;){for(let e of Reflect.ownKeys(n))e!==`constructor`&&typeof e!=`symbol`&&t.add(e);n=Object.getPrototypeOf(n)}return[...t]}function Ye(e){return typeof e==`number`}var k;(function(e){e[e.Array=0]=`Array`,e[e.BigInt=1]=`BigInt`,e[e.Boolean=2]=`Boolean`,e[e.Date=3]=`Date`,e[e.Constructor=4]=`Constructor`,e[e.Function=5]=`Function`,e[e.Null=6]=`Null`,e[e.Number=7]=`Number`,e[e.Object=8]=`Object`,e[e.RegExp=9]=`RegExp`,e[e.String=10]=`String`,e[e.Symbol=11]=`Symbol`,e[e.TypeArray=12]=`TypeArray`,e[e.Undefined=13]=`Undefined`})(k||={});let A=BigInt(`14695981039346656037`);const[Xe,Ze]=[BigInt(`1099511628211`),BigInt(`18446744073709551616`)],Qe=Array.from({length:256}).map((e,t)=>BigInt(t)),$e=new Float64Array(1),et=new DataView($e.buffer),tt=new Uint8Array($e.buffer);function j(e){A^=Qe[e],A=A*Xe%Ze}function nt(e){j(k.Array);for(let t of e)M(t)}function rt(e){j(k.BigInt),et.setBigInt64(0,e);for(let e of tt)j(e)}function it(e){j(k.Boolean),j(+!!e)}function at(e){j(k.Constructor),M(e.toString())}function ot(e){j(k.Date),M(e.getTime())}function st(e){j(k.Function),M(e.toString())}function ct(e){j(k.Null)}function lt(e){j(k.Number),et.setFloat64(0,e,!0);for(let e of tt)j(e)}function ut(e){j(k.Object);for(let t of Je(e).sort())M(t),M(e[t])}function dt(e){j(k.RegExp),pt(e.toString())}const ft=new TextEncoder;function pt(e){j(k.String);for(let t of ft.encode(e))j(t)}function mt(e){j(k.Symbol),M(e.toString())}function ht(e){j(k.TypeArray);let t=new Uint8Array(e.buffer);for(let e=0;e[e,t,n],2:(e,t)=>[e,t,()=>`Refine Error`]});return St(t,{check:n,error:_(r)?()=>r:r})}function wt(e){return se(e)&&w(e,`check`)&&w(e,`error`)&&m(e.check)&&m(e.error)}function Tt(e){return Le(e)&&w(e,`~refine`)&&d(e[`~refine`])&&S(e[`~refine`],0,e=>wt(e))}function Et(e){return O({"~kind":`Null`},{type:`null`},e)}function N(e){return O({"~kind":`Number`},{type:`number`},e)}function P(e){return O({"~kind":`String`},{type:`string`},e)}function Dt(e,t={}){return O({"~kind":`Union`},{anyOf:e},t)}function Ot(e,t){return Array.from({length:t-e+1},(t,n)=>String.fromCharCode(e+n))}const kt=[...Ot(97,122),...Ot(65,90)],At=[`0`,...Ot(49,57)];[...At],[...kt,...At],[...At];function jt(e){return g(e)&&w(e,`check`)&&w(e,`errors`)&&m(e.check)&&m(e.errors)}function Mt(e){return w(e,`~guard`)&&jt(e[`~guard`])}function Nt(e){return w(e,`~refine`)&&d(e[`~refine`])&&S(e[`~refine`],0,e=>g(e)&&w(e,`check`)&&w(e,`error`)&&m(e.check)&&m(e.error))}function F(e){return g(e)&&!d(e)}function Pt(e){return p(e)}function I(e){return F(e)||Pt(e)}function Ft(e){return w(e,`additionalItems`)&&I(e.additionalItems)}function It(e){return w(e,`additionalProperties`)&&I(e.additionalProperties)}function Lt(e){return w(e,`allOf`)&&d(e.allOf)&&e.allOf.every(e=>I(e))}function Rt(e){return w(e,`$anchor`)&&_(e.$anchor)}function zt(e){return w(e,`anyOf`)&&d(e.anyOf)&&e.anyOf.every(e=>I(e))}function Bt(e){return w(e,`const`)}function L(e){return w(e,`contains`)&&I(e.contains)}function Vt(e){return w(e,`dependencies`)&&g(e.dependencies)&&Object.values(e.dependencies).every(e=>I(e)||d(e)&&e.every(e=>_(e)))}function Ht(e){return w(e,`dependentRequired`)&&g(e.dependentRequired)&&Object.values(e.dependentRequired).every(e=>d(e)&&e.every(e=>_(e)))}function Ut(e){return w(e,`dependentSchemas`)&&g(e.dependentSchemas)&&Object.values(e.dependentSchemas).every(e=>I(e))}function R(e){return w(e,`$dynamicAnchor`)&&_(e.$dynamicAnchor)}function Wt(e){return w(e,`$dynamicRef`)&&_(e.$dynamicRef)}function Gt(e){return w(e,`else`)&&I(e.else)}function Kt(e){return w(e,`enum`)&&d(e.enum)}function qt(e){return w(e,`exclusiveMaximum`)&&(h(e.exclusiveMaximum)||f(e.exclusiveMaximum))}function Jt(e){return w(e,`exclusiveMinimum`)&&(h(e.exclusiveMinimum)||f(e.exclusiveMinimum))}function Yt(e){return w(e,`format`)&&_(e.format)}function z(e){return w(e,`$id`)&&_(e.$id)}function Xt(e){return w(e,`if`)&&I(e.if)}function B(e){return w(e,`items`)&&(I(e.items)||d(e.items)&&e.items.every(e=>I(e)))}function Zt(e){return B(e)&&d(e.items)}function Qt(e){return w(e,`maximum`)&&(h(e.maximum)||f(e.maximum))}function $t(e){return w(e,`maxContains`)&&h(e.maxContains)}function en(e){return w(e,`maxItems`)&&h(e.maxItems)}function tn(e){return w(e,`maxLength`)&&h(e.maxLength)}function nn(e){return w(e,`maxProperties`)&&h(e.maxProperties)}function rn(e){return w(e,`minimum`)&&(h(e.minimum)||f(e.minimum))}function V(e){return w(e,`minContains`)&&h(e.minContains)}function an(e){return w(e,`minItems`)&&h(e.minItems)}function on(e){return w(e,`minLength`)&&h(e.minLength)}function sn(e){return w(e,`minProperties`)&&h(e.minProperties)}function cn(e){return w(e,`multipleOf`)&&(h(e.multipleOf)||f(e.multipleOf))}function ln(e){return w(e,`not`)&&I(e.not)}function un(e){return w(e,`oneOf`)&&d(e.oneOf)&&e.oneOf.every(e=>I(e))}function dn(e){return w(e,`pattern`)&&(_(e.pattern)||e.pattern instanceof RegExp)}function fn(e){return w(e,`patternProperties`)&&g(e.patternProperties)&&Object.values(e.patternProperties).every(e=>I(e))}function H(e){return w(e,`prefixItems`)&&d(e.prefixItems)&&e.prefixItems.every(e=>I(e))}function pn(e){return w(e,`properties`)&&g(e.properties)&&Object.values(e.properties).every(e=>I(e))}function mn(e){return w(e,`propertyNames`)&&(g(e.propertyNames)||I(e.propertyNames))}function hn(e){return w(e,`$recursiveAnchor`)&&p(e.$recursiveAnchor)}function gn(e){return hn(e)&&y(e.$recursiveAnchor,!0)}function _n(e){return w(e,`$recursiveRef`)&&_(e.$recursiveRef)}function vn(e){return w(e,`$ref`)&&_(e.$ref)}function U(e){return w(e,`required`)&&d(e.required)&&e.required.every(e=>_(e))}function yn(e){return w(e,`then`)&&I(e.then)}function bn(e){return w(e,`type`)&&(_(e.type)||d(e.type)&&e.type.every(e=>_(e)))}function xn(e){return w(e,`uniqueItems`)&&p(e.uniqueItems)}function Sn(e){return w(e,`unevaluatedItems`)&&I(e.unevaluatedItems)}function Cn(e){return w(e,`unevaluatedProperties`)&&I(e.unevaluatedProperties)}var W=class{constructor(){let e=new Set,t=new Set;this.stack=[{indices:e,keys:t}]}Push(){let e=new Set,t=new Set;return this.stack.push({indices:e,keys:t}),!0}Pop(){return this.stack.pop(),!0}AddIndex(e){return this.GetIndices().add(e),!0}AddKey(e){return this.GetKeys().add(e),!0}GetIndices(){return this.stack[this.stack.length-1].indices}GetKeys(){return this.stack[this.stack.length-1].keys}Merge(e){for(let t of e)t.GetIndices().forEach(e=>this.GetIndices().add(e)),t.GetKeys().forEach(e=>this.GetKeys().add(e));return!0}},wn=class extends W{constructor(e){super(),this.callback=e}AddError(e){return this.callback(e),!1}},G=class extends wn{constructor(){super(e=>this.errors.push(e)),this.errors=[]}AddError(e){return this.errors.push(e),!1}GetErrors(){return this.errors}};function Tn(e,t,n,r){return n[`~guard`].check(r)}function En(e,t,n,r,i,a){return i[`~guard`].check(a)||t.AddError({keyword:`~guard`,schemaPath:n,instancePath:r,params:{errors:i[`~guard`].errors(a)}})}function Dn(e,t,n,r){return S(n[`~refine`],0,(e,t)=>e.check(r))}function On(e,t,n,r,i,a){return C(i[`~refine`],0,(e,i)=>e.check(a)||t.AddError({keyword:`~refine`,schemaPath:n,instancePath:r,params:{index:i,message:e.error(a)}}))}function kn(e){return B(e)&&d(e.items)}function An(e,t,n,r){return kn(n)?r.every((r,i)=>ue(i,n.items.length)||q(e,t,n.additionalItems,r)&&t.AddIndex(i)):!0}function jn(e,t,n,r,i,a){return kn(i)?a.every((a,o)=>{let s=`${n}/additionalItems`,c=`${r}/${o}`;return ue(o,i.items.length)||Y(e,t,s,c,i.additionalItems,a)&&t.AddIndex(o)}):!0}function Mn(e){return`^${e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}$`}function Nn(e){let t=[];return fn(e)&&t.push(...E(e.patternProperties)),pn(e)&&t.push(...E(e.properties).map(Mn)),y(t.length,0)?`(?!)`:`(${t.join(`|`)})`}function Pn(e,t,n,r){let i=new RegExp(Nn(n));return S(E(r),0,(a,o)=>i.test(a)||q(e,t,n.additionalProperties,r[a])&&t.AddKey(a))}function Fn(e,t,n,r,i,a){let o=new RegExp(Nn(i)),s=[];return C(E(a),0,(c,l)=>{let u=`${n}/additionalProperties`,ee=`${r}/${c}`,te=new G,d=o.test(c)||Y(e,te,u,ee,i.additionalProperties,a[c])&&t.AddKey(c);return d||s.push(c),d})||t.AddError({keyword:`additionalProperties`,schemaPath:n,instancePath:r,params:{additionalProperties:s}})}function In(e,t,n,r){let i=n.allOf.reduce((t,n)=>{let i=new W;return J(e,i,n,r)?[...t,i]:t},[]);return y(i.length,n.allOf.length)&&t.Merge(i)}function Ln(e,t,n,r,i,a){let o=[],s=i.allOf.reduce((t,i,s)=>{let c=`${n}/allOf/${s}`,l=new G,u=X(e,l,c,r,i,a);return u||o.push(l),u?[...t,l]:t},[]),c=y(s.length,i.allOf.length)&&t.Merge(s);return c||o.forEach(e=>e.GetErrors().forEach(e=>t.AddError(e))),c}function Rn(e,t,n,r){let i=n.anyOf.reduce((t,n)=>{let i=new W;return J(e,i,n,r)?[...t,i]:t},[]);return le(i.length,0)&&t.Merge(i)}function zn(e,t,n,r,i,a){let o=[],s=i.anyOf.reduce((t,i,s)=>{let c=new G,l=X(e,c,`${n}/anyOf/${s}`,r,i,a);return l||o.push(c),l?[...t,c]:t},[]),c=le(s.length,0)&&t.Merge(s);return c||o.forEach(e=>e.GetErrors().forEach(e=>t.AddError(e))),c||t.AddError({keyword:`anyOf`,schemaPath:n,instancePath:r,params:{}})}function Bn(e,t,n,r){return n}function Vn(e,t,n,r,i,a){return Bn(e,t,i,a)||t.AddError({keyword:`boolean`,schemaPath:n,instancePath:r,params:{}})}function Hn(e,t,n,r){return fe(n.const)?y(r,n.const):D(r,n.const)}function Un(e,t,n,r,i,a){return Hn(e,t,i,a)||t.AddError({keyword:`const`,schemaPath:n,instancePath:r,params:{allowedValue:i.const}})}function Wn(e){return!(V(e)&&y(e.minContains,0))}function Gn(e,t,n,r){return Wn(n)?!y(r.length,0)&&r.some(r=>J(e,t,n.contains,r)):!0}function Kn(e,t,n,r,i,a){return Gn(e,t,i,a)||t.AddError({keyword:`contains`,schemaPath:n,instancePath:r,params:{minContains:1}})}function qn(e,t,n,r){let i=y(E(r).length,0),a=S(T(n.dependencies),0,([n,i])=>!w(r,n)||(d(i)?i.every(e=>w(r,e)):J(e,t,i,r)));return i||a}function Jn(e,t,n,r,i,a){let o=y(E(a).length,0),s=C(T(i.dependencies),0,([i,o])=>{let s=`${n}/dependencies/${i}`;return!w(a,i)||(d(o)?o.every(e=>w(a,e)||t.AddError({keyword:`dependencies`,schemaPath:n,instancePath:r,params:{property:i,dependencies:o}})):X(e,t,s,r,o,a))});return o||s}function Yn(e,t,n,r){let i=y(E(r).length,0),a=S(T(n.dependentRequired),0,([e,t])=>!w(r,e)||t.every(e=>w(r,e)));return i||a}function Xn(e,t,n,r,i,a){let o=y(E(a).length,0),s=C(T(i.dependentRequired),0,([e,i])=>!w(a,e)||C(i,0,o=>w(a,o)||t.AddError({keyword:`dependentRequired`,schemaPath:n,instancePath:r,params:{property:e,dependencies:i}})));return o||s}function Zn(e,t,n,r){let i=y(E(r).length,0),a=S(T(n.dependentSchemas),0,([n,i])=>!w(r,n)||J(e,t,i,r));return i||a}function Qn(e,t,n,r,i,a){let o=y(E(a).length,0),s=C(T(i.dependentSchemas),0,([i,o])=>{let s=`${n}/dependentSchemas/${i}`;return!w(a,i)||X(e,t,s,r,o,a)});return o||s}function $n(e,t,n,r){let i=e.DynamicRef(n)??!1;return I(i)&&J(e,t,i,r)}function er(e,t,n,r,i,a){let o=e.DynamicRef(i)??!1;return I(o)&&X(e,t,`#`,r,o,a)}function tr(e,t,n,r){return n.enum.some(e=>fe(e)?y(r,e):D(r,e))}function nr(e,t,n,r,i,a){return tr(e,t,i,a)||t.AddError({keyword:`enum`,schemaPath:n,instancePath:r,params:{allowedValues:i.enum}})}function rr(e,t,n,r){return ue(r,n.exclusiveMaximum)}function ir(e,t,n,r,i,a){return rr(e,t,i,a)||t.AddError({keyword:`exclusiveMaximum`,schemaPath:n,instancePath:r,params:{comparison:`<`,limit:i.exclusiveMaximum}})}function ar(e,t,n,r){return le(r,n.exclusiveMinimum)}function or(e,t,n,r,i,a){return ar(e,t,i,a)||t.AddError({keyword:`exclusiveMinimum`,schemaPath:n,instancePath:r,params:{comparison:`>`,limit:i.exclusiveMinimum}})}const sr=[0,31,28,31,30,31,30,31,31,30,31,30,31],cr=/^(\d\d\d\d)-(\d\d)-(\d\d)$/;function lr(e){return e%4==0&&(e%100!=0||e%400==0)}function ur(e){let t=cr.exec(e);if(!t)return!1;let n=+t[1],r=+t[2],i=+t[3];return r>=1&&r<=12&&i>=1&&i<=(r===2&&lr(n)?29:sr[r])}const dr=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(?:Z|([+-])(\d\d):(\d\d))?$/i;function fr(e,t=!0){let n=dr.exec(e);if(!n)return!1;let r=+n[1],i=+n[2],a=+n[3],o=n[4]===`-`?-1:1,s=+(n[5]||0),c=+(n[6]||0);if(s>23||c>59||t&&!n[4]&&e.toLowerCase().indexOf(`z`)===-1)return!1;if(r<=23&&i<=59&&a<60)return!0;let l=i-c*o,u=r-s*o-+(l<0);return(u===23||u===-1)&&(l===59||l===-1)&&a<61}function pr(e,t=!0){let n=e.split(/T/i);return n.length===2&&ur(n[0])&&fr(n[1],t)}const mr=/^P((\d+Y(\d+M(\d+D)?)?|\d+M(\d+D)?|\d+D)(T(\d+H(\d+M(\d+S)?)?|\d+M(\d+S)?|\d+S))?|T(\d+H(\d+M(\d+S)?)?|\d+M(\d+S)?|\d+S)|\d+W)$/;function hr(e){return mr.test(e)}const gr=/^(?!.*\.\.)[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i;function _r(e){return gr.test(e)}function vr(e,t,n){e=n?Math.floor(e/700):e>>1,e+=Math.floor(e/t);let r=0;for(;e>455;)e=Math.floor(e/35),r+=36;return r+Math.floor(36*e/(e+38))}function yr(e){let t=[],n=128,r=0,i=72,a=e.lastIndexOf(`-`);if(a>0)for(let n=0;n=128)throw Error(`Invalid punycode: non-basic before delimiter`);t.push(r)}let o=a<0?0:a+1;for(;o=e.length)throw Error(`Invalid punycode: unexpected end of input`);let t=e.charCodeAt(o++),n;if(t>=97&&t<=122)n=t-97;else if(t>=48&&t<=57)n=t-48+26;else if(t>=65&&t<=90)n=t-65;else throw Error(`Invalid punycode: bad digit character`);r+=n*s;let a=c<=i?1:c>=i+26?26:c-i;if(n=1632&&e<=1641}function Mr(e){return e>=1776&&e<=1785}function Nr(e){return Tr.has(e)}function Pr(e){if(e.length===0)return!1;let t=[...e].map(e=>e.codePointAt(0)),n=t.length;if(t[0]===45||t[n-1]===45||n>=4&&t[2]===45&&t[3]===45||Cr(t[0]))return!1;let r=!1,i=!1,a=!1;for(let e=0;e=4&&e.charCodeAt(2)===45&&e.charCodeAt(3)===45)return!1;for(let t=0;t=97&&n<=122||n>=65&&n<=90||n>=48&&n<=57||n===45))return!1}return!0}function Ir(e){return e.toLowerCase().startsWith(`xn--`)}function Lr(e){try{return Pr(yr(e.slice(4)))}catch{return!1}}function Rr(e){return e.length===0||e.length>63?!1:Ir(e)?Lr(e):Pr(e)}function zr(e){return e.length===0||e.length>63?!1:Ir(e)?Lr(e):Fr(e)}function Br(e){if(e.length===0||e.length>253||e.charCodeAt(e.length-1)===46)return!1;for(let t of e.split(`.`))if(!zr(t))return!1;return!0}const Vr=/^(?!.*\.\.)[\p{L}\p{N}!#$%&'*+/=?^_`{|}~-]+(?:\.[\p{L}\p{N}!#$%&'*+/=?^_`{|}~-]+)*@[\p{L}\p{N}](?:[\p{L}\p{N}-]{0,61}[\p{L}\p{N}])?(?:\.[\p{L}\p{N}](?:[\p{L}\p{N}-]{0,61}[\p{L}\p{N}])?)*$/iu;function Hr(e){return Vr.test(e)}function Ur(e){if(e.length===0||e.includes(` `))return!1;let t=e.normalize(`NFC`).replace(/[\u002E\u3002\uFF0E\uFF61]/g,`.`);if(t.length>253)return!1;for(let e of t.split(`.`))if(!Rr(e))return!1;return!0}function Wr(e,t,n){let r=0,i=0,a=0,o=0;for(let s=t;s255||o===48&&a>1)return!1;r++,i=0,a=0,o=0}else if(t>=48&&t<=57)a===0&&(o=t),i=i*10+(t-48),a++;else return!1}return r===3&&a>0&&i<=255&&!(o===48&&a>1)}function Gr(e){return Wr(e,0,e.length)}function Kr(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function qr(e){let t=e.length;if(t===0)return!1;let n=0,r=!1,i=0;if(e.charCodeAt(0)===58&&e.charCodeAt(1)===58){if(t===2)return!0;r=!0,i=2}for(;i4)return!1;if(n++,i===t)break;if(s!==58)return!1;if(i++,e.charCodeAt(i)===58){if(r||e.charCodeAt(i+1)===58)return!1;if(r=!0,i++,i===t)break}}return r?n<=7:n===8}function Jr(e){try{return new URL(e,`http://example.com`),!0}catch{return!1}}function Yr(e){if(e.includes(` `)||e.includes(`\\`)||/[\x00-\x1F\x7F]/.test(e)||/%(?![0-9a-fA-F]{2})/.test(e))return!1;if(e===``)return!0;let t=e.indexOf(`:`);return t>0&&/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(e.substring(0,t))?Jr(e):e.match(/^([a-zA-Z][a-zA-Z0-9+\-.]*)(\/\/)/)&&t===-1?!1:Jr(e)}function Xr(e){try{return new URL(e),!0}catch{return!1}}const Zr=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i;function Qr(e){return Zr.test(e)}const $r=/^(?:\/(?:[^~/]|~0|~1)*)*$/;function ei(e){return $r.test(e)}function ti(e){if(e.length===0)return!1;try{return new RegExp(e),!0}catch{return!1}}const ni=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;function ri(e){return ni.test(e)}const ii=/^(?!.*[^\x00-\x7F])(?!.*\\)(?:(?:[a-z][a-z0-9+\-.]*:)?(?:\/\/[^\s[\]{}<>^`|]*)?|[^\s[\]{}<>^`|]*)(?:\?[^\s[\]{}<>^`|]*)?(?:#[^\s[\]{}<>^`|]*)?$/i;function ai(e){return ii.test(e)}const oi=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i;function si(e){return oi.test(e)}function ci(e){return e>=97&&e<=122||e>=65&&e<=90}function li(e){return ci(e)||e>=48&&e<=57}function ui(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function di(e){return li(e)||e===43||e===45||e===46}function fi(e){return li(e)||e===45||e===46||e===95||e===126}function pi(e){return e===33||e===36||e===38||e===39||e===40||e===41||e===42||e===43||e===44||e===59||e===61}function mi(e){return fi(e)||pi(e)||e===58||e===64}function hi(e){let t=e.length;if(t===0||!ci(e.charCodeAt(0)))return!1;let n=1;for(;n=i||!ui(e.charCodeAt(t+1))||!ui(e.charCodeAt(t+2)))return!1;t+=2}else if(!fi(n)&&!pi(n)&&n!==58)return!1}n=i+1}if(e.charCodeAt(n)===91){for(n++;n57)return!1;n++}}for(;n=t||!ui(e.charCodeAt(n+1))||!ui(e.charCodeAt(n+2)))return!1;n+=2}else if(r>127)return!1;else if(!(mi(r)||r===47||r===63||r===35))return!1;n++}return!0}const gi=/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu;function _i(e){return gi.test(e)}const vi=/^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;function yi(e){return vi.test(e)}const K=new Map;function bi(){K.clear()}function xi(e,t){return K.get(e)?.(t)??!0}function Si(){bi(),K.set(`date-time`,pr),K.set(`date`,ur),K.set(`duration`,hr),K.set(`email`,_r),K.set(`hostname`,Br),K.set(`idn-email`,Hr),K.set(`idn-hostname`,Ur),K.set(`ipv4`,Gr),K.set(`ipv6`,qr),K.set(`iri-reference`,Yr),K.set(`iri`,Xr),K.set(`json-pointer-uri-fragment`,Qr),K.set(`json-pointer`,ei),K.set(`regex`,ti),K.set(`relative-json-pointer`,ri),K.set(`time`,fr),K.set(`uri-reference`,ai),K.set(`uri-template`,si),K.set(`uri`,hi),K.set(`url`,_i),K.set(`uuid`,yi)}Si();function Ci(e,t,n,r){return xi(n.format,r)}function wi(e,t,n,r,i,a){return Ci(e,t,i,a)||t.AddError({keyword:`format`,schemaPath:n,instancePath:r,params:{format:i.format}})}function Ti(e,t,n,r){let i=yn(n)?n.then:!0,a=Gt(n)?n.else:!0;return J(e,t,n.if,r)?J(e,t,i,r):J(e,t,a,r)}function Ei(e,t,n,r,i,a){let o=yn(i)?i.then:!0,s=Gt(i)?i.else:!0,c=new G,l=X(e,c,`${n}/if`,r,i.if,a)?X(e,c,`${n}/then`,r,o,a)||t.AddError({keyword:`if`,schemaPath:n,instancePath:r,params:{failingKeyword:`then`}}):X(e,t,`${n}/else`,r,s,a)||t.AddError({keyword:`if`,schemaPath:n,instancePath:r,params:{failingKeyword:`else`}});return l&&t.Merge([c]),l}function Di(e,t,n,r){return S(n.items,0,(n,i)=>b(r.length,i)||q(e,t,n,r[i])&&t.AddIndex(i))}function Oi(e,t,n,r,i,a){return C(i.items,0,(i,o)=>{let s=`${n}/items/${o}`,c=`${r}/${o}`;return b(a.length,o)||Y(e,t,s,c,i,a[o])&&t.AddIndex(o)})}function ki(e,t,n,r){return S(r,H(n)?n.prefixItems.length:0,(r,i)=>q(e,t,n.items,r)&&t.AddIndex(i))}function Ai(e,t,n,r,i,a){return C(a,H(i)?i.prefixItems.length:0,(a,o)=>Y(e,t,`${n}/items`,`${r}/${o}`,i.items,a)&&t.AddIndex(o))}function ji(e,t,n,r){return Zt(n)?Di(e,t,n,r):ki(e,t,n,r)}function Mi(e,t,n,r,i,a){return Zt(i)?Oi(e,t,n,r,i,a):Ai(e,t,n,r,i,a)}function Ni(e){return L(e)}function Pi(e,t,n,r){return Ni(n)?b(r.reduce((r,i)=>J(e,t,n.contains,i)?++r:r,0),n.maxContains):!0}function Fi(e,t,n,r,i,a){let o=V(i)?i.minContains:1;return Pi(e,t,i,a)||t.AddError({keyword:`contains`,schemaPath:n,instancePath:r,params:{minContains:o,maxContains:i.maxContains}})}function Ii(e,t,n,r){return b(r,n.maximum)}function Li(e,t,n,r,i,a){return Ii(e,t,i,a)||t.AddError({keyword:`maximum`,schemaPath:n,instancePath:r,params:{comparison:`<=`,limit:i.maximum}})}function Ri(e,t,n,r){return b(r.length,n.maxItems)}function zi(e,t,n,r,i,a){return Ri(e,t,i,a)||t.AddError({keyword:`maxItems`,schemaPath:n,instancePath:r,params:{limit:i.maxItems}})}function Bi(e,t,n,r){return pe(r,n.maxLength)}function Vi(e,t,n,r,i,a){return Bi(e,t,i,a)||t.AddError({keyword:`maxLength`,schemaPath:n,instancePath:r,params:{limit:i.maxLength}})}function Hi(e,t,n,r){return b(E(r).length,n.maxProperties)}function Ui(e,t,n,r,i,a){return Hi(e,t,i,a)||t.AddError({keyword:`maxProperties`,schemaPath:n,instancePath:r,params:{limit:i.maxProperties}})}function Wi(e){return L(e)}function Gi(e,t,n,r){return Wi(n)?x(r.reduce((r,i)=>J(e,t,n.contains,i)?++r:r,0),n.minContains):!0}function Ki(e,t,n,r,i,a){return Gi(e,t,i,a)||t.AddError({keyword:`contains`,schemaPath:n,instancePath:r,params:{minContains:i.minContains}})}function qi(e,t,n,r){return x(r,n.minimum)}function Ji(e,t,n,r,i,a){return qi(e,t,i,a)||t.AddError({keyword:`minimum`,schemaPath:n,instancePath:r,params:{comparison:`>=`,limit:i.minimum}})}function Yi(e,t,n,r){return x(r.length,n.minItems)}function Xi(e,t,n,r,i,a){return Yi(e,t,i,a)||t.AddError({keyword:`minItems`,schemaPath:n,instancePath:r,params:{limit:i.minItems}})}function Zi(e,t,n,r){return me(r,n.minLength)}function Qi(e,t,n,r,i,a){return Zi(e,t,i,a)||t.AddError({keyword:`minLength`,schemaPath:n,instancePath:r,params:{limit:i.minLength}})}function $i(e,t,n,r){return x(E(r).length,n.minProperties)}function ea(e,t,n,r,i,a){return $i(e,t,i,a)||t.AddError({keyword:`minProperties`,schemaPath:n,instancePath:r,params:{limit:i.minProperties}})}function ta(e,t,n,r){return de(r,n.multipleOf)}function na(e,t,n,r,i,a){return ta(e,t,i,a)||t.AddError({keyword:`multipleOf`,schemaPath:n,instancePath:r,params:{multipleOf:i.multipleOf}})}function ra(e,t,n,r){let i=new W;return!J(e,i,n.not,r)&&t.Merge([i])}function ia(e,t,n,r,i,a){return ra(e,t,i,a)||t.AddError({keyword:`not`,schemaPath:n,instancePath:r,params:{}})}function aa(e,t,n,r){let i=n.oneOf.reduce((t,n)=>{let i=new W;return J(e,i,n,r)?[...t,i]:t},[]);return y(i.length,1)&&t.Merge(i)}function oa(e,t,n,r,i,a){let o=[],s=[],c=i.oneOf.reduce((t,i,c)=>{let l=new G,u=X(e,l,`${n}/oneOf/${c}`,r,i,a);return u&&s.push(c),u||o.push(l),u?[...t,l]:t},[]),l=y(c.length,1)&&t.Merge(c);return!l&&y(s.length,0)&&o.forEach(e=>e.GetErrors().forEach(e=>t.AddError(e))),l||t.AddError({keyword:`oneOf`,schemaPath:n,instancePath:r,params:{passingSchemas:s}})}function sa(e,t,n,r){return(_(n.pattern)?new RegExp(n.pattern,`u`):n.pattern).test(r)}function ca(e,t,n,r,i,a){return sa(e,t,i,a)||t.AddError({keyword:`pattern`,schemaPath:n,instancePath:r,params:{pattern:i.pattern}})}function la(e,t,n,r){return S(T(n.patternProperties),0,([n,i])=>{let a=new RegExp(n,`u`);return S(T(r),0,([n,r])=>!a.test(n)||q(e,t,i,r)&&t.AddKey(n))})}function ua(e,t,n,r,i,a){return C(T(i.patternProperties),0,([i,o])=>{let s=`${n}/patternProperties/${i}`,c=new RegExp(i,`u`);return C(T(a),0,([n,i])=>{let a=`${r}/${n}`;return!c.test(n)||Y(e,t,s,a,o,i)&&t.AddKey(n)})})}function da(e,t,n,r){return y(r.length,0)||S(n.prefixItems,0,(n,i)=>b(r.length,i)||q(e,t,n,r[i])&&t.AddIndex(i))}function fa(e,t,n,r,i,a){return y(a.length,0)||C(i.prefixItems,0,(i,o)=>{let s=`${n}/prefixItems/${o}`,c=`${r}/${o}`;return b(a.length,o)||Y(e,t,s,c,i,a[o])&&t.AddIndex(o)})}function pa(e,t){return e.includes(t)||Ne().exactOptionalPropertyTypes}function ma(e,t){return v(e[t])}function ha(e,t,n,r){let i=U(n)?n.required:[];return S(T(n.properties),0,([n,a])=>{let o=!w(r,n)||q(e,t,a,r[n])&&t.AddKey(n);return pa(i,n)?o:ma(r,n)||o})}function ga(e,t,n,r,i,a){let o=U(i)?i.required:[];return C(T(i.properties),0,([i,s])=>{let c=`${n}/properties/${i}`,l=`${r}/${i}`,u=()=>!w(a,i)||Y(e,t,c,l,s,a[i])&&t.AddKey(i);return pa(o,i)?u():ma(a,i)||u()})}function _a(e,t,n,r){return S(E(r),0,(r,i)=>J(e,t,n.propertyNames,r))}function va(e,t,n,r,i,a){let o=[];return C(E(a),0,(t,a)=>{let s=`${r}/${t}`,c=`${n}/propertyNames`,l=X(e,new G,c,s,i.propertyNames,t);return l||o.push(t),l})||t.AddError({keyword:`propertyNames`,schemaPath:n,instancePath:r,params:{propertyNames:o}})}function ya(e,t,n,r){let i=e.RecursiveRef(n)??!1;return I(i)&&J(e,t,i,r)}function ba(e,t,n,r,i,a){let o=e.RecursiveRef(i)??!1;return I(o)&&X(e,t,`#`,r,o,a)}function xa(e,t,n,r){let i=e.Ref(n)??!1,a=new W,o=I(i)&&J(e,a,i,r);return o&&t.Merge([a]),o}function Sa(e,t,n,r,i,a){let o=e.Ref(i)??!1,s=new G,c=I(o)&&X(e,s,`#`,r,o,a);return c&&t.Merge([s]),c||s.GetErrors().forEach(e=>t.AddError(e)),c}function Ca(e,t,n,r){return S(n.required,0,e=>w(r,e))}function wa(e,t,n,r,i,a){let o=[];return C(i.required,0,e=>{let t=w(a,e);return t||o.push(e),t})||t.AddError({keyword:`required`,schemaPath:n,instancePath:r,params:{requiredProperties:o}})}function Ta(e,t,n,r,i){return y(n,`object`)?se(i):y(n,`array`)?d(i):y(n,`boolean`)?p(i):y(n,`integer`)?ie(i):y(n,`number`)?h(i):y(n,`null`)?oe(i):y(n,`string`)?_(i):y(n,`asyncIterator`)?ne(i):y(n,`bigint`)?f(i):y(n,`constructor`)?re(i):y(n,`function`)?m(i):y(n,`iterator`)?ae(i):y(n,`symbol`)?ce(i):y(n,`undefined`)||y(n,`void`)?v(i):!0}function Ea(e,t,n,r,i){return n.some(n=>Ta(e,t,n,r,i))}function Da(e,t,n,r){return d(n.type)?Ea(e,t,n.type,n,r):Ta(e,t,n.type,n,r)}function Oa(e,t,n,r,i,a){return(d(i.type)?Ea(e,t,i.type,i,a):Ta(e,t,i.type,i,a))||t.AddError({keyword:`type`,schemaPath:n,instancePath:r,params:{type:i.type}})}function ka(e,t,n,r){let i=t.GetIndices();return S(r,0,(r,a)=>(i.has(a)||J(e,t,n.unevaluatedItems,r))&&t.AddIndex(a))}function Aa(e,t,n,r,i,a){let o=t.GetIndices(),s=[];return C(a,0,(a,c)=>{let l=new G,u=(o.has(c)||X(e,l,n,r,i.unevaluatedItems,a))&&t.AddIndex(c);return u||s.push(c),u})||t.AddError({keyword:`unevaluatedItems`,schemaPath:n,instancePath:r,params:{unevaluatedItems:s}})}function ja(e,t,n,r){let i=t.GetKeys();return S(T(r),0,([r,a])=>i.has(r)||J(e,t,n.unevaluatedProperties,a)&&t.AddKey(r))}function Ma(e,t,n,r,i,a){let o=t.GetKeys(),s=[];return C(T(a),0,([a,c])=>{let l=new G,u=o.has(a)||X(e,l,n,r,i.unevaluatedProperties,c)&&t.AddKey(a);return u||s.push(a),u})||t.AddError({keyword:`unevaluatedProperties`,schemaPath:n,instancePath:r,params:{unevaluatedProperties:s}})}function Na(e){return!y(e.uniqueItems,!1)}function Pa(e,t,n,r){if(!Na(n))return!0;let i=new Set(r.map(vt)).size,a=r.length;return y(i,a)}function Fa(e,t,n,r,i,a){if(!Na(i))return!0;let o=new Set,s=a.reduce((e,t,n)=>{let r=vt(t);return o.has(r)?[...e,n]:(o.add(r),e)},[]);return y(s.length,0)||t.AddError({keyword:`uniqueItems`,schemaPath:n,instancePath:r,params:{duplicateItems:s}})}function q(e,t,n,r){return t.Push()&&J(e,t,n,r)&&t.Pop()}function J(e,t,n,r){e.Push(n);let i=Pt(n)?Bn(e,t,n,r):(!bn(n)||Da(e,t,n,r))&&(!(g(r)&&!d(r))||(!U(n)||Ca(e,t,n,r))&&(!It(n)||Pn(e,t,n,r))&&(!Vt(n)||qn(e,t,n,r))&&(!Ht(n)||Yn(e,t,n,r))&&(!Ut(n)||Zn(e,t,n,r))&&(!fn(n)||la(e,t,n,r))&&(!pn(n)||ha(e,t,n,r))&&(!mn(n)||_a(e,t,n,r))&&(!sn(n)||$i(e,t,n,r))&&(!nn(n)||Hi(e,t,n,r)))&&(!d(r)||(!Ft(n)||An(e,t,n,r))&&(!L(n)||Gn(e,t,n,r))&&(!B(n)||ji(e,t,n,r))&&(!$t(n)||Pi(e,t,n,r))&&(!en(n)||Ri(e,t,n,r))&&(!V(n)||Gi(e,t,n,r))&&(!an(n)||Yi(e,t,n,r))&&(!H(n)||da(e,t,n,r))&&(!xn(n)||Pa(e,t,n,r)))&&(!_(r)||(!tn(n)||Bi(e,t,n,r))&&(!on(n)||Zi(e,t,n,r))&&(!Yt(n)||Ci(e,t,n,r))&&(!dn(n)||sa(e,t,n,r)))&&(!(h(r)||f(r))||(!qt(n)||rr(e,t,n,r))&&(!Jt(n)||ar(e,t,n,r))&&(!Qt(n)||Ii(e,t,n,r))&&(!rn(n)||qi(e,t,n,r))&&(!cn(n)||ta(e,t,n,r)))&&(!vn(n)||xa(e,t,n,r))&&(!_n(n)||ya(e,t,n,r))&&(!Wt(n)||$n(e,t,n,r))&&(!Mt(n)||Tn(e,t,n,r))&&(!Bt(n)||Hn(e,t,n,r))&&(!Kt(n)||tr(e,t,n,r))&&(!Xt(n)||Ti(e,t,n,r))&&(!ln(n)||ra(e,t,n,r))&&(!Lt(n)||In(e,t,n,r))&&(!zt(n)||Rn(e,t,n,r))&&(!un(n)||aa(e,t,n,r))&&(!Sn(n)||!d(r)||ka(e,t,n,r))&&(!Cn(n)||!g(r)||ja(e,t,n,r))&&(!Nt(n)||Dn(e,t,n,r));return e.Pop(n),i}function Y(e,t,n,r,i,a){return t.Push()&&X(e,t,n,r,i,a)&&t.Pop()}function X(e,t,n,r,i,a){e.Push(i);let o=Pt(i)?Vn(e,t,n,r,i,a):!!((!bn(i)||Oa(e,t,n,r,i,a))&+(!(g(a)&&!d(a))||!!((!U(i)||wa(e,t,n,r,i,a))&+(!It(i)||Fn(e,t,n,r,i,a))&(!Vt(i)||Jn(e,t,n,r,i,a))&(!Ht(i)||Xn(e,t,n,r,i,a))&(!Ut(i)||Qn(e,t,n,r,i,a))&(!fn(i)||ua(e,t,n,r,i,a))&(!pn(i)||ga(e,t,n,r,i,a))&(!mn(i)||va(e,t,n,r,i,a))&(!sn(i)||ea(e,t,n,r,i,a))&(!nn(i)||Ui(e,t,n,r,i,a))))&(!d(a)||!!((!Ft(i)||jn(e,t,n,r,i,a))&+(!L(i)||Kn(e,t,n,r,i,a))&(!B(i)||Mi(e,t,n,r,i,a))&(!$t(i)||Fi(e,t,n,r,i,a))&(!en(i)||zi(e,t,n,r,i,a))&(!V(i)||Ki(e,t,n,r,i,a))&(!an(i)||Xi(e,t,n,r,i,a))&(!H(i)||fa(e,t,n,r,i,a))&(!xn(i)||Fa(e,t,n,r,i,a))))&(!_(a)||!!((!tn(i)||Vi(e,t,n,r,i,a))&+(!on(i)||Qi(e,t,n,r,i,a))&(!Yt(i)||wi(e,t,n,r,i,a))&(!dn(i)||ca(e,t,n,r,i,a))))&(!(h(a)||f(a))||!!((!qt(i)||ir(e,t,n,r,i,a))&+(!Jt(i)||or(e,t,n,r,i,a))&(!Qt(i)||Li(e,t,n,r,i,a))&(!rn(i)||Ji(e,t,n,r,i,a))&(!cn(i)||na(e,t,n,r,i,a))))&(!vn(i)||Sa(e,t,n,r,i,a))&(!_n(i)||ba(e,t,n,r,i,a))&(!Wt(i)||er(e,t,n,r,i,a))&(!Mt(i)||En(e,t,n,r,i,a))&(!Bt(i)||Un(e,t,n,r,i,a))&(!Kt(i)||nr(e,t,n,r,i,a))&(!Xt(i)||Ei(e,t,n,r,i,a))&(!ln(i)||ia(e,t,n,r,i,a))&(!Lt(i)||Ln(e,t,n,r,i,a))&(!zt(i)||zn(e,t,n,r,i,a))&(!un(i)||oa(e,t,n,r,i,a))&(!Sn(i)||!d(a)||Aa(e,t,n,r,i,a))&(!Cn(i)||!g(a)||Ma(e,t,n,r,i,a)))&&(!Nt(i)||On(e,t,n,r,i,a));return e.Pop(i),o}function Ia(e,t){return g(t)&&!he(e)?t[e]:void 0}function La(e,t){return e.reduce((e,t)=>Ia(t,e),t)}function Ra(e){if(y(e.length,0))return[];let t=e.split(`/`).map(e=>e.replace(/~1/g,`/`).replace(/~0/g,`~`));return t.length>0&&t[0]===``?t.slice(1):t}function za(e,t){return La(Ra(t),e)}function Ba(e,t,n){if(e.$id===n.hash)return e;let r=new URL(e.$id,t.href),i=new URL(n.href,t.href);if(y(r.pathname,i.pathname))return n.hash.startsWith(`#`)?Ua(e,t,n):e}function Va(e,t,n){let r=new URL(`#${e.$anchor}`,t.href),i=new URL(n.href,t.href);return y(r.href,i.href)?e:void 0}function Ha(e,t,n){let r=new URL(`#${e.$dynamicAnchor}`,t.href),i=new URL(n.href,t.href);return y(r.href,i.href)?e:void 0}function Ua(e,t,n){if(n.href.endsWith(`#`))return e;if(!n.hash.startsWith(`#`))return;let r=decodeURIComponent(n.hash.slice(1));if(r.startsWith(`/`))return za(e,r)}function Wa(e,t,n){if(z(e)){let r=Ba(e,t,n);if(!v(r))return r}if(Rt(e)){let r=Va(e,t,n);if(!v(r))return r}if(R(e)){let r=Ha(e,t,n);if(!v(r))return r}return Ua(e,t,n)}function Ga(e,t,n){return e.reduce((e,r)=>{let i=qa(r,t,n);return v(i)?e:i},void 0)}function Ka(e,t,n){return E(e).reduce((r,i)=>{let a=qa(e[i],t,n);return v(a)?r:a},void 0)}function qa(e,t,n){let r=F(e)&&z(e)?new URL(e.$id,t.href):t;if(F(e)){let t=Wa(e,r,n);if(!v(t))return t}if(d(e))return Ga(e,r,n);if(g(e))return Ka(e,r,n)}function Z(e,t){let n=new URL(`http://unknown/`),r=z(e)?new URL(e.$id,n.href):n;return qa(e,r,new URL(t,r.href))}function Ja(e,t,n,r){let i=n.$dynamicRef.startsWith(`#`)?Z(t,n.$dynamicRef):Z(e,n.$dynamicRef);if(!v(i))return!F(i)||!R(i)||new URL(n.$dynamicRef,`http://unknown/`).hash.startsWith(`#/`)?i:r.find(e=>e.$dynamicAnchor===i.$dynamicAnchor)??i}var Q=function(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)},$,Ya,Xa,Za,Qa,$a=class{constructor(e,t){$.add(this),this.context=e,this.schema=t,this.ids=[],this.anchors=[],this.recursiveAnchors=[],this.dynamicAnchors=[]}BaseURL(){return this.ids.reduce((e,t)=>new URL(t.$id,e),new URL(`http://unknown`))}Base(){return this.ids[this.ids.length-1]??this.schema}Push(e){F(e)&&(z(e)&&(this.ids.push(e),Q(this,$,`m`,Ya).call(this,e)),Rt(e)&&this.anchors.push(e),gn(e)&&this.recursiveAnchors.push(e),R(e)&&this.dynamicAnchors.push(e))}Pop(e){F(e)&&(z(e)&&(this.ids.pop(),Q(this,$,`m`,Xa).call(this,e)),Rt(e)&&this.anchors.pop(),gn(e)&&this.recursiveAnchors.pop(),R(e)&&this.dynamicAnchors.pop())}Ref(e){return Q(this,$,`m`,Za).call(this,e)??Q(this,$,`m`,Qa).call(this,e)}RecursiveRef(e){return gn(this.Base())?Z(this.recursiveAnchors[0],e.$recursiveRef):Z(this.Base(),e.$recursiveRef)}DynamicRef(e){let t=this.schema;return Ja(t,this.Base(),e,this.dynamicAnchors)}};$=new WeakSet,Ya=function e(t,n=!0){if(!F(t))return;let r=t;if(!(!n&&z(r))){!n&&R(r)&&this.dynamicAnchors.push(r);for(let t of E(r))Q(this,$,`m`,e).call(this,r[t],!1)}},Xa=function e(t,n=!0){if(!F(t))return;let r=t;if(!(!n&&z(r))){!n&&R(r)&&this.dynamicAnchors.pop();for(let t of E(r))Q(this,$,`m`,e).call(this,r[t],!1)}},Za=function(e){return w(this.context,e.$ref)?this.context[e.$ref]:void 0},Qa=function(e){let t=this.schema;return e.$ref.startsWith(`#`)?Z(this.Base(),e.$ref):Z(t,e.$ref)};function eo(...e){let[t,n,r]=Ue(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]}),i=Ne(),a=xt(),o=[];return[X(new $a(t,n),new wn(e=>{if(!x(o.length,i.maxErrors))return o.push({...e,message:a(e)})}),`#`,``,n,r),o]}function to(...e){let[t,n,r]=Ue(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]});return J(new $a(t,n),new W,n,r)}var no=class{constructor(e,t,n){this.schema=e,this.value=t,this.errors=n}};function ro(...e){let[t,n,r]=Ue(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]});if(!to(t,n,r)){let[e,i]=eo(t,n,r);throw new no(n,r,i)}return r}const io=Ct(He({}),e=>e instanceof Date),ao=Ve({id:N(),created:io,title:P({minLength:1,maxLength:100}),type:Ke([`jpg`,`png`]),size:N(),url:P({format:`url`})}),oo=Ve({id:N(),stars:N({minimum:1,maximum:5}),title:P({minLength:1,maxLength:100}),text:P({minLength:1,maxLength:1e3}),images:Re(ao)});ro(Ve({id:N(),created:io,title:P({minLength:1,maxLength:100}),brand:P({minLength:1,maxLength:30}),description:P({minLength:1,maxLength:500}),price:N({minimum:1,maximum:1e4}),discount:Dt([N({minimum:1,maximum:100}),Et()]),quantity:N({minimum:1,maximum:10}),tags:Re(P({minLength:1,maxLength:30})),images:Re(ao),ratings:Re(oo)}),{}); \ No newline at end of file +const e={assign:0,create:0,clone:0,discard:0,update:0};function t(e,t,n){return e>=t&&e<=n}function n(e){return t(e,127462,127487)}function r(e){return t(e,65024,65039)}function i(e){return t(e,768,879)||t(e,6832,6911)||t(e,7616,7679)||t(e,65056,65071)}function a(e){return e>65535?2:1}function o(e,t){for(;t=t)return!0;return!1}function u(e,t){let n=0,r=0;for(;rt)return!1;return!0}function ee(e,t){if(t===0)return!0;let n=0;for(;n=t)return!0}return!1}function te(e,t){let n=0;for(;nt)return!1}return!0}function d(e){return Array.isArray(e)}function f(e){return b(typeof e,`bigint`)}function p(e){return b(typeof e,`boolean`)}function ne(e){if(y(e)||!m(e))return!1;let t=Function.prototype.toString.call(e);return!!(/^class\s/.test(t)||/\[native code\]/.test(t))}function m(e){return b(typeof e,`function`)}function re(e){return Number.isInteger(e)}function h(e){return b(e,null)}function g(e){return Number.isFinite(e)}function ie(e){return _(e)&&!d(e)}function _(e){return b(typeof e,`object`)&&!h(e)}function v(e){return b(typeof e,`string`)}function ae(e){return b(typeof e,`symbol`)}function y(e){return b(e,void 0)}function b(e,t){return e===t}function oe(e,t){return e>t}function se(e,t){return e=t}function ce(e,t){if(f(e)||f(t))return BigInt(e)%BigInt(t)===0n;if(!g(e)||re(e)&&1/t%1==0)return!0;let n=e%t;return Math.min(Math.abs(n),Math.abs(n-t))<1e-10}function le(e){if(!_(e))return!1;let t=globalThis.Object.getPrototypeOf(e);return h(t)?!1:b(typeof t.constructor,`function`)&&!(b(t.constructor,globalThis.Object)||b(t.constructor.name,`Object`))}function ue(e){return f(e)||p(e)||h(e)||g(e)||v(e)||y(e)}function de(e,t){return te(e,t)}function fe(e,t){return ee(e,t)}function C(e,t,n){for(let r=t;rk(e[n],t[n]))}function he(e,t){return d(t)&&b(e.length,t.length)&&e.every((n,r)=>k(e[r],t[r]))}function k(e,t){return d(e)?he(e,t):_(e)?me(e,t):b(e,t)}function ge(e){return e instanceof Boolean}function _e(e){return e instanceof Number}function ve(e){return e instanceof String}function ye(e){return globalThis.ArrayBuffer.isView(e)}function be(e){return e instanceof globalThis.RegExp}function xe(e){return e instanceof globalThis.Date}function Se(e){return e instanceof globalThis.Set}function Ce(e){return e instanceof globalThis.Map}function we(e){return e}function Te(e){return E(e,`~kind`)}function Ee(e){let t={},n=Object.getOwnPropertyDescriptors(e);for(let e of Object.keys(n)){if(T(e))continue;let r=n[e];E(r,`value`)&&Object.defineProperty(t,e,{...r,value:A(r.value)})}return t}function De(e){let t={};for(let n of O(e))T(n)||(t[n]=A(e[n]));for(let n of pe(e))t[n]=A(e[n]);return t}function Oe(e){return le(e)?we(e):Te(e)?Ee(e):De(e)}function ke(e){return e.map(e=>A(e))}function Ae(e){return e.slice()}function je(e){return new RegExp(e.source,e.flags)}function Me(e){return new Map(A([...e.entries()]))}function Ne(e){return new Set(A([...e.values()]))}function A(e){return ye(e)?Ae(e):be(e)?je(e):Ce(e)?Me(e):Se(e)?Ne(e):d(e)?ke(e):_(e)?Oe(e):e}function Pe(t){return e.clone+=1,A(t)}const Fe={immutableTypes:!1,maxErrors:8,useAcceleration:!0,exactOptionalPropertyTypes:!1,enumerableKind:!1,correctiveParse:!1,unionPrioritySort:!0};function j(){return Fe}function Ie(e,t){for(let n of Object.keys(t))Object.defineProperty(e,n,{configurable:!0,writable:!0,enumerable:!1,value:t[n]});return e}function Le(e,t){return{...e,...t}}function M(t,n,r={}){e.create+=1;let i=j(),a=Le(n,r),o=i.enumerableKind?Le(a,t):Ie(a,t);return i.immutableTypes?Object.freeze(o):o}function Re(t,n,r){e.update+=1;let i=j(),a=Pe(t);for(let e of Object.keys(n))Object.defineProperty(a,e,{configurable:!0,writable:!0,enumerable:i.enumerableKind,value:n[e]});for(let e of Object.keys(r))Object.defineProperty(a,e,{configurable:!0,enumerable:!0,writable:!0,value:r[e]});return a}function ze(e){return _(e)}function N(e,t){return M({"~kind":`Array`},{type:`array`,items:e},t)}function Be(e){return ze(e)&&E(e,`~optional`)}function Ve(e){return O(e).filter(t=>!Be(e[t]))}function He(e,t={}){let n=Ve(e);return M({"~kind":`Object`},{type:`object`,...n.length>0?{required:n}:{},properties:e},t)}function Ue(e){return Re(e,{"~unsafe":null},{})}function We(e,t){return t[e.length]?.(...e)??(()=>{throw Error(`Invalid Arguments`)})()}function Ge(e){return ie(e)}function Ke(e){return O(e).filter(e=>isNaN(e)).reduce((t,n)=>[...t,e[n]],[])}function qe(e,t){return M({"~kind":`Enum`},{enum:Ge(e)?Ke(e):e},t)}function Je(){throw Error(`Unreachable`)}function Ye(e){let t=new Set,n=e;for(;n&&n!==Object.prototype;){for(let e of Reflect.ownKeys(n))e!==`constructor`&&typeof e!=`symbol`&&t.add(e);n=Object.getPrototypeOf(n)}return[...t]}function Xe(e){return typeof e==`number`}var P;(function(e){e[e.Array=0]=`Array`,e[e.BigInt=1]=`BigInt`,e[e.Boolean=2]=`Boolean`,e[e.Date=3]=`Date`,e[e.Constructor=4]=`Constructor`,e[e.Function=5]=`Function`,e[e.Null=6]=`Null`,e[e.Number=7]=`Number`,e[e.Object=8]=`Object`,e[e.RegExp=9]=`RegExp`,e[e.String=10]=`String`,e[e.Symbol=11]=`Symbol`,e[e.TypeArray=12]=`TypeArray`,e[e.Undefined=13]=`Undefined`})(P||={});let F=BigInt(`14695981039346656037`);const[Ze,Qe]=[BigInt(`1099511628211`),BigInt(`18446744073709551616`)],$e=Array.from({length:256}).map((e,t)=>BigInt(t)),et=new Float64Array(1),tt=new DataView(et.buffer),nt=new Uint8Array(et.buffer);function I(e){F^=$e[e],F=F*Ze%Qe}function rt(e){I(P.Array);for(let t of e)L(t)}function it(e){I(P.BigInt),tt.setBigInt64(0,e);for(let e of nt)I(e)}function at(e){I(P.Boolean),I(+!!e)}function ot(e){I(P.Constructor),L(e.toString())}function st(e){I(P.Date),L(e.getTime())}function ct(e){I(P.Function),L(e.toString())}function lt(e){I(P.Null)}function ut(e){I(P.Number),tt.setFloat64(0,e,!0);for(let e of nt)I(e)}function dt(e){I(P.Object);for(let t of Ye(e).sort())L(t),L(e[t])}function ft(e){I(P.RegExp),mt(e.toString())}const pt=new TextEncoder;function mt(e){I(P.String);for(let t of pt.encode(e))I(t)}function ht(e){I(P.Symbol),L(e.toString())}function gt(e){I(P.TypeArray);let t=new Uint8Array(e.buffer);for(let e=0;e[e,t,n],2:(e,t)=>[e,t,()=>`Refine Error`]});return Ct(t,{check:n,error:r})}function Tt(e){return ie(e)&&E(e,`check`)&&E(e,`error`)&&m(e.check)&&m(e.error)}function Et(e){return ze(e)&&E(e,`~refine`)&&d(e[`~refine`])&&C(e[`~refine`],0,e=>Tt(e))}function Dt(e){return M({"~kind":`Null`},{type:`null`},e)}function R(e){return M({"~kind":`Number`},{type:`number`},e)}function z(e){return M({"~kind":`String`},{type:`string`},e)}function Ot(e,t={}){return M({"~kind":`Union`},{anyOf:e},t)}function kt(e,t){return Array.from({length:t-e+1},(t,n)=>String.fromCharCode(e+n))}const At=[...kt(97,122),...kt(65,90)],jt=[`0`,...kt(49,57)];[...jt],[...At,...jt],[...jt];function Mt(e){return E(e,`~refine`)&&d(e[`~refine`])&&C(e[`~refine`],0,e=>_(e)&&E(e,`check`)&&E(e,`error`)&&m(e.check)&&m(e.error))}function B(e){return _(e)&&!d(e)}function Nt(e){return p(e)}function V(e){return B(e)||Nt(e)}function Pt(e){return E(e,`additionalItems`)&&V(e.additionalItems)}function Ft(e){return E(e,`additionalProperties`)&&V(e.additionalProperties)}function It(e){return E(e,`allOf`)&&d(e.allOf)&&e.allOf.every(e=>V(e))}function Lt(e){return E(e,`$anchor`)&&v(e.$anchor)}function Rt(e){return E(e,`anyOf`)&&d(e.anyOf)&&e.anyOf.every(e=>V(e))}function zt(e){return E(e,`const`)}function Bt(e){return E(e,`contains`)&&V(e.contains)}function Vt(e){return E(e,`dependencies`)&&_(e.dependencies)&&Object.values(e.dependencies).every(e=>V(e)||d(e)&&e.every(e=>v(e)))}function Ht(e){return E(e,`dependentRequired`)&&_(e.dependentRequired)&&Object.values(e.dependentRequired).every(e=>d(e)&&e.every(e=>v(e)))}function Ut(e){return E(e,`dependentSchemas`)&&_(e.dependentSchemas)&&Object.values(e.dependentSchemas).every(e=>V(e))}function H(e){return E(e,`$dynamicAnchor`)&&v(e.$dynamicAnchor)}function Wt(e){return E(e,`$dynamicRef`)&&v(e.$dynamicRef)}function Gt(e){return E(e,`else`)&&V(e.else)}function Kt(e){return E(e,`enum`)&&d(e.enum)}function qt(e){return E(e,`exclusiveMaximum`)&&(g(e.exclusiveMaximum)||f(e.exclusiveMaximum))}function Jt(e){return E(e,`exclusiveMinimum`)&&(g(e.exclusiveMinimum)||f(e.exclusiveMinimum))}function Yt(e){return E(e,`format`)&&v(e.format)}function U(e){return E(e,`$id`)&&v(e.$id)}function Xt(e){return E(e,`if`)&&V(e.if)}function Zt(e){return E(e,`items`)&&(V(e.items)||d(e.items)&&e.items.every(e=>V(e)))}function Qt(e){return Zt(e)&&d(e.items)}function $t(e){return E(e,`maximum`)&&(g(e.maximum)||f(e.maximum))}function en(e){return E(e,`maxContains`)&&g(e.maxContains)}function tn(e){return E(e,`maxItems`)&&g(e.maxItems)}function nn(e){return E(e,`maxLength`)&&g(e.maxLength)}function rn(e){return E(e,`maxProperties`)&&g(e.maxProperties)}function an(e){return E(e,`minimum`)&&(g(e.minimum)||f(e.minimum))}function on(e){return E(e,`minContains`)&&g(e.minContains)}function sn(e){return E(e,`minItems`)&&g(e.minItems)}function cn(e){return E(e,`minLength`)&&g(e.minLength)}function ln(e){return E(e,`minProperties`)&&g(e.minProperties)}function un(e){return E(e,`multipleOf`)&&(g(e.multipleOf)||f(e.multipleOf))}function dn(e){return E(e,`not`)&&V(e.not)}function fn(e){return E(e,`oneOf`)&&d(e.oneOf)&&e.oneOf.every(e=>V(e))}function pn(e){return E(e,`pattern`)&&(v(e.pattern)||e.pattern instanceof RegExp)}function mn(e){return E(e,`patternProperties`)&&_(e.patternProperties)&&Object.values(e.patternProperties).every(e=>V(e))}function hn(e){return E(e,`prefixItems`)&&d(e.prefixItems)&&e.prefixItems.every(e=>V(e))}function gn(e){return E(e,`properties`)&&_(e.properties)&&Object.values(e.properties).every(e=>V(e))}function _n(e){return E(e,`propertyNames`)&&(_(e.propertyNames)||V(e.propertyNames))}function vn(e){return E(e,`$recursiveAnchor`)&&p(e.$recursiveAnchor)}function yn(e){return vn(e)&&b(e.$recursiveAnchor,!0)}function bn(e){return E(e,`$recursiveRef`)&&v(e.$recursiveRef)}function xn(e){return E(e,`$ref`)&&v(e.$ref)}function Sn(e){return E(e,`required`)&&d(e.required)&&e.required.every(e=>v(e))}function Cn(e){return E(e,`then`)&&V(e.then)}function wn(e){return E(e,`type`)&&(v(e.type)||d(e.type)&&e.type.every(e=>v(e)))}function Tn(e){return E(e,`uniqueItems`)&&p(e.uniqueItems)}function En(e){return E(e,`unevaluatedItems`)&&V(e.unevaluatedItems)}function Dn(e){return E(e,`unevaluatedProperties`)&&V(e.unevaluatedProperties)}var W=class{constructor(){let e=new Set,t=new Set;this.stack=[{indices:e,keys:t}]}Push(){let e=new Set,t=new Set;return this.stack.push({indices:e,keys:t}),!0}Pop(){return this.stack.pop(),!0}AddIndex(e){return this.GetIndices().add(e),!0}AddKey(e){return this.GetKeys().add(e),!0}GetIndices(){return this.stack[this.stack.length-1].indices}GetKeys(){return this.stack[this.stack.length-1].keys}Merge(e){for(let t of e)t.GetIndices().forEach(e=>this.GetIndices().add(e)),t.GetKeys().forEach(e=>this.GetKeys().add(e));return!0}},On=class extends W{constructor(e){super(),this.callback=e}AddError(e){return this.callback(e),!1}},G=class extends On{constructor(){super(e=>this.errors.push(e)),this.errors=[]}AddError(e){return this.errors.push(e),!1}GetErrors(){return this.errors}};function kn(e,t,n,r){return C(n[`~refine`],0,(e,t)=>e.check(r))}function An(e,t,n,r,i,a){return w(i[`~refine`],0,(e,i)=>e.check(a)||t.AddError({keyword:`~refine`,schemaPath:n,instancePath:r,params:{index:i,message:e.error(a)}}))}function jn(e){return Zt(e)&&d(e.items)}function Mn(e,t,n,r){return jn(n)?r.every((r,i)=>se(i,n.items.length)||q(e,t,n.additionalItems,r)&&t.AddIndex(i)):!0}function Nn(e,t,n,r,i,a){return jn(i)?a.every((a,o)=>{let s=`${n}/additionalItems`,c=`${r}/${o}`;return se(o,i.items.length)||Y(e,t,s,c,i.additionalItems,a)&&t.AddIndex(o)}):!0}function Pn(e){return`^${e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}$`}function Fn(e){let t=[];return mn(e)&&t.push(...O(e.patternProperties)),gn(e)&&t.push(...O(e.properties).map(Pn)),b(t.length,0)?`(?!)`:`(${t.join(`|`)})`}function In(e,t,n,r){let i=new RegExp(Fn(n));return C(O(r),0,(a,o)=>i.test(a)||q(e,t,n.additionalProperties,r[a])&&t.AddKey(a))}function Ln(e,t,n,r,i,a){let o=new RegExp(Fn(i)),s=[];return w(O(a),0,(c,l)=>{let u=`${n}/additionalProperties`,ee=`${r}/${c}`,te=new G,d=o.test(c)||Y(e,te,u,ee,i.additionalProperties,a[c])&&t.AddKey(c);return d||s.push(c),d})||t.AddError({keyword:`additionalProperties`,schemaPath:n,instancePath:r,params:{additionalProperties:s}})}function Rn(e,t,n,r){let i=n.allOf.reduce((t,n)=>{let i=new W;return J(e,i,n,r)?[...t,i]:t},[]);return b(i.length,n.allOf.length)&&t.Merge(i)}function zn(e,t,n,r,i,a){let o=[],s=i.allOf.reduce((t,i,s)=>{let c=`${n}/allOf/${s}`,l=new G,u=X(e,l,c,r,i,a);return u||o.push(l),u?[...t,l]:t},[]),c=b(s.length,i.allOf.length)&&t.Merge(s);return c||o.forEach(e=>e.GetErrors().forEach(e=>t.AddError(e))),c}function Bn(e,t,n,r){let i=n.anyOf.reduce((t,n)=>{let i=new W;return J(e,i,n,r)?[...t,i]:t},[]);return oe(i.length,0)&&t.Merge(i)}function Vn(e,t,n,r,i,a){let o=[],s=i.anyOf.reduce((t,i,s)=>{let c=new G,l=X(e,c,`${n}/anyOf/${s}`,r,i,a);return l||o.push(c),l?[...t,c]:t},[]),c=oe(s.length,0)&&t.Merge(s);return c||o.forEach(e=>e.GetErrors().forEach(e=>t.AddError(e))),c||t.AddError({keyword:`anyOf`,schemaPath:n,instancePath:r,params:{}})}function Hn(e,t,n,r){return n}function Un(e,t,n,r,i,a){return Hn(e,t,i,a)||t.AddError({keyword:`boolean`,schemaPath:n,instancePath:r,params:{}})}function Wn(e,t,n,r){return ue(n.const)?b(r,n.const):k(r,n.const)}function Gn(e,t,n,r,i,a){return Wn(e,t,i,a)||t.AddError({keyword:`const`,schemaPath:n,instancePath:r,params:{allowedValue:i.const}})}function Kn(e){return!(on(e)&&b(e.minContains,0))}function qn(e,t,n,r){return Kn(n)?!b(r.length,0)&&r.some(r=>J(e,t,n.contains,r)):!0}function Jn(e,t,n,r,i,a){return qn(e,t,i,a)||t.AddError({keyword:`contains`,schemaPath:n,instancePath:r,params:{minContains:1}})}function Yn(e,t,n,r){let i=b(O(r).length,0),a=C(D(n.dependencies),0,([n,i])=>!E(r,n)||(d(i)?i.every(e=>E(r,e)):J(e,t,i,r)));return i||a}function Xn(e,t,n,r,i,a){let o=b(O(a).length,0),s=w(D(i.dependencies),0,([i,o])=>{let s=`${n}/dependencies/${i}`;return!E(a,i)||(d(o)?o.every(e=>E(a,e)||t.AddError({keyword:`dependencies`,schemaPath:n,instancePath:r,params:{property:i,dependencies:o}})):X(e,t,s,r,o,a))});return o||s}function Zn(e,t,n,r){let i=b(O(r).length,0),a=C(D(n.dependentRequired),0,([e,t])=>!E(r,e)||t.every(e=>E(r,e)));return i||a}function Qn(e,t,n,r,i,a){let o=b(O(a).length,0),s=w(D(i.dependentRequired),0,([e,i])=>!E(a,e)||w(i,0,o=>E(a,o)||t.AddError({keyword:`dependentRequired`,schemaPath:n,instancePath:r,params:{property:e,dependencies:i}})));return o||s}function $n(e,t,n,r){let i=b(O(r).length,0),a=C(D(n.dependentSchemas),0,([n,i])=>!E(r,n)||J(e,t,i,r));return i||a}function er(e,t,n,r,i,a){let o=b(O(a).length,0),s=w(D(i.dependentSchemas),0,([i,o])=>{let s=`${n}/dependentSchemas/${i}`;return!E(a,i)||X(e,t,s,r,o,a)});return o||s}function tr(e,t,n,r){let i=e.DynamicRef(n)??!1;return V(i)&&J(e,t,i,r)}function nr(e,t,n,r,i,a){let o=e.DynamicRef(i)??!1;return V(o)&&X(e,t,`#`,r,o,a)}function rr(e,t,n,r){return n.enum.some(e=>ue(e)?b(r,e):k(r,e))}function ir(e,t,n,r,i,a){return rr(e,t,i,a)||t.AddError({keyword:`enum`,schemaPath:n,instancePath:r,params:{allowedValues:i.enum}})}function ar(e,t,n,r){return se(r,n.exclusiveMaximum)}function or(e,t,n,r,i,a){return ar(e,t,i,a)||t.AddError({keyword:`exclusiveMaximum`,schemaPath:n,instancePath:r,params:{comparison:`<`,limit:i.exclusiveMaximum}})}function sr(e,t,n,r){return oe(r,n.exclusiveMinimum)}function cr(e,t,n,r,i,a){return sr(e,t,i,a)||t.AddError({keyword:`exclusiveMinimum`,schemaPath:n,instancePath:r,params:{comparison:`>`,limit:i.exclusiveMinimum}})}const lr=[0,31,28,31,30,31,30,31,31,30,31,30,31],ur=/^(\d\d\d\d)-(\d\d)-(\d\d)$/;function dr(e){return e%4==0&&(e%100!=0||e%400==0)}function fr(e){let t=ur.exec(e);if(!t)return!1;let n=+t[1],r=+t[2],i=+t[3];return r>=1&&r<=12&&i>=1&&i<=(r===2&&dr(n)?29:lr[r])}const pr=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(?:Z|([+-])(\d\d):(\d\d))?$/i;function mr(e,t=!0){let n=pr.exec(e);if(!n)return!1;let r=+n[1],i=+n[2],a=+n[3],o=n[4]===`-`?-1:1,s=+(n[5]||0),c=+(n[6]||0);if(s>23||c>59||t&&!n[4]&&e.toLowerCase().indexOf(`z`)===-1)return!1;if(r<=23&&i<=59&&a<60)return!0;let l=i-c*o,u=r-s*o-+(l<0);return(u===23||u===-1)&&(l===59||l===-1)&&a<61}function hr(e,t=!0){let n=e.split(/T/i);return n.length===2&&fr(n[0])&&mr(n[1],t)}const gr=/^P((\d+Y(\d+M(\d+D)?)?|\d+M(\d+D)?|\d+D)(T(\d+H(\d+M(\d+S)?)?|\d+M(\d+S)?|\d+S))?|T(\d+H(\d+M(\d+S)?)?|\d+M(\d+S)?|\d+S)|\d+W)$/;function _r(e){return gr.test(e)}const vr=/^(?!.*\.\.)[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i;function yr(e){return vr.test(e)}function br(e,t,n){e=n?Math.floor(e/700):e>>1,e+=Math.floor(e/t);let r=0;for(;e>455;)e=Math.floor(e/35),r+=36;return r+Math.floor(36*e/(e+38))}function xr(e){let t=[],n=128,r=0,i=72,a=e.lastIndexOf(`-`);if(a>0)for(let n=0;n=128)throw Error(`Invalid punycode: non-basic before delimiter`);t.push(r)}let o=a<0?0:a+1;for(;o=e.length)throw Error(`Invalid punycode: unexpected end of input`);let t=e.charCodeAt(o++),n;if(t>=97&&t<=122)n=t-97;else if(t>=48&&t<=57)n=t-48+26;else if(t>=65&&t<=90)n=t-65;else throw Error(`Invalid punycode: bad digit character`);r+=n*s;let a=c<=i?1:c>=i+26?26:c-i;if(n=1632&&e<=1641}function Pr(e){return e>=1776&&e<=1785}function Fr(e){return Dr.has(e)}function Ir(e){if(e.length===0)return!1;let t=[...e].map(e=>e.codePointAt(0)),n=t.length;if(t[0]===45||t[n-1]===45||n>=4&&t[2]===45&&t[3]===45||Tr(t[0]))return!1;let r=!1,i=!1,a=!1;for(let e=0;e=4&&e.charCodeAt(2)===45&&e.charCodeAt(3)===45)return!1;for(let t=0;t=97&&n<=122||n>=65&&n<=90||n>=48&&n<=57||n===45))return!1}return!0}function Rr(e){return e.toLowerCase().startsWith(`xn--`)}function zr(e){try{let t=e.slice(4).toLowerCase();if(t.lastIndexOf(`-`)===0)return!1;let n=xr(t);return n?Ir(n):!1}catch{return!1}}function Br(e){return e.length===0||e.length>63?!1:Rr(e)?zr(e):Ir(e)}function Vr(e){return e.length===0||e.length>63?!1:Rr(e)?zr(e):Lr(e)}function Hr(e){if(e.length===0||e.length>253||e.charCodeAt(e.length-1)===46)return!1;for(let t of e.split(`.`))if(!Vr(t))return!1;return!0}const Ur=/^(?!.*\.\.)[\p{L}\p{N}!#$%&'*+/=?^_`{|}~-]+(?:\.[\p{L}\p{N}!#$%&'*+/=?^_`{|}~-]+)*@[\p{L}\p{N}](?:[\p{L}\p{N}-]{0,61}[\p{L}\p{N}])?(?:\.[\p{L}\p{N}](?:[\p{L}\p{N}-]{0,61}[\p{L}\p{N}])?)*$/iu;function Wr(e){return Ur.test(e)}function Gr(e){if(e.length===0||e.includes(` `))return!1;let t=e.normalize(`NFC`).replace(/[\u002E\u3002\uFF0E\uFF61]/g,`.`);if(t.length>253)return!1;for(let e of t.split(`.`))if(!Br(e))return!1;return!0}function Kr(e,t,n){let r=0,i=0,a=0,o=0;for(let s=t;s255||o===48&&a>1)return!1;r++,i=0,a=0,o=0}else if(t>=48&&t<=57)a===0&&(o=t),i=i*10+(t-48),a++;else return!1}return r===3&&a>0&&i<=255&&!(o===48&&a>1)}function qr(e){return Kr(e,0,e.length)}function Jr(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Yr(e){let t=e.length;if(t===0)return!1;let n=0,r=!1,i=0;if(e.charCodeAt(0)===58&&e.charCodeAt(1)===58){if(t===2)return!0;r=!0,i=2}for(;i4)return!1;if(n++,i===t)break;if(s!==58)return!1;if(i++,e.charCodeAt(i)===58){if(r||e.charCodeAt(i+1)===58)return!1;if(r=!0,i++,i===t)break}}return r?n<=7:n===8}function Xr(e){try{return new URL(e,`http://example.com`),!0}catch{return!1}}function Zr(e){if(e.includes(` `)||e.includes(`\\`)||/[\x00-\x1F\x7F]/.test(e)||/%(?![0-9a-fA-F]{2})/.test(e))return!1;if(e===``)return!0;let t=e.indexOf(`:`);return t>0&&/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(e.substring(0,t))?Xr(e):e.match(/^([a-zA-Z][a-zA-Z0-9+\-.]*)(\/\/)/)&&t===-1?!1:Xr(e)}function Qr(e){try{return new URL(e),!0}catch{return!1}}const $r=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i;function ei(e){return $r.test(e)}const ti=/^(?:\/(?:[^~/]|~0|~1)*)*$/;function ni(e){return ti.test(e)}function ri(e){if(e.length===0)return!1;try{return new RegExp(e),!0}catch{return!1}}const ii=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;function ai(e){return ii.test(e)}const oi=/^(?!.*[^\x00-\x7F])(?!.*\\)(?:(?:[a-z][a-z0-9+\-.]*:)?(?:\/\/[^\s[\]{}<>^`|]*)?|[^\s[\]{}<>^`|]*)(?:\?[^\s[\]{}<>^`|]*)?(?:#[^\s[\]{}<>^`|]*)?$/i;function si(e){return oi.test(e)}const ci=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i;function li(e){return ci.test(e)}function ui(e){return e>=97&&e<=122||e>=65&&e<=90}function di(e){return ui(e)||e>=48&&e<=57}function fi(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function pi(e){return di(e)||e===43||e===45||e===46}function mi(e){return di(e)||e===45||e===46||e===95||e===126}function hi(e){return e===33||e===36||e===38||e===39||e===40||e===41||e===42||e===43||e===44||e===59||e===61}function gi(e){return mi(e)||hi(e)||e===58||e===64}function _i(e){let t=e.length;if(t===0||!ui(e.charCodeAt(0)))return!1;let n=1;for(;n=i||!fi(e.charCodeAt(t+1))||!fi(e.charCodeAt(t+2)))return!1;t+=2}else if(!mi(n)&&!hi(n)&&n!==58)return!1}n=i+1}if(e.charCodeAt(n)===91){for(n++;n57)return!1;n++}}for(;n=t||!fi(e.charCodeAt(n+1))||!fi(e.charCodeAt(n+2)))return!1;n+=2}else if(r>127)return!1;else if(!(gi(r)||r===47||r===63||r===35))return!1;n++}return!0}const vi=/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu;function yi(e){return vi.test(e)}const bi=/^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;function xi(e){return bi.test(e)}const K=new Map;function Si(){K.clear()}function Ci(e,t){return K.get(e)?.(t)??!0}function wi(){Si(),K.set(`date-time`,hr),K.set(`date`,fr),K.set(`duration`,_r),K.set(`email`,yr),K.set(`hostname`,Hr),K.set(`idn-email`,Wr),K.set(`idn-hostname`,Gr),K.set(`ipv4`,qr),K.set(`ipv6`,Yr),K.set(`iri-reference`,Zr),K.set(`iri`,Qr),K.set(`json-pointer-uri-fragment`,ei),K.set(`json-pointer`,ni),K.set(`regex`,ri),K.set(`relative-json-pointer`,ai),K.set(`time`,mr),K.set(`uri-reference`,si),K.set(`uri-template`,li),K.set(`uri`,_i),K.set(`url`,yi),K.set(`uuid`,xi)}wi();function Ti(e,t,n,r){return Ci(n.format,r)}function Ei(e,t,n,r,i,a){return Ti(e,t,i,a)||t.AddError({keyword:`format`,schemaPath:n,instancePath:r,params:{format:i.format}})}function Di(e,t,n,r){let i=Cn(n)?n.then:!0,a=Gt(n)?n.else:!0;return J(e,t,n.if,r)?J(e,t,i,r):J(e,t,a,r)}function Oi(e,t,n,r,i,a){let o=Cn(i)?i.then:!0,s=Gt(i)?i.else:!0,c=new G,l=X(e,c,`${n}/if`,r,i.if,a)?X(e,c,`${n}/then`,r,o,a)||t.AddError({keyword:`if`,schemaPath:n,instancePath:r,params:{failingKeyword:`then`}}):X(e,t,`${n}/else`,r,s,a)||t.AddError({keyword:`if`,schemaPath:n,instancePath:r,params:{failingKeyword:`else`}});return l&&t.Merge([c]),l}function ki(e,t,n,r){return C(n.items,0,(n,i)=>x(r.length,i)||q(e,t,n,r[i])&&t.AddIndex(i))}function Ai(e,t,n,r,i,a){return w(i.items,0,(i,o)=>{let s=`${n}/items/${o}`,c=`${r}/${o}`;return x(a.length,o)||Y(e,t,s,c,i,a[o])&&t.AddIndex(o)})}function ji(e,t,n,r){return C(r,hn(n)?n.prefixItems.length:0,(r,i)=>q(e,t,n.items,r)&&t.AddIndex(i))}function Mi(e,t,n,r,i,a){return w(a,hn(i)?i.prefixItems.length:0,(a,o)=>Y(e,t,`${n}/items`,`${r}/${o}`,i.items,a)&&t.AddIndex(o))}function Ni(e,t,n,r){return Qt(n)?ki(e,t,n,r):ji(e,t,n,r)}function Pi(e,t,n,r,i,a){return Qt(i)?Ai(e,t,n,r,i,a):Mi(e,t,n,r,i,a)}function Fi(e){return Bt(e)}function Ii(e,t,n,r){return Fi(n)?x(r.reduce((r,i)=>J(e,t,n.contains,i)?++r:r,0),n.maxContains):!0}function Li(e,t,n,r,i,a){let o=on(i)?i.minContains:1;return Ii(e,t,i,a)||t.AddError({keyword:`contains`,schemaPath:n,instancePath:r,params:{minContains:o,maxContains:i.maxContains}})}function Ri(e,t,n,r){return x(r,n.maximum)}function zi(e,t,n,r,i,a){return Ri(e,t,i,a)||t.AddError({keyword:`maximum`,schemaPath:n,instancePath:r,params:{comparison:`<=`,limit:i.maximum}})}function Bi(e,t,n,r){return x(r.length,n.maxItems)}function Vi(e,t,n,r,i,a){return Bi(e,t,i,a)||t.AddError({keyword:`maxItems`,schemaPath:n,instancePath:r,params:{limit:i.maxItems}})}function Hi(e,t,n,r){return de(r,n.maxLength)}function Ui(e,t,n,r,i,a){return Hi(e,t,i,a)||t.AddError({keyword:`maxLength`,schemaPath:n,instancePath:r,params:{limit:i.maxLength}})}function Wi(e,t,n,r){return x(O(r).length,n.maxProperties)}function Gi(e,t,n,r,i,a){return Wi(e,t,i,a)||t.AddError({keyword:`maxProperties`,schemaPath:n,instancePath:r,params:{limit:i.maxProperties}})}function Ki(e){return Bt(e)}function qi(e,t,n,r){return Ki(n)?S(r.reduce((r,i)=>J(e,t,n.contains,i)?++r:r,0),n.minContains):!0}function Ji(e,t,n,r,i,a){return qi(e,t,i,a)||t.AddError({keyword:`contains`,schemaPath:n,instancePath:r,params:{minContains:i.minContains}})}function Yi(e,t,n,r){return S(r,n.minimum)}function Xi(e,t,n,r,i,a){return Yi(e,t,i,a)||t.AddError({keyword:`minimum`,schemaPath:n,instancePath:r,params:{comparison:`>=`,limit:i.minimum}})}function Zi(e,t,n,r){return S(r.length,n.minItems)}function Qi(e,t,n,r,i,a){return Zi(e,t,i,a)||t.AddError({keyword:`minItems`,schemaPath:n,instancePath:r,params:{limit:i.minItems}})}function $i(e,t,n,r){return fe(r,n.minLength)}function ea(e,t,n,r,i,a){return $i(e,t,i,a)||t.AddError({keyword:`minLength`,schemaPath:n,instancePath:r,params:{limit:i.minLength}})}function ta(e,t,n,r){return S(O(r).length,n.minProperties)}function na(e,t,n,r,i,a){return ta(e,t,i,a)||t.AddError({keyword:`minProperties`,schemaPath:n,instancePath:r,params:{limit:i.minProperties}})}function ra(e,t,n,r){return ce(r,n.multipleOf)}function ia(e,t,n,r,i,a){return ra(e,t,i,a)||t.AddError({keyword:`multipleOf`,schemaPath:n,instancePath:r,params:{multipleOf:i.multipleOf}})}function aa(e,t,n,r){let i=new W;return!J(e,i,n.not,r)&&t.Merge([i])}function oa(e,t,n,r,i,a){return aa(e,t,i,a)||t.AddError({keyword:`not`,schemaPath:n,instancePath:r,params:{}})}function sa(e,t,n,r){let i=n.oneOf.reduce((t,n)=>{let i=new W;return J(e,i,n,r)?[...t,i]:t},[]);return b(i.length,1)&&t.Merge(i)}function ca(e,t,n,r,i,a){let o=[],s=[],c=i.oneOf.reduce((t,i,c)=>{let l=new G,u=X(e,l,`${n}/oneOf/${c}`,r,i,a);return u&&s.push(c),u||o.push(l),u?[...t,l]:t},[]),l=b(c.length,1)&&t.Merge(c);return!l&&b(s.length,0)&&o.forEach(e=>e.GetErrors().forEach(e=>t.AddError(e))),l||t.AddError({keyword:`oneOf`,schemaPath:n,instancePath:r,params:{passingSchemas:s}})}function la(e,t,n,r){return(v(n.pattern)?new RegExp(n.pattern,`u`):n.pattern).test(r)}function ua(e,t,n,r,i,a){return la(e,t,i,a)||t.AddError({keyword:`pattern`,schemaPath:n,instancePath:r,params:{pattern:i.pattern}})}function da(e,t,n,r){return C(D(n.patternProperties),0,([n,i])=>{let a=new RegExp(n,`u`);return C(D(r),0,([n,r])=>!a.test(n)||q(e,t,i,r)&&t.AddKey(n))})}function fa(e,t,n,r,i,a){return w(D(i.patternProperties),0,([i,o])=>{let s=`${n}/patternProperties/${i}`,c=new RegExp(i,`u`);return w(D(a),0,([n,i])=>{let a=`${r}/${n}`;return!c.test(n)||Y(e,t,s,a,o,i)&&t.AddKey(n)})})}function pa(e,t,n,r){return b(r.length,0)||C(n.prefixItems,0,(n,i)=>x(r.length,i)||q(e,t,n,r[i])&&t.AddIndex(i))}function ma(e,t,n,r,i,a){return b(a.length,0)||w(i.prefixItems,0,(i,o)=>{let s=`${n}/prefixItems/${o}`,c=`${r}/${o}`;return x(a.length,o)||Y(e,t,s,c,i,a[o])&&t.AddIndex(o)})}function ha(e,t){return e.includes(t)||j().exactOptionalPropertyTypes}function ga(e,t){return y(e[t])}function _a(e,t,n,r){let i=Sn(n)?n.required:[];return C(D(n.properties),0,([n,a])=>{let o=!E(r,n)||q(e,t,a,r[n])&&t.AddKey(n);return ha(i,n)?o:ga(r,n)||o})}function va(e,t,n,r,i,a){let o=Sn(i)?i.required:[];return w(D(i.properties),0,([i,s])=>{let c=`${n}/properties/${i}`,l=`${r}/${i}`,u=()=>!E(a,i)||Y(e,t,c,l,s,a[i])&&t.AddKey(i);return ha(o,i)?u():ga(a,i)||u()})}function ya(e,t,n,r){return C(O(r),0,(r,i)=>J(e,t,n.propertyNames,r))}function ba(e,t,n,r,i,a){let o=[];return w(O(a),0,(t,a)=>{let s=`${r}/${t}`,c=`${n}/propertyNames`,l=X(e,new G,c,s,i.propertyNames,t);return l||o.push(t),l})||t.AddError({keyword:`propertyNames`,schemaPath:n,instancePath:r,params:{propertyNames:o}})}function xa(e,t,n,r){let i=e.RecursiveRef(n)??!1;return V(i)&&J(e,t,i,r)}function Sa(e,t,n,r,i,a){let o=e.RecursiveRef(i)??!1;return V(o)&&X(e,t,`#`,r,o,a)}function Ca(e,t,n,r){let i=e.Ref(n)??!1,a=new W,o=V(i)&&J(e,a,i,r);return o&&t.Merge([a]),o}function wa(e,t,n,r,i,a){let o=e.Ref(i)??!1,s=new G,c=V(o)&&X(e,s,`#`,r,o,a);return c&&t.Merge([s]),c||s.GetErrors().forEach(e=>t.AddError(e)),c}function Ta(e,t,n,r){return C(n.required,0,e=>E(r,e))}function Ea(e,t,n,r,i,a){let o=[];return w(i.required,0,e=>{let t=E(a,e);return t||o.push(e),t})||t.AddError({keyword:`required`,schemaPath:n,instancePath:r,params:{requiredProperties:o}})}function Da(e,t,n,r,i){return b(n,`object`)?ie(i):b(n,`array`)?d(i):b(n,`boolean`)?p(i):b(n,`integer`)?re(i):b(n,`number`)?g(i):b(n,`null`)?h(i):b(n,`string`)?v(i):b(n,`bigint`)?f(i):b(n,`constructor`)?ne(i):b(n,`function`)?m(i):b(n,`symbol`)?ae(i):b(n,`undefined`)||b(n,`void`)?y(i):!0}function Oa(e,t,n,r,i){return n.some(n=>Da(e,t,n,r,i))}function ka(e,t,n,r){return d(n.type)?Oa(e,t,n.type,n,r):Da(e,t,n.type,n,r)}function Aa(e,t,n,r,i,a){return(d(i.type)?Oa(e,t,i.type,i,a):Da(e,t,i.type,i,a))||t.AddError({keyword:`type`,schemaPath:n,instancePath:r,params:{type:i.type}})}function ja(e,t,n,r){let i=t.GetIndices();return C(r,0,(r,a)=>(i.has(a)||J(e,t,n.unevaluatedItems,r))&&t.AddIndex(a))}function Ma(e,t,n,r,i,a){let o=t.GetIndices(),s=[];return w(a,0,(a,c)=>{let l=new G,u=(o.has(c)||X(e,l,n,r,i.unevaluatedItems,a))&&t.AddIndex(c);return u||s.push(c),u})||t.AddError({keyword:`unevaluatedItems`,schemaPath:n,instancePath:r,params:{unevaluatedItems:s}})}function Na(e,t,n,r){let i=t.GetKeys();return C(D(r),0,([r,a])=>i.has(r)||J(e,t,n.unevaluatedProperties,a)&&t.AddKey(r))}function Pa(e,t,n,r,i,a){let o=t.GetKeys(),s=[];return w(D(a),0,([a,c])=>{let l=new G,u=o.has(a)||X(e,l,n,r,i.unevaluatedProperties,c)&&t.AddKey(a);return u||s.push(a),u})||t.AddError({keyword:`unevaluatedProperties`,schemaPath:n,instancePath:r,params:{unevaluatedProperties:s}})}function Fa(e){return!b(e.uniqueItems,!1)}function Ia(e,t,n,r){if(!Fa(n))return!0;let i=new Set(r.map(yt)).size,a=r.length;return b(i,a)}function La(e,t,n,r,i,a){if(!Fa(i))return!0;let o=new Set,s=a.reduce((e,t,n)=>{let r=yt(t);return o.has(r)?[...e,n]:(o.add(r),e)},[]);return b(s.length,0)||t.AddError({keyword:`uniqueItems`,schemaPath:n,instancePath:r,params:{duplicateItems:s}})}function q(e,t,n,r){return t.Push()&&J(e,t,n,r)&&t.Pop()}function J(e,t,n,r){e.Push(n);let i=Nt(n)?Hn(e,t,n,r):(!wn(n)||ka(e,t,n,r))&&(!(_(r)&&!d(r))||(!Sn(n)||Ta(e,t,n,r))&&(!Ft(n)||In(e,t,n,r))&&(!Vt(n)||Yn(e,t,n,r))&&(!Ht(n)||Zn(e,t,n,r))&&(!Ut(n)||$n(e,t,n,r))&&(!mn(n)||da(e,t,n,r))&&(!gn(n)||_a(e,t,n,r))&&(!_n(n)||ya(e,t,n,r))&&(!ln(n)||ta(e,t,n,r))&&(!rn(n)||Wi(e,t,n,r)))&&(!d(r)||(!Pt(n)||Mn(e,t,n,r))&&(!Bt(n)||qn(e,t,n,r))&&(!Zt(n)||Ni(e,t,n,r))&&(!en(n)||Ii(e,t,n,r))&&(!tn(n)||Bi(e,t,n,r))&&(!on(n)||qi(e,t,n,r))&&(!sn(n)||Zi(e,t,n,r))&&(!hn(n)||pa(e,t,n,r))&&(!Tn(n)||Ia(e,t,n,r)))&&(!v(r)||(!nn(n)||Hi(e,t,n,r))&&(!cn(n)||$i(e,t,n,r))&&(!Yt(n)||Ti(e,t,n,r))&&(!pn(n)||la(e,t,n,r)))&&(!(g(r)||f(r))||(!qt(n)||ar(e,t,n,r))&&(!Jt(n)||sr(e,t,n,r))&&(!$t(n)||Ri(e,t,n,r))&&(!an(n)||Yi(e,t,n,r))&&(!un(n)||ra(e,t,n,r)))&&(!xn(n)||Ca(e,t,n,r))&&(!bn(n)||xa(e,t,n,r))&&(!Wt(n)||tr(e,t,n,r))&&(!zt(n)||Wn(e,t,n,r))&&(!Kt(n)||rr(e,t,n,r))&&(!Xt(n)||Di(e,t,n,r))&&(!dn(n)||aa(e,t,n,r))&&(!It(n)||Rn(e,t,n,r))&&(!Rt(n)||Bn(e,t,n,r))&&(!fn(n)||sa(e,t,n,r))&&(!En(n)||!d(r)||ja(e,t,n,r))&&(!Dn(n)||!_(r)||Na(e,t,n,r))&&(!Mt(n)||kn(e,t,n,r));return e.Pop(n),i}function Y(e,t,n,r,i,a){return t.Push()&&X(e,t,n,r,i,a)&&t.Pop()}function X(e,t,n,r,i,a){e.Push(i);let o=Nt(i)?Un(e,t,n,r,i,a):!!((!wn(i)||Aa(e,t,n,r,i,a))&+(!(_(a)&&!d(a))||!!((!Sn(i)||Ea(e,t,n,r,i,a))&+(!Ft(i)||Ln(e,t,n,r,i,a))&(!Vt(i)||Xn(e,t,n,r,i,a))&(!Ht(i)||Qn(e,t,n,r,i,a))&(!Ut(i)||er(e,t,n,r,i,a))&(!mn(i)||fa(e,t,n,r,i,a))&(!gn(i)||va(e,t,n,r,i,a))&(!_n(i)||ba(e,t,n,r,i,a))&(!ln(i)||na(e,t,n,r,i,a))&(!rn(i)||Gi(e,t,n,r,i,a))))&(!d(a)||!!((!Pt(i)||Nn(e,t,n,r,i,a))&+(!Bt(i)||Jn(e,t,n,r,i,a))&(!Zt(i)||Pi(e,t,n,r,i,a))&(!en(i)||Li(e,t,n,r,i,a))&(!tn(i)||Vi(e,t,n,r,i,a))&(!on(i)||Ji(e,t,n,r,i,a))&(!sn(i)||Qi(e,t,n,r,i,a))&(!hn(i)||ma(e,t,n,r,i,a))&(!Tn(i)||La(e,t,n,r,i,a))))&(!v(a)||!!((!nn(i)||Ui(e,t,n,r,i,a))&+(!cn(i)||ea(e,t,n,r,i,a))&(!Yt(i)||Ei(e,t,n,r,i,a))&(!pn(i)||ua(e,t,n,r,i,a))))&(!(g(a)||f(a))||!!((!qt(i)||or(e,t,n,r,i,a))&+(!Jt(i)||cr(e,t,n,r,i,a))&(!$t(i)||zi(e,t,n,r,i,a))&(!an(i)||Xi(e,t,n,r,i,a))&(!un(i)||ia(e,t,n,r,i,a))))&(!xn(i)||wa(e,t,n,r,i,a))&(!bn(i)||Sa(e,t,n,r,i,a))&(!Wt(i)||nr(e,t,n,r,i,a))&(!zt(i)||Gn(e,t,n,r,i,a))&(!Kt(i)||ir(e,t,n,r,i,a))&(!Xt(i)||Oi(e,t,n,r,i,a))&(!dn(i)||oa(e,t,n,r,i,a))&(!It(i)||zn(e,t,n,r,i,a))&(!Rt(i)||Vn(e,t,n,r,i,a))&(!fn(i)||ca(e,t,n,r,i,a))&(!En(i)||!d(a)||Ma(e,t,n,r,i,a))&(!Dn(i)||!_(a)||Pa(e,t,n,r,i,a)))&&(!Mt(i)||An(e,t,n,r,i,a));return e.Pop(i),o}function Ra(e,t){return _(t)&&!T(e)?t[e]:void 0}function za(e,t){return e.reduce((e,t)=>Ra(t,e),t)}function Ba(e){if(b(e.length,0))return[];let t=e.split(`/`).map(e=>e.replace(/~1/g,`/`).replace(/~0/g,`~`));return t.length>0&&t[0]===``?t.slice(1):t}function Va(e,t){return za(Ba(t),e)}function Ha(e,t,n){if(e.$id===n.hash)return e;let r=new URL(e.$id,t.href),i=new URL(n.href,t.href);if(b(r.pathname,i.pathname))return n.hash.startsWith(`#`)?Ga(e,t,n):e}function Ua(e,t,n){let r=new URL(`#${e.$anchor}`,t.href),i=new URL(n.href,t.href);return b(r.href,i.href)?e:void 0}function Wa(e,t,n){let r=new URL(`#${e.$dynamicAnchor}`,t.href),i=new URL(n.href,t.href);return b(r.href,i.href)?e:void 0}function Ga(e,t,n){if(n.href.endsWith(`#`))return e;if(!n.hash.startsWith(`#`))return;let r=decodeURIComponent(n.hash.slice(1));if(r.startsWith(`/`))return Va(e,r)}function Ka(e,t,n){if(U(e)){let r=Ha(e,t,n);if(!y(r))return r}if(Lt(e)){let r=Ua(e,t,n);if(!y(r))return r}if(H(e)){let r=Wa(e,t,n);if(!y(r))return r}return Ga(e,t,n)}function qa(e,t,n){return e.reduce((e,r)=>{let i=Ya(r,t,n);return y(i)?e:i},void 0)}function Ja(e,t,n){return O(e).reduce((r,i)=>{let a=Ya(e[i],t,n);return y(a)?r:a},void 0)}function Ya(e,t,n){let r=B(e)&&U(e)?new URL(e.$id,t.href):t;if(B(e)){let t=Ka(e,r,n);if(!y(t))return t}if(d(e))return qa(e,r,n);if(_(e))return Ja(e,r,n)}function Z(e,t){let n=new URL(`http://unknown/`),r=U(e)?new URL(e.$id,n.href):n;return Ya(e,r,new URL(t,r.href))}function Xa(e,t,n,r){let i=n.$dynamicRef.startsWith(`#`)?Z(t,n.$dynamicRef):Z(e,n.$dynamicRef);if(!y(i))return!B(i)||!H(i)||new URL(n.$dynamicRef,`http://unknown/`).hash.startsWith(`#/`)?i:r.find(e=>e.$dynamicAnchor===i.$dynamicAnchor)??i}var Q=function(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)},$,Za,Qa,$a,eo,to=class{constructor(e,t){$.add(this),this.context=e,this.schema=t,this.ids=[],this.anchors=[],this.recursiveAnchors=[],this.dynamicAnchors=[]}BaseURL(){return this.ids.reduce((e,t)=>new URL(t.$id,e),new URL(`http://unknown`))}Base(){return this.ids[this.ids.length-1]??this.schema}Push(e){B(e)&&(U(e)&&(this.ids.push(e),Q(this,$,`m`,Za).call(this,e)),Lt(e)&&this.anchors.push(e),yn(e)&&this.recursiveAnchors.push(e),H(e)&&this.dynamicAnchors.push(e))}Pop(e){B(e)&&(U(e)&&(this.ids.pop(),Q(this,$,`m`,Qa).call(this,e)),Lt(e)&&this.anchors.pop(),yn(e)&&this.recursiveAnchors.pop(),H(e)&&this.dynamicAnchors.pop())}Ref(e){return Q(this,$,`m`,$a).call(this,e)??Q(this,$,`m`,eo).call(this,e)}RecursiveRef(e){return yn(this.Base())?Z(this.recursiveAnchors[0],e.$recursiveRef):Z(this.Base(),e.$recursiveRef)}DynamicRef(e){let t=this.schema;return Xa(t,this.Base(),e,this.dynamicAnchors)}};$=new WeakSet,Za=function e(t,n=!0){if(!B(t))return;let r=t;if(!(!n&&U(r))){!n&&H(r)&&this.dynamicAnchors.push(r);for(let t of O(r))Q(this,$,`m`,e).call(this,r[t],!1)}},Qa=function e(t,n=!0){if(!B(t))return;let r=t;if(!(!n&&U(r))){!n&&H(r)&&this.dynamicAnchors.pop();for(let t of O(r))Q(this,$,`m`,e).call(this,r[t],!1)}},$a=function(e){return E(this.context,e.$ref)?this.context[e.$ref]:void 0},eo=function(e){let t=this.schema;return e.$ref.startsWith(`#`)?Z(this.Base(),e.$ref):Z(t,e.$ref)};function no(...e){let[t,n,r]=We(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]}),i=j(),a=St(),o=[];return[X(new to(t,n),new On(e=>{if(!S(o.length,i.maxErrors))return o.push({...e,message:a(e)})}),`#`,``,n,r),o]}function ro(...e){let[t,n,r]=We(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]});return J(new to(t,n),new W,n,r)}var io=class{constructor(e,t,n){this.schema=e,this.value=t,this.errors=n}};function ao(...e){let[t,n,r]=We(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]});if(!ro(t,n,r)){let[e,i]=no(t,n,r);throw new io(n,r,i)}return r}const oo=wt(Ue({}),e=>e instanceof Date),so=He({id:R(),created:oo,title:z({minLength:1,maxLength:100}),type:qe([`jpg`,`png`]),size:R(),url:z({format:`url`})}),co=He({id:R(),stars:R({minimum:1,maximum:5}),title:z({minLength:1,maxLength:100}),text:z({minLength:1,maxLength:1e3}),images:N(so)});ao(He({id:R(),created:oo,title:z({minLength:1,maxLength:100}),brand:z({minLength:1,maxLength:30}),description:z({minLength:1,maxLength:500}),price:R({minimum:1,maximum:1e4}),discount:Ot([R({minimum:1,maximum:100}),Dt()]),quantity:R({minimum:1,maximum:10}),tags:N(z({minLength:1,maxLength:30})),images:N(so),ratings:N(co)}),{}); \ No newline at end of file diff --git a/schemas/libraries/typebox/download_compiled/schema/unminified.js b/schemas/libraries/typebox/download_compiled/schema/unminified.js index 318221fd..04f7bc7d 100644 --- a/schemas/libraries/typebox/download_compiled/schema/unminified.js +++ b/schemas/libraries/typebox/download_compiled/schema/unminified.js @@ -1,4 +1,4 @@ -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/memory/metrics.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/memory/metrics.mjs /** TypeBox instantiation metrics */ const Metrics = { assign: 0, @@ -8,7 +8,7 @@ const Metrics = { update: 0 }; //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/guard/string.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/guard/string.mjs function IsBetween(value, min, max) { return value >= min && value <= max; } @@ -92,15 +92,11 @@ function IsMaxLengthFast(value, maxLength) { return true; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/guard/guard.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/guard/guard.mjs /** Returns true if this value is an array */ function IsArray(value) { return Array.isArray(value); } -/** Returns true if this value is an async iterator */ -function IsAsyncIterator(value) { - return IsObject(value) && Symbol.asyncIterator in value; -} /** Returns true if this value is bigint */ function IsBigInt(value) { return IsEqual(typeof value, "bigint"); @@ -125,10 +121,6 @@ function IsFunction(value) { function IsInteger(value) { return Number.isInteger(value); } -/** Returns true if this value is an iterator */ -function IsIterator(value) { - return IsObject(value) && Symbol.iterator in value; -} /** Returns true if this value is null */ function IsNull(value) { return IsEqual(value, null); @@ -180,6 +172,13 @@ function IsMultipleOf$1(dividend, divisor) { const mod = dividend % divisor; return Math.min(Math.abs(mod), Math.abs(mod - divisor)) < tolerance; } +/** Returns true if the value appears to be an instance of a class. */ +function IsClassInstance(value) { + if (!IsObject(value)) return false; + const proto = globalThis.Object.getPrototypeOf(value); + if (IsNull(proto)) return false; + return IsEqual(typeof proto.constructor, "function") && !(IsEqual(proto.constructor, globalThis.Object) || IsEqual(proto.constructor.name, "Object")); +} function IsValueLike(value) { return IsBigInt(value) || IsBoolean$1(value) || IsNull(value) || IsNumber$1(value) || IsString$1(value) || IsUndefined(value); } @@ -218,6 +217,10 @@ function Entries(value) { function Keys(value) { return Object.getOwnPropertyNames(value); } +/** Returns the property keys for this object via `Object.getOwnPropertySymbols({ ... })` */ +function Symbols(value) { + return Object.getOwnPropertySymbols(value); +} function DeepEqualObject(left, right) { if (!IsObject(right)) return false; const keys = Keys(left); @@ -231,7 +234,7 @@ function IsDeepEqual(left, right) { return IsArray(left) ? DeepEqualArray(left, right) : IsObject(left) ? DeepEqualObject(left, right) : IsEqual(left, right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/guard/globals.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/guard/globals.mjs function IsBoolean(value) { return value instanceof Boolean; } @@ -252,21 +255,27 @@ function IsRegExp(value) { function IsDate$1(value) { return value instanceof globalThis.Date; } -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/memory/clone.mjs -function IsGuard$1(value) { - return IsObject(value) && HasPropertyKey(value, "~guard"); +/** Returns true if the value is a Set */ +function IsSet(value) { + return value instanceof globalThis.Set; +} +/** Returns true if the value is a Map */ +function IsMap(value) { + return value instanceof globalThis.Map; } -function FromGuard(value) { +//#endregion +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/memory/clone.mjs +function FromClassInstance(value) { return value; } -function FromArray$2(value) { - return value.map((value) => FromValue$2(value)); +function IsKindedObject(value) { + return HasPropertyKey(value, "~kind"); } -function FromObject$2(value) { +function FromKindedObject(value) { const result = {}; const descriptors = Object.getOwnPropertyDescriptors(value); for (const key of Object.keys(descriptors)) { + if (IsUnsafePropertyKey(key)) continue; const descriptor = descriptors[key]; if (HasPropertyKey(descriptor, "value")) Object.defineProperty(result, key, { ...descriptor, @@ -275,26 +284,46 @@ function FromObject$2(value) { } return result; } +function FromPlainObject(value) { + const result = {}; + for (const key of Keys(value)) { + if (IsUnsafePropertyKey(key)) continue; + result[key] = FromValue$2(value[key]); + } + for (const key of Symbols(value)) result[key] = FromValue$2(value[key]); + return result; +} +function FromObject$2(value) { + return IsClassInstance(value) ? FromClassInstance(value) : IsKindedObject(value) ? FromKindedObject(value) : FromPlainObject(value); +} +function FromArray$2(value) { + return value.map((element) => FromValue$2(element)); +} +function FromTypedArray(value) { + return value.slice(); +} function FromRegExp$1(value) { return new RegExp(value.source, value.flags); } -function FromUnknown(value) { - return value; +function FromMap(value) { + return new Map(FromValue$2([...value.entries()])); +} +function FromSet(value) { + return new Set(FromValue$2([...value.values()])); } function FromValue$2(value) { - return value instanceof RegExp ? FromRegExp$1(value) : IsGuard$1(value) ? FromGuard(value) : IsArray(value) ? FromArray$2(value) : IsObject(value) ? FromObject$2(value) : FromUnknown(value); + return IsTypeArray(value) ? FromTypedArray(value) : IsRegExp(value) ? FromRegExp$1(value) : IsMap(value) ? FromMap(value) : IsSet(value) ? FromSet(value) : IsArray(value) ? FromArray$2(value) : IsObject(value) ? FromObject$2(value) : value; } /** -* Clones a value using the TypeBox type cloning strategy. This function preserves non-enumerable -* properties from the source value. This is to ensure cloned types retain discriminable -* hidden properties. +* Returns a Clone of the given value. This function is similar to structuredClone() +* but also supports deep cloning instances of Map, Set and TypeArray. */ function Clone(value) { Metrics.clone += 1; return FromValue$2(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/settings/settings.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/settings/settings.mjs const settings = { immutableTypes: false, maxErrors: 8, @@ -309,7 +338,7 @@ function Get$2() { return settings; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/memory/create.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/memory/create.mjs function MergeHidden(left, right) { for (const key of Object.keys(right)) Object.defineProperty(left, key, { configurable: true, @@ -338,7 +367,7 @@ function Create(hidden, enumerable, options = {}) { return settings.immutableTypes ? Object.freeze(withHidden) : withHidden; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/memory/update.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/memory/update.mjs /** * Updates a value with new properties while preserving property enumerability. Use this function to modify * existing types without altering their configuration. @@ -362,12 +391,12 @@ function Update(current, hidden, enumerable) { return result; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/schema.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/schema.mjs function IsSchema$1(value) { return IsObject(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/array.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/array.mjs /** Creates an Array type. */ function _Array_(items, options) { return Create({ "~kind": "Array" }, { @@ -376,19 +405,19 @@ function _Array_(items, options) { }, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/_optional.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/_optional.mjs /** Returns true if the given value is TOptional */ function IsOptional(value) { return IsSchema$1(value) && HasPropertyKey(value, "~optional"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/properties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/properties.mjs /** Creates a RequiredArray derived from the given TProperties value. */ function RequiredArray(properties) { return Keys(properties).filter((key) => !IsOptional(properties[key])); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/object.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/object.mjs /** Creates an Object type. */ function _Object_(properties, options = {}) { const requiredKeys = RequiredArray(properties); @@ -399,13 +428,13 @@ function _Object_(properties, options = {}) { }, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/unsafe.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/unsafe.mjs /** Creates a Unsafe type. */ function Unsafe(schema) { return Update(schema, { ["~unsafe"]: null }, {}); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/arguments/arguments.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/arguments/arguments.mjs /** * Match arguments for overloaded functions that use the `...args: unknown[]` pattern. Arguments * are parsed using argument length only. @@ -416,7 +445,7 @@ function Match$1(args, match) { })(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/enum/typescript_enum_to_enum_values.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/enum/typescript_enum_to_enum_values.mjs function IsTypeScriptEnumLike(value) { return IsObjectNotArray(value); } @@ -424,19 +453,19 @@ function TypeScriptEnumToEnumValues(type) { return Keys(type).filter((key) => isNaN(key)).reduce((result, key) => [...result, type[key]], []); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/enum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/enum.mjs /** Creates an Enum type. */ function Enum(value, options) { return Create({ "~kind": "Enum" }, { enum: IsTypeScriptEnumLike(value) ? TypeScriptEnumToEnumValues(value) : value }, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/unreachable/unreachable.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/unreachable/unreachable.mjs /** Used for unreachable logic */ function Unreachable() { throw new Error("Unreachable"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/hashing/hash.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/hashing/hash.mjs function InstanceKeys(value) { const propertyKeys = /* @__PURE__ */ new Set(); let current = value; @@ -551,7 +580,7 @@ function Hash(value) { return HashCode(value).toString(16).padStart(16, "0"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/locale/en_US.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/locale/en_US.mjs /** en_US: English (United States) - ISO 639-1 language code 'en' with ISO 3166-1 alpha-2 country code 'US' for United States. */ function en_US(error) { switch (error.keyword) { @@ -585,27 +614,26 @@ function en_US(error) { case "unevaluatedItems": return "must not have unevaluated items"; case "unevaluatedProperties": return "must not have unevaluated properties"; case "uniqueItems": return `must not have duplicate items`; - case "~guard": return `must match check function`; case "~refine": return error.params.message; default: return "an unknown validation error occurred"; } } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/locale/_config.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/locale/_config.mjs let locale = en_US; /** Gets the locale */ function Get$1() { return locale; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/_refine.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/_refine.mjs /** Applies a Refine check to the given type. */ function RefineAdd(type, refinement) { return Update(type, { "~refine": IsRefine$1(type) ? [...type["~refine"], refinement] : [refinement] }, {}); } /** Refines a type with an explicit check */ function Refine(...args) { - const [type, check, error_or_message] = Match$1(args, { + const [type, check, error] = Match$1(args, { 3: (type, check, error) => [ type, check, @@ -619,7 +647,7 @@ function Refine(...args) { }); return RefineAdd(type, { check, - error: IsString$1(error_or_message) ? () => error_or_message : error_or_message + error }); } /** Returns true if the given value is a TRefinement. */ @@ -631,10 +659,10 @@ function IsRefine$1(value) { return IsSchema$1(value) && HasPropertyKey(value, "~refine") && IsArray(value["~refine"]) && Every(value["~refine"], 0, (value) => IsRefinement(value)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/integer.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/integer.mjs const IntegerPattern = "-?(?:0|[1-9][0-9]*)"; //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/null.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/null.mjs /** Creates a Null type. */ function Null(options) { return Create({ "~kind": "Null" }, { type: "null" }, options); @@ -644,22 +672,22 @@ function Number$1(options) { return Create({ "~kind": "Number" }, { type: "number" }, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/string.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/string.mjs /** Creates a String type. */ function String$1(options) { return Create({ "~kind": "String" }, { type: "string" }, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/union.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/union.mjs /** Creates a Union type. */ function Union(anyOf, options = {}) { return Create({ "~kind": "Union" }, { anyOf }, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/record.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/record.mjs const IntegerKey = `^${IntegerPattern}$`; //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/token/internal/char.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/token/internal/char.mjs function Range(start, end) { return Array.from({ length: end - start + 1 }, (_, i) => String.fromCharCode(start + i)); } @@ -674,15 +702,7 @@ const Digit = ["0", ...Range(49, 57)]; [...Digit]; new RegExp(IntegerKey); //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/_guard.mjs -function IsGuardInterface(value) { - return IsObject(value) && HasPropertyKey(value, "check") && HasPropertyKey(value, "errors") && IsFunction(value.check) && IsFunction(value.errors); -} -function IsGuard(value) { - return HasPropertyKey(value, "~guard") && IsGuardInterface(value["~guard"]); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/_refine.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/_refine.mjs /** * Returns true if the schema contains an '~refine` keyword * @specification None @@ -691,7 +711,7 @@ function IsRefine(value) { return HasPropertyKey(value, "~refine") && IsArray(value["~refine"]) && Every(value["~refine"], 0, (value) => IsObject(value) && HasPropertyKey(value, "check") && HasPropertyKey(value, "error") && IsFunction(value.check) && IsFunction(value.error)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/schema.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/schema.mjs /** Returns true if this value is object like */ function IsSchemaObject(value) { return IsObject(value) && !IsArray(value); @@ -705,7 +725,7 @@ function IsSchema(value) { return IsSchemaObject(value) || IsBooleanSchema(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/additionalItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/additionalItems.mjs /** * Returns true if the schema contains a valid additionalItems property * @specification Json Schema 7 @@ -714,7 +734,7 @@ function IsAdditionalItems(schema) { return HasPropertyKey(schema, "additionalItems") && IsSchema(schema.additionalItems); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/additionalProperties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/additionalProperties.mjs /** * Returns true if the schema contains a valid additionalProperties property * @specification Json Schema 7 @@ -723,7 +743,7 @@ function IsAdditionalProperties(schema) { return HasPropertyKey(schema, "additionalProperties") && IsSchema(schema.additionalProperties); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/allOf.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/allOf.mjs /** * Returns true if the schema contains a valid allOf property * @specification Json Schema 7 @@ -732,7 +752,7 @@ function IsAllOf(schema) { return HasPropertyKey(schema, "allOf") && IsArray(schema.allOf) && schema.allOf.every((value) => IsSchema(value)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/anchor.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/anchor.mjs /** * Returns true if the schema contains a valid $anchor property */ @@ -740,7 +760,7 @@ function IsAnchor(schema) { return HasPropertyKey(schema, "$anchor") && IsString$1(schema.$anchor); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/anyOf.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/anyOf.mjs /** * Returns true if the schema contains a valid anyOf property * @specification Json Schema 7 @@ -749,7 +769,7 @@ function IsAnyOf(schema) { return HasPropertyKey(schema, "anyOf") && IsArray(schema.anyOf) && schema.anyOf.every((value) => IsSchema(value)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/const.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/const.mjs /** * Returns true if the schema contains a valid const property * @specification Json Schema 7 @@ -758,7 +778,7 @@ function IsConst(value) { return HasPropertyKey(value, "const"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/contains.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/contains.mjs /** * Returns true if the schema contains a valid contains property * @specification Json Schema 7 @@ -767,7 +787,7 @@ function IsContains(schema) { return HasPropertyKey(schema, "contains") && IsSchema(schema.contains); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/dependencies.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/dependencies.mjs /** * Returns true if the schema contains a valid dependencies property * @specification Json Schema 7 @@ -776,7 +796,7 @@ function IsDependencies(schema) { return HasPropertyKey(schema, "dependencies") && IsObject(schema.dependencies) && Object.values(schema.dependencies).every((value) => IsSchema(value) || IsArray(value) && value.every((value) => IsString$1(value))); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/dependentRequired.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/dependentRequired.mjs /** * Returns true if the schema contains a valid dependentRequired property * @specification Json Schema 2019-09 @@ -785,7 +805,7 @@ function IsDependentRequired(schema) { return HasPropertyKey(schema, "dependentRequired") && IsObject(schema.dependentRequired) && Object.values(schema.dependentRequired).every((value) => IsArray(value) && value.every((value) => IsString$1(value))); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/dependentSchemas.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/dependentSchemas.mjs /** * Returns true if the schema contains a valid dependentRequired property * @specification Json Schema 2019-09 @@ -794,7 +814,7 @@ function IsDependentSchemas(schema) { return HasPropertyKey(schema, "dependentSchemas") && IsObject(schema.dependentSchemas) && Object.values(schema.dependentSchemas).every((value) => IsSchema(value)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/dynamicAnchor.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/dynamicAnchor.mjs /** * Returns true if the schema contains a valid $dynamicAnchor property */ @@ -802,7 +822,7 @@ function IsDynamicAnchor(schema) { return HasPropertyKey(schema, "$dynamicAnchor") && IsString$1(schema.$dynamicAnchor); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/dynamicRef.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/dynamicRef.mjs /** * Returns true if the schema contains a valid $dynamicRef property */ @@ -810,7 +830,7 @@ function IsDynamicRef(schema) { return HasPropertyKey(schema, "$dynamicRef") && IsString$1(schema.$dynamicRef); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/else.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/else.mjs /** * Returns true if the schema contains a valid else property * @specification Json Schema 7 @@ -819,7 +839,7 @@ function IsElse(schema) { return HasPropertyKey(schema, "else") && IsSchema(schema.else); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/enum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/enum.mjs /** * Returns true if the schema contains a valid enum property * @specification Json Schema 7 @@ -828,7 +848,7 @@ function IsEnum(schema) { return HasPropertyKey(schema, "enum") && IsArray(schema.enum); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/exclusiveMaximum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/exclusiveMaximum.mjs /** * Returns true if the schema contains a valid exclusiveMaximum property * @specification Json Schema 7 @@ -837,7 +857,7 @@ function IsExclusiveMaximum(schema) { return HasPropertyKey(schema, "exclusiveMaximum") && (IsNumber$1(schema.exclusiveMaximum) || IsBigInt(schema.exclusiveMaximum)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/exclusiveMinimum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/exclusiveMinimum.mjs /** * Returns true if the schema contains a valid exclusiveMinimum property * @specification Json Schema 7 @@ -846,7 +866,7 @@ function IsExclusiveMinimum(schema) { return HasPropertyKey(schema, "exclusiveMinimum") && (IsNumber$1(schema.exclusiveMinimum) || IsBigInt(schema.exclusiveMinimum)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/format.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/format.mjs /** * Returns true if the schema contains a valid format property * @specification Json Schema 7 @@ -855,7 +875,7 @@ function IsFormat(schema) { return HasPropertyKey(schema, "format") && IsString$1(schema.format); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/id.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/id.mjs /** * Returns true if the schema contains a valid $id property * @specification Json Schema 7 @@ -864,7 +884,7 @@ function IsId(schema) { return HasPropertyKey(schema, "$id") && IsString$1(schema.$id); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/if.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/if.mjs /** * Returns true if the schema contains a valid $id property * @specification Json Schema 7 @@ -873,7 +893,7 @@ function IsIf(schema) { return HasPropertyKey(schema, "if") && IsSchema(schema.if); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/items.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/items.mjs /** * Returns true if the schema contains a valid items property * @specification Json Schema 7 @@ -888,7 +908,7 @@ function IsItemsSized(schema) { return IsItems(schema) && IsArray(schema.items); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/maximum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/maximum.mjs /** * Returns true if the schema contains a valid maximum property * @specification Json Schema 7 @@ -897,7 +917,7 @@ function IsMaximum(schema) { return HasPropertyKey(schema, "maximum") && (IsNumber$1(schema.maximum) || IsBigInt(schema.maximum)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/maxContains.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/maxContains.mjs /** * Returns true if the schema contains a valid maxContains property * @specification Json Schema 2019-09 @@ -906,7 +926,7 @@ function IsMaxContains(schema) { return HasPropertyKey(schema, "maxContains") && IsNumber$1(schema.maxContains); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/maxItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/maxItems.mjs /** * Returns true if the schema contains a valid maxItems property * @specification Json Schema 7 @@ -915,7 +935,7 @@ function IsMaxItems(schema) { return HasPropertyKey(schema, "maxItems") && IsNumber$1(schema.maxItems); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/maxLength.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/maxLength.mjs /** * Returns true if the schema contains a valid maxLength property * @specification Json Schema 7 @@ -924,7 +944,7 @@ function IsMaxLength(schema) { return HasPropertyKey(schema, "maxLength") && IsNumber$1(schema.maxLength); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/maxProperties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/maxProperties.mjs /** * Returns true if the schema contains a valid maxProperties property * @specification Json Schema 7 @@ -933,7 +953,7 @@ function IsMaxProperties(schema) { return HasPropertyKey(schema, "maxProperties") && IsNumber$1(schema.maxProperties); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/minimum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/minimum.mjs /** * Returns true if the schema contains a valid minimum property * @specification Json Schema 7 @@ -942,7 +962,7 @@ function IsMinimum(schema) { return HasPropertyKey(schema, "minimum") && (IsNumber$1(schema.minimum) || IsBigInt(schema.minimum)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/minContains.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/minContains.mjs /** * Returns true if the schema contains a valid maxContains property * @specification Json Schema 2019-09 @@ -951,7 +971,7 @@ function IsMinContains(schema) { return HasPropertyKey(schema, "minContains") && IsNumber$1(schema.minContains); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/minItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/minItems.mjs /** * Returns true if the schema contains a valid minItems property * @specification Json Schema 7 @@ -960,7 +980,7 @@ function IsMinItems(schema) { return HasPropertyKey(schema, "minItems") && IsNumber$1(schema.minItems); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/minLength.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/minLength.mjs /** * Returns true if the schema contains a valid minLength property * @specification Json Schema 7 @@ -969,7 +989,7 @@ function IsMinLength(schema) { return HasPropertyKey(schema, "minLength") && IsNumber$1(schema.minLength); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/minProperties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/minProperties.mjs /** * Returns true if the schema contains a valid minProperties property * @specification Json Schema 7 @@ -978,7 +998,7 @@ function IsMinProperties(schema) { return HasPropertyKey(schema, "minProperties") && IsNumber$1(schema.minProperties); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/multipleOf.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/multipleOf.mjs /** * Returns true if the schema contains a valid multipleOf property * @specification Json Schema 7 @@ -987,7 +1007,7 @@ function IsMultipleOf(schema) { return HasPropertyKey(schema, "multipleOf") && (IsNumber$1(schema.multipleOf) || IsBigInt(schema.multipleOf)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/not.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/not.mjs /** * Returns true if the schema contains a valid not property * @specification Json Schema 7 @@ -996,7 +1016,7 @@ function IsNot(schema) { return HasPropertyKey(schema, "not") && IsSchema(schema.not); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/oneOf.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/oneOf.mjs /** * Returns true if the schema contains a valid oneOf property * @specification Json Schema 7 @@ -1005,7 +1025,7 @@ function IsOneOf(schema) { return HasPropertyKey(schema, "oneOf") && IsArray(schema.oneOf) && schema.oneOf.every((value) => IsSchema(value)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/pattern.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/pattern.mjs /** * Returns true if the schema contains a valid pattern property * @specification Json Schema 7 @@ -1014,7 +1034,7 @@ function IsPattern(schema) { return HasPropertyKey(schema, "pattern") && (IsString$1(schema.pattern) || schema.pattern instanceof RegExp); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/patternProperties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/patternProperties.mjs /** * Returns true if the schema contains a valid patternProperties property * @specification Json Schema 7 @@ -1023,7 +1043,7 @@ function IsPatternProperties(schema) { return HasPropertyKey(schema, "patternProperties") && IsObject(schema.patternProperties) && Object.values(schema.patternProperties).every((value) => IsSchema(value)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/prefixItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/prefixItems.mjs /** * Returns true if the schema contains a valid prefixItems property */ @@ -1031,7 +1051,7 @@ function IsPrefixItems(schema) { return HasPropertyKey(schema, "prefixItems") && IsArray(schema.prefixItems) && schema.prefixItems.every((schema) => IsSchema(schema)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/properties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/properties.mjs /** * Returns true if the schema contains a valid properties property * @specification Json Schema 7 @@ -1040,7 +1060,7 @@ function IsProperties(schema) { return HasPropertyKey(schema, "properties") && IsObject(schema.properties) && Object.values(schema.properties).every((value) => IsSchema(value)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/propertyNames.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/propertyNames.mjs /** * Returns true if the schema contains a valid propertyNames property * @specification Json Schema 7 @@ -1049,7 +1069,7 @@ function IsPropertyNames(schema) { return HasPropertyKey(schema, "propertyNames") && (IsObject(schema.propertyNames) || IsSchema(schema.propertyNames)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/recursiveAnchor.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/recursiveAnchor.mjs /** * Returns true if the schema contains a valid $recursiveAnchor property */ @@ -1063,7 +1083,7 @@ function IsRecursiveAnchorTrue(schema) { return IsRecursiveAnchor(schema) && IsEqual(schema.$recursiveAnchor, true); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/recursiveRef.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/recursiveRef.mjs /** * Returns true if the schema contains a valid $recursiveRef property */ @@ -1071,7 +1091,7 @@ function IsRecursiveRef(schema) { return HasPropertyKey(schema, "$recursiveRef") && IsString$1(schema.$recursiveRef); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/ref.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/ref.mjs /** * Returns true if the schema contains a valid $ref property * @specification Json Schema 7 @@ -1080,7 +1100,7 @@ function IsRef(schema) { return HasPropertyKey(schema, "$ref") && IsString$1(schema.$ref); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/required.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/required.mjs /** * Returns true if the schema contains a valid required property * @specification Json Schema 7 @@ -1089,7 +1109,7 @@ function IsRequired(schema) { return HasPropertyKey(schema, "required") && IsArray(schema.required) && schema.required.every((value) => IsString$1(value)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/then.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/then.mjs /** * Returns true if the schema contains a valid then property * @specification Json Schema 7 @@ -1098,7 +1118,7 @@ function IsThen(schema) { return HasPropertyKey(schema, "then") && IsSchema(schema.then); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/type.mjs /** * Returns true if the schema contains a valid type property * @specification Json Schema 7 @@ -1107,7 +1127,7 @@ function IsType(schema) { return HasPropertyKey(schema, "type") && (IsString$1(schema.type) || IsArray(schema.type) && schema.type.every((value) => IsString$1(value))); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/uniqueItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/uniqueItems.mjs /** * Returns true if the schema contains a valid uniqueItems property * @specification Json Schema 7 @@ -1116,7 +1136,7 @@ function IsUniqueItems(schema) { return HasPropertyKey(schema, "uniqueItems") && IsBoolean$1(schema.uniqueItems); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/unevaluatedItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/unevaluatedItems.mjs /** * Returns true if the schema contains a valid unevaluatedItems property * @specification Json Schema 2019-09 @@ -1125,7 +1145,7 @@ function IsUnevaluatedItems(schema) { return HasPropertyKey(schema, "unevaluatedItems") && IsSchema(schema.unevaluatedItems); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/unevaluatedProperties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/unevaluatedProperties.mjs /** * Returns true if the schema contains a valid unevaluatedProperties property * @specification Json Schema 2019-09 @@ -1134,7 +1154,7 @@ function IsUnevaluatedProperties(schema) { return HasPropertyKey(schema, "unevaluatedProperties") && IsSchema(schema.unevaluatedProperties); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/_context.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/_context.mjs var CheckContext = class { constructor() { const indices = /* @__PURE__ */ new Set(); @@ -1203,20 +1223,7 @@ var AccumulatedErrorContext = class extends ErrorContext { } }; //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/_guard.mjs -function CheckGuard(_stack, _context, schema, value) { - return schema["~guard"].check(value); -} -function ErrorGuard(_stack, context, schemaPath, instancePath, schema, value) { - return schema["~guard"].check(value) || context.AddError({ - keyword: "~guard", - schemaPath, - instancePath, - params: { errors: schema["~guard"].errors(value) } - }); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/_refine.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/_refine.mjs function CheckRefine(_stack, _context, schema, value) { return Every(schema["~refine"], 0, (refinement, _) => refinement.check(value)); } @@ -1234,7 +1241,7 @@ function ErrorRefine(_stack, context, schemaPath, instancePath, schema, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/additionalItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/additionalItems.mjs function IsValid$4(schema) { return IsItems(schema) && IsArray(schema.items); } @@ -1253,7 +1260,7 @@ function ErrorAdditionalItems(stack, context, schemaPath, instancePath, schema, }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/additionalProperties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/additionalProperties.mjs function GetPropertyKeyAsPattern(key) { return `^${key.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}$`; } @@ -1287,7 +1294,7 @@ function ErrorAdditionalProperties(stack, context, schemaPath, instancePath, sch }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/allOf.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/allOf.mjs function CheckAllOf(stack, context, schema, value) { const results = schema.allOf.reduce((result, schema) => { const nextContext = new CheckContext(); @@ -1309,7 +1316,7 @@ function ErrorAllOf(stack, context, schemaPath, instancePath, schema, value) { return isAllOf; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/anyOf.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/anyOf.mjs function CheckAnyOf(stack, context, schema, value) { const results = schema.anyOf.reduce((result, schema) => { const nextContext = new CheckContext(); @@ -1335,7 +1342,7 @@ function ErrorAnyOf(stack, context, schemaPath, instancePath, schema, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/boolean.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/boolean.mjs function CheckBooleanSchema(_stack, _context, schema, _value) { return schema; } @@ -1348,7 +1355,7 @@ function ErrorBooleanSchema(stack, context, schemaPath, instancePath, schema, va }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/const.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/const.mjs function CheckConst(_stack, _context, schema, value) { return IsValueLike(schema.const) ? IsEqual(value, schema.const) : IsDeepEqual(value, schema.const); } @@ -1361,7 +1368,7 @@ function ErrorConst(stack, context, schemaPath, instancePath, schema, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/contains.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/contains.mjs function IsValid$3(schema) { return !(IsMinContains(schema) && IsEqual(schema.minContains, 0)); } @@ -1378,7 +1385,7 @@ function ErrorContains(stack, context, schemaPath, instancePath, schema, value) }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/dependencies.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/dependencies.mjs function CheckDependencies(stack, context, schema, value) { const isLength = IsEqual(Keys(value).length, 0); const isEvery = Every(Entries(schema.dependencies), 0, ([key, schema]) => { @@ -1403,7 +1410,7 @@ function ErrorDependencies(stack, context, schemaPath, instancePath, schema, val return isLength || isEvery; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/dependentRequired.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/dependentRequired.mjs function CheckDependentRequired(_stack, _context, schema, value) { const isLength = IsEqual(Keys(value).length, 0); const isEvery = Every(Entries(schema.dependentRequired), 0, ([key, keys]) => { @@ -1427,7 +1434,7 @@ function ErrorDependentRequired(_stack, context, schemaPath, instancePath, schem return isLength || isEveryEntry; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/dependentSchemas.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/dependentSchemas.mjs function CheckDependentSchemas(stack, context, schema, value) { const isLength = IsEqual(Keys(value).length, 0); const isEvery = Every(Entries(schema.dependentSchemas), 0, ([key, schema]) => { @@ -1444,7 +1451,7 @@ function ErrorDependentSchemas(stack, context, schemaPath, instancePath, schema, return isLength || isEvery; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/dynamicRef.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/dynamicRef.mjs function CheckDynamicRef(stack, context, schema, value) { const target = stack.DynamicRef(schema) ?? false; return IsSchema(target) && CheckSchema(stack, context, target, value); @@ -1454,7 +1461,7 @@ function ErrorDynamicRef(stack, context, _schemaPath, instancePath, schema, valu return IsSchema(target) && ErrorSchema(stack, context, "#", instancePath, target, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/enum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/enum.mjs function CheckEnum(_stack, _context, schema, value) { return schema.enum.some((option) => IsValueLike(option) ? IsEqual(value, option) : IsDeepEqual(value, option)); } @@ -1467,7 +1474,7 @@ function ErrorEnum(stack, context, schemaPath, instancePath, schema, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/exclusiveMaximum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/exclusiveMaximum.mjs function CheckExclusiveMaximum(_stack, _context, schema, value) { return IsLessThan(value, schema.exclusiveMaximum); } @@ -1483,7 +1490,7 @@ function ErrorExclusiveMaximum(stack, context, schemaPath, instancePath, schema, }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/exclusiveMinimum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/exclusiveMinimum.mjs function CheckExclusiveMinimum(_stack, _context, schema, value) { return IsGreaterThan(value, schema.exclusiveMinimum); } @@ -1499,7 +1506,7 @@ function ErrorExclusiveMinimum(stack, context, schemaPath, instancePath, schema, }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/date.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/date.mjs const DAYS = [ 0, 31, @@ -1533,7 +1540,7 @@ function IsDate(value) { return month >= 1 && month <= 12 && day >= 1 && day <= (month === 2 && IsLeapYear(year) ? 29 : DAYS[month]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/time.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/time.mjs const TIME = /^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(?:Z|([+-])(\d\d):(\d\d))?$/i; /** * Returns true if the value is a ISO time string @@ -1556,7 +1563,7 @@ function IsTime(value, strictTimeZone = true) { return (utcHr === 23 || utcHr === -1) && (utcMin === 59 || utcMin === -1) && sec < 61; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/date_time.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/date_time.mjs /** * Returns true if the value is a ISO8601 DateTime string * @source ajv-formats @@ -1567,7 +1574,7 @@ function IsDateTime(value, strictTimeZone = true) { return dateTime.length === 2 && IsDate(dateTime[0]) && IsTime(dateTime[1], strictTimeZone); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/duration.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/duration.mjs const Duration = /^P((\d+Y(\d+M(\d+D)?)?|\d+M(\d+D)?|\d+D)(T(\d+H(\d+M(\d+S)?)?|\d+M(\d+S)?|\d+S))?|T(\d+H(\d+M(\d+S)?)?|\d+M(\d+S)?|\d+S)|\d+W)$/; /** * Returns true if the value is a valid ISO-8601 duration. @@ -1577,7 +1584,7 @@ function IsDuration(value) { return Duration.test(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/email.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/email.mjs const Email = /^(?!.*\.\.)[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i; /** * Returns true if the value is an Email @@ -1587,7 +1594,7 @@ function IsEmail(value) { return Email.test(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/_puny.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/_puny.mjs const PUNYCODE_BASE = 36; const PUNYCODE_TMIN = 1; const PUNYCODE_TMAX = 26; @@ -1645,7 +1652,7 @@ function Decode(value) { return globalThis.String.fromCodePoint(...output); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/_idna.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/_idna.mjs function IsNonspacingMark(cp) { return /\p{Mn}/u.test(String.fromCodePoint(cp)); } @@ -1780,7 +1787,11 @@ function IsPuny(value) { } function IsPunyLabel(value) { try { - return IsUnicodeLabel(Decode(value.slice(4))); + const payload = value.slice(4).toLowerCase(); + if (payload.lastIndexOf("-") === 0) return false; + const decoded = Decode(payload); + if (!decoded) return false; + return IsUnicodeLabel(decoded); } catch { return false; } @@ -1794,7 +1805,7 @@ function IsLabel(value) { return IsPuny(value) ? IsPunyLabel(value) : IsAsciiLabel(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/hostname.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/hostname.mjs /** * Returns true if the value is a valid hostname. * @specification https://tools.ietf.org/html/rfc1123 @@ -1808,7 +1819,7 @@ function IsHostname(value) { return true; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/idn_email.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/idn_email.mjs const IdnEmail = /^(?!.*\.\.)[\p{L}\p{N}!#$%&'*+/=?^_`{|}~-]+(?:\.[\p{L}\p{N}!#$%&'*+/=?^_`{|}~-]+)*@[\p{L}\p{N}](?:[\p{L}\p{N}-]{0,61}[\p{L}\p{N}])?(?:\.[\p{L}\p{N}](?:[\p{L}\p{N}-]{0,61}[\p{L}\p{N}])?)*$/iu; /** * Returns true if the value is an IdnEmail @@ -1818,7 +1829,7 @@ function IsIdnEmail(value) { return IdnEmail.test(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/idn_hostname.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/idn_hostname.mjs /** * Returns true if the value is a valid internationalized (IDN) hostname. * @specification https://tools.ietf.org/html/rfc3490 @@ -1833,7 +1844,7 @@ function IsIdnHostname(value) { return true; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/ipv4.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/ipv4.mjs function IsIPv4Internal(value, start, end) { let dots = 0; let num = 0; @@ -1863,7 +1874,7 @@ function IsIPv4(value) { return IsIPv4Internal(value, 0, value.length); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/ipv6.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/ipv6.mjs function InRange(ch) { return ch >= 48 && ch <= 57 || ch >= 65 && ch <= 70 || ch >= 97 && ch <= 102; } @@ -1913,7 +1924,7 @@ function IsIPv6(value) { return compressed ? groups <= 7 : groups === 8; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/iri_reference.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/iri_reference.mjs function TryUrl(value) { try { new URL(value, "http://example.com"); @@ -1940,7 +1951,7 @@ function IsIriReference(value) { } } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/iri.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/iri.mjs /** * Returns true if the value is a Iri * @specification @@ -1954,7 +1965,7 @@ function IsIri(value) { } } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/json_pointer_uri_fragment.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/json_pointer_uri_fragment.mjs const JsonPointerUriFragment = /^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i; /** * Returns true if the value is a json pointer uri fragment @@ -1965,7 +1976,7 @@ function IsJsonPointerUriFragment(value) { return JsonPointerUriFragment.test(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/json_pointer.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/json_pointer.mjs const JsonPointer = /^(?:\/(?:[^~/]|~0|~1)*)*$/; /** * Returns true if the value is a json pointer @@ -1976,7 +1987,7 @@ function IsJsonPointer(value) { return JsonPointer.test(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/regex.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/regex.mjs /** * Returns true if the value is a regular expression string pattern * @specification @@ -1992,7 +2003,7 @@ function IsRegex(value) { } } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/relative_json_pointer.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/relative_json_pointer.mjs const RelativeJsonPointer = /^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/; /** * Returns true if the value is a relative json pointer @@ -2003,7 +2014,7 @@ function IsRelativeJsonPointer(value) { return RelativeJsonPointer.test(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/uri_reference.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/uri_reference.mjs const UriReference = /^(?!.*[^\x00-\x7F])(?!.*\\)(?:(?:[a-z][a-z0-9+\-.]*:)?(?:\/\/[^\s[\]{}<>^`|]*)?|[^\s[\]{}<>^`|]*)(?:\?[^\s[\]{}<>^`|]*)?(?:#[^\s[\]{}<>^`|]*)?$/i; /** * Returns true if the value is a valid URI Reference. @@ -2013,7 +2024,7 @@ function IsUriReference(value) { return UriReference.test(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/uri_template.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/uri_template.mjs const UriTemplate = /^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i; /** * Returns true if the value is a uri template @@ -2024,7 +2035,7 @@ function IsUriTemplate(value) { return UriTemplate.test(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/uri.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/uri.mjs function IsAlpha(ch) { return ch >= 97 && ch <= 122 || ch >= 65 && ch <= 90; } @@ -2119,7 +2130,7 @@ function IsUri(value) { return true; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/url.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/url.mjs const Url = /^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu; /** * Returns true if the value is a Url @@ -2130,7 +2141,7 @@ function IsUrl(value) { return Url.test(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/uuid.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/uuid.mjs const Uuid = /^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i; /** * Returns true if the value is a uuid @@ -2141,7 +2152,7 @@ function IsUuid(value) { return Uuid.test(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/_registry.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/_registry.mjs const formats = /* @__PURE__ */ new Map(); /** Clears all entries */ function Clear() { @@ -2178,7 +2189,7 @@ function Reset() { } Reset(); //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/format.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/format.mjs function CheckFormat(_stack, _context, schema, value) { return Test(schema.format, value); } @@ -2191,7 +2202,7 @@ function ErrorFormat(stack, context, schemaPath, instancePath, schema, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/if.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/if.mjs function CheckIf(stack, context, schema, value) { const thenSchema = IsThen(schema) ? schema.then : true; const elseSchema = IsElse(schema) ? schema.else : true; @@ -2216,7 +2227,7 @@ function ErrorIf(stack, context, schemaPath, instancePath, schema, value) { return isIf; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/items.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/items.mjs function CheckItemsSized(stack, context, schema, value) { return Every(schema.items, 0, (schema, index) => { return IsLessEqualThan(value.length, index) || CheckSchemaPushStack(stack, context, schema, value[index]) && context.AddIndex(index); @@ -2246,7 +2257,7 @@ function ErrorItems(stack, context, schemaPath, instancePath, schema, value) { return IsItemsSized(schema) ? ErrorItemsSized(stack, context, schemaPath, instancePath, schema, value) : ErrorItemsUnsized(stack, context, schemaPath, instancePath, schema, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/maxContains.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/maxContains.mjs function IsValid$2(schema) { return IsContains(schema); } @@ -2267,7 +2278,7 @@ function ErrorMaxContains(stack, context, schemaPath, instancePath, schema, valu }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/maximum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/maximum.mjs function CheckMaximum(_stack, _context, schema, value) { return IsLessEqualThan(value, schema.maximum); } @@ -2283,7 +2294,7 @@ function ErrorMaximum(stack, context, schemaPath, instancePath, schema, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/maxItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/maxItems.mjs function CheckMaxItems(_stack, _context, schema, value) { return IsLessEqualThan(value.length, schema.maxItems); } @@ -2296,7 +2307,7 @@ function ErrorMaxItems(stack, context, schemaPath, instancePath, schema, value) }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/maxLength.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/maxLength.mjs function CheckMaxLength(_stack, _context, schema, value) { return IsMaxLength$1(value, schema.maxLength); } @@ -2309,7 +2320,7 @@ function ErrorMaxLength(stack, context, schemaPath, instancePath, schema, value) }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/maxProperties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/maxProperties.mjs function CheckMaxProperties(_stack, _context, schema, value) { return IsLessEqualThan(Keys(value).length, schema.maxProperties); } @@ -2322,7 +2333,7 @@ function ErrorMaxProperties(stack, context, schemaPath, instancePath, schema, va }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/minContains.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/minContains.mjs function IsValid$1(schema) { return IsContains(schema); } @@ -2339,7 +2350,7 @@ function ErrorMinContains(stack, context, schemaPath, instancePath, schema, valu }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/minimum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/minimum.mjs function CheckMinimum(_stack, _context, schema, value) { return IsGreaterEqualThan(value, schema.minimum); } @@ -2355,7 +2366,7 @@ function ErrorMinimum(stack, context, schemaPath, instancePath, schema, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/minItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/minItems.mjs function CheckMinItems(_stack, _context, schema, value) { return IsGreaterEqualThan(value.length, schema.minItems); } @@ -2368,7 +2379,7 @@ function ErrorMinItems(stack, context, schemaPath, instancePath, schema, value) }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/minLength.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/minLength.mjs function CheckMinLength(_stack, _context, schema, value) { return IsMinLength$1(value, schema.minLength); } @@ -2381,7 +2392,7 @@ function ErrorMinLength(stack, context, schemaPath, instancePath, schema, value) }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/minProperties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/minProperties.mjs function CheckMinProperties(_stack, _context, schema, value) { return IsGreaterEqualThan(Keys(value).length, schema.minProperties); } @@ -2394,7 +2405,7 @@ function ErrorMinProperties(stack, context, schemaPath, instancePath, schema, va }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/multipleOf.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/multipleOf.mjs function CheckMultipleOf(_stack, _context, schema, value) { return IsMultipleOf$1(value, schema.multipleOf); } @@ -2407,7 +2418,7 @@ function ErrorMultipleOf(stack, context, schemaPath, instancePath, schema, value }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/not.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/not.mjs function CheckNot(stack, context, schema, value) { const nextContext = new CheckContext(); return !CheckSchema(stack, nextContext, schema.not, value) && context.Merge([nextContext]); @@ -2421,7 +2432,7 @@ function ErrorNot(stack, context, schemaPath, instancePath, schema, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/oneOf.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/oneOf.mjs function CheckOneOf(stack, context, schema, value) { const passedContexts = schema.oneOf.reduce((result, schema) => { const nextContext = new CheckContext(); @@ -2449,7 +2460,7 @@ function ErrorOneOf(stack, context, schemaPath, instancePath, schema, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/pattern.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/pattern.mjs function CheckPattern(_stack, _context, schema, value) { return (IsString$1(schema.pattern) ? new RegExp(schema.pattern, "u") : schema.pattern).test(value); } @@ -2462,7 +2473,7 @@ function ErrorPattern(stack, context, schemaPath, instancePath, schema, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/patternProperties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/patternProperties.mjs function CheckPatternProperties(stack, context, schema, value) { return Every(Entries(schema.patternProperties), 0, ([pattern, schema]) => { const regexp = new RegExp(pattern, "u"); @@ -2482,7 +2493,7 @@ function ErrorPatternProperties(stack, context, schemaPath, instancePath, schema }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/prefixItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/prefixItems.mjs function CheckPrefixItems(stack, context, schema, value) { return IsEqual(value.length, 0) || Every(schema.prefixItems, 0, (schema, index) => { return IsLessEqualThan(value.length, index) || CheckSchemaPushStack(stack, context, schema, value[index]) && context.AddIndex(index); @@ -2496,7 +2507,7 @@ function ErrorPrefixItems(stack, context, schemaPath, instancePath, schema, valu }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/_exact_optional.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/_exact_optional.mjs function IsExactOptional(required, key) { return required.includes(key) || Get$2().exactOptionalPropertyTypes; } @@ -2504,7 +2515,7 @@ function InexactOptionalCheck(value, key) { return IsUndefined(value[key]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/properties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/properties.mjs function CheckProperties(stack, context, schema, value) { const required = IsRequired(schema) ? schema.required : []; return Every(Entries(schema.properties), 0, ([key, schema]) => { @@ -2522,7 +2533,7 @@ function ErrorProperties(stack, context, schemaPath, instancePath, schema, value }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/propertyNames.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/propertyNames.mjs function CheckPropertyNames(stack, context, schema, value) { return Every(Keys(value), 0, (key, _index) => CheckSchema(stack, context, schema.propertyNames, key)); } @@ -2542,7 +2553,7 @@ function ErrorPropertyNames(stack, context, schemaPath, instancePath, schema, va }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/recursiveRef.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/recursiveRef.mjs function CheckRecursiveRef(stack, context, schema, value) { const target = stack.RecursiveRef(schema) ?? false; return IsSchema(target) && CheckSchema(stack, context, target, value); @@ -2552,7 +2563,7 @@ function ErrorRecursiveRef(stack, context, _schemaPath, instancePath, schema, va return IsSchema(target) && ErrorSchema(stack, context, "#", instancePath, target, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/ref.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/ref.mjs function CheckRef(stack, context, schema, value) { const target = stack.Ref(schema) ?? false; const nextContext = new CheckContext(); @@ -2569,7 +2580,7 @@ function ErrorRef(stack, context, _schemaPath, instancePath, schema, value) { return result; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/required.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/required.mjs function CheckRequired(_stack, _context, schema, value) { return Every(schema.required, 0, (key) => HasPropertyKey(value, key)); } @@ -2587,9 +2598,9 @@ function ErrorRequired(_stack, context, schemaPath, instancePath, schema, value) }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/type.mjs function CheckTypeName(_stack, _context, type, _schema, value) { - return IsEqual(type, "object") ? IsObjectNotArray(value) : IsEqual(type, "array") ? IsArray(value) : IsEqual(type, "boolean") ? IsBoolean$1(value) : IsEqual(type, "integer") ? IsInteger(value) : IsEqual(type, "number") ? IsNumber$1(value) : IsEqual(type, "null") ? IsNull(value) : IsEqual(type, "string") ? IsString$1(value) : IsEqual(type, "asyncIterator") ? IsAsyncIterator(value) : IsEqual(type, "bigint") ? IsBigInt(value) : IsEqual(type, "constructor") ? IsConstructor(value) : IsEqual(type, "function") ? IsFunction(value) : IsEqual(type, "iterator") ? IsIterator(value) : IsEqual(type, "symbol") ? IsSymbol(value) : IsEqual(type, "undefined") ? IsUndefined(value) : IsEqual(type, "void") ? IsUndefined(value) : true; + return IsEqual(type, "object") ? IsObjectNotArray(value) : IsEqual(type, "array") ? IsArray(value) : IsEqual(type, "boolean") ? IsBoolean$1(value) : IsEqual(type, "integer") ? IsInteger(value) : IsEqual(type, "number") ? IsNumber$1(value) : IsEqual(type, "null") ? IsNull(value) : IsEqual(type, "string") ? IsString$1(value) : IsEqual(type, "bigint") ? IsBigInt(value) : IsEqual(type, "constructor") ? IsConstructor(value) : IsEqual(type, "function") ? IsFunction(value) : IsEqual(type, "symbol") ? IsSymbol(value) : IsEqual(type, "undefined") ? IsUndefined(value) : IsEqual(type, "void") ? IsUndefined(value) : true; } function CheckTypeNames(stack, context, types, schema, value) { return types.some((type) => CheckTypeName(stack, context, type, schema, value)); @@ -2606,7 +2617,7 @@ function ErrorType(stack, context, schemaPath, instancePath, schema, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/unevaluatedItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/unevaluatedItems.mjs function CheckUnevaluatedItems(stack, context, schema, value) { const indices = context.GetIndices(); return Every(value, 0, (item, index) => { @@ -2629,7 +2640,7 @@ function ErrorUnevaluatedItems(stack, context, schemaPath, instancePath, schema, }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/unevaluatedProperties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/unevaluatedProperties.mjs function CheckUnevaluatedProperties(stack, context, schema, value) { const keys = context.GetKeys(); return Every(Entries(value), 0, ([key, prop]) => { @@ -2652,7 +2663,7 @@ function ErrorUnevaluatedProperties(stack, context, schemaPath, instancePath, sc }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/uniqueItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/uniqueItems.mjs function IsValid(schema) { return !IsEqual(schema.uniqueItems, false); } @@ -2679,13 +2690,13 @@ function ErrorUniqueItems(_stack, context, schemaPath, instancePath, schema, val }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/schema.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/schema.mjs function CheckSchemaPushStack(stack, context, schema, value) { return context.Push() && CheckSchema(stack, context, schema, value) && context.Pop(); } function CheckSchema(stack, context, schema, value) { stack.Push(schema); - const result = IsBooleanSchema(schema) ? CheckBooleanSchema(stack, context, schema, value) : (!IsType(schema) || CheckType(stack, context, schema, value)) && (!(IsObject(value) && !IsArray(value)) || (!IsRequired(schema) || CheckRequired(stack, context, schema, value)) && (!IsAdditionalProperties(schema) || CheckAdditionalProperties(stack, context, schema, value)) && (!IsDependencies(schema) || CheckDependencies(stack, context, schema, value)) && (!IsDependentRequired(schema) || CheckDependentRequired(stack, context, schema, value)) && (!IsDependentSchemas(schema) || CheckDependentSchemas(stack, context, schema, value)) && (!IsPatternProperties(schema) || CheckPatternProperties(stack, context, schema, value)) && (!IsProperties(schema) || CheckProperties(stack, context, schema, value)) && (!IsPropertyNames(schema) || CheckPropertyNames(stack, context, schema, value)) && (!IsMinProperties(schema) || CheckMinProperties(stack, context, schema, value)) && (!IsMaxProperties(schema) || CheckMaxProperties(stack, context, schema, value))) && (!IsArray(value) || (!IsAdditionalItems(schema) || CheckAdditionalItems(stack, context, schema, value)) && (!IsContains(schema) || CheckContains(stack, context, schema, value)) && (!IsItems(schema) || CheckItems(stack, context, schema, value)) && (!IsMaxContains(schema) || CheckMaxContains(stack, context, schema, value)) && (!IsMaxItems(schema) || CheckMaxItems(stack, context, schema, value)) && (!IsMinContains(schema) || CheckMinContains(stack, context, schema, value)) && (!IsMinItems(schema) || CheckMinItems(stack, context, schema, value)) && (!IsPrefixItems(schema) || CheckPrefixItems(stack, context, schema, value)) && (!IsUniqueItems(schema) || CheckUniqueItems(stack, context, schema, value))) && (!IsString$1(value) || (!IsMaxLength(schema) || CheckMaxLength(stack, context, schema, value)) && (!IsMinLength(schema) || CheckMinLength(stack, context, schema, value)) && (!IsFormat(schema) || CheckFormat(stack, context, schema, value)) && (!IsPattern(schema) || CheckPattern(stack, context, schema, value))) && (!(IsNumber$1(value) || IsBigInt(value)) || (!IsExclusiveMaximum(schema) || CheckExclusiveMaximum(stack, context, schema, value)) && (!IsExclusiveMinimum(schema) || CheckExclusiveMinimum(stack, context, schema, value)) && (!IsMaximum(schema) || CheckMaximum(stack, context, schema, value)) && (!IsMinimum(schema) || CheckMinimum(stack, context, schema, value)) && (!IsMultipleOf(schema) || CheckMultipleOf(stack, context, schema, value))) && (!IsRef(schema) || CheckRef(stack, context, schema, value)) && (!IsRecursiveRef(schema) || CheckRecursiveRef(stack, context, schema, value)) && (!IsDynamicRef(schema) || CheckDynamicRef(stack, context, schema, value)) && (!IsGuard(schema) || CheckGuard(stack, context, schema, value)) && (!IsConst(schema) || CheckConst(stack, context, schema, value)) && (!IsEnum(schema) || CheckEnum(stack, context, schema, value)) && (!IsIf(schema) || CheckIf(stack, context, schema, value)) && (!IsNot(schema) || CheckNot(stack, context, schema, value)) && (!IsAllOf(schema) || CheckAllOf(stack, context, schema, value)) && (!IsAnyOf(schema) || CheckAnyOf(stack, context, schema, value)) && (!IsOneOf(schema) || CheckOneOf(stack, context, schema, value)) && (!IsUnevaluatedItems(schema) || !IsArray(value) || CheckUnevaluatedItems(stack, context, schema, value)) && (!IsUnevaluatedProperties(schema) || !IsObject(value) || CheckUnevaluatedProperties(stack, context, schema, value)) && (!IsRefine(schema) || CheckRefine(stack, context, schema, value)); + const result = IsBooleanSchema(schema) ? CheckBooleanSchema(stack, context, schema, value) : (!IsType(schema) || CheckType(stack, context, schema, value)) && (!(IsObject(value) && !IsArray(value)) || (!IsRequired(schema) || CheckRequired(stack, context, schema, value)) && (!IsAdditionalProperties(schema) || CheckAdditionalProperties(stack, context, schema, value)) && (!IsDependencies(schema) || CheckDependencies(stack, context, schema, value)) && (!IsDependentRequired(schema) || CheckDependentRequired(stack, context, schema, value)) && (!IsDependentSchemas(schema) || CheckDependentSchemas(stack, context, schema, value)) && (!IsPatternProperties(schema) || CheckPatternProperties(stack, context, schema, value)) && (!IsProperties(schema) || CheckProperties(stack, context, schema, value)) && (!IsPropertyNames(schema) || CheckPropertyNames(stack, context, schema, value)) && (!IsMinProperties(schema) || CheckMinProperties(stack, context, schema, value)) && (!IsMaxProperties(schema) || CheckMaxProperties(stack, context, schema, value))) && (!IsArray(value) || (!IsAdditionalItems(schema) || CheckAdditionalItems(stack, context, schema, value)) && (!IsContains(schema) || CheckContains(stack, context, schema, value)) && (!IsItems(schema) || CheckItems(stack, context, schema, value)) && (!IsMaxContains(schema) || CheckMaxContains(stack, context, schema, value)) && (!IsMaxItems(schema) || CheckMaxItems(stack, context, schema, value)) && (!IsMinContains(schema) || CheckMinContains(stack, context, schema, value)) && (!IsMinItems(schema) || CheckMinItems(stack, context, schema, value)) && (!IsPrefixItems(schema) || CheckPrefixItems(stack, context, schema, value)) && (!IsUniqueItems(schema) || CheckUniqueItems(stack, context, schema, value))) && (!IsString$1(value) || (!IsMaxLength(schema) || CheckMaxLength(stack, context, schema, value)) && (!IsMinLength(schema) || CheckMinLength(stack, context, schema, value)) && (!IsFormat(schema) || CheckFormat(stack, context, schema, value)) && (!IsPattern(schema) || CheckPattern(stack, context, schema, value))) && (!(IsNumber$1(value) || IsBigInt(value)) || (!IsExclusiveMaximum(schema) || CheckExclusiveMaximum(stack, context, schema, value)) && (!IsExclusiveMinimum(schema) || CheckExclusiveMinimum(stack, context, schema, value)) && (!IsMaximum(schema) || CheckMaximum(stack, context, schema, value)) && (!IsMinimum(schema) || CheckMinimum(stack, context, schema, value)) && (!IsMultipleOf(schema) || CheckMultipleOf(stack, context, schema, value))) && (!IsRef(schema) || CheckRef(stack, context, schema, value)) && (!IsRecursiveRef(schema) || CheckRecursiveRef(stack, context, schema, value)) && (!IsDynamicRef(schema) || CheckDynamicRef(stack, context, schema, value)) && (!IsConst(schema) || CheckConst(stack, context, schema, value)) && (!IsEnum(schema) || CheckEnum(stack, context, schema, value)) && (!IsIf(schema) || CheckIf(stack, context, schema, value)) && (!IsNot(schema) || CheckNot(stack, context, schema, value)) && (!IsAllOf(schema) || CheckAllOf(stack, context, schema, value)) && (!IsAnyOf(schema) || CheckAnyOf(stack, context, schema, value)) && (!IsOneOf(schema) || CheckOneOf(stack, context, schema, value)) && (!IsUnevaluatedItems(schema) || !IsArray(value) || CheckUnevaluatedItems(stack, context, schema, value)) && (!IsUnevaluatedProperties(schema) || !IsObject(value) || CheckUnevaluatedProperties(stack, context, schema, value)) && (!IsRefine(schema) || CheckRefine(stack, context, schema, value)); stack.Pop(schema); return result; } @@ -2694,12 +2705,12 @@ function ErrorSchemaPushStack(stack, context, schemaPath, instancePath, schema, } function ErrorSchema(stack, context, schemaPath, instancePath, schema, value) { stack.Push(schema); - const result = IsBooleanSchema(schema) ? ErrorBooleanSchema(stack, context, schemaPath, instancePath, schema, value) : !!(+(!IsType(schema) || ErrorType(stack, context, schemaPath, instancePath, schema, value)) & +(!(IsObject(value) && !IsArray(value)) || !!(+(!IsRequired(schema) || ErrorRequired(stack, context, schemaPath, instancePath, schema, value)) & +(!IsAdditionalProperties(schema) || ErrorAdditionalProperties(stack, context, schemaPath, instancePath, schema, value)) & +(!IsDependencies(schema) || ErrorDependencies(stack, context, schemaPath, instancePath, schema, value)) & +(!IsDependentRequired(schema) || ErrorDependentRequired(stack, context, schemaPath, instancePath, schema, value)) & +(!IsDependentSchemas(schema) || ErrorDependentSchemas(stack, context, schemaPath, instancePath, schema, value)) & +(!IsPatternProperties(schema) || ErrorPatternProperties(stack, context, schemaPath, instancePath, schema, value)) & +(!IsProperties(schema) || ErrorProperties(stack, context, schemaPath, instancePath, schema, value)) & +(!IsPropertyNames(schema) || ErrorPropertyNames(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMinProperties(schema) || ErrorMinProperties(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMaxProperties(schema) || ErrorMaxProperties(stack, context, schemaPath, instancePath, schema, value)))) & +(!IsArray(value) || !!(+(!IsAdditionalItems(schema) || ErrorAdditionalItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsContains(schema) || ErrorContains(stack, context, schemaPath, instancePath, schema, value)) & +(!IsItems(schema) || ErrorItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMaxContains(schema) || ErrorMaxContains(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMaxItems(schema) || ErrorMaxItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMinContains(schema) || ErrorMinContains(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMinItems(schema) || ErrorMinItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsPrefixItems(schema) || ErrorPrefixItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsUniqueItems(schema) || ErrorUniqueItems(stack, context, schemaPath, instancePath, schema, value)))) & +(!IsString$1(value) || !!(+(!IsMaxLength(schema) || ErrorMaxLength(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMinLength(schema) || ErrorMinLength(stack, context, schemaPath, instancePath, schema, value)) & +(!IsFormat(schema) || ErrorFormat(stack, context, schemaPath, instancePath, schema, value)) & +(!IsPattern(schema) || ErrorPattern(stack, context, schemaPath, instancePath, schema, value)))) & +(!(IsNumber$1(value) || IsBigInt(value)) || !!(+(!IsExclusiveMaximum(schema) || ErrorExclusiveMaximum(stack, context, schemaPath, instancePath, schema, value)) & +(!IsExclusiveMinimum(schema) || ErrorExclusiveMinimum(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMaximum(schema) || ErrorMaximum(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMinimum(schema) || ErrorMinimum(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMultipleOf(schema) || ErrorMultipleOf(stack, context, schemaPath, instancePath, schema, value)))) & +(!IsRef(schema) || ErrorRef(stack, context, schemaPath, instancePath, schema, value)) & +(!IsRecursiveRef(schema) || ErrorRecursiveRef(stack, context, schemaPath, instancePath, schema, value)) & +(!IsDynamicRef(schema) || ErrorDynamicRef(stack, context, schemaPath, instancePath, schema, value)) & +(!IsGuard(schema) || ErrorGuard(stack, context, schemaPath, instancePath, schema, value)) & +(!IsConst(schema) || ErrorConst(stack, context, schemaPath, instancePath, schema, value)) & +(!IsEnum(schema) || ErrorEnum(stack, context, schemaPath, instancePath, schema, value)) & +(!IsIf(schema) || ErrorIf(stack, context, schemaPath, instancePath, schema, value)) & +(!IsNot(schema) || ErrorNot(stack, context, schemaPath, instancePath, schema, value)) & +(!IsAllOf(schema) || ErrorAllOf(stack, context, schemaPath, instancePath, schema, value)) & +(!IsAnyOf(schema) || ErrorAnyOf(stack, context, schemaPath, instancePath, schema, value)) & +(!IsOneOf(schema) || ErrorOneOf(stack, context, schemaPath, instancePath, schema, value)) & +(!IsUnevaluatedItems(schema) || !IsArray(value) || ErrorUnevaluatedItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsUnevaluatedProperties(schema) || !IsObject(value) || ErrorUnevaluatedProperties(stack, context, schemaPath, instancePath, schema, value))) && (!IsRefine(schema) || ErrorRefine(stack, context, schemaPath, instancePath, schema, value)); + const result = IsBooleanSchema(schema) ? ErrorBooleanSchema(stack, context, schemaPath, instancePath, schema, value) : !!(+(!IsType(schema) || ErrorType(stack, context, schemaPath, instancePath, schema, value)) & +(!(IsObject(value) && !IsArray(value)) || !!(+(!IsRequired(schema) || ErrorRequired(stack, context, schemaPath, instancePath, schema, value)) & +(!IsAdditionalProperties(schema) || ErrorAdditionalProperties(stack, context, schemaPath, instancePath, schema, value)) & +(!IsDependencies(schema) || ErrorDependencies(stack, context, schemaPath, instancePath, schema, value)) & +(!IsDependentRequired(schema) || ErrorDependentRequired(stack, context, schemaPath, instancePath, schema, value)) & +(!IsDependentSchemas(schema) || ErrorDependentSchemas(stack, context, schemaPath, instancePath, schema, value)) & +(!IsPatternProperties(schema) || ErrorPatternProperties(stack, context, schemaPath, instancePath, schema, value)) & +(!IsProperties(schema) || ErrorProperties(stack, context, schemaPath, instancePath, schema, value)) & +(!IsPropertyNames(schema) || ErrorPropertyNames(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMinProperties(schema) || ErrorMinProperties(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMaxProperties(schema) || ErrorMaxProperties(stack, context, schemaPath, instancePath, schema, value)))) & +(!IsArray(value) || !!(+(!IsAdditionalItems(schema) || ErrorAdditionalItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsContains(schema) || ErrorContains(stack, context, schemaPath, instancePath, schema, value)) & +(!IsItems(schema) || ErrorItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMaxContains(schema) || ErrorMaxContains(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMaxItems(schema) || ErrorMaxItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMinContains(schema) || ErrorMinContains(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMinItems(schema) || ErrorMinItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsPrefixItems(schema) || ErrorPrefixItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsUniqueItems(schema) || ErrorUniqueItems(stack, context, schemaPath, instancePath, schema, value)))) & +(!IsString$1(value) || !!(+(!IsMaxLength(schema) || ErrorMaxLength(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMinLength(schema) || ErrorMinLength(stack, context, schemaPath, instancePath, schema, value)) & +(!IsFormat(schema) || ErrorFormat(stack, context, schemaPath, instancePath, schema, value)) & +(!IsPattern(schema) || ErrorPattern(stack, context, schemaPath, instancePath, schema, value)))) & +(!(IsNumber$1(value) || IsBigInt(value)) || !!(+(!IsExclusiveMaximum(schema) || ErrorExclusiveMaximum(stack, context, schemaPath, instancePath, schema, value)) & +(!IsExclusiveMinimum(schema) || ErrorExclusiveMinimum(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMaximum(schema) || ErrorMaximum(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMinimum(schema) || ErrorMinimum(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMultipleOf(schema) || ErrorMultipleOf(stack, context, schemaPath, instancePath, schema, value)))) & +(!IsRef(schema) || ErrorRef(stack, context, schemaPath, instancePath, schema, value)) & +(!IsRecursiveRef(schema) || ErrorRecursiveRef(stack, context, schemaPath, instancePath, schema, value)) & +(!IsDynamicRef(schema) || ErrorDynamicRef(stack, context, schemaPath, instancePath, schema, value)) & +(!IsConst(schema) || ErrorConst(stack, context, schemaPath, instancePath, schema, value)) & +(!IsEnum(schema) || ErrorEnum(stack, context, schemaPath, instancePath, schema, value)) & +(!IsIf(schema) || ErrorIf(stack, context, schemaPath, instancePath, schema, value)) & +(!IsNot(schema) || ErrorNot(stack, context, schemaPath, instancePath, schema, value)) & +(!IsAllOf(schema) || ErrorAllOf(stack, context, schemaPath, instancePath, schema, value)) & +(!IsAnyOf(schema) || ErrorAnyOf(stack, context, schemaPath, instancePath, schema, value)) & +(!IsOneOf(schema) || ErrorOneOf(stack, context, schemaPath, instancePath, schema, value)) & +(!IsUnevaluatedItems(schema) || !IsArray(value) || ErrorUnevaluatedItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsUnevaluatedProperties(schema) || !IsObject(value) || ErrorUnevaluatedProperties(stack, context, schemaPath, instancePath, schema, value))) && (!IsRefine(schema) || ErrorRefine(stack, context, schemaPath, instancePath, schema, value)); stack.Pop(schema); return result; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/pointer/pointer.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/pointer/pointer.mjs function GetIndex(index, value) { return IsObject(value) && !IsUnsafePropertyKey(index) ? value[index] : void 0; } @@ -2717,7 +2728,7 @@ function Get(value, pointer) { return GetIndices(Indices(pointer), value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/resolve/ref.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/resolve/ref.mjs function MatchId(schema, base, ref) { if (schema.$id === ref.hash) return schema; const absoluteId = new URL(schema.$id, base.href); @@ -2790,7 +2801,7 @@ function DynamicRef(root, base, dynamicRef, dynamicAnchors) { return dynamicAnchors.find((anchor) => anchor.$dynamicAnchor === fragmentTarget.$dynamicAnchor) ?? fragmentTarget; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/_stack.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/_stack.mjs var __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"); @@ -2863,7 +2874,7 @@ _Stack_instances = /* @__PURE__ */ new WeakSet(), _Stack_PushResourceAnchors = f return !ref.$ref.startsWith("#") ? Ref(root, ref.$ref) : Ref(this.Base(), ref.$ref); }; //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/errors.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/errors.mjs /** Checks a value and returns validation errors */ function Errors(...args) { const [context, schema, value] = Match$1(args, { @@ -2890,7 +2901,7 @@ function Errors(...args) { }), "#", "", schema, value), errors]; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/check.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/check.mjs /** Checks a value against the provided schema */ function Check(...args) { const [context, schema, value] = Match$1(args, { @@ -2908,7 +2919,7 @@ function Check(...args) { return CheckSchema(new Stack(context, schema), new CheckContext(), schema, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/parse.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/parse.mjs var ParseError = class { constructor(schema, value, errors) { this.schema = schema; diff --git a/schemas/libraries/typebox/download_compiled/script/minified.js b/schemas/libraries/typebox/download_compiled/script/minified.js index 1db9e9cd..86f44344 100644 --- a/schemas/libraries/typebox/download_compiled/script/minified.js +++ b/schemas/libraries/typebox/download_compiled/script/minified.js @@ -1,12 +1,12 @@ -const e={assign:0,create:0,clone:0,discard:0,update:0};function t(t,n){return e.assign+=1,{...t,...n}}function n(e,t,n){return e>=t&&e<=n}function r(e){return n(e,127462,127487)}function i(e){return n(e,65024,65039)}function a(e){return n(e,768,879)||n(e,6832,6911)||n(e,7616,7679)||n(e,65056,65071)}function o(e){return e>65535?2:1}function s(e,t){for(;t=t)return!0;return!1}function ee(e,t){let n=0,r=0;for(;rt)return!1;return!0}function te(e,t){if(t===0)return!0;let n=0;for(;n=t)return!0}return!1}function ne(e,t){let n=0;for(;nt)return!1}return!0}function d(e){return Array.isArray(e)}function re(e){return m(e)&&Symbol.asyncIterator in e}function f(e){return g(typeof e,`bigint`)}function ie(e){return g(typeof e,`boolean`)}function ae(e){if(fe(e)||!oe(e))return!1;let t=Function.prototype.toString.call(e);return!!(/^class\s/.test(t)||/\[native code\]/.test(t))}function oe(e){return g(typeof e,`function`)}function se(e){return Number.isInteger(e)}function ce(e){return m(e)&&Symbol.iterator in e}function le(e){return g(e,null)}function p(e){return Number.isFinite(e)}function ue(e){return m(e)&&!d(e)}function m(e){return g(typeof e,`object`)&&!le(e)}function h(e){return g(typeof e,`string`)}function de(e){return g(typeof e,`symbol`)}function fe(e){return g(e,void 0)}function g(e,t){return e===t}function pe(e,t){return e>t}function me(e,t){return e=t}function _e(e,t){if(f(e)||f(t))return BigInt(e)%BigInt(t)===0n;if(!p(e)||se(e)&&1/t%1==0)return!0;let n=e%t;return Math.min(Math.abs(n),Math.abs(n-t))<1e-10}function ve(e){return f(e)||ie(e)||le(e)||p(e)||h(e)||fe(e)}function ye(e,t){return ne(e,t)}function be(e,t){return te(e,t)}function _(e,t,n){for(let r=t;rEe(e[n],t[n]))}function Te(e,t){return d(t)&&g(e.length,t.length)&&e.every((n,r)=>Ee(e[r],t[r]))}function Ee(e,t){return d(e)?Te(e,t):m(e)?we(e,t):g(e,t)}function De(e){return e instanceof Boolean}function Oe(e){return e instanceof Number}function ke(e){return e instanceof String}function Ae(e){return globalThis.ArrayBuffer.isView(e)}function je(e){return e instanceof globalThis.RegExp}function Me(e){return e instanceof globalThis.Date}function Ne(e){return m(e)&&b(e,`~guard`)}function Pe(e){return e}function Fe(e){return e.map(e=>ze(e))}function Ie(e){let t={},n=Object.getOwnPropertyDescriptors(e);for(let e of Object.keys(n)){let r=n[e];b(r,`value`)&&Object.defineProperty(t,e,{...r,value:ze(r.value)})}return t}function Le(e){return new RegExp(e.source,e.flags)}function Re(e){return e}function ze(e){return e instanceof RegExp?Le(e):Ne(e)?Pe(e):d(e)?Fe(e):m(e)?Ie(e):Re(e)}function Be(t){return e.clone+=1,ze(t)}const Ve={immutableTypes:!1,maxErrors:8,useAcceleration:!0,exactOptionalPropertyTypes:!1,enumerableKind:!1,correctiveParse:!1,unionPrioritySort:!0};function He(){return Ve}function Ue(e,t){for(let n of Object.keys(t))Object.defineProperty(e,n,{configurable:!0,writable:!0,enumerable:!1,value:t[n]});return e}function We(e,t){return{...e,...t}}function S(t,n,r={}){e.create+=1;let i=He(),a=We(n,r),o=i.enumerableKind?We(a,t):Ue(a,t);return i.immutableTypes?Object.freeze(o):o}function Ge(t,n){e.discard+=1;let r={},i=Object.getOwnPropertyDescriptors(Be(t)),a=new Set(n);for(let e of Object.keys(i))a.has(e)||Object.defineProperty(r,e,i[e]);return r}function C(t,n,r){e.update+=1;let i=He(),a=Be(t);for(let e of Object.keys(n))Object.defineProperty(a,e,{configurable:!0,writable:!0,enumerable:i.enumerableKind,value:n[e]});for(let e of Object.keys(r))Object.defineProperty(a,e,{configurable:!0,enumerable:!0,writable:!0,value:r[e]});return a}function w(e,t){return m(e)&&b(e,`~kind`)&&g(e[`~kind`],t)}function Ke(e){return m(e)}function T(e,t,n){return S({"~kind":`Deferred`},{type:`deferred`,action:e,parameters:t,options:n},{})}function qe(e){return w(e,`Deferred`)}function Je(e){return w(e,`Base`)}function Ye(e,t){return S({"~kind":`Array`},{type:`array`,items:e},t)}function Xe(e){return w(e,`Array`)}function Ze(e){return Ge(e,[`~kind`,`type`,`items`])}function Qe(e,t){return S({"~kind":`AsyncIterator`},{type:`asyncIterator`,iteratorItems:e},t)}function $e(e){return w(e,`AsyncIterator`)}function et(e){return Ge(e,[`~kind`,`type`,`iteratorItems`])}function tt(e,t,n={}){return S({"~kind":`Constructor`},{type:`constructor`,parameters:e,instanceType:t},n)}function nt(e){return w(e,`Constructor`)}function rt(e){return Ge(e,[`~kind`,`type`,`parameters`,`instanceType`])}function it(e,t,n={}){return S({"~kind":`Function`},{type:`function`,parameters:e,returnType:t},n)}function at(e){return w(e,`Function`)}function ot(e){return Ge(e,[`~kind`,`type`,`parameters`,`returnType`])}function st(e,t){return S({"~kind":`Ref`},{$ref:e},t)}function ct(e){return w(e,`Ref`)}function lt(e,t){return S({"~kind":`Generic`},{type:`generic`,parameters:e,expression:t})}function ut(e){return w(e,`Generic`)}function dt(e){return S({"~kind":`Any`},{},e)}function ft(e){return w(e,`Any`)}function E(e){return S({"~kind":`Never`},{not:{}},e)}function pt(e){return w(e,`Never`)}function mt(e){return C(e,{"~optional":!0},{})}function ht(e,t){return C(mt(e),{},t)}function gt(e,t,n,r){return ht(Y(e,t,n),r)}function _t(e,t={}){return T(`AddOptional`,[e],t)}function vt(e,t={}){return ht(e,t)}function yt(e){return vt(e)}function bt(e){return Ke(e)&&b(e,`~optional`)}function xt(e){return x(e).filter(t=>!bt(e[t]))}function St(e){return x(e)}function Ct(e){return Ce(e)}function D(e,t={}){let n=xt(e);return S({"~kind":`Object`},{type:`object`,...n.length>0?{required:n}:{},properties:e},t)}function O(e){return w(e,`Object`)}function wt(e){return Ge(e,[`~kind`,`type`,`properties`,`required`])}function Tt(e){return S({"~kind":`Unknown`},{},e)}function Et(e){return w(e,`Unknown`)}function Dt(e,t,n){return S({"~kind":`Cyclic`},{$defs:x(e).reduce((t,n)=>({...t,[n]:C(e[n],{},{$id:n})}),{}),$ref:t},n)}function Ot(e){return w(e,`Cyclic`)}function kt(e){return C(e,{"~unsafe":null},{})}function At(e){return ue(e)&&b(e,`~unsafe`)&&le(e[`~unsafe`])}function jt(e,t){return t[e.length]?.(...e)??(()=>{throw Error(`Invalid Arguments`)})()}function Mt(...e){let[t,n]=jt(e,{2:(e,t)=>[e,t,t],1:e=>[e,Tt(),Tt()]});return S({"~kind":`Infer`},{type:`infer`,name:t,extends:n},{})}function Nt(e){return w(e,`Infer`)}function Pt(e,t,n,r={}){return S({"~kind":`Dependent`},{if:e,then:t,else:n},r)}function Ft(e){return w(e,`Dependent`)}function It(e){return Ge(e,[`~kind`,`if`,`then`,`else`])}function Lt(e){return w(e,`Enum`)}function Rt(e,t={}){return S({"~kind":`Intersect`},{allOf:e},t)}function k(e){return w(e,`Intersect`)}function zt(e){return Ge(e,[`~kind`,`allOf`])}function Bt(){throw Error(`Unreachable`)}function Vt(e){let t=new Set,n=e;for(;n&&n!==Object.prototype;){for(let e of Reflect.ownKeys(n))e!==`constructor`&&typeof e!=`symbol`&&t.add(e);n=Object.getPrototypeOf(n)}return[...t]}function Ht(e){return typeof e==`number`}var A;(function(e){e[e.Array=0]=`Array`,e[e.BigInt=1]=`BigInt`,e[e.Boolean=2]=`Boolean`,e[e.Date=3]=`Date`,e[e.Constructor=4]=`Constructor`,e[e.Function=5]=`Function`,e[e.Null=6]=`Null`,e[e.Number=7]=`Number`,e[e.Object=8]=`Object`,e[e.RegExp=9]=`RegExp`,e[e.String=10]=`String`,e[e.Symbol=11]=`Symbol`,e[e.TypeArray=12]=`TypeArray`,e[e.Undefined=13]=`Undefined`})(A||={});let Ut=BigInt(`14695981039346656037`);const[Wt,Gt]=[BigInt(`1099511628211`),BigInt(`18446744073709551616`)],Kt=Array.from({length:256}).map((e,t)=>BigInt(t)),qt=new Float64Array(1),Jt=new DataView(qt.buffer),Yt=new Uint8Array(qt.buffer);function j(e){Ut^=Kt[e],Ut=Ut*Wt%Gt}function Xt(e){j(A.Array);for(let t of e)fn(t)}function Zt(e){j(A.BigInt),Jt.setBigInt64(0,e);for(let e of Yt)j(e)}function Qt(e){j(A.Boolean),j(+!!e)}function $t(e){j(A.Constructor),fn(e.toString())}function en(e){j(A.Date),fn(e.getTime())}function tn(e){j(A.Function),fn(e.toString())}function nn(e){j(A.Null)}function rn(e){j(A.Number),Jt.setFloat64(0,e,!0);for(let e of Yt)j(e)}function an(e){j(A.Object);for(let t of Vt(e).sort())fn(t),fn(e[t])}function on(e){j(A.RegExp),cn(e.toString())}const sn=new TextEncoder;function cn(e){j(A.String);for(let t of sn.encode(e))j(t)}function ln(e){j(A.Symbol),fn(e.toString())}function un(e){j(A.TypeArray);let t=new Uint8Array(e.buffer);for(let e=0;e[e,t,n],2:(e,t)=>[e,t,()=>`Refine Error`]});return Dn(t,{check:n,error:h(r)?()=>r:r})}function kn(e){return ue(e)&&b(e,`check`)&&b(e,`error`)&&oe(e.check)&&oe(e.error)}function An(e){return Ke(e)&&b(e,`~refine`)&&d(e[`~refine`])&&_(e[`~refine`],0,e=>kn(e))}function jn(e){return S({"~kind":`BigInt`},{type:`bigint`},e)}function Mn(e){return w(e,`BigInt`)}function Nn(e){return S({"~kind":`Boolean`},{type:`boolean`},e)}function Pn(e){return w(e,`Boolean`)}function Fn(e){return S({"~kind":`Identifier`},{name:e})}const In=`-?(?:0|[1-9][0-9]*)`;function Ln(e){return S({"~kind":`Integer`},{type:`integer`},e)}function Rn(e){return w(e,`Integer`)}function zn(e,t){return S({"~kind":`Iterator`},{type:`iterator`,iteratorItems:e},t)}function Bn(e){return w(e,`Iterator`)}function Vn(e){return Ge(e,[`~kind`,`type`,`iteratorItems`])}var Hn=class extends Error{constructor(e){super(`Invalid Literal value`),Object.defineProperty(this,"cause",{value:{value:e},writable:!1,configurable:!1,enumerable:!1})}};function Un(e){return f(e)?`bigint`:ie(e)?`boolean`:p(e)?`number`:h(e)?`string`:(()=>{throw new Hn(e)})()}function M(e,t){return S({"~kind":`Literal`},{type:Un(e),const:e},t)}function Wn(e){return f(e)||ie(e)||p(e)||h(e)}function Gn(e){return N(e)&&p(e.const)}function Kn(e){return N(e)&&h(e.const)}function N(e){return w(e,`Literal`)}function qn(e){return S({"~kind":`Null`},{type:`null`},e)}function Jn(e){return w(e,`Null`)}const Yn=`-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?`;function Xn(e){return S({"~kind":`Number`},{type:`number`},e)}function Zn(e){return w(e,`Number`)}function Qn(e){return S({"~kind":`Symbol`},{type:`symbol`},e)}function $n(e){return w(e,`Symbol`)}function er(...e){let[t,n,r]=jt(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[e,t,t],1:e=>[e,Tt(),Tt()]});return S({"~kind":`Parameter`},{name:t,extends:n,equals:r},{})}function tr(e,t){return S({"~kind":`Promise`},{type:`promise`,item:e},t)}function nr(e){return w(e,`Promise`)}function rr(e){return Ge(e,[`~kind`,`type`,`item`])}function ir(e){return S({"~kind":`String`},{type:`string`},e)}function ar(e){return w(e,`String`)}function P(e,t={}){return S({"~kind":`Union`},{anyOf:e},t)}function F(e){return w(e,`Union`)}function or(e){return Ge(e,[`~kind`,`anyOf`])}function sr(e){let t=bu(e);return g(t.length,2)?t[0]:[]}function cr(e){return!0}function lr(e){return y(e,(e,t)=>dr(e)?lr(t):!1,()=>!0)}function ur(e){return g(e.length,0)?!1:lr(e)}function dr(e){return F(e)?ur(e.anyOf):N(e)?cr(e.const):!1}function fr(e){return ur(e)}function pr(e){return S({"~kind":`TemplateLiteral`},{type:`string`,pattern:e},{})}function mr(e,t,n=[]){return y(e,(e,r)=>mr(r,t,[...n,`${e}${t}`]),()=>n)}function hr(e,t){return g(e.length,0)?[`${t}`]:mr(e,t)}function gr(e,t,n=[]){return y(t,(t,r)=>gr(e,r,[...n,..._r(e,t)]),()=>n)}function _r(e,t){return F(t)?gr(e,t.anyOf):N(t)?hr(e,t.const):Bt()}function vr(e,t){return y(t,(t,n)=>vr(_r(e,t),n),()=>e)}function yr(e){return e.map(e=>M(e))}function br(e){return P(yr(vr([],e)))}function xr(e){return g(e.length,0)?Bt():g(e.length,1)&&N(e[0])?e[0]:br(e)}function Sr(e){let t=sr(e);return g(t.length,0)?ir():fr(t)?xr(t):pr(e)}function Cr(e){let t=Sr(e);return td(t)?ir():t}function wr(e,t){return S({"~kind":`Record`},{type:`object`,patternProperties:{[e]:t}})}function Tr(e){return wr(Ai,e)}function Er(e){return D({true:e,false:e})}function Dr(e,t={}){let[n,r,i]=[e,e.length,!1];return S({"~kind":`Tuple`},{type:`array`,additionalItems:i,items:n,minItems:r},t)}function I(e){return w(e,`Tuple`)}function Or(e){return Ge(e,[`~kind`,`type`,`items`,`minItems`,`additionalItems`])}function kr(e){return Ge(e,[`~readonly`])}function Ar(e,t){return C(kr(e),{},t)}function jr(e,t,n,r){return Ar(Y(e,t,n),r)}function Mr(e,t={}){return T(`RemoveReadonly`,[e],t)}function Nr(e,t={}){return Ar(e,t)}function Pr(e){return Ge(e,[`~optional`])}function Fr(e,t){return C(Pr(e),{},t)}function Ir(e,t,n,r){return Fr(Y(e,t,n),r)}function Lr(e,t={}){return T(`RemoveOptional`,[e],t)}function Rr(e,t={}){return Fr(e,t)}function zr(e){return e.reduceRight((e,t,n)=>({[n]:t,...e}),{})}function Br(e){return D(zr(e.items))}function Vr(e,t){return En(e)?!!En(t):!1}function Hr(e,t){return bt(e)?!!bt(t):!1}function Ur(e,t){let n=Vr(e,t),r=Hr(e,t),i=Nr(Rr(oi([e,t])));return n&&r?wn(vt(i)):n&&!r?wn(i):!n&&r?vt(i):i}function Wr(e,t,n){return n in e?n in t?Ur(e[n],t[n]):e[n]:n in t?t[n]:E()}function Gr(e,t){return[...new Set([...x(t),...x(e)])].reduce((n,r)=>({...n,[r]:Wr(e,t,r)}),{})}function Kr(e){return O(e)?e.properties:I(e)?zr(e.items):Bt()}function qr(e,t){return D(Gr(Kr(e),Kr(t)))}function Jr(e,t){let n=ip(e,t);return g(n,`left-inside`)?e:g(n,`right-inside`)||g(n,`equal`)?t:E()}function Yr(e){return O(e)||I(e)}function Xr(e,t){let n=F(e),r=F(t);return n||r}function Zr(e,t){let n=li(e),r=li(t),i=Xr(n,r),a=Yr(n),o=Yr(r);return i?oi([n,r]):a&&o?qr(n,r):a&&!o?n:!a&&o?r:Jr(n,r)}function Qr(e,t,n=[]){return y(t,(t,r)=>Qr(e,r,[...n,Zr(e,t)]),()=>g(n.length,0)?[e]:n)}function $r(e,t,n=[]){return y(e,(e,r)=>$r(r,t,[...n,...ei([e],t)]),()=>n)}function ei(e,t=[]){return y(e,(e,n)=>F(e)?ei(n,$r(e.anyOf,t)):ei(n,Qr(e,t)),()=>t)}function ti(e,t){return od(rp({},e,t))?[]:[e]}function ni(e,t){return e.reduce((e,n)=>[...e,...ti(n,t)],[])}function ri(e,t){let n=li(e);return ci(ni(F(n)?n.anyOf:[n],t))}function ii(e,t,n){return ci([Rt([e,t]),ri(n,e)])}function ai(e){return ci(e.map(e=>M(e)))}function oi(e){return ui(lp(ei(e)))}function si(e){return li(Cr(e))}function ci(e){return ui(lp(e))}function li(e){return Ft(e)?ii(e.if,e.then,e.else):Lt(e)?ai(e.enum):k(e)?oi(e.allOf):td(e)?si(e.pattern):F(e)?ci(e.anyOf):e}function ui(e){return g(e.length,1)?e[0]:g(e.length,0)?E():P(e)}function di(e,t){return Ti(ai(e),t)}function fi(e,t){return wr(Oi,t)}function pi(e,t){return Ti(oi(e),t)}function mi(e,t){return h(e)||p(e)?D({[e]:t}):g(e,!1)?D({false:t}):g(e,!0)?D({true:t}):D({})}function hi(e,t){return wr(ki,t)}function gi(e,t){return b(e,`pattern`)&&(h(e.pattern)||e.pattern instanceof RegExp)?wr(e.pattern.toString(),t):wr(Ai,t)}function _i(e,t){return fr(sr(e))?Ti(si(e),t):wr(e,t)}function vi(e){return F(e)?yi(e.anyOf):[e]}function yi(e){return e.reduce((e,t)=>[...e,...vi(t)],[])}function bi(e){return e.some(e=>ar(e)||Zn(e)||Rn(e))}function xi(e,t){return g(bi(e),!0)?wr(Ai,t):void 0}function Si(e,t){return e.reduce((e,n)=>N(n)&&(h(n.const)||p(n.const))?{...e,[n.const]:t}:e,{})}function Ci(e,t){return D(Si(e,t))}function wi(e,t){let n=yi(e),r=xi(n,t);return Ke(r)?r:Ci(n,t)}function Ti(e,t){return ft(e)?Tr(t):Pn(e)?Er(t):Lt(e)?di(e.enum,t):Rn(e)?fi(e,t):k(e)?pi(e.allOf,t):N(e)?mi(e.const,t):Zn(e)?hi(e,t):F(e)?wi(e.anyOf,t):ar(e)?gi(e,t):td(e)?_i(e.pattern,t):D({})}function Ei(e,t,n){return J([e])?C(Ti(e,t),{},n):ji(e,t,n)}function Di(e,t,n,r,i){return Ei(Y(e,t,n),Y(e,t,r),i)}const Oi=`^${In}$`,ki=`^${Yn}$`,Ai=`^.*$`;function ji(e,t,n={}){return T(`Record`,[e,t],n)}function Mi(e,t,n={}){return Ei(e,t,n)}function Ni(e,t){return wr(e,t)}function Pi(e){return g(e,Ai)?ir():g(e,Oi)?Ln():g(e,ki)?Xn():Sr(e)}function Fi(e){return x(e.patternProperties)[0]}function Ii(e){return Pi(Fi(e))}function Li(e){return e.patternProperties[Fi(e)]}function Ri(e){return w(e,`Record`)}function zi(e){return S({"~kind":`Rest`},{type:`rest`,items:e},{})}function Bi(e){return w(e,`Rest`)}function Vi(e){return S({"~kind":`This`},{$ref:`#`},e)}function Hi(e){return w(e,`This`)}function Ui(e){return S({"~kind":`Undefined`},{type:`undefined`},e)}function Wi(e){return w(e,`Undefined`)}function Gi(e){return S({"~kind":`Void`},{type:`void`},e)}function Ki(e){return w(e,`Void`)}function qi(e,t){return g(e,`Array`)?Ye(t[0]):g(e,`AsyncIterator`)?Qe(t[0]):g(e,`Iterator`)?zn(t[0]):g(e,`Promise`)?tr(t[0]):g(e,`Awaited`)?Hp(t[0]):g(e,`Capitalize`)?Zp(t[0]):g(e,`ConstructorParameters`)?_m(t[0]):g(e,`Evaluate`)?y_(t[0]):g(e,`Exclude`)?xm(t[0],t[1]):g(e,`Extract`)?wm(t[0],t[1]):g(e,`Index`)?Am(t[0],t[1]):g(e,`InstanceType`)?wh(t[0]):g(e,`Lowercase`)?Qp(t[0]):g(e,`NonNullable`)?rg(t[0]):g(e,`Omit`)?sg(t[0],t[1]):g(e,`Parameters`)?pg(t[0]):g(e,`Partial`)?_g(t[0]):g(e,`Pick`)?Eg(t[0],t[1]):g(e,`Readonly`)?jg(t[0]):g(e,`KeyOf`)?Oh(t[0]):g(e,`Record`)?ji(t[0],t[1]):g(e,`Required`)?Yg(t[0]):g(e,`ReturnType`)?Qg(t[0]):g(e,`Uncapitalize`)?$p(t[0]):g(e,`Uppercase`)?em(t[0]):Lp(st(e),t)}function Ji(){throw Error(`Unreachable`)}const Yi=(e,t=[])=>e.reduce((e,t)=>d(t)&&g(t.length,2)?[...e,t[0]]:[...e,t],[]),Xi=e=>{let[t,n]=e;return Yi([...t,...n])};function Zi(e){return er(e[0],e[2],e[4])}function Qi(e){return er(e[0],e[2],e[2])}function $i(e){return er(e[0],Tt(),e[2])}function ea(e){return er(e,Tt(),Tt())}function ta(e){return e}function na(e){return Xi(e)}function ra(e){return e[1]}function ia(e){return Xi(e)}function aa(e){return e[1]}function oa(e){return qi(e[0],e[1])}function sa(e){return null}function ca(e){return ir()}function la(e){return Xn()}function ua(e){return Nn()}function da(e){return Ui()}function fa(e){return qn()}function pa(e){return Ln()}function ma(e){return jn()}function ha(e){return Tt()}function ga(e){return dt()}function _a(e){return D({})}function va(e){return E()}function ya(e){return Qn()}function ba(e){return Gi()}function xa(e){return Vi()}function Sa(e){return M(BigInt(e))}function Ca(e){return M(g(e,`true`))}function wa(e){return M(parseFloat(e))}function Ta(e){return M(e)}function Ea(e){return e[1]}function Da(e){return M(e)}function Oa(e){return g(e.length,3)?[e[0],e[1],...e[2]]:[e[0]]}function ka(e){return e[1]}function Aa(e){return $u(e)}function ja(e){return g(e.length,6)?Pt(e[1],e[3],e[5]):Pt(e[1],e[3],Tt())}function Ma(e){return e.length>0}function Na(e){return e.reduce((e,t)=>g(t.length,3)?[...e,[t[1]]]:[...e,[]],[])}function Pa(e){return g(e.length,6)?[e[1],e[3],e[5]]:[]}function Fa(e){return d(e)&&g(e.length,3)?e[1]:e}function Ia(e){return g(e.length,2)?e[1]:[]}function La(e,t){return t.reduce((e,t)=>{let n=t;return g(n.length,1)?Am(e,n[0]):g(n.length,0)?Ye(e):Ji()},e)}function Ra(e,t){return g(t.length,3)?pm(e,t[0],t[1],t[2]):e}function za(e,t){return d(t)&&g(t.length,0)?e:n_(e,t)}function Ba(e){let[t,n,r,i,a]=e;return za(Ra(t?Oh(La(n,r)):La(n,r),i),a)}function Va(e,t){return g(t.length,3)?(()=>{let[n,r,i]=t,a=Va(r,i);if(g(n,`&`))return k(a)?Rt([e,...a.allOf]):Rt([e,a]);if(g(n,`|`))return F(a)?P([e,...a.anyOf]):P([e,a]);Ji()})():e}function Ha(e){return e}function Ua(e){let[t,n]=e;return Va(t,n)}function Wa(e){return e}function Ga(e){let[t,n]=e;return Va(t,n)}function Ka(e){return __(e[1])}function qa(e){return e[1]}function Ja(e){return lt(e[0],e[2])}function Ya(e){return g(e.length,4)?Mt(e[1],e[3]):g(e.length,2)?Mt(e[1],Tt()):Ji()}function Xa(e){return e}function Za(e){return`${e}`}function Qa(e){return e}function $a(e){return e}function eo(e){return Rn(e[3])?Oi:Zn(e[3])?ki:$n(e[3])||ar(e[3])?Ai:Ji()}function to(e){return e}function no(e){return e.length>0}function ro(e){return e.length>0}function io(e){let[t,n,r,i,a]=e;return{[n]:t&&r?Cn(_t(a)):t&&!r?Cn(a):!t&&r?_t(a):a}}function ao(e){return e}function oo(e){return Xi(e)}function so(e){return e.reduce((e,n)=>b(n,Oi)||b(n,ki)||b(n,Ai)?[e[0],t(e[1],n)]:[t(e[0],n),e[1]],[{},{}])}function co(e){return so(e[1])}function lo(e){let[t,n]=e;return D(t,g(x(n).length,0)?{}:{patternProperties:n})}function uo(e){return g(e.length,5)?Cn(_t(e[4])):g(e.length,3)?e[2]:g(e.length,4)?g(e[2],`readonly`)?Cn(e[3]):_t(e[3]):Ji()}function fo(e){return Cn(_t(e[1]))}function po(e){return Cn(e[1])}function mo(e){return _t(e[0])}function ho(e){return e}function go(e){return g(e.length,2)?zi(e[1]):g(e.length,1)?e[0]:Ji()}function _o(e){return Xi(e)}function vo(e){return Dr(e[1])}function yo(e){return Cn(_t(e[4]))}function bo(e){return Cn(e[3])}function xo(e){return _t(e[3])}function So(e){return e[2]}function Co(e){return e}function wo(e){return g(e.length,2)?zi(e[1]):g(e.length,1)?e[0]:Ji()}function To(e){return Xi(e)}function Eo(e){return it(e[1],e[4])}function Do(e){return tt(e[2],e[5])}function Oo(e,t){return g(e,`remove`)?Mr(t):g(e,`add`)?Cn(t):t}function ko(e){return g(e.length,2)&&g(e[0],`-`)?`remove`:g(e.length,2)&&g(e[0],`+`)||g(e.length,1)?`add`:`none`}function Ao(e,t){return g(e,`remove`)?Lr(t):g(e,`add`)?_t(t):t}function jo(e){return g(e.length,2)&&g(e[0],`-`)?`remove`:g(e.length,2)&&g(e[0],`+`)||g(e.length,1)?`add`:`none`}function Mo(e){return g(e.length,2)?[e[1]]:[]}function No(e){return d(e[6])&&g(e[6].length,1)?zh(Fn(e[3]),e[5],e[6][0],Oo(e[1],Ao(e[8],e[10]))):zh(Fn(e[3]),e[5],st(e[3]),Oo(e[1],Ao(e[8],e[10])))}function Po(e){return st(e)}function Fo(e){return BigInt(e)}function Io(e){return parseFloat(e)}function Lo(e){return g(e,`true`)}function Ro(e){return e}function zo(e){return null}function Bo(e){return{[e[0]]:e[2]}}function Vo(e){return Xi(e)}function Ho(e){return e.reduce((e,n)=>t(e,n),{})}function Uo(e){return Ho(e[1])}function Wo(e){return Xi(e)}function Go(e){return e[1]}function Ko(e){return e}function qo(e){return jn()}function Jo(e){return ir()}function Yo(e){return Xn()}function Xo(e){return Ln()}function Zo(e){return E()}function Qo(e){return M(e)}function $o(e){return e}function es(e){return P(e[1])}function ts(e){return e.length===3?[...e[0],...e[2]]:e.length===1?[...e[0]]:[]}function ns(e){return[e[0],...e[1]]}function rs(e){return e}function is(e){return e[1]}function as(e){return Xi(e)}function os(e){return g(e.length,2)?e[1]:[]}function ss(e){let t=e[2],n=e[3],[r,i]=e[4],a=g(x(i).length,0)?{}:{patternProperties:i};return{[e[1]]:lt(t,jf(n,r,a))}}function cs(e){let t=e[2],[n,r]=e[3],i=g(x(r).length,0)?{}:{patternProperties:r};return{[e[1]]:jf(t,n,i)}}function ls(e){return{[e[1]]:lt(e[2],e[4])}}function us(e){return{[e[1]]:e[3]}}function ds(e){return null}function fs(e){return e}function ps(e){return so(Xi(e))}function ms(e){return e[1]}function hs(e){let n=e[0],r=e[1];return b_(t(n,r[0]))}function gs(e){return e}function _s(e){return g(e.length,2)}function L(e,t,n){return _s(e)?t(e[0],e[1]):n()}function vs(e,t){return g(t.indexOf(e),0)?[e,t.slice(e.length)]:[]}function R(e,t){for(let n=0;nString.fromCharCode(e+n))}const bs=[...ys(97,122),...ys(65,90)],xs=ys(49,57),Ss=[`0`,...xs];function Cs(e){let t=e.indexOf(`*/`);return g(t,-1)?``:e.slice(t+2)}function ws(e){let t=e.indexOf(` -`);return g(t,-1)?``:e.slice(t)}function Ts(e){return e.replace(/^[ \t\r\f\v]+/,``)}function Es(e){let t=Ts(e);return t.startsWith(`/*`)?Es(Cs(t.slice(2))):t.startsWith(`//`)?Es(ws(t.slice(2))):t}function Ds(e){let t=e.trimStart();return t.startsWith(`/*`)?Ds(Cs(t.slice(2))):t.startsWith(`//`)?Ds(ws(t.slice(2))):t}function Os(e,t){return L(R([e],t),(e,t)=>[e,t],()=>[``,t])}function ks(e,t){return e.includes(t)}function As(e,t,n,r=``){return L(R(e,n),(n,i)=>ks(t,n)?As(e,t,i,r):As(e,t,i,`${r}${n}`),()=>[r,n])}function js(e){return R(xs,e)}const Ms=[...Ss,`_`];function Ns(e){return As(Ms,[`_`],e)}function Ps(e){return L(R([`0`],e),(e,t)=>[e,t],()=>L(js(e),(e,t)=>L(Ns(t),(t,n)=>[`${e}${t}`,n],()=>[]),()=>[]))}function Fs(e){return Ps(Ds(e))}function Is(e){return Os(`-`,e)}function Ls(e){return L(Is(e),(e,t)=>L(Fs(t),(t,n)=>[`${e}${t}`,n],()=>[]),()=>[])}function Rs(e){return Ls(Ds(e))}function zs(e){return L(Rs(e),(e,t)=>L(R([`n`],t),(t,n)=>[`${e}`,n],()=>[]),()=>[])}function Bs(e){return zs(e)}function Vs(e,t){return R([e],t)}function z(e,t){return g(e,``)?[``,t]:e.startsWith(` -`)?Vs(e,Es(t)):e.startsWith(` `)?Vs(e,t):Vs(e,Ds(t))}const Hs=[...bs,`_`,`$`];function Us(e){return R(Hs,e)}const Ws=[...Hs,...Ss];function Gs(e,t=``){return L(R(Ws,e),(e,n)=>Gs(n,`${t}${e}`),()=>[t,e])}function Ks(e){return L(Us(e),(e,t)=>L(Gs(t),(t,n)=>[`${e}${t}`,n],()=>[]),()=>[])}function B(e){return Ks(Ds(e))}const qs=[...Ss,`_`];function Js(e){return _s(R([`.`],e))}function Ys(e){return L(As(qs,[`_`],e),(e,t)=>g(e,``)?[]:[e,t],()=>[])}function Xs(e){return L(R([`.`],e),(e,t)=>L(Ys(t),(t,n)=>[`0${e}${t}`,n],()=>[]),()=>[])}function Zs(e){return L(Fs(e),(e,t)=>L(R([`.`],t),(t,n)=>L(Ys(n),(n,r)=>[`${e}${t}${n}`,r],()=>[`${e}`,n]),()=>[`${e}`,t]),()=>[])}function Qs(e){return Js(e)?Xs(e):Zs(e)}function $s(e){return Qs(Ds(e))}function ec(e){return Os(`-`,e)}function tc(e){return L(ec(e),(e,t)=>L($s(t),(t,n)=>[`${e}${t}`,n],()=>[]),()=>[])}function nc(e){return tc(Ds(e))}function rc(e){return g(e,``)?[]:[e.slice(0,1),e.slice(1)]}function ic(e,t){return y(e,(e,n)=>t.startsWith(e)?!0:ic(n,t),()=>!1)}function ac(e,t,n=``){return L(rc(t),(r,i)=>ic(e,t)?[n,t]:ac(e,i,`${n}${r}`),()=>[])}function oc(e,t,n){return L(R([e],n),(e,n)=>L(ac([t],n),(e,n)=>L(R([t],n),(t,n)=>[`${e}`,n],()=>[]),()=>[]),()=>[])}function sc(e,t,n){return L(R([e],n),(e,n)=>L(ac([` -`,t],n),(e,n)=>L(R([t],n),(t,n)=>[`${e}`,n],()=>[]),()=>[]),()=>[])}function cc(e,t,n,r){return n?oc(e,t,Ds(r)):sc(e,t,Ds(r))}function lc(e,t){return R(e,t)}function uc(e,t){return cc(e,e,!1,t)}function dc(e,t){return L(lc(e,t),(e,t)=>uc(e,`${e}${t}`),()=>[])}function fc(e,t){return dc(e,Ds(t))}function pc(e,t){return L(ac(e,t),(e,t)=>g(e,``)?[]:[e,t],()=>[])}const V=(e,t,n=()=>[])=>e.length===2?t(e):n(),mc=e=>V(V(B(e),([e,t])=>V(z(`extends`,t),([t,n])=>V(H(n),([n,r])=>V(z(`=`,r),([r,i])=>V(H(i),([i,a])=>[[e,t,n,r,i],a]))))),([e,t])=>[Zi(e),t]),hc=e=>V(V(B(e),([e,t])=>V(z(`extends`,t),([t,n])=>V(H(n),([n,r])=>[[e,t,n],r]))),([e,t])=>[Qi(e),t]),gc=e=>V(V(B(e),([e,t])=>V(z(`=`,t),([t,n])=>V(H(n),([n,r])=>[[e,t,n],r]))),([e,t])=>[$i(e),t]),_c=e=>V(B(e),([e,t])=>[ea(e),t]),vc=e=>V(V(mc(e),([e,t])=>[e,t],()=>V(hc(e),([e,t])=>[e,t],()=>V(gc(e),([e,t])=>[e,t],()=>V(_c(e),([e,t])=>[e,t],()=>[])))),([e,t])=>[ta(e),t]),yc=(e,t=[])=>V(V(vc(e),([e,t])=>V(z(`,`,t),([t,n])=>[[e,t],n])),([e,n])=>yc(n,[...t,e]),()=>[t,e]),bc=e=>V(V(yc(e),([e,t])=>V(V(V(vc(t),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>V([[],t],([e,t])=>[e,t],()=>[])),([t,n])=>[[e,t],n])),([e,t])=>[na(e),t]),xc=e=>V(V(z(`<`,e),([e,t])=>V(bc(t),([t,n])=>V(z(`>`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[ra(e),t]),Sc=(e,t=[])=>V(V(H(e),([e,t])=>V(z(`,`,t),([t,n])=>[[e,t],n])),([e,n])=>Sc(n,[...t,e]),()=>[t,e]),Cc=e=>V(V(Sc(e),([e,t])=>V(V(V(H(t),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>V([[],t],([e,t])=>[e,t],()=>[])),([t,n])=>[[e,t],n])),([e,t])=>[ia(e),t]),wc=e=>V(V(z(`<`,e),([e,t])=>V(Cc(t),([t,n])=>V(z(`>`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[aa(e),t]),Tc=e=>V(V(B(e),([e,t])=>V(wc(t),([t,n])=>[[e,t],n])),([e,t])=>[oa(e),t]),Ec=e=>V(V(V(z(`;`,e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>V([[],e],([e,t])=>[e,t],()=>[])),([e,t])=>[sa(e),t]),Dc=e=>V(z(`string`,e),([e,t])=>[ca(e),t]),Oc=e=>V(z(`number`,e),([e,t])=>[la(e),t]),kc=e=>V(z(`boolean`,e),([e,t])=>[ua(e),t]),Ac=e=>V(z(`undefined`,e),([e,t])=>[da(e),t]),jc=e=>V(z(`null`,e),([e,t])=>[fa(e),t]),Mc=e=>V(z(`integer`,e),([e,t])=>[pa(e),t]),Nc=e=>V(z(`bigint`,e),([e,t])=>[ma(e),t]),Pc=e=>V(z(`unknown`,e),([e,t])=>[ha(e),t]),Fc=e=>V(z(`any`,e),([e,t])=>[ga(e),t]),Ic=e=>V(z(`object`,e),([e,t])=>[_a(e),t]),Lc=e=>V(z(`never`,e),([e,t])=>[va(e),t]),Rc=e=>V(z(`symbol`,e),([e,t])=>[ya(e),t]),zc=e=>V(z(`void`,e),([e,t])=>[ba(e),t]),Bc=e=>V(z(`this`,e),([e,t])=>[xa(e),t]),Vc=e=>V(V(z("${",e),([e,t])=>V(H(t),([t,n])=>V(z(`}`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[Ea(e),t]),Hc=e=>V(ac(["${","`"],e),([e,t])=>[Da(e),t]),Uc=e=>V(V(V(Hc(e),([e,t])=>V(Vc(t),([t,n])=>V(Uc(n),([n,r])=>[[e,t,n],r]))),([e,t])=>[e,t],()=>V(V(Hc(e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>V(V(Hc(e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>[]))),([e,t])=>[Oa(e),t]),Wc=e=>V(V(z("`",e),([e,t])=>V(Uc(t),([t,n])=>V(z("`",n),([n,r])=>[[e,t,n],r]))),([e,t])=>[ka(e),t]),Gc=e=>V(Wc(e),([e,t])=>[Aa(e),t]),Kc=e=>V(V(V(z(`if`,e),([e,t])=>V(H(t),([t,n])=>V(z(`then`,n),([n,r])=>V(H(r),([r,i])=>V(z(`else`,i),([i,a])=>V(H(a),([a,o])=>[[e,t,n,r,i,a],o])))))),([e,t])=>[e,t],()=>V(V(z(`if`,e),([e,t])=>V(H(t),([t,n])=>V(z(`then`,n),([n,r])=>V(H(r),([r,i])=>[[e,t,n,r],i])))),([e,t])=>[e,t],()=>[])),([e,t])=>[ja(e),t]),qc=e=>V(Bs(e),([e,t])=>[Sa(e),t]),Jc=e=>V(V(z(`true`,e),([e,t])=>[e,t],()=>V(z(`false`,e),([e,t])=>[e,t],()=>[])),([e,t])=>[Ca(e),t]),Yc=e=>V(nc(e),([e,t])=>[wa(e),t]),Xc=e=>V(fc([`'`,`"`],e),([e,t])=>[Ta(e),t]),Zc=e=>V(V(V(z(`keyof`,e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>V([[],e],([e,t])=>[e,t],()=>[])),([e,t])=>[Ma(e),t]),Qc=(e,t=[])=>V(V(V(z(`[`,e),([e,t])=>V(H(t),([t,n])=>V(z(`]`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[e,t],()=>V(V(z(`[`,e),([e,t])=>V(z(`]`,t),([t,n])=>[[e,t],n])),([e,t])=>[e,t],()=>[])),([e,n])=>Qc(n,[...t,e]),()=>[t,e]),$c=e=>V(Qc(e),([e,t])=>[Na(e),t]),el=e=>V(V(V(z(`extends`,e),([e,t])=>V(H(t),([t,n])=>V(z(`?`,n),([n,r])=>V(H(r),([r,i])=>V(z(`:`,i),([i,a])=>V(H(a),([a,o])=>[[e,t,n,r,i,a],o])))))),([e,t])=>[e,t],()=>V([[],e],([e,t])=>[e,t],()=>[])),([e,t])=>[Pa(e),t]),tl=e=>V(V(V(z(`(`,e),([e,t])=>V(H(t),([t,n])=>V(z(`)`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[e,t],()=>V(Dc(e),([e,t])=>[e,t],()=>V(Oc(e),([e,t])=>[e,t],()=>V(kc(e),([e,t])=>[e,t],()=>V(Ac(e),([e,t])=>[e,t],()=>V(jc(e),([e,t])=>[e,t],()=>V(Mc(e),([e,t])=>[e,t],()=>V(Nc(e),([e,t])=>[e,t],()=>V(Pc(e),([e,t])=>[e,t],()=>V(Fc(e),([e,t])=>[e,t],()=>V(Ic(e),([e,t])=>[e,t],()=>V(Lc(e),([e,t])=>[e,t],()=>V(Rc(e),([e,t])=>[e,t],()=>V(zc(e),([e,t])=>[e,t],()=>V(Bc(e),([e,t])=>[e,t],()=>V(qc(e),([e,t])=>[e,t],()=>V(Jc(e),([e,t])=>[e,t],()=>V(Yc(e),([e,t])=>[e,t],()=>V(Xc(e),([e,t])=>[e,t],()=>V(Gc(e),([e,t])=>[e,t],()=>V(Kc(e),([e,t])=>[e,t],()=>V(wl(e),([e,t])=>[e,t],()=>V(Nl(e),([e,t])=>[e,t],()=>V(Ul(e),([e,t])=>[e,t],()=>V(Hl(e),([e,t])=>[e,t],()=>V(ql(e),([e,t])=>[e,t],()=>V(Tc(e),([e,t])=>[e,t],()=>V(Jl(e),([e,t])=>[e,t],()=>[])))))))))))))))))))))))))))),([e,t])=>[Fa(e),t]),nl=e=>V(V(V(z(`with`,e),([e,t])=>V(iu(t),([t,n])=>[[e,t],n])),([e,t])=>[e,t],()=>V([[],e],([e,t])=>[e,t],()=>[])),([e,t])=>[Ia(e),t]),rl=e=>V(V(Zc(e),([e,t])=>V(tl(t),([t,n])=>V($c(n),([n,r])=>V(el(r),([r,i])=>V(nl(i),([i,a])=>[[e,t,n,r,i],a]))))),([e,t])=>[Ba(e),t]),il=e=>V(V(V(z(`&`,e),([e,t])=>V(rl(t),([t,n])=>V(il(n),([n,r])=>[[e,t,n],r]))),([e,t])=>[e,t],()=>V([[],e],([e,t])=>[e,t],()=>[])),([e,t])=>[Ha(e),t]),al=e=>V(V(rl(e),([e,t])=>V(il(t),([t,n])=>[[e,t],n])),([e,t])=>[Ua(e),t]),ol=e=>V(V(V(z(`|`,e),([e,t])=>V(al(t),([t,n])=>V(ol(n),([n,r])=>[[e,t,n],r]))),([e,t])=>[e,t],()=>V([[],e],([e,t])=>[e,t],()=>[])),([e,t])=>[Wa(e),t]),sl=e=>V(V(al(e),([e,t])=>V(ol(t),([t,n])=>[[e,t],n])),([e,t])=>[Ga(e),t]),cl=e=>V(V(z(`readonly`,e),([e,t])=>V(sl(t),([t,n])=>[[e,t],n])),([e,t])=>[Ka(e),t]),ll=e=>V(V(z(`|`,e),([e,t])=>V(sl(t),([t,n])=>[[e,t],n])),([e,t])=>[qa(e),t]),ul=e=>V(V(xc(e),([e,t])=>V(z(`=`,t),([t,n])=>V(H(n),([n,r])=>[[e,t,n],r]))),([e,t])=>[Ja(e),t]),dl=e=>V(V(V(z(`infer`,e),([e,t])=>V(B(t),([t,n])=>V(z(`extends`,n),([n,r])=>V(sl(r),([r,i])=>[[e,t,n,r],i])))),([e,t])=>[e,t],()=>V(V(z(`infer`,e),([e,t])=>V(B(t),([t,n])=>[[e,t],n])),([e,t])=>[e,t],()=>[])),([e,t])=>[Ya(e),t]),H=e=>V(V(dl(e),([e,t])=>[e,t],()=>V(ll(e),([e,t])=>[e,t],()=>V(cl(e),([e,t])=>[e,t],()=>V(sl(e),([e,t])=>[e,t],()=>[])))),([e,t])=>[Xa(e),t]),fl=e=>V(nc(e),([e,t])=>[Za(e),t]),pl=e=>V(B(e),([e,t])=>[Qa(e),t]),ml=e=>V(fc([`'`,`"`],e),([e,t])=>[$a(e),t]),hl=e=>V(V(z(`[`,e),([e,t])=>V(B(t),([t,n])=>V(z(`:`,n),([n,r])=>V(V(Mc(r),([e,t])=>[e,t],()=>V(Oc(r),([e,t])=>[e,t],()=>V(Dc(r),([e,t])=>[e,t],()=>V(Rc(r),([e,t])=>[e,t],()=>[])))),([r,i])=>V(z(`]`,i),([i,a])=>[[e,t,n,r,i],a]))))),([e,t])=>[eo(e),t]),gl=e=>V(V(fl(e),([e,t])=>[e,t],()=>V(pl(e),([e,t])=>[e,t],()=>V(ml(e),([e,t])=>[e,t],()=>V(hl(e),([e,t])=>[e,t],()=>[])))),([e,t])=>[to(e),t]),_l=e=>V(V(V(z(`readonly`,e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>V([[],e],([e,t])=>[e,t],()=>[])),([e,t])=>[no(e),t]),vl=e=>V(V(V(z(`?`,e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>V([[],e],([e,t])=>[e,t],()=>[])),([e,t])=>[ro(e),t]),yl=e=>V(V(_l(e),([e,t])=>V(gl(t),([t,n])=>V(vl(n),([n,r])=>V(z(`:`,r),([r,i])=>V(H(i),([i,a])=>[[e,t,n,r,i],a]))))),([e,t])=>[io(e),t]),bl=e=>V(V(V(z(`,`,e),([e,t])=>V(z(` +const e={assign:0,create:0,clone:0,discard:0,update:0};function t(t,n){return e.assign+=1,{...t,...n}}function n(e,t,n){return e>=t&&e<=n}function r(e){return n(e,127462,127487)}function i(e){return n(e,65024,65039)}function a(e){return n(e,768,879)||n(e,6832,6911)||n(e,7616,7679)||n(e,65056,65071)}function o(e){return e>65535?2:1}function s(e,t){for(;t=t)return!0;return!1}function ee(e,t){let n=0,r=0;for(;rt)return!1;return!0}function te(e,t){if(t===0)return!0;let n=0;for(;n=t)return!0}return!1}function ne(e,t){let n=0;for(;nt)return!1}return!0}function d(e){return Array.isArray(e)}function f(e){return g(typeof e,`bigint`)}function re(e){return g(typeof e,`boolean`)}function ie(e){if(ue(e)||!ae(e))return!1;let t=Function.prototype.toString.call(e);return!!(/^class\s/.test(t)||/\[native code\]/.test(t))}function ae(e){return g(typeof e,`function`)}function oe(e){return Number.isInteger(e)}function se(e){return g(e,null)}function p(e){return Number.isFinite(e)}function ce(e){return m(e)&&!d(e)}function m(e){return g(typeof e,`object`)&&!se(e)}function h(e){return g(typeof e,`string`)}function le(e){return g(typeof e,`symbol`)}function ue(e){return g(e,void 0)}function g(e,t){return e===t}function de(e,t){return e>t}function fe(e,t){return e=t}function he(e,t){if(f(e)||f(t))return BigInt(e)%BigInt(t)===0n;if(!p(e)||oe(e)&&1/t%1==0)return!0;let n=e%t;return Math.min(Math.abs(n),Math.abs(n-t))<1e-10}function ge(e){if(!m(e))return!1;let t=globalThis.Object.getPrototypeOf(e);return se(t)?!1:g(typeof t.constructor,`function`)&&!(g(t.constructor,globalThis.Object)||g(t.constructor.name,`Object`))}function _e(e){return f(e)||re(e)||se(e)||p(e)||h(e)||ue(e)}function ve(e,t){return ne(e,t)}function ye(e,t){return te(e,t)}function _(e,t,n){for(let r=t;rEe(e[n],t[n]))}function Te(e,t){return d(t)&&g(e.length,t.length)&&e.every((n,r)=>Ee(e[r],t[r]))}function Ee(e,t){return d(e)?Te(e,t):m(e)?we(e,t):g(e,t)}function De(e){return e instanceof Boolean}function Oe(e){return e instanceof Number}function ke(e){return e instanceof String}function Ae(e){return globalThis.ArrayBuffer.isView(e)}function je(e){return e instanceof globalThis.RegExp}function Me(e){return e instanceof globalThis.Date}function Ne(e){return e instanceof globalThis.Set}function Pe(e){return e instanceof globalThis.Map}function Fe(e){return e}function Ie(e){return b(e,`~kind`)}function Le(e){let t={},n=Object.getOwnPropertyDescriptors(e);for(let e of Object.keys(n)){if(be(e))continue;let r=n[e];b(r,`value`)&&Object.defineProperty(t,e,{...r,value:Ge(r.value)})}return t}function Re(e){let t={};for(let n of x(e))be(n)||(t[n]=Ge(e[n]));for(let n of Se(e))t[n]=Ge(e[n]);return t}function ze(e){return ge(e)?Fe(e):Ie(e)?Le(e):Re(e)}function Be(e){return e.map(e=>Ge(e))}function Ve(e){return e.slice()}function He(e){return new RegExp(e.source,e.flags)}function Ue(e){return new Map(Ge([...e.entries()]))}function We(e){return new Set(Ge([...e.values()]))}function Ge(e){return Ae(e)?Ve(e):je(e)?He(e):Pe(e)?Ue(e):Ne(e)?We(e):d(e)?Be(e):m(e)?ze(e):e}function Ke(t){return e.clone+=1,Ge(t)}const qe={immutableTypes:!1,maxErrors:8,useAcceleration:!0,exactOptionalPropertyTypes:!1,enumerableKind:!1,correctiveParse:!1,unionPrioritySort:!0};function Je(){return qe}function Ye(e,t){for(let n of Object.keys(t))Object.defineProperty(e,n,{configurable:!0,writable:!0,enumerable:!1,value:t[n]});return e}function Xe(e,t){return{...e,...t}}function S(t,n,r={}){e.create+=1;let i=Je(),a=Xe(n,r),o=i.enumerableKind?Xe(a,t):Ye(a,t);return i.immutableTypes?Object.freeze(o):o}function Ze(t,n){e.discard+=1;let r={},i=Object.getOwnPropertyDescriptors(Ke(t)),a=new Set(n);for(let e of Object.keys(i))a.has(e)||Object.defineProperty(r,e,i[e]);return r}function C(t,n,r){e.update+=1;let i=Je(),a=Ke(t);for(let e of Object.keys(n))Object.defineProperty(a,e,{configurable:!0,writable:!0,enumerable:i.enumerableKind,value:n[e]});for(let e of Object.keys(r))Object.defineProperty(a,e,{configurable:!0,enumerable:!0,writable:!0,value:r[e]});return a}function w(e,t){return m(e)&&b(e,`~kind`)&&g(e[`~kind`],t)}function Qe(e){return m(e)}function T(e,t,n){return S({"~kind":`Deferred`},{type:`deferred`,action:e,parameters:t,options:n},{})}function $e(e){return w(e,`Deferred`)}function et(e){return C(e,{"~readonly":!0},{})}function tt(e,t){return C(et(e),{},t)}function nt(e,t,n,r){return tt(Y(e,t,n),r)}function rt(e){return C(e,{"~optional":!0},{})}function it(e,t){return C(rt(e),{},t)}function at(e,t,n,r){return it(Y(e,t,n),r)}function ot(e,t){return S({"~kind":`Array`},{type:`array`,items:e},t)}function st(e){return w(e,`Array`)}function ct(e){return Ze(e,[`~kind`,`type`,`items`])}function lt(e,t,n={}){return S({"~kind":`Constructor`},{type:`constructor`,parameters:e,instanceType:t},n)}function ut(e){return w(e,`Constructor`)}function dt(e){return Ze(e,[`~kind`,`type`,`parameters`,`instanceType`])}function ft(e,t,n={}){return S({"~kind":`Function`},{type:`function`,parameters:e,returnType:t},n)}function pt(e){return w(e,`Function`)}function mt(e){return Ze(e,[`~kind`,`type`,`parameters`,`returnType`])}function ht(e,t){return S({"~kind":`Ref`},{$ref:e},t)}function gt(e){return w(e,`Ref`)}function _t(e,t){return S({"~kind":`Generic`},{type:`generic`,parameters:e,expression:t})}function vt(e){return w(e,`Generic`)}function yt(e){return S({"~kind":`Any`},{},e)}function bt(e){return w(e,`Any`)}function E(e){return S({"~kind":`Never`},{not:{}},e)}function xt(e){return w(e,`Never`)}function St(e,t={}){return T(`AddOptional`,[e],t)}function Ct(e,t={}){return it(e,t)}function wt(e){return Qe(e)&&b(e,`~optional`)}function Tt(e){return x(e).filter(t=>!wt(e[t]))}function Et(e){return x(e)}function Dt(e){return Ce(e)}function D(e,t={}){let n=Tt(e);return S({"~kind":`Object`},{type:`object`,...n.length>0?{required:n}:{},properties:e},t)}function O(e){return w(e,`Object`)}function Ot(e){return Ze(e,[`~kind`,`type`,`properties`,`required`])}function kt(e){return S({"~kind":`Unknown`},{},e)}function At(e){return w(e,`Unknown`)}function jt(e,t,n){return S({"~kind":`Cyclic`},{$defs:x(e).reduce((t,n)=>({...t,[n]:C(e[n],{},{$id:n})}),{}),$ref:t},n)}function Mt(e){return w(e,`Cyclic`)}function Nt(e){return C(e,{"~unsafe":null},{})}function Pt(e){return ce(e)&&b(e,`~unsafe`)&&se(e[`~unsafe`])}function Ft(e,t){return t[e.length]?.(...e)??(()=>{throw Error(`Invalid Arguments`)})()}function It(...e){let[t,n]=Ft(e,{2:(e,t)=>[e,t,t],1:e=>[e,kt(),kt()]});return S({"~kind":`Infer`},{type:`infer`,name:t,extends:n},{})}function Lt(e){return w(e,`Infer`)}function Rt(e,t,n,r={}){return S({"~kind":`Dependent`},{if:e,then:t,else:n},r)}function zt(e){return w(e,`Dependent`)}function Bt(e){return Ze(e,[`~kind`,`if`,`then`,`else`])}function Vt(e){return w(e,`Enum`)}function Ht(e,t={}){return S({"~kind":`Intersect`},{allOf:e},t)}function k(e){return w(e,`Intersect`)}function Ut(e){return Ze(e,[`~kind`,`allOf`])}function Wt(){throw Error(`Unreachable`)}function Gt(e){let t=new Set,n=e;for(;n&&n!==Object.prototype;){for(let e of Reflect.ownKeys(n))e!==`constructor`&&typeof e!=`symbol`&&t.add(e);n=Object.getPrototypeOf(n)}return[...t]}function Kt(e){return typeof e==`number`}var A;(function(e){e[e.Array=0]=`Array`,e[e.BigInt=1]=`BigInt`,e[e.Boolean=2]=`Boolean`,e[e.Date=3]=`Date`,e[e.Constructor=4]=`Constructor`,e[e.Function=5]=`Function`,e[e.Null=6]=`Null`,e[e.Number=7]=`Number`,e[e.Object=8]=`Object`,e[e.RegExp=9]=`RegExp`,e[e.String=10]=`String`,e[e.Symbol=11]=`Symbol`,e[e.TypeArray=12]=`TypeArray`,e[e.Undefined=13]=`Undefined`})(A||={});let qt=BigInt(`14695981039346656037`);const[Jt,Yt]=[BigInt(`1099511628211`),BigInt(`18446744073709551616`)],Xt=Array.from({length:256}).map((e,t)=>BigInt(t)),Zt=new Float64Array(1),Qt=new DataView(Zt.buffer),$t=new Uint8Array(Zt.buffer);function j(e){qt^=Xt[e],qt=qt*Jt%Yt}function en(e){j(A.Array);for(let t of e)gn(t)}function tn(e){j(A.BigInt),Qt.setBigInt64(0,e);for(let e of $t)j(e)}function nn(e){j(A.Boolean),j(+!!e)}function rn(e){j(A.Constructor),gn(e.toString())}function an(e){j(A.Date),gn(e.getTime())}function on(e){j(A.Function),gn(e.toString())}function sn(e){j(A.Null)}function cn(e){j(A.Number),Qt.setFloat64(0,e,!0);for(let e of $t)j(e)}function ln(e){j(A.Object);for(let t of Gt(e).sort())gn(t),gn(e[t])}function un(e){j(A.RegExp),fn(e.toString())}const dn=new TextEncoder;function fn(e){j(A.String);for(let t of dn.encode(e))j(t)}function pn(e){j(A.Symbol),gn(e.toString())}function mn(e){j(A.TypeArray);let t=new Uint8Array(e.buffer);for(let e=0;e[e,t,n],2:(e,t)=>[e,t,()=>`Refine Error`]});return En(t,{check:n,error:r})}function On(e){return ce(e)&&b(e,`check`)&&b(e,`error`)&&ae(e.check)&&ae(e.error)}function kn(e){return Qe(e)&&b(e,`~refine`)&&d(e[`~refine`])&&_(e[`~refine`],0,e=>On(e))}function An(e){return S({"~kind":`BigInt`},{type:`bigint`},e)}function jn(e){return w(e,`BigInt`)}function Mn(e){return S({"~kind":`Boolean`},{type:`boolean`},e)}function Nn(e){return w(e,`Boolean`)}function Pn(e){return S({"~kind":`Identifier`},{name:e})}const Fn=`-?(?:0|[1-9][0-9]*)`;function In(e){return S({"~kind":`Integer`},{type:`integer`},e)}function Ln(e){return w(e,`Integer`)}var Rn=class extends Error{constructor(e){super(`Invalid Literal value`),Object.defineProperty(this,"cause",{value:{value:e},writable:!1,configurable:!1,enumerable:!1})}};function zn(e){return f(e)?`bigint`:re(e)?`boolean`:p(e)?`number`:h(e)?`string`:(()=>{throw new Rn(e)})()}function M(e,t){return S({"~kind":`Literal`},{type:zn(e),const:e},t)}function Bn(e){return f(e)||re(e)||p(e)||h(e)}function Vn(e){return N(e)&&p(e.const)}function Hn(e){return N(e)&&h(e.const)}function N(e){return w(e,`Literal`)}function Un(e){return S({"~kind":`Null`},{type:`null`},e)}function Wn(e){return w(e,`Null`)}const Gn=`-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?`;function Kn(e){return S({"~kind":`Number`},{type:`number`},e)}function qn(e){return w(e,`Number`)}function Jn(e){return S({"~kind":`Symbol`},{type:`symbol`},e)}function Yn(e){return w(e,`Symbol`)}function Xn(...e){let[t,n,r]=Ft(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[e,t,t],1:e=>[e,kt(),kt()]});return S({"~kind":`Parameter`},{name:t,extends:n,equals:r},{})}function Zn(e){return S({"~kind":`String`},{type:`string`},e)}function Qn(e){return w(e,`String`)}function P(e,t={}){return S({"~kind":`Union`},{anyOf:e},t)}function F(e){return w(e,`Union`)}function $n(e){return Ze(e,[`~kind`,`anyOf`])}function er(e){let t=pu(e);return g(t.length,2)?t[0]:[]}function tr(e){return!0}function nr(e){return y(e,(e,t)=>ir(e)?nr(t):!1,()=>!0)}function rr(e){return g(e.length,0)?!1:nr(e)}function ir(e){return F(e)?rr(e.anyOf):N(e)?tr(e.const):!1}function ar(e){return rr(e)}function or(e){return S({"~kind":`TemplateLiteral`},{type:`string`,pattern:e},{})}function sr(e,t,n=[]){return y(e,(e,r)=>sr(r,t,[...n,`${e}${t}`]),()=>n)}function cr(e,t){return g(e.length,0)?[`${t}`]:sr(e,t)}function lr(e,t,n=[]){return y(t,(t,r)=>lr(e,r,[...n,...ur(e,t)]),()=>n)}function ur(e,t){return F(t)?lr(e,t.anyOf):N(t)?cr(e,t.const):Wt()}function dr(e,t){return y(t,(t,n)=>dr(ur(e,t),n),()=>e)}function fr(e){return e.map(e=>M(e))}function pr(e){return P(fr(dr([],e)))}function mr(e){return g(e.length,0)?Wt():g(e.length,1)&&N(e[0])?e[0]:pr(e)}function hr(e){let t=er(e);return g(t.length,0)?Zn():ar(t)?mr(t):or(e)}function gr(e){let t=hr(e);return Ju(t)?Zn():t}function _r(e,t){return S({"~kind":`Record`},{type:`object`,patternProperties:{[e]:t}})}function vr(e){return _r(Ci,e)}function yr(e){return D({true:e,false:e})}function br(e,t={}){let[n,r,i]=[e,e.length,!1];return S({"~kind":`Tuple`},{type:`array`,additionalItems:i,items:n,minItems:r},t)}function I(e){return w(e,`Tuple`)}function xr(e){return Ze(e,[`~kind`,`type`,`items`,`minItems`,`additionalItems`])}function Sr(e){return Ze(e,[`~readonly`])}function Cr(e,t){return C(Sr(e),{},t)}function wr(e,t,n,r){return Cr(Y(e,t,n),r)}function Tr(e,t={}){return T(`RemoveReadonly`,[e],t)}function Er(e,t={}){return Cr(e,t)}function Dr(e){return Ze(e,[`~optional`])}function Or(e,t){return C(Dr(e),{},t)}function kr(e,t,n,r){return Or(Y(e,t,n),r)}function Ar(e,t={}){return T(`RemoveOptional`,[e],t)}function jr(e,t={}){return Or(e,t)}function Mr(e){return e.reduceRight((e,t,n)=>({[n]:t,...e}),{})}function Nr(e){return D(Mr(e.items))}function Pr(e,t){return Tn(e)?!!Tn(t):!1}function Fr(e,t){return wt(e)?!!wt(t):!1}function Ir(e,t){let n=Pr(e,t),r=Fr(e,t),i=Er(jr($r([e,t])));return n&&r?wn(Ct(i)):n&&!r?wn(i):!n&&r?Ct(i):i}function Lr(e,t,n){return n in e?n in t?Ir(e[n],t[n]):e[n]:n in t?t[n]:E()}function Rr(e,t){return[...new Set([...x(t),...x(e)])].reduce((n,r)=>({...n,[r]:Lr(e,t,r)}),{})}function zr(e){return O(e)?e.properties:I(e)?Mr(e.items):Wt()}function Br(e,t){return D(Rr(zr(e),zr(t)))}function Vr(e,t){let n=Jf(e,t);return g(n,`left-inside`)?e:g(n,`right-inside`)||g(n,`equal`)?t:E()}function Hr(e){return O(e)||I(e)}function Ur(e,t){let n=F(e),r=F(t);return n||r}function Wr(e,t){let n=ni(e),r=ni(t),i=Ur(n,r),a=Hr(n),o=Hr(r);return i?$r([n,r]):a&&o?Br(n,r):a&&!o?n:!a&&o?r:Vr(n,r)}function Gr(e,t,n=[]){return y(t,(t,r)=>Gr(e,r,[...n,Wr(e,t)]),()=>g(n.length,0)?[e]:n)}function Kr(e,t,n=[]){return y(e,(e,r)=>Kr(r,t,[...n,...qr([e],t)]),()=>n)}function qr(e,t=[]){return y(e,(e,n)=>F(e)?qr(n,Kr(e.anyOf,t)):qr(n,Gr(e,t)),()=>t)}function Jr(e,t){return $u(qf({},e,t))?[]:[e]}function Yr(e,t){return e.reduce((e,n)=>[...e,...Jr(n,t)],[])}function Xr(e,t){let n=ni(e);return ti(Yr(F(n)?n.anyOf:[n],t))}function Zr(e,t,n){return ti([Ht([e,t]),Xr(n,e)])}function Qr(e){return ti(e.map(e=>M(e)))}function $r(e){return ri($f(qr(e)))}function ei(e){return ni(gr(e))}function ti(e){return ri($f(e))}function ni(e){return zt(e)?Zr(e.if,e.then,e.else):Vt(e)?Qr(e.enum):k(e)?$r(e.allOf):Ju(e)?ei(e.pattern):F(e)?ti(e.anyOf):e}function ri(e){return g(e.length,1)?e[0]:g(e.length,0)?E():P(e)}function ii(e,t){return vi(Qr(e),t)}function ai(e,t){return _r(xi,t)}function oi(e,t){return vi($r(e),t)}function si(e,t){return h(e)||p(e)?D({[e]:t}):g(e,!1)?D({false:t}):g(e,!0)?D({true:t}):D({})}function ci(e,t){return _r(Si,t)}function li(e,t){return b(e,`pattern`)&&(h(e.pattern)||e.pattern instanceof RegExp)?_r(e.pattern.toString(),t):_r(Ci,t)}function ui(e,t){return ar(er(e))?vi(ei(e),t):_r(e,t)}function di(e){return F(e)?fi(e.anyOf):[e]}function fi(e){return e.reduce((e,t)=>[...e,...di(t)],[])}function pi(e){return e.some(e=>Qn(e)||qn(e)||Ln(e))}function mi(e,t){return g(pi(e),!0)?_r(Ci,t):void 0}function hi(e,t){return e.reduce((e,n)=>N(n)&&(h(n.const)||p(n.const))?{...e,[n.const]:t}:e,{})}function gi(e,t){return D(hi(e,t))}function _i(e,t){let n=fi(e),r=mi(n,t);return Qe(r)?r:gi(n,t)}function vi(e,t){return bt(e)?vr(t):Nn(e)?yr(t):Vt(e)?ii(e.enum,t):Ln(e)?ai(e,t):k(e)?oi(e.allOf,t):N(e)?si(e.const,t):qn(e)?ci(e,t):F(e)?_i(e.anyOf,t):Qn(e)?li(e,t):Ju(e)?ui(e.pattern,t):D({})}function yi(e,t,n){return J([e])?C(vi(e,t),{},n):wi(e,t,n)}function bi(e,t,n,r,i){return yi(Y(e,t,n),Y(e,t,r),i)}const xi=`^${Fn}$`,Si=`^${Gn}$`,Ci=`^.*$`;function wi(e,t,n={}){return T(`Record`,[e,t],n)}function Ti(e,t,n={}){return yi(e,t,n)}function Ei(e,t){return _r(e,t)}function Di(e){return g(e,Ci)?Zn():g(e,xi)?In():g(e,Si)?Kn():hr(e)}function Oi(e){return x(e.patternProperties)[0]}function ki(e){return Di(Oi(e))}function Ai(e){return e.patternProperties[Oi(e)]}function ji(e){return w(e,`Record`)}function Mi(e){return S({"~kind":`Rest`},{type:`rest`,items:e},{})}function Ni(e){return w(e,`Rest`)}function Pi(e){return S({"~kind":`This`},{$ref:`#`},e)}function Fi(e){return w(e,`This`)}function Ii(e){return S({"~kind":`Undefined`},{type:`undefined`},e)}function Li(e){return w(e,`Undefined`)}function Ri(e){return S({"~kind":`Void`},{type:`void`},e)}function zi(e){return w(e,`Void`)}function Bi(e,t){return g(e,`Array`)?ot(t[0]):g(e,`Capitalize`)?Lp(t[0]):g(e,`ConstructorParameters`)?rm(t[0]):g(e,`Evaluate`)?a_(t[0]):g(e,`Exclude`)?sm(t[0],t[1]):g(e,`Extract`)?um(t[0],t[1]):g(e,`Index`)?gm(t[0],t[1]):g(e,`InstanceType`)?uh(t[0]):g(e,`Lowercase`)?Rp(t[0]):g(e,`NonNullable`)?Uh(t[0]):g(e,`Omit`)?qh(t[0],t[1]):g(e,`Parameters`)?$h(t[0]):g(e,`Partial`)?rg(t[0]):g(e,`Pick`)?fg(t[0],t[1]):g(e,`Readonly`)?_g(t[0]):g(e,`KeyOf`)?mh(t[0]):g(e,`Record`)?wi(t[0],t[1]):g(e,`Required`)?Fg(t[0]):g(e,`ReturnType`)?Rg(t[0]):g(e,`Uncapitalize`)?zp(t[0]):g(e,`Uppercase`)?Bp(t[0]):Dp(ht(e),t)}function Vi(){throw Error(`Unreachable`)}const Hi=(e,t=[])=>e.reduce((e,t)=>d(t)&&g(t.length,2)?[...e,t[0]]:[...e,t],[]),Ui=e=>{let[t,n]=e;return Hi([...t,...n])};function Wi(e){return Xn(e[0],e[2],e[4])}function Gi(e){return Xn(e[0],e[2],e[2])}function Ki(e){return Xn(e[0],kt(),e[2])}function qi(e){return Xn(e,kt(),kt())}function Ji(e){return e}function Yi(e){return Ui(e)}function Xi(e){return e[1]}function Zi(e){return Ui(e)}function Qi(e){return e[1]}function $i(e){return Bi(e[0],e[1])}function ea(e){return null}function ta(e){return Zn()}function na(e){return Kn()}function ra(e){return Mn()}function ia(e){return Ii()}function aa(e){return Un()}function oa(e){return In()}function sa(e){return An()}function ca(e){return kt()}function la(e){return yt()}function ua(e){return D({})}function da(e){return E()}function fa(e){return Jn()}function pa(e){return Ri()}function ma(e){return Pi()}function ha(e){return M(BigInt(e))}function ga(e){return M(g(e,`true`))}function _a(e){return M(parseFloat(e))}function va(e){return M(e)}function ya(e){return e[1]}function ba(e){return M(e)}function xa(e){return g(e.length,3)?[e[0],e[1],...e[2]]:[e[0]]}function Sa(e){return e[1]}function Ca(e){return Ku(e)}function wa(e){return g(e.length,6)?Rt(e[1],e[3],e[5]):Rt(e[1],e[3],kt())}function Ta(e){return e.length>0}function Ea(e){return e.reduce((e,t)=>g(t.length,3)?[...e,[t[1]]]:[...e,[]],[])}function Da(e){return g(e.length,6)?[e[1],e[3],e[5]]:[]}function Oa(e){return d(e)&&g(e.length,3)?e[1]:e}function ka(e){return g(e.length,2)?e[1]:[]}function Aa(e,t){return t.reduce((e,t)=>{let n=t;return g(n.length,1)?gm(e,n[0]):g(n.length,0)?ot(e):Vi()},e)}function ja(e,t){return g(t.length,3)?$p(e,t[0],t[1],t[2]):e}function Ma(e,t){return d(t)&&g(t.length,0)?e:Hg(e,t)}function Na(e){let[t,n,r,i,a]=e;return Ma(ja(t?mh(Aa(n,r)):Aa(n,r),i),a)}function Pa(e,t){return g(t.length,3)?(()=>{let[n,r,i]=t,a=Pa(r,i);if(g(n,`&`))return k(a)?Ht([e,...a.allOf]):Ht([e,a]);if(g(n,`|`))return F(a)?P([e,...a.anyOf]):P([e,a]);Vi()})():e}function Fa(e){return e}function Ia(e){let[t,n]=e;return Pa(t,n)}function La(e){return e}function Ra(e){let[t,n]=e;return Pa(t,n)}function za(e){return r_(e[1])}function Ba(e){return e[1]}function Va(e){return _t(e[0],e[2])}function Ha(e){return g(e.length,4)?It(e[1],e[3]):g(e.length,2)?It(e[1],kt()):Vi()}function Ua(e){return e}function Wa(e){return`${e}`}function Ga(e){return e}function Ka(e){return e}function qa(e){return Ln(e[3])?xi:qn(e[3])?Si:Yn(e[3])||Qn(e[3])?Ci:Vi()}function Ja(e){return e}function Ya(e){return e.length>0}function Xa(e){return e.length>0}function Za(e){let[t,n,r,i,a]=e;return{[n]:t&&r?Cn(St(a)):t&&!r?Cn(a):!t&&r?St(a):a}}function Qa(e){return e}function $a(e){return Ui(e)}function eo(e){return e.reduce((e,n)=>b(n,xi)||b(n,Si)||b(n,Ci)?[e[0],t(e[1],n)]:[t(e[0],n),e[1]],[{},{}])}function to(e){return eo(e[1])}function no(e){let[t,n]=e;return D(t,g(x(n).length,0)?{}:{patternProperties:n})}function ro(e){return g(e.length,5)?Cn(St(e[4])):g(e.length,3)?e[2]:g(e.length,4)?g(e[2],`readonly`)?Cn(e[3]):St(e[3]):Vi()}function io(e){return Cn(St(e[1]))}function ao(e){return Cn(e[1])}function oo(e){return St(e[0])}function so(e){return e}function co(e){return g(e.length,2)?Mi(e[1]):g(e.length,1)?e[0]:Vi()}function lo(e){return Ui(e)}function uo(e){return br(e[1])}function fo(e){return Cn(St(e[4]))}function po(e){return Cn(e[3])}function mo(e){return St(e[3])}function ho(e){return e[2]}function go(e){return e}function _o(e){return g(e.length,2)?Mi(e[1]):g(e.length,1)?e[0]:Vi()}function vo(e){return Ui(e)}function yo(e){return ft(e[1],e[4])}function bo(e){return lt(e[2],e[5])}function xo(e,t){return g(e,`remove`)?Tr(t):g(e,`add`)?Cn(t):t}function So(e){return g(e.length,2)&&g(e[0],`-`)?`remove`:g(e.length,2)&&g(e[0],`+`)||g(e.length,1)?`add`:`none`}function Co(e,t){return g(e,`remove`)?Ar(t):g(e,`add`)?St(t):t}function wo(e){return g(e.length,2)&&g(e[0],`-`)?`remove`:g(e.length,2)&&g(e[0],`+`)||g(e.length,1)?`add`:`none`}function To(e){return g(e.length,2)?[e[1]]:[]}function Eo(e){return d(e[6])&&g(e[6].length,1)?Th(Pn(e[3]),e[5],e[6][0],xo(e[1],Co(e[8],e[10]))):Th(Pn(e[3]),e[5],ht(e[3]),xo(e[1],Co(e[8],e[10])))}function Do(e){return ht(e)}function Oo(e){return BigInt(e)}function ko(e){return parseFloat(e)}function Ao(e){return g(e,`true`)}function jo(e){return e}function Mo(e){return null}function No(e){return{[e[0]]:e[2]}}function Po(e){return Ui(e)}function Fo(e){return e.reduce((e,n)=>t(e,n),{})}function Io(e){return Fo(e[1])}function Lo(e){return Ui(e)}function Ro(e){return e[1]}function zo(e){return e}function Bo(e){return An()}function Vo(e){return Zn()}function Ho(e){return Kn()}function Uo(e){return In()}function Wo(e){return E()}function Go(e){return M(e)}function Ko(e){return e}function qo(e){return P(e[1])}function Jo(e){return e.length===3?[...e[0],...e[2]]:e.length===1?[...e[0]]:[]}function Yo(e){return[e[0],...e[1]]}function Xo(e){return e}function Zo(e){return e[1]}function Qo(e){return Ui(e)}function $o(e){return g(e.length,2)?e[1]:[]}function es(e){let t=e[2],n=e[3],[r,i]=e[4],a=g(x(i).length,0)?{}:{patternProperties:i};return{[e[1]]:_t(t,xf(n,r,a))}}function ts(e){let t=e[2],[n,r]=e[3],i=g(x(r).length,0)?{}:{patternProperties:r};return{[e[1]]:xf(t,n,i)}}function ns(e){return{[e[1]]:_t(e[2],e[4])}}function rs(e){return{[e[1]]:e[3]}}function is(e){return null}function as(e){return e}function os(e){return eo(Ui(e))}function ss(e){return e[1]}function cs(e){let n=e[0],r=e[1];return o_(t(n,r[0]))}function ls(e){return e}function us(e){return g(e.length,2)}function L(e,t,n){return us(e)?t(e[0],e[1]):n()}function ds(e,t){return g(t.indexOf(e),0)?[e,t.slice(e.length)]:[]}function R(e,t){for(let n=0;nString.fromCharCode(e+n))}const ps=[...fs(97,122),...fs(65,90)],ms=fs(49,57),hs=[`0`,...ms];function gs(e){let t=e.indexOf(`*/`);return g(t,-1)?``:e.slice(t+2)}function _s(e){let t=e.indexOf(` +`);return g(t,-1)?``:e.slice(t)}function vs(e){return e.replace(/^[ \t\r\f\v]+/,``)}function ys(e){let t=vs(e);return t.startsWith(`/*`)?ys(gs(t.slice(2))):t.startsWith(`//`)?ys(_s(t.slice(2))):t}function bs(e){let t=e.trimStart();return t.startsWith(`/*`)?bs(gs(t.slice(2))):t.startsWith(`//`)?bs(_s(t.slice(2))):t}function xs(e,t){return L(R([e],t),(e,t)=>[e,t],()=>[``,t])}function Ss(e,t){return e.includes(t)}function Cs(e,t,n,r=``){return L(R(e,n),(n,i)=>Ss(t,n)?Cs(e,t,i,r):Cs(e,t,i,`${r}${n}`),()=>[r,n])}function ws(e){return R(ms,e)}const Ts=[...hs,`_`];function Es(e){return Cs(Ts,[`_`],e)}function Ds(e){return L(R([`0`],e),(e,t)=>[e,t],()=>L(ws(e),(e,t)=>L(Es(t),(t,n)=>[`${e}${t}`,n],()=>[]),()=>[]))}function Os(e){return Ds(bs(e))}function ks(e){return xs(`-`,e)}function As(e){return L(ks(e),(e,t)=>L(Os(t),(t,n)=>[`${e}${t}`,n],()=>[]),()=>[])}function js(e){return As(bs(e))}function Ms(e){return L(js(e),(e,t)=>L(R([`n`],t),(t,n)=>[`${e}`,n],()=>[]),()=>[])}function Ns(e){return Ms(e)}function Ps(e,t){return R([e],t)}function z(e,t){return g(e,``)?[``,t]:e.startsWith(` +`)?Ps(e,ys(t)):e.startsWith(` `)?Ps(e,t):Ps(e,bs(t))}const Fs=[...ps,`_`,`$`];function Is(e){return R(Fs,e)}const Ls=[...Fs,...hs];function Rs(e,t=``){return L(R(Ls,e),(e,n)=>Rs(n,`${t}${e}`),()=>[t,e])}function zs(e){return L(Is(e),(e,t)=>L(Rs(t),(t,n)=>[`${e}${t}`,n],()=>[]),()=>[])}function B(e){return zs(bs(e))}const Bs=[...hs,`_`];function Vs(e){return us(R([`.`],e))}function Hs(e){return L(Cs(Bs,[`_`],e),(e,t)=>g(e,``)?[]:[e,t],()=>[])}function Us(e){return L(R([`.`],e),(e,t)=>L(Hs(t),(t,n)=>[`0${e}${t}`,n],()=>[]),()=>[])}function Ws(e){return L(Os(e),(e,t)=>L(R([`.`],t),(t,n)=>L(Hs(n),(n,r)=>[`${e}${t}${n}`,r],()=>[`${e}`,n]),()=>[`${e}`,t]),()=>[])}function Gs(e){return Vs(e)?Us(e):Ws(e)}function Ks(e){return Gs(bs(e))}function qs(e){return xs(`-`,e)}function Js(e){return L(qs(e),(e,t)=>L(Ks(t),(t,n)=>[`${e}${t}`,n],()=>[]),()=>[])}function Ys(e){return Js(bs(e))}function Xs(e){return g(e,``)?[]:[e.slice(0,1),e.slice(1)]}function Zs(e,t){return y(e,(e,n)=>t.startsWith(e)?!0:Zs(n,t),()=>!1)}function Qs(e,t,n=``){return L(Xs(t),(r,i)=>Zs(e,t)?[n,t]:Qs(e,i,`${n}${r}`),()=>[])}function $s(e,t,n){return L(R([e],n),(e,n)=>L(Qs([t],n),(e,n)=>L(R([t],n),(t,n)=>[`${e}`,n],()=>[]),()=>[]),()=>[])}function ec(e,t,n){return L(R([e],n),(e,n)=>L(Qs([` +`,t],n),(e,n)=>L(R([t],n),(t,n)=>[`${e}`,n],()=>[]),()=>[]),()=>[])}function tc(e,t,n,r){return n?$s(e,t,bs(r)):ec(e,t,bs(r))}function nc(e,t){return R(e,t)}function rc(e,t){return tc(e,e,!1,t)}function ic(e,t){return L(nc(e,t),(e,t)=>rc(e,`${e}${t}`),()=>[])}function ac(e,t){return ic(e,bs(t))}function oc(e,t){return L(Qs(e,t),(e,t)=>g(e,``)?[]:[e,t],()=>[])}const V=(e,t,n=()=>[])=>e.length===2?t(e):n(),sc=e=>V(V(B(e),([e,t])=>V(z(`extends`,t),([t,n])=>V(H(n),([n,r])=>V(z(`=`,r),([r,i])=>V(H(i),([i,a])=>[[e,t,n,r,i],a]))))),([e,t])=>[Wi(e),t]),cc=e=>V(V(B(e),([e,t])=>V(z(`extends`,t),([t,n])=>V(H(n),([n,r])=>[[e,t,n],r]))),([e,t])=>[Gi(e),t]),lc=e=>V(V(B(e),([e,t])=>V(z(`=`,t),([t,n])=>V(H(n),([n,r])=>[[e,t,n],r]))),([e,t])=>[Ki(e),t]),uc=e=>V(B(e),([e,t])=>[qi(e),t]),dc=e=>V(V(sc(e),([e,t])=>[e,t],()=>V(cc(e),([e,t])=>[e,t],()=>V(lc(e),([e,t])=>[e,t],()=>V(uc(e),([e,t])=>[e,t],()=>[])))),([e,t])=>[Ji(e),t]),fc=(e,t=[])=>V(V(dc(e),([e,t])=>V(z(`,`,t),([t,n])=>[[e,t],n])),([e,n])=>fc(n,[...t,e]),()=>[t,e]),pc=e=>V(V(fc(e),([e,t])=>V(V(V(dc(t),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>V([[],t],([e,t])=>[e,t],()=>[])),([t,n])=>[[e,t],n])),([e,t])=>[Yi(e),t]),mc=e=>V(V(z(`<`,e),([e,t])=>V(pc(t),([t,n])=>V(z(`>`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[Xi(e),t]),hc=(e,t=[])=>V(V(H(e),([e,t])=>V(z(`,`,t),([t,n])=>[[e,t],n])),([e,n])=>hc(n,[...t,e]),()=>[t,e]),gc=e=>V(V(hc(e),([e,t])=>V(V(V(H(t),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>V([[],t],([e,t])=>[e,t],()=>[])),([t,n])=>[[e,t],n])),([e,t])=>[Zi(e),t]),_c=e=>V(V(z(`<`,e),([e,t])=>V(gc(t),([t,n])=>V(z(`>`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[Qi(e),t]),vc=e=>V(V(B(e),([e,t])=>V(_c(t),([t,n])=>[[e,t],n])),([e,t])=>[$i(e),t]),yc=e=>V(V(V(z(`;`,e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>V([[],e],([e,t])=>[e,t],()=>[])),([e,t])=>[ea(e),t]),bc=e=>V(z(`string`,e),([e,t])=>[ta(e),t]),xc=e=>V(z(`number`,e),([e,t])=>[na(e),t]),Sc=e=>V(z(`boolean`,e),([e,t])=>[ra(e),t]),Cc=e=>V(z(`undefined`,e),([e,t])=>[ia(e),t]),wc=e=>V(z(`null`,e),([e,t])=>[aa(e),t]),Tc=e=>V(z(`integer`,e),([e,t])=>[oa(e),t]),Ec=e=>V(z(`bigint`,e),([e,t])=>[sa(e),t]),Dc=e=>V(z(`unknown`,e),([e,t])=>[ca(e),t]),Oc=e=>V(z(`any`,e),([e,t])=>[la(e),t]),kc=e=>V(z(`object`,e),([e,t])=>[ua(e),t]),Ac=e=>V(z(`never`,e),([e,t])=>[da(e),t]),jc=e=>V(z(`symbol`,e),([e,t])=>[fa(e),t]),Mc=e=>V(z(`void`,e),([e,t])=>[pa(e),t]),Nc=e=>V(z(`this`,e),([e,t])=>[ma(e),t]),Pc=e=>V(V(z("${",e),([e,t])=>V(H(t),([t,n])=>V(z(`}`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[ya(e),t]),Fc=e=>V(Qs(["${","`"],e),([e,t])=>[ba(e),t]),Ic=e=>V(V(V(Fc(e),([e,t])=>V(Pc(t),([t,n])=>V(Ic(n),([n,r])=>[[e,t,n],r]))),([e,t])=>[e,t],()=>V(V(Fc(e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>V(V(Fc(e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>[]))),([e,t])=>[xa(e),t]),Lc=e=>V(V(z("`",e),([e,t])=>V(Ic(t),([t,n])=>V(z("`",n),([n,r])=>[[e,t,n],r]))),([e,t])=>[Sa(e),t]),Rc=e=>V(Lc(e),([e,t])=>[Ca(e),t]),zc=e=>V(V(V(z(`if`,e),([e,t])=>V(H(t),([t,n])=>V(z(`then`,n),([n,r])=>V(H(r),([r,i])=>V(z(`else`,i),([i,a])=>V(H(a),([a,o])=>[[e,t,n,r,i,a],o])))))),([e,t])=>[e,t],()=>V(V(z(`if`,e),([e,t])=>V(H(t),([t,n])=>V(z(`then`,n),([n,r])=>V(H(r),([r,i])=>[[e,t,n,r],i])))),([e,t])=>[e,t],()=>[])),([e,t])=>[wa(e),t]),Bc=e=>V(Ns(e),([e,t])=>[ha(e),t]),Vc=e=>V(V(z(`true`,e),([e,t])=>[e,t],()=>V(z(`false`,e),([e,t])=>[e,t],()=>[])),([e,t])=>[ga(e),t]),Hc=e=>V(Ys(e),([e,t])=>[_a(e),t]),Uc=e=>V(ac([`'`,`"`],e),([e,t])=>[va(e),t]),Wc=e=>V(V(V(z(`keyof`,e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>V([[],e],([e,t])=>[e,t],()=>[])),([e,t])=>[Ta(e),t]),Gc=(e,t=[])=>V(V(V(z(`[`,e),([e,t])=>V(H(t),([t,n])=>V(z(`]`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[e,t],()=>V(V(z(`[`,e),([e,t])=>V(z(`]`,t),([t,n])=>[[e,t],n])),([e,t])=>[e,t],()=>[])),([e,n])=>Gc(n,[...t,e]),()=>[t,e]),Kc=e=>V(Gc(e),([e,t])=>[Ea(e),t]),qc=e=>V(V(V(z(`extends`,e),([e,t])=>V(H(t),([t,n])=>V(z(`?`,n),([n,r])=>V(H(r),([r,i])=>V(z(`:`,i),([i,a])=>V(H(a),([a,o])=>[[e,t,n,r,i,a],o])))))),([e,t])=>[e,t],()=>V([[],e],([e,t])=>[e,t],()=>[])),([e,t])=>[Da(e),t]),Jc=e=>V(V(V(z(`(`,e),([e,t])=>V(H(t),([t,n])=>V(z(`)`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[e,t],()=>V(bc(e),([e,t])=>[e,t],()=>V(xc(e),([e,t])=>[e,t],()=>V(Sc(e),([e,t])=>[e,t],()=>V(Cc(e),([e,t])=>[e,t],()=>V(wc(e),([e,t])=>[e,t],()=>V(Tc(e),([e,t])=>[e,t],()=>V(Ec(e),([e,t])=>[e,t],()=>V(Dc(e),([e,t])=>[e,t],()=>V(Oc(e),([e,t])=>[e,t],()=>V(kc(e),([e,t])=>[e,t],()=>V(Ac(e),([e,t])=>[e,t],()=>V(jc(e),([e,t])=>[e,t],()=>V(Mc(e),([e,t])=>[e,t],()=>V(Nc(e),([e,t])=>[e,t],()=>V(Bc(e),([e,t])=>[e,t],()=>V(Vc(e),([e,t])=>[e,t],()=>V(Hc(e),([e,t])=>[e,t],()=>V(Uc(e),([e,t])=>[e,t],()=>V(Rc(e),([e,t])=>[e,t],()=>V(zc(e),([e,t])=>[e,t],()=>V(_l(e),([e,t])=>[e,t],()=>V(El(e),([e,t])=>[e,t],()=>V(Il(e),([e,t])=>[e,t],()=>V(Fl(e),([e,t])=>[e,t],()=>V(Bl(e),([e,t])=>[e,t],()=>V(vc(e),([e,t])=>[e,t],()=>V(Vl(e),([e,t])=>[e,t],()=>[])))))))))))))))))))))))))))),([e,t])=>[Oa(e),t]),Yc=e=>V(V(V(z(`with`,e),([e,t])=>V(Zl(t),([t,n])=>[[e,t],n])),([e,t])=>[e,t],()=>V([[],e],([e,t])=>[e,t],()=>[])),([e,t])=>[ka(e),t]),Xc=e=>V(V(Wc(e),([e,t])=>V(Jc(t),([t,n])=>V(Kc(n),([n,r])=>V(qc(r),([r,i])=>V(Yc(i),([i,a])=>[[e,t,n,r,i],a]))))),([e,t])=>[Na(e),t]),Zc=e=>V(V(V(z(`&`,e),([e,t])=>V(Xc(t),([t,n])=>V(Zc(n),([n,r])=>[[e,t,n],r]))),([e,t])=>[e,t],()=>V([[],e],([e,t])=>[e,t],()=>[])),([e,t])=>[Fa(e),t]),Qc=e=>V(V(Xc(e),([e,t])=>V(Zc(t),([t,n])=>[[e,t],n])),([e,t])=>[Ia(e),t]),$c=e=>V(V(V(z(`|`,e),([e,t])=>V(Qc(t),([t,n])=>V($c(n),([n,r])=>[[e,t,n],r]))),([e,t])=>[e,t],()=>V([[],e],([e,t])=>[e,t],()=>[])),([e,t])=>[La(e),t]),el=e=>V(V(Qc(e),([e,t])=>V($c(t),([t,n])=>[[e,t],n])),([e,t])=>[Ra(e),t]),tl=e=>V(V(z(`readonly`,e),([e,t])=>V(el(t),([t,n])=>[[e,t],n])),([e,t])=>[za(e),t]),nl=e=>V(V(z(`|`,e),([e,t])=>V(el(t),([t,n])=>[[e,t],n])),([e,t])=>[Ba(e),t]),rl=e=>V(V(mc(e),([e,t])=>V(z(`=`,t),([t,n])=>V(H(n),([n,r])=>[[e,t,n],r]))),([e,t])=>[Va(e),t]),il=e=>V(V(V(z(`infer`,e),([e,t])=>V(B(t),([t,n])=>V(z(`extends`,n),([n,r])=>V(el(r),([r,i])=>[[e,t,n,r],i])))),([e,t])=>[e,t],()=>V(V(z(`infer`,e),([e,t])=>V(B(t),([t,n])=>[[e,t],n])),([e,t])=>[e,t],()=>[])),([e,t])=>[Ha(e),t]),H=e=>V(V(il(e),([e,t])=>[e,t],()=>V(nl(e),([e,t])=>[e,t],()=>V(tl(e),([e,t])=>[e,t],()=>V(el(e),([e,t])=>[e,t],()=>[])))),([e,t])=>[Ua(e),t]),al=e=>V(Ys(e),([e,t])=>[Wa(e),t]),ol=e=>V(B(e),([e,t])=>[Ga(e),t]),sl=e=>V(ac([`'`,`"`],e),([e,t])=>[Ka(e),t]),cl=e=>V(V(z(`[`,e),([e,t])=>V(B(t),([t,n])=>V(z(`:`,n),([n,r])=>V(V(Tc(r),([e,t])=>[e,t],()=>V(xc(r),([e,t])=>[e,t],()=>V(bc(r),([e,t])=>[e,t],()=>V(jc(r),([e,t])=>[e,t],()=>[])))),([r,i])=>V(z(`]`,i),([i,a])=>[[e,t,n,r,i],a]))))),([e,t])=>[qa(e),t]),ll=e=>V(V(al(e),([e,t])=>[e,t],()=>V(ol(e),([e,t])=>[e,t],()=>V(sl(e),([e,t])=>[e,t],()=>V(cl(e),([e,t])=>[e,t],()=>[])))),([e,t])=>[Ja(e),t]),ul=e=>V(V(V(z(`readonly`,e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>V([[],e],([e,t])=>[e,t],()=>[])),([e,t])=>[Ya(e),t]),dl=e=>V(V(V(z(`?`,e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>V([[],e],([e,t])=>[e,t],()=>[])),([e,t])=>[Xa(e),t]),fl=e=>V(V(ul(e),([e,t])=>V(ll(t),([t,n])=>V(dl(n),([n,r])=>V(z(`:`,r),([r,i])=>V(H(i),([i,a])=>[[e,t,n,r,i],a]))))),([e,t])=>[Za(e),t]),pl=e=>V(V(V(z(`,`,e),([e,t])=>V(z(` `,t),([t,n])=>[[e,t],n])),([e,t])=>[e,t],()=>V(V(z(`;`,e),([e,t])=>V(z(` `,t),([t,n])=>[[e,t],n])),([e,t])=>[e,t],()=>V(V(z(`,`,e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>V(V(z(`;`,e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>V(V(z(` -`,e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>[]))))),([e,t])=>[ao(e),t]),xl=(e,t=[])=>V(V(yl(e),([e,t])=>V(bl(t),([t,n])=>[[e,t],n])),([e,n])=>xl(n,[...t,e]),()=>[t,e]),Sl=e=>V(V(xl(e),([e,t])=>V(V(V(yl(t),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>V([[],t],([e,t])=>[e,t],()=>[])),([t,n])=>[[e,t],n])),([e,t])=>[oo(e),t]),Cl=e=>V(V(z(`{`,e),([e,t])=>V(Sl(t),([t,n])=>V(z(`}`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[co(e),t]),wl=e=>V(Cl(e),([e,t])=>[lo(e),t]),Tl=e=>V(V(V(B(e),([e,t])=>V(z(`?`,t),([t,n])=>V(z(`:`,n),([n,r])=>V(z(`readonly`,r),([r,i])=>V(H(i),([i,a])=>[[e,t,n,r,i],a]))))),([e,t])=>[e,t],()=>V(V(B(e),([e,t])=>V(z(`:`,t),([t,n])=>V(z(`readonly`,n),([n,r])=>V(H(r),([r,i])=>[[e,t,n,r],i])))),([e,t])=>[e,t],()=>V(V(B(e),([e,t])=>V(z(`?`,t),([t,n])=>V(z(`:`,n),([n,r])=>V(H(r),([r,i])=>[[e,t,n,r],i])))),([e,t])=>[e,t],()=>V(V(B(e),([e,t])=>V(z(`:`,t),([t,n])=>V(H(n),([n,r])=>[[e,t,n],r]))),([e,t])=>[e,t],()=>[])))),([e,t])=>[uo(e),t]),El=e=>V(V(z(`readonly`,e),([e,t])=>V(H(t),([t,n])=>V(z(`?`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[fo(e),t]),Dl=e=>V(V(z(`readonly`,e),([e,t])=>V(H(t),([t,n])=>[[e,t],n])),([e,t])=>[po(e),t]),Ol=e=>V(V(H(e),([e,t])=>V(z(`?`,t),([t,n])=>[[e,t],n])),([e,t])=>[mo(e),t]),kl=e=>V(V(Tl(e),([e,t])=>[e,t],()=>V(El(e),([e,t])=>[e,t],()=>V(Dl(e),([e,t])=>[e,t],()=>V(Ol(e),([e,t])=>[e,t],()=>V(H(e),([e,t])=>[e,t],()=>[]))))),([e,t])=>[ho(e),t]),Al=e=>V(V(V(z(`...`,e),([e,t])=>V(kl(t),([t,n])=>[[e,t],n])),([e,t])=>[e,t],()=>V(V(kl(e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>[])),([e,t])=>[go(e),t]),jl=(e,t=[])=>V(V(Al(e),([e,t])=>V(z(`,`,t),([t,n])=>[[e,t],n])),([e,n])=>jl(n,[...t,e]),()=>[t,e]),Ml=e=>V(V(jl(e),([e,t])=>V(V(V(Al(t),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>V([[],t],([e,t])=>[e,t],()=>[])),([t,n])=>[[e,t],n])),([e,t])=>[_o(e),t]),Nl=e=>V(V(z(`[`,e),([e,t])=>V(Ml(t),([t,n])=>V(z(`]`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[vo(e),t]),Pl=e=>V(V(B(e),([e,t])=>V(z(`?`,t),([t,n])=>V(z(`:`,n),([n,r])=>V(z(`readonly`,r),([r,i])=>V(H(i),([i,a])=>[[e,t,n,r,i],a]))))),([e,t])=>[yo(e),t]),Fl=e=>V(V(B(e),([e,t])=>V(z(`:`,t),([t,n])=>V(z(`readonly`,n),([n,r])=>V(H(r),([r,i])=>[[e,t,n,r],i])))),([e,t])=>[bo(e),t]),Il=e=>V(V(B(e),([e,t])=>V(z(`?`,t),([t,n])=>V(z(`:`,n),([n,r])=>V(H(r),([r,i])=>[[e,t,n,r],i])))),([e,t])=>[xo(e),t]),Ll=e=>V(V(B(e),([e,t])=>V(z(`:`,t),([t,n])=>V(H(n),([n,r])=>[[e,t,n],r]))),([e,t])=>[So(e),t]),Rl=e=>V(V(Pl(e),([e,t])=>[e,t],()=>V(Fl(e),([e,t])=>[e,t],()=>V(Il(e),([e,t])=>[e,t],()=>V(Ll(e),([e,t])=>[e,t],()=>[])))),([e,t])=>[Co(e),t]),zl=e=>V(V(V(z(`...`,e),([e,t])=>V(Rl(t),([t,n])=>[[e,t],n])),([e,t])=>[e,t],()=>V(V(Rl(e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>[])),([e,t])=>[wo(e),t]),Bl=(e,t=[])=>V(V(zl(e),([e,t])=>V(z(`,`,t),([t,n])=>[[e,t],n])),([e,n])=>Bl(n,[...t,e]),()=>[t,e]),Vl=e=>V(V(Bl(e),([e,t])=>V(V(V(zl(t),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>V([[],t],([e,t])=>[e,t],()=>[])),([t,n])=>[[e,t],n])),([e,t])=>[To(e),t]),Hl=e=>V(V(z(`(`,e),([e,t])=>V(Vl(t),([t,n])=>V(z(`)`,n),([n,r])=>V(z(`=>`,r),([r,i])=>V(H(i),([i,a])=>[[e,t,n,r,i],a]))))),([e,t])=>[Eo(e),t]),Ul=e=>V(V(z(`new`,e),([e,t])=>V(z(`(`,t),([t,n])=>V(Vl(n),([n,r])=>V(z(`)`,r),([r,i])=>V(z(`=>`,i),([i,a])=>V(H(a),([a,o])=>[[e,t,n,r,i,a],o])))))),([e,t])=>[Do(e),t]),Wl=e=>V(V(V(z(`+`,e),([e,t])=>V(z(`readonly`,t),([t,n])=>[[e,t],n])),([e,t])=>[e,t],()=>V(V(z(`-`,e),([e,t])=>V(z(`readonly`,t),([t,n])=>[[e,t],n])),([e,t])=>[e,t],()=>V(V(z(`readonly`,e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>V([[],e],([e,t])=>[e,t],()=>[])))),([e,t])=>[ko(e),t]),Gl=e=>V(V(V(z(`+`,e),([e,t])=>V(z(`?`,t),([t,n])=>[[e,t],n])),([e,t])=>[e,t],()=>V(V(z(`-`,e),([e,t])=>V(z(`?`,t),([t,n])=>[[e,t],n])),([e,t])=>[e,t],()=>V(V(z(`?`,e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>V([[],e],([e,t])=>[e,t],()=>[])))),([e,t])=>[jo(e),t]),Kl=e=>V(V(V(z(`as`,e),([e,t])=>V(H(t),([t,n])=>[[e,t],n])),([e,t])=>[e,t],()=>V([[],e],([e,t])=>[e,t],()=>[])),([e,t])=>[Mo(e),t]),ql=e=>V(V(z(`{`,e),([e,t])=>V(Wl(t),([t,n])=>V(z(`[`,n),([n,r])=>V(B(r),([r,i])=>V(z(`in`,i),([i,a])=>V(H(a),([a,o])=>V(Kl(o),([o,s])=>V(z(`]`,s),([s,c])=>V(Gl(c),([c,l])=>V(z(`:`,l),([l,u])=>V(H(u),([u,ee])=>V(Ec(ee),([ee,te])=>V(z(`}`,te),([te,ne])=>[[e,t,n,r,i,a,o,s,c,l,u,ee,te],ne]))))))))))))),([e,t])=>[No(e),t]),Jl=e=>V(B(e),([e,t])=>[Po(e),t]),Yl=e=>V(Bs(e),([e,t])=>[Fo(e),t]),Xl=e=>V(nc(e),([e,t])=>[Io(e),t]),Zl=e=>V(V(z(`true`,e),([e,t])=>[e,t],()=>V(z(`false`,e),([e,t])=>[e,t],()=>[])),([e,t])=>[Lo(e),t]),Ql=e=>V(fc([`"`,`'`],e),([e,t])=>[Ro(e),t]),$l=e=>V(z(`null`,e),([e,t])=>[zo(e),t]),eu=e=>V(z(`undefined`,e),([e,t])=>[void 0,t]),tu=e=>V(V(gl(e),([e,t])=>V(z(`:`,t),([t,n])=>V(cu(n),([n,r])=>[[e,t,n],r]))),([e,t])=>[Bo(e),t]),nu=(e,t=[])=>V(V(tu(e),([e,t])=>V(bl(t),([t,n])=>[[e,t],n])),([e,n])=>nu(n,[...t,e]),()=>[t,e]),ru=e=>V(V(nu(e),([e,t])=>V(V(V(tu(t),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>V([[],t],([e,t])=>[e,t],()=>[])),([t,n])=>[[e,t],n])),([e,t])=>[Vo(e),t]),iu=e=>V(V(z(`{`,e),([e,t])=>V(ru(t),([t,n])=>V(z(`}`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[Uo(e),t]),au=(e,t=[])=>V(V(cu(e),([e,t])=>V(z(`,`,t),([t,n])=>[[e,t],n])),([e,n])=>au(n,[...t,e]),()=>[t,e]),ou=e=>V(V(au(e),([e,t])=>V(V(V(cu(t),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>V([[],t],([e,t])=>[e,t],()=>[])),([t,n])=>[[e,t],n])),([e,t])=>[Wo(e),t]),su=e=>V(V(z(`[`,e),([e,t])=>V(ou(t),([t,n])=>V(z(`]`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[Go(e),t]),cu=e=>V(V(Yl(e),([e,t])=>[e,t],()=>V(Xl(e),([e,t])=>[e,t],()=>V(Zl(e),([e,t])=>[e,t],()=>V(Ql(e),([e,t])=>[e,t],()=>V($l(e),([e,t])=>[e,t],()=>V(eu(e),([e,t])=>[e,t],()=>V(iu(e),([e,t])=>[e,t],()=>V(su(e),([e,t])=>[e,t],()=>[])))))))),([e,t])=>[Ko(e),t]),lu=e=>V(z(`-?(?:0|[1-9][0-9]*)n`,e),([e,t])=>[qo(e),t]),uu=e=>V(z(`.*`,e),([e,t])=>[Jo(e),t]),du=e=>V(z(`-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?`,e),([e,t])=>[Yo(e),t]),fu=e=>V(z(`-?(?:0|[1-9][0-9]*)`,e),([e,t])=>[Xo(e),t]),pu=e=>V(z(`(?!)`,e),([e,t])=>[Zo(e),t]),mu=e=>V(pc([`-?(?:0|[1-9][0-9]*)n`,`.*`,`-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?`,`-?(?:0|[1-9][0-9]*)`,`(?!)`,`(`,`)`,`$`,`|`],e),([e,t])=>[Qo(e),t]),hu=e=>V(V(lu(e),([e,t])=>[e,t],()=>V(uu(e),([e,t])=>[e,t],()=>V(du(e),([e,t])=>[e,t],()=>V(fu(e),([e,t])=>[e,t],()=>V(pu(e),([e,t])=>[e,t],()=>V(gu(e),([e,t])=>[e,t],()=>V(mu(e),([e,t])=>[e,t],()=>[]))))))),([e,t])=>[$o(e),t]),gu=e=>V(V(z(`(`,e),([e,t])=>V(yu(t),([t,n])=>V(z(`)`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[es(e),t]),_u=e=>V(V(V(vu(e),([e,t])=>V(z(`|`,t),([t,n])=>V(_u(n),([n,r])=>[[e,t,n],r]))),([e,t])=>[e,t],()=>V(V(vu(e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>V([[],e],([e,t])=>[e,t],()=>[]))),([e,t])=>[ts(e),t]),vu=e=>V(V(hu(e),([e,t])=>V(yu(t),([t,n])=>[[e,t],n])),([e,t])=>[ns(e),t]),yu=e=>V(V(_u(e),([e,t])=>[e,t],()=>V(vu(e),([e,t])=>[e,t],()=>[])),([e,t])=>[rs(e),t]),bu=e=>V(V(z(`^`,e),([e,t])=>V(yu(t),([t,n])=>V(z(`$`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[is(e),t]),xu=(e,t=[])=>V(V(H(e),([e,t])=>V(z(`,`,t),([t,n])=>[[e,t],n])),([e,n])=>xu(n,[...t,e]),()=>[t,e]),Su=e=>V(V(xu(e),([e,t])=>V(V(V(H(t),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>V([[],t],([e,t])=>[e,t],()=>[])),([t,n])=>[[e,t],n])),([e,t])=>[as(e),t]),Cu=e=>V(V(V(z(`extends`,e),([e,t])=>V(Su(t),([t,n])=>[[e,t],n])),([e,t])=>[e,t],()=>V([[],e],([e,t])=>[e,t],()=>[])),([e,t])=>[os(e),t]),wu=e=>V(V(z(`interface`,e),([e,t])=>V(B(t),([t,n])=>V(xc(n),([n,r])=>V(Cu(r),([r,i])=>V(Cl(i),([i,a])=>[[e,t,n,r,i],a]))))),([e,t])=>[ss(e),t]),Tu=e=>V(V(z(`interface`,e),([e,t])=>V(B(t),([t,n])=>V(Cu(n),([n,r])=>V(Cl(r),([r,i])=>[[e,t,n,r],i])))),([e,t])=>[cs(e),t]),Eu=e=>V(V(z(`type`,e),([e,t])=>V(B(t),([t,n])=>V(xc(n),([n,r])=>V(z(`=`,r),([r,i])=>V(H(i),([i,a])=>[[e,t,n,r,i],a]))))),([e,t])=>[ls(e),t]),Du=e=>V(V(z(`type`,e),([e,t])=>V(B(t),([t,n])=>V(z(`=`,n),([n,r])=>V(H(r),([r,i])=>[[e,t,n,r],i])))),([e,t])=>[us(e),t]),Ou=e=>V(V(V(z(`export`,e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>V([[],e],([e,t])=>[e,t],()=>[])),([e,t])=>[ds(e),t]),ku=e=>V(V(V(z(`;`,e),([e,t])=>V(z(` +`,e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>[]))))),([e,t])=>[Qa(e),t]),ml=(e,t=[])=>V(V(fl(e),([e,t])=>V(pl(t),([t,n])=>[[e,t],n])),([e,n])=>ml(n,[...t,e]),()=>[t,e]),hl=e=>V(V(ml(e),([e,t])=>V(V(V(fl(t),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>V([[],t],([e,t])=>[e,t],()=>[])),([t,n])=>[[e,t],n])),([e,t])=>[$a(e),t]),gl=e=>V(V(z(`{`,e),([e,t])=>V(hl(t),([t,n])=>V(z(`}`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[to(e),t]),_l=e=>V(gl(e),([e,t])=>[no(e),t]),vl=e=>V(V(V(B(e),([e,t])=>V(z(`?`,t),([t,n])=>V(z(`:`,n),([n,r])=>V(z(`readonly`,r),([r,i])=>V(H(i),([i,a])=>[[e,t,n,r,i],a]))))),([e,t])=>[e,t],()=>V(V(B(e),([e,t])=>V(z(`:`,t),([t,n])=>V(z(`readonly`,n),([n,r])=>V(H(r),([r,i])=>[[e,t,n,r],i])))),([e,t])=>[e,t],()=>V(V(B(e),([e,t])=>V(z(`?`,t),([t,n])=>V(z(`:`,n),([n,r])=>V(H(r),([r,i])=>[[e,t,n,r],i])))),([e,t])=>[e,t],()=>V(V(B(e),([e,t])=>V(z(`:`,t),([t,n])=>V(H(n),([n,r])=>[[e,t,n],r]))),([e,t])=>[e,t],()=>[])))),([e,t])=>[ro(e),t]),yl=e=>V(V(z(`readonly`,e),([e,t])=>V(H(t),([t,n])=>V(z(`?`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[io(e),t]),bl=e=>V(V(z(`readonly`,e),([e,t])=>V(H(t),([t,n])=>[[e,t],n])),([e,t])=>[ao(e),t]),xl=e=>V(V(H(e),([e,t])=>V(z(`?`,t),([t,n])=>[[e,t],n])),([e,t])=>[oo(e),t]),Sl=e=>V(V(vl(e),([e,t])=>[e,t],()=>V(yl(e),([e,t])=>[e,t],()=>V(bl(e),([e,t])=>[e,t],()=>V(xl(e),([e,t])=>[e,t],()=>V(H(e),([e,t])=>[e,t],()=>[]))))),([e,t])=>[so(e),t]),Cl=e=>V(V(V(z(`...`,e),([e,t])=>V(Sl(t),([t,n])=>[[e,t],n])),([e,t])=>[e,t],()=>V(V(Sl(e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>[])),([e,t])=>[co(e),t]),wl=(e,t=[])=>V(V(Cl(e),([e,t])=>V(z(`,`,t),([t,n])=>[[e,t],n])),([e,n])=>wl(n,[...t,e]),()=>[t,e]),Tl=e=>V(V(wl(e),([e,t])=>V(V(V(Cl(t),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>V([[],t],([e,t])=>[e,t],()=>[])),([t,n])=>[[e,t],n])),([e,t])=>[lo(e),t]),El=e=>V(V(z(`[`,e),([e,t])=>V(Tl(t),([t,n])=>V(z(`]`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[uo(e),t]),Dl=e=>V(V(B(e),([e,t])=>V(z(`?`,t),([t,n])=>V(z(`:`,n),([n,r])=>V(z(`readonly`,r),([r,i])=>V(H(i),([i,a])=>[[e,t,n,r,i],a]))))),([e,t])=>[fo(e),t]),Ol=e=>V(V(B(e),([e,t])=>V(z(`:`,t),([t,n])=>V(z(`readonly`,n),([n,r])=>V(H(r),([r,i])=>[[e,t,n,r],i])))),([e,t])=>[po(e),t]),kl=e=>V(V(B(e),([e,t])=>V(z(`?`,t),([t,n])=>V(z(`:`,n),([n,r])=>V(H(r),([r,i])=>[[e,t,n,r],i])))),([e,t])=>[mo(e),t]),Al=e=>V(V(B(e),([e,t])=>V(z(`:`,t),([t,n])=>V(H(n),([n,r])=>[[e,t,n],r]))),([e,t])=>[ho(e),t]),jl=e=>V(V(Dl(e),([e,t])=>[e,t],()=>V(Ol(e),([e,t])=>[e,t],()=>V(kl(e),([e,t])=>[e,t],()=>V(Al(e),([e,t])=>[e,t],()=>[])))),([e,t])=>[go(e),t]),Ml=e=>V(V(V(z(`...`,e),([e,t])=>V(jl(t),([t,n])=>[[e,t],n])),([e,t])=>[e,t],()=>V(V(jl(e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>[])),([e,t])=>[_o(e),t]),Nl=(e,t=[])=>V(V(Ml(e),([e,t])=>V(z(`,`,t),([t,n])=>[[e,t],n])),([e,n])=>Nl(n,[...t,e]),()=>[t,e]),Pl=e=>V(V(Nl(e),([e,t])=>V(V(V(Ml(t),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>V([[],t],([e,t])=>[e,t],()=>[])),([t,n])=>[[e,t],n])),([e,t])=>[vo(e),t]),Fl=e=>V(V(z(`(`,e),([e,t])=>V(Pl(t),([t,n])=>V(z(`)`,n),([n,r])=>V(z(`=>`,r),([r,i])=>V(H(i),([i,a])=>[[e,t,n,r,i],a]))))),([e,t])=>[yo(e),t]),Il=e=>V(V(z(`new`,e),([e,t])=>V(z(`(`,t),([t,n])=>V(Pl(n),([n,r])=>V(z(`)`,r),([r,i])=>V(z(`=>`,i),([i,a])=>V(H(a),([a,o])=>[[e,t,n,r,i,a],o])))))),([e,t])=>[bo(e),t]),Ll=e=>V(V(V(z(`+`,e),([e,t])=>V(z(`readonly`,t),([t,n])=>[[e,t],n])),([e,t])=>[e,t],()=>V(V(z(`-`,e),([e,t])=>V(z(`readonly`,t),([t,n])=>[[e,t],n])),([e,t])=>[e,t],()=>V(V(z(`readonly`,e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>V([[],e],([e,t])=>[e,t],()=>[])))),([e,t])=>[So(e),t]),Rl=e=>V(V(V(z(`+`,e),([e,t])=>V(z(`?`,t),([t,n])=>[[e,t],n])),([e,t])=>[e,t],()=>V(V(z(`-`,e),([e,t])=>V(z(`?`,t),([t,n])=>[[e,t],n])),([e,t])=>[e,t],()=>V(V(z(`?`,e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>V([[],e],([e,t])=>[e,t],()=>[])))),([e,t])=>[wo(e),t]),zl=e=>V(V(V(z(`as`,e),([e,t])=>V(H(t),([t,n])=>[[e,t],n])),([e,t])=>[e,t],()=>V([[],e],([e,t])=>[e,t],()=>[])),([e,t])=>[To(e),t]),Bl=e=>V(V(z(`{`,e),([e,t])=>V(Ll(t),([t,n])=>V(z(`[`,n),([n,r])=>V(B(r),([r,i])=>V(z(`in`,i),([i,a])=>V(H(a),([a,o])=>V(zl(o),([o,s])=>V(z(`]`,s),([s,c])=>V(Rl(c),([c,l])=>V(z(`:`,l),([l,u])=>V(H(u),([u,ee])=>V(yc(ee),([ee,te])=>V(z(`}`,te),([te,ne])=>[[e,t,n,r,i,a,o,s,c,l,u,ee,te],ne]))))))))))))),([e,t])=>[Eo(e),t]),Vl=e=>V(B(e),([e,t])=>[Do(e),t]),Hl=e=>V(Ns(e),([e,t])=>[Oo(e),t]),Ul=e=>V(Ys(e),([e,t])=>[ko(e),t]),Wl=e=>V(V(z(`true`,e),([e,t])=>[e,t],()=>V(z(`false`,e),([e,t])=>[e,t],()=>[])),([e,t])=>[Ao(e),t]),Gl=e=>V(ac([`"`,`'`],e),([e,t])=>[jo(e),t]),Kl=e=>V(z(`null`,e),([e,t])=>[Mo(e),t]),ql=e=>V(z(`undefined`,e),([e,t])=>[void 0,t]),Jl=e=>V(V(ll(e),([e,t])=>V(z(`:`,t),([t,n])=>V(tu(n),([n,r])=>[[e,t,n],r]))),([e,t])=>[No(e),t]),Yl=(e,t=[])=>V(V(Jl(e),([e,t])=>V(pl(t),([t,n])=>[[e,t],n])),([e,n])=>Yl(n,[...t,e]),()=>[t,e]),Xl=e=>V(V(Yl(e),([e,t])=>V(V(V(Jl(t),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>V([[],t],([e,t])=>[e,t],()=>[])),([t,n])=>[[e,t],n])),([e,t])=>[Po(e),t]),Zl=e=>V(V(z(`{`,e),([e,t])=>V(Xl(t),([t,n])=>V(z(`}`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[Io(e),t]),Ql=(e,t=[])=>V(V(tu(e),([e,t])=>V(z(`,`,t),([t,n])=>[[e,t],n])),([e,n])=>Ql(n,[...t,e]),()=>[t,e]),$l=e=>V(V(Ql(e),([e,t])=>V(V(V(tu(t),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>V([[],t],([e,t])=>[e,t],()=>[])),([t,n])=>[[e,t],n])),([e,t])=>[Lo(e),t]),eu=e=>V(V(z(`[`,e),([e,t])=>V($l(t),([t,n])=>V(z(`]`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[Ro(e),t]),tu=e=>V(V(Hl(e),([e,t])=>[e,t],()=>V(Ul(e),([e,t])=>[e,t],()=>V(Wl(e),([e,t])=>[e,t],()=>V(Gl(e),([e,t])=>[e,t],()=>V(Kl(e),([e,t])=>[e,t],()=>V(ql(e),([e,t])=>[e,t],()=>V(Zl(e),([e,t])=>[e,t],()=>V(eu(e),([e,t])=>[e,t],()=>[])))))))),([e,t])=>[zo(e),t]),nu=e=>V(z(`-?(?:0|[1-9][0-9]*)n`,e),([e,t])=>[Bo(e),t]),ru=e=>V(z(`.*`,e),([e,t])=>[Vo(e),t]),iu=e=>V(z(`-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?`,e),([e,t])=>[Ho(e),t]),au=e=>V(z(`-?(?:0|[1-9][0-9]*)`,e),([e,t])=>[Uo(e),t]),ou=e=>V(z(`(?!)`,e),([e,t])=>[Wo(e),t]),su=e=>V(oc([`-?(?:0|[1-9][0-9]*)n`,`.*`,`-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?`,`-?(?:0|[1-9][0-9]*)`,`(?!)`,`(`,`)`,`$`,`|`],e),([e,t])=>[Go(e),t]),cu=e=>V(V(nu(e),([e,t])=>[e,t],()=>V(ru(e),([e,t])=>[e,t],()=>V(iu(e),([e,t])=>[e,t],()=>V(au(e),([e,t])=>[e,t],()=>V(ou(e),([e,t])=>[e,t],()=>V(lu(e),([e,t])=>[e,t],()=>V(su(e),([e,t])=>[e,t],()=>[]))))))),([e,t])=>[Ko(e),t]),lu=e=>V(V(z(`(`,e),([e,t])=>V(fu(t),([t,n])=>V(z(`)`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[qo(e),t]),uu=e=>V(V(V(du(e),([e,t])=>V(z(`|`,t),([t,n])=>V(uu(n),([n,r])=>[[e,t,n],r]))),([e,t])=>[e,t],()=>V(V(du(e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>V([[],e],([e,t])=>[e,t],()=>[]))),([e,t])=>[Jo(e),t]),du=e=>V(V(cu(e),([e,t])=>V(fu(t),([t,n])=>[[e,t],n])),([e,t])=>[Yo(e),t]),fu=e=>V(V(uu(e),([e,t])=>[e,t],()=>V(du(e),([e,t])=>[e,t],()=>[])),([e,t])=>[Xo(e),t]),pu=e=>V(V(z(`^`,e),([e,t])=>V(fu(t),([t,n])=>V(z(`$`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[Zo(e),t]),mu=(e,t=[])=>V(V(H(e),([e,t])=>V(z(`,`,t),([t,n])=>[[e,t],n])),([e,n])=>mu(n,[...t,e]),()=>[t,e]),hu=e=>V(V(mu(e),([e,t])=>V(V(V(H(t),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>V([[],t],([e,t])=>[e,t],()=>[])),([t,n])=>[[e,t],n])),([e,t])=>[Qo(e),t]),gu=e=>V(V(V(z(`extends`,e),([e,t])=>V(hu(t),([t,n])=>[[e,t],n])),([e,t])=>[e,t],()=>V([[],e],([e,t])=>[e,t],()=>[])),([e,t])=>[$o(e),t]),_u=e=>V(V(z(`interface`,e),([e,t])=>V(B(t),([t,n])=>V(mc(n),([n,r])=>V(gu(r),([r,i])=>V(gl(i),([i,a])=>[[e,t,n,r,i],a]))))),([e,t])=>[es(e),t]),vu=e=>V(V(z(`interface`,e),([e,t])=>V(B(t),([t,n])=>V(gu(n),([n,r])=>V(gl(r),([r,i])=>[[e,t,n,r],i])))),([e,t])=>[ts(e),t]),yu=e=>V(V(z(`type`,e),([e,t])=>V(B(t),([t,n])=>V(mc(n),([n,r])=>V(z(`=`,r),([r,i])=>V(H(i),([i,a])=>[[e,t,n,r,i],a]))))),([e,t])=>[ns(e),t]),bu=e=>V(V(z(`type`,e),([e,t])=>V(B(t),([t,n])=>V(z(`=`,n),([n,r])=>V(H(r),([r,i])=>[[e,t,n,r],i])))),([e,t])=>[rs(e),t]),xu=e=>V(V(V(z(`export`,e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>V([[],e],([e,t])=>[e,t],()=>[])),([e,t])=>[is(e),t]),Su=e=>V(V(V(z(`;`,e),([e,t])=>V(z(` `,t),([t,n])=>[[e,t],n])),([e,t])=>[e,t],()=>V(V(z(`;`,e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>V(V(z(` -`,e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>[]))),([e,t])=>[fs(e),t]),Au=(e,t=[])=>V(V(Mu(e),([e,t])=>V(ku(t),([t,n])=>[[e,t],n])),([e,n])=>Au(n,[...t,e]),()=>[t,e]),ju=e=>V(V(Au(e),([e,t])=>V(V(V(Mu(t),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>V([[],t],([e,t])=>[e,t],()=>[])),([t,n])=>[[e,t],n])),([e,t])=>[ps(e),t]),Mu=e=>V(V(Ou(e),([e,t])=>V(V(wu(t),([e,t])=>[e,t],()=>V(Tu(t),([e,t])=>[e,t],()=>V(Eu(t),([e,t])=>[e,t],()=>V(Du(t),([e,t])=>[e,t],()=>[])))),([t,n])=>V(Ec(n),([n,r])=>[[e,t,n],r]))),([e,t])=>[ms(e),t]),Nu=e=>V(V(Mu(e),([e,t])=>V(ju(t),([t,n])=>[[e,t],n])),([e,t])=>[hs(e),t]),Pu=e=>V(V(Nu(e),([e,t])=>[e,t],()=>V(ul(e),([e,t])=>[e,t],()=>V(H(e),([e,t])=>[e,t],()=>[]))),([e,t])=>[gs(e),t]);function Fu(e){return e.join(`|`)}function Iu(e){return e.slice(1,e.length-1)}function Lu(e,t,n){return Ju(t,`${n}${e}`)}function Ru(e,t){return Ju(e,`${t}-?(?:0|[1-9][0-9]*)n`)}function zu(e,t){return Ju(e,`${t}${In}`)}function Bu(e,t){return Ju(e,`${t}${Yn}`)}function Vu(e,t){return qu(P([M(`false`),M(`true`)]),e,t)}function Hu(e,t){return Ju(e,`${t}.*`)}function Uu(e,t,n){return Ju(t,`${n}${Iu(e)}`)}function Wu(e,t,n){return qu(Zu(e,{}),t,n)}function Gu(e,t,n){return qu(ai(e),t,n)}function Ku(e,t,n,r=[]){return y(e,(e,i)=>Ku(i,t,n,[...r,qu(e,[],``)]),()=>Ju(t,`${n}(${Fu(r)})`))}function qu(e,t,n){return Lt(e)?Gu(e.enum,t,n):Rn(e)?zu(t,n):N(e)?Lu(e.const,t,n):Mn(e)?Ru(t,n):Pn(e)?Vu(t,n):Zn(e)?Bu(t,n):ar(e)?Hu(t,n):td(e)?Uu(e.pattern,t,n):ed(e)?Wu(e.parameters[0],t,n):F(e)?Ku(e.anyOf,t,n):`(?!)`}function Ju(e,t){return y(e,(e,n)=>qu(e,n,t),()=>t)}function Yu(e){return`^${Ju(e,``)}$`}function Xu(e){return pr(Yu(e))}function Zu(e,t){return J(e)?C(Xu(e),{},t):$u(e,t)}function Qu(e,t,n,r){return Zu(u_(e,t,n),r)}function $u(e,t={}){return T(`TemplateLiteral`,[e],t)}function ed(e){return Ke(e)&&b(e,`action`)&&g(e.action,`TemplateLiteral`)}function td(e){return w(e,`TemplateLiteral`)}function nd(e){return S({"~kind":`ExtendsUnion`},{inferred:e})}function rd(e){return m(e)&&b(e,`~kind`)&&b(e,`inferred`)&&g(e[`~kind`],`ExtendsUnion`)&&m(e.inferred)}function U(e){return S({"~kind":`ExtendsTrue`},{inferred:e})}function id(e){return m(e)&&b(e,`~kind`)&&b(e,`inferred`)&&g(e[`~kind`],`ExtendsTrue`)&&m(e.inferred)}function W(){return S({"~kind":`ExtendsFalse`},{})}function ad(e){return m(e)&&b(e,`~kind`)&&g(e[`~kind`],`ExtendsFalse`)}function od(e){return rd(e)||id(e)}function G(e,t,n){return od(e)?t(e.inferred):n()}function sd(e,n,r,i){return G(q(e,r,i),i=>U(t(t(e,i),{[n]:r})),()=>W())}function cd(e,t){return U(e)}function ld(e,t,n,r,i){return G(q(e,t,n),e=>G(q(e,t,r),e=>U(e),()=>W()),()=>G(q(e,t,i),e=>U(e),()=>W()))}function ud(e,t,n){return q(e,t,ai(n))}function dd(e,t,n){return y(n,(n,r)=>G(q(e,t,n),e=>dd(e,t,r),()=>W()),()=>U(e))}function fd(e,t,n){return q(e,t,si(n))}function pd(e,t,n){return y(n,(n,r)=>G(q(e,t,n),e=>U(e),()=>pd(e,t,r)),()=>W())}function K(e,t,n){return ft(n)?cd(e,t):Ft(n)?ld(e,t,n.if,n.then,n.else):Lt(n)?ud(e,t,n.enum):Nt(n)?sd(e,n.name,t,n.extends):k(n)?dd(e,t,n.allOf):td(n)?fd(e,t,n.pattern):F(n)?pd(e,t,n.anyOf):Et(n)?U(e):W()}function md(e,t,n){return Nt(n)?K(e,t,n):ft(n)||Et(n)?U(e):nd(e)}function hd(e,t){let n=yn(e),r=yn(t);return n&&r||!n&&r?!0:!(n&&!r)}function gd(e,t,n,r){return Xe(r)?hd(t,r)?q(e,n,r.items):W():K(e,t,r)}function _d(e,t,n){return $e(n)?q(e,t,n.iteratorItems):K(e,Qe(t),n)}function vd(e,t,n){return Mn(n)?U(e):K(e,t,n)}function yd(e,t,n){return Pn(n)?U(e):K(e,t,n)}function bd(e,t,n,r,i){let a=Nt(r)?t:r,o=Nt(r)?r:t,s=bt(t),c=bt(r);return!s&&c?W():G(q(e,a,o),e=>Cd(e,n,i),()=>W())}function xd(e,t,n,r){return y(r,(r,i)=>bd(e,t,n,r,i),()=>bt(t)?U(e):W())}function Sd(e,t,n){return y(t,(t,r)=>xd(e,t,r,n),()=>U(e))}function Cd(e,t,n){return Sd(e,t,n)}function wd(e,t,n){return Ki(n)?U(e):q(e,t,n)}function Td(e,t,n,r){return ft(r)||Et(r)?U(e):nt(r)?G(Cd(e,t,r.parameters),e=>wd(e,n,r.instanceType),()=>W()):W()}function Ed(e,t,n,r,i){return G(q(e,t,i),()=>q(e,n,i),()=>q(e,r,i))}function Dd(e,t,n){return q(e,ai(t),n)}function Od(e,t,n,r){return ft(r)||Et(r)?U(e):at(r)?G(Cd(e,t,r.parameters),e=>wd(e,n,r.returnType),()=>W()):W()}function kd(e,t,n){return Rn(n)||Zn(n)?U(e):K(e,t,n)}function Ad(e,t,n){return q(e,oi(t),n)}function jd(e,t,n){return Bn(n)?q(e,t,n.iteratorItems):K(e,zn(t),n)}function Md(e,t,n){return t===n?U(e):W()}function Nd(e,t,n){return N(n)?Md(e,t,n.const):Mn(n)?U(e):K(e,M(t),n)}function Pd(e,t,n){return N(n)?Md(e,t,n.const):Pn(n)?U(e):K(e,M(t),n)}function Fd(e,t,n){return N(n)?Md(e,t,n.const):Zn(n)?U(e):K(e,M(t),n)}function Id(e,t,n){return N(n)?Md(e,t,n.const):ar(n)?U(e):K(e,M(t),n)}function Ld(e,t,n){return f(t.const)?Nd(e,t.const,n):ie(t.const)?Pd(e,t.const,n):p(t.const)?Fd(e,t.const,n):h(t.const)?Id(e,t.const,n):Bt()}function Rd(e,t,n){return Nt(n)?K(e,t,n):U(e)}function zd(e,t,n){return Jn(n)?U(e):K(e,t,n)}function Bd(e,t,n){return Zn(n)?U(e):K(e,t,n)}function Vd(e,t,n){return bt(t)?bt(n)?U(e):W():U(e)}function Hd(e,t,n){return Nt(n)&&pt(n.extends)?W():G(q(e,t,n),e=>Vd(e,t,n),()=>W())}function Ud(e,t){return e.reduce((e,n)=>n in t&&od(t[n])?{...e,...t[n].inferred}:Bt(),{})}function Wd(e,n,r){let i={};for(let a of x(r))i[a]=a in n?Hd({},n[a],r[a]):bt(r[a])?Nt(r[a])?U(t(e,{[r[a].name]:r[a].extends})):U(e):W();let a=Ce(i).every(e=>od(e)),o=a?Ud(x(i),i):{};return a?U(o):W()}function Gd(e,n,r){let i=Wd(e,n,r);return od(i)?U(t(e,i.inferred)):W()}function Kd(e,t,n){return Gd(e,t,n)}function qd(e,t){return x(t).reduce((n,r)=>({...n,[r]:b(e,r)?F(n[r])?P([...n[r].anyOf,t[r]]):P([e[r],t[r]]):t[r]}),e)}function Jd(e,t,n,r){return y(t,(t,i)=>G(q({},e[t],n),t=>Jd(e,i,n,qd(r,t)),()=>W()),()=>U(r))}function Yd(e,t,n,r){return Jd(t,x(t),r,e)}function Xd(e,t,n){return Ri(n)?Yd(e,t,Fi(n),Li(n)):O(n)?Kd(e,t,n.properties):K(e,D(t),n)}function Zd(e,t,n){return nr(n)?q(e,t,n.item):K(e,tr(t),n)}function Qd(e,t){return g(x(t).length,0)?U(e):W()}function $d(e,t,n,r,i){return q(e,n,i)}function ef(e,t,n,r){return Ri(r)?$d(e,Pi(t),n,Pi(Fi(r)),Li(r)):O(r)?Qd(e,r.properties):ft(r)||Et(r)?U(e):W()}function tf(e,t,n){return ar(n)?U(e):K(e,t,n)}function nf(e,t,n){return $n(n)?U(e):K(e,t,n)}function rf(e,t,n){return q(e,si(t),n)}function af(e,t){return S({"~kind":`Inferrable`},{name:e,type:t},{})}function of(e){return m(e)&&b(e,`~kind`)&&b(e,`name`)&&b(e,`type`)&&g(e[`~kind`],`Inferrable`)&&h(e.name)&&m(e.type)}function sf(e){return Bi(e)?Nt(e.items)?Xe(e.items.extends)?af(e.items.name,e.items.extends.items):Et(e.items.extends)?af(e.items.name,e.items.extends):void 0:Bt():void 0}function cf(e){return Nt(e)?af(e.name,e.extends):void 0}function lf(e,t,n=[]){return y(e,(e,r)=>G(q({},e,t),()=>lf(r,t,[...n,e]),()=>void 0),()=>n)}function uf(e,n,r,i){let a=lf(r,i);return d(a)?U(t(e,{[n]:Dr(a)})):W()}function df(e,n,r,i){let a=lf(r,i);return d(a)?U(t(e,{[n]:P(a)})):W()}function ff(e){return[...e].reverse()}function pf(e,t){return t?ff(e):e}function mf(e){let t=e.length>0?e[0]:void 0;return Ke(Ke(t)?sf(t):void 0)}function hf(e,t,n,r,i,a){return G(q(e,n,i),e=>vf(e,t,r,a),()=>W())}function gf(e,t,n,r,i){let a=sf(r);return of(a)?uf(e,a.name,pf(n,t),a.type):y(n,(n,a)=>hf(e,t,n,a,r,i),()=>W())}function _f(e,t,n,r){return y(r,(r,i)=>gf(e,t,n,r,i),()=>g(n.length,0)?U(e):W())}function vf(e,t,n,r){return _f(e,t,n,r)}function yf(e,t,n){let r=l_(e,s_([],[]),n),i=mf(r);return vf(e,i,pf(t,i),pf(r,i))}function bf(e,t,n){let r=cf(n);return of(r)?df(e,r.name,t,r.type):y(t,(t,r)=>G(q(e,t,n),e=>bf(e,r,n),()=>W()),()=>U(e))}function xf(e,t,n){let r=l_(e,s_([],[]),t);return I(n)?yf(e,r,n.items):Xe(n)?bf(e,r,n.items):K(e,Dr(r),n)}function Sf(e,t,n){return Ki(n)||Wi(n)?U(e):K(e,t,n)}function Cf(e,t,n){return y(n,(n,r)=>G(q(e,t,n),e=>U(e),()=>Cf(e,t,r)),()=>W())}function wf(e,t,n){return y(t,(t,r)=>G(Cf(e,t,n),e=>wf(e,r,n),()=>W()),()=>U(e))}function Tf(e,t,n){let r=cf(n);return of(r)?df(e,r.name,t,r.type):F(n)?wf(e,t,n.anyOf):wf(e,t,[n])}function Ef(e,t,n){return Nt(n)?K(e,t,n):ft(n)||Et(n)?U(e):W()}function Df(e,t,n){return Ki(n)?U(e):K(e,t,n)}function q(e,t,n){return ft(t)?md(e,t,n):Xe(t)?gd(e,t,t.items,n):$e(t)?_d(e,t.iteratorItems,n):Mn(t)?vd(e,t,n):Pn(t)?yd(e,t,n):nt(t)?Td(e,t.parameters,t.instanceType,n):Ft(t)?Ed(e,t.if,t.then,t.else,n):Lt(t)?Dd(e,t.enum,n):at(t)?Od(e,t.parameters,t.returnType,n):Rn(t)?kd(e,t,n):k(t)?Ad(e,t.allOf,n):Bn(t)?jd(e,t.iteratorItems,n):N(t)?Ld(e,t,n):pt(t)?Rd(e,t,n):Jn(t)?zd(e,t,n):Zn(t)?Bd(e,t,n):O(t)?Xd(e,t.properties,n):nr(t)?Zd(e,t.item,n):Ri(t)?ef(e,Fi(t),Li(t),n):ar(t)?tf(e,t,n):$n(t)?nf(e,t,n):td(t)?rf(e,t.pattern,n):I(t)?xf(e,t.items,n):Wi(t)?Sf(e,t,n):F(t)?Tf(e,t.anyOf,n):Et(t)?Ef(e,t,n):Ki(t)?Df(e,t,n):W()}function Of(e,t){return oi([...e,D(t)])}function kf(e,t,n){return J(e)?C(Of(e,t),{},n):jf(e,t,n)}function Af(e,t,n,r,i){return kf(u_(e,t,n),c_(e,t,r),i)}function jf(e,t,n={}){return T(`Interface`,[e,t],n)}function Mf(e){return Ke(e)&&b(e,`action`)&&g(e.action,`Interface`)}function Nf(e,t,n){return e.includes(n)?!0:If([...e,n],t,t[n])}function Pf(e,t,n){return Ff(e,t,Ct(n))}function Ff(e,t,n){return y(n,(n,r)=>If(e,t,n)?!0:Ff(e,t,r),()=>!1)}function If(e,t,n){return ct(n)?Nf(e,t,n.$ref):Xe(n)?If(e,t,n.items):$e(n)?If(e,t,n.iteratorItems):nt(n)?Ff(e,t,[...n.parameters,n.instanceType]):at(n)?Ff(e,t,[...n.parameters,n.returnType]):Mf(n)?Pf(e,t,n.parameters[1]):k(n)?Ff(e,t,n.allOf):Bn(n)?If(e,t,n.iteratorItems):O(n)?Pf(e,t,n.properties):nr(n)?If(e,t,n.item):F(n)?Ff(e,t,n.anyOf):I(n)?Ff(e,t,n.items):Ri(n)?If(e,t,Li(n)):!1}function Lf(e,t,n){return If(e,t,n)}function Rf(e,t){return t.reduce((t,n)=>Lf([n],e,e[n])?[...t,n]:t,[])}function zf(e){return Rf(e,St(e))}function Bf(e,t,n){return n.includes(t)?n:t in e?Uf(e,e[t],[...n,t]):Bt()}function Vf(e,t,n){return Hf(e,Ct(t),n)}function Hf(e,t,n){return t.reduce((t,n)=>Uf(e,n,t),n)}function Uf(e,t,n){return ct(t)?Bf(e,t.$ref,n):Xe(t)?Uf(e,t.items,n):$e(t)?Uf(e,t.iteratorItems,n):nt(t)?Hf(e,[...t.parameters,t.instanceType],n):at(t)?Hf(e,[...t.parameters,t.returnType],n):Mf(t)?Vf(e,t.parameters[1],n):k(t)?Hf(e,t.allOf,n):Bn(t)?Uf(e,t.iteratorItems,n):O(t)?Vf(e,t.properties,n):nr(t)?Uf(e,t.item,n):F(t)?Hf(e,t.anyOf,n):I(t)?Hf(e,t.items,n):Ri(t)?Uf(e,Li(t),n):n}function Wf(e,t,n){return Uf(e,n,[t])}function Gf(e){return dt()}function Kf(e){return x(e).reduce((t,n)=>({...t,[n]:Jf(e[n])}),{})}function qf(e){return e.reduce((e,t)=>[...e,Jf(t)],[])}function Jf(e){return ct(e)?Gf(e.$ref):Xe(e)?Ye(Jf(e.items),Ze(e)):$e(e)?Qe(Jf(e.iteratorItems)):nt(e)?tt(qf(e.parameters),Jf(e.instanceType)):at(e)?it(qf(e.parameters),Jf(e.returnType)):k(e)?Rt(qf(e.allOf)):Bn(e)?zn(Jf(e.iteratorItems)):O(e)?D(Kf(e.properties)):nr(e)?tr(Jf(e.item)):Ri(e)?Mi(Ii(e),Jf(Li(e))):F(e)?P(qf(e.anyOf)):I(e)?Dr(qf(e.items)):e}function Yf(e,t){return t in e?Jf(e[t]):Tt()}function Xf(e){return Yf(e.$defs,e.$ref)}function Zf(e,t,n){let r=u_(e,s_([],[]),t),i=c_({},s_([],[]),n);return oi([...r,D(i)])}function Qf(e,t){return x(e).filter(e=>t.includes(e)).reduce((t,n)=>{let r=e[n],i=Mf(r)?Zf(e,r.parameters[0],r.parameters[1]):r;return{...t,[n]:i}},{})}function $f(e,t,n){return Dt(Qf(e,Wf(e,t,n)),t)}function ep(e,t){return t in e?ct(e[t])?ep(e,e[t].$ref):e[t]:E()}function tp(e,t){return ep(e,t)}function np(e){return Ot(e)?Xf(e):At(e)?Tt():e}function rp(e,t,n){return q(e,np(t),np(n))}function ip(e,t){let n=[Et(e)?W():rp({},e,t),Et(e)?U({}):rp({},t,e)];return od(n[0])&&od(n[1])?`equal`:od(n[0])&&ad(n[1])?`left-inside`:ad(n[0])&&od(n[1])?`right-inside`:`disjoint`}function ap(e,t){return t.filter(t=>ip(e,t)!==`right-inside`)}function op(e,t){return g(t.some(t=>{let n=ip(e,t);return g(n,`left-inside`)||g(n,`equal`)}),!1)}function sp(e,t){let n=li(e);return ft(n)?[n]:op(n,t)?[...ap(n,t),n]:t}function cp(e){return e.reduce((e,t)=>O(t)?[...e,t]:pt(t)?e:sp(t,e),[])}function lp(e){return yi(cp(e))}function up(e,t){return C(li(e),{},t)}function dp(e,t,n,r){return up(Y(e,t,n),r)}function fp(e,t=[]){return qe(e)&&g(e.action,`Conditional`)?ct(e.parameters[0])?fp(e.parameters[2],fp(e.parameters[3],[...t,e.parameters[0].$ref])):fp(e.parameters[2],fp(e.parameters[3],t)):qe(e)&&g(e.action,`Mapped`)&&qe(e.parameters[1])&&g(e.parameters[1].action,`KeyOf`)&&ct(e.parameters[1].parameters[0])?[...t,e.parameters[1].parameters[0].$ref]:t}function pp(e,t){return e.reduce((e,n)=>[...e,t.includes(n.name)],[])}function mp(e,t,n=[]){return y(e,(e,r)=>y(t,(t,i)=>mp(r,i,[...n,[t,e]]),()=>n),()=>n)}function hp(e){return F(e)?[...e.anyOf]:[e]}function gp(e,t){return e.reduce((e,n)=>[...e,[...n,t]],[])}function _p(e,t){return t.reduce((t,n)=>[...t,...gp(e,n)],[])}function vp(e){return e.reduce((e,t)=>g(t[0],!0)?_p(e,hp(t[1])):_p(e,[t[1]]),[[]])}function yp(e,t,n){let r=mp(t,pp(e,fp(n)));return qe(n)&&g(n.action,`Conditional`)||qe(n)&&g(n.action,`Mapped`)?vp(r):[t]}function bp(){return[`(not-resolvable)`,E()]}function xp(){return[`(not-generic)`,E()]}function Sp(e,t,n){return[e,lt(t,n)]}function Cp(e,t,n){return t in e?wp(e,t,e[t],n):bp()}function wp(e,t,n,r){return ut(n)?Sp(t,n.parameters,n.expression):ct(n)?Cp(e,n.$ref,r):xp()}function Tp(e,t,n){return wp(e,`(anonymous)`,t,n)}function Ep(e,t,n){if(Nt(t)||Rp(t)||od(rp({},t,n)))return;let r={parameter:e,expect:n,actual:t};throw Error(`Argument for parameter ${e} does not satisfy constraint`,{cause:r})}function Dp(e,n,r,i,a){let o=Y(e,n,a);return Ep(r,o,i),t(e,{[r]:o})}function Op(e,t,n,r,i){let a=Y(e,t,n.extends),o=Y(e,t,n.equals);return y(i,(i,o)=>kp(Dp(e,t,n.name,a,i),t,r,o),()=>kp(Dp(e,t,n.name,a,o),t,r,[]))}function kp(e,t,n,r){return y(n,(n,i)=>Op(e,t,n,i,r),()=>e)}function Ap(e,t,n,r){return kp(e,t,n,r)}function jp(e){return pe(e.callstack.length,0)?e.callstack[e.callstack.length-1]:``}function Mp(e,t){return g(jp(e),t)}function Np(e,t,n,r,i,a){let o=Ap(e,t,r,a),s=Y(o,s_([...t.callstack,n.$ref],t.visited),i);return Y(o,s_([],[]),s)}function Pp(e,t,n,r,i,a){return a.reduce((a,o)=>[...a,Np(e,t,n,r,i,o)],[])}function Fp(e,t,n,r,i,a){let o=Pp(e,t,n,r,i,yp(r,a,i));return g(o.length,1)?o[0]:ci(o)}function Ip(e,t,n,r){let i=u_(e,t,r),a=Tp(e,n,r),o=a[0],s=a[1];return ut(s)?Mp(t,o)?Lp(st(o),i):Fp(e,t,st(o),s.parameters,s.expression,i):Lp(n,i)}function Lp(e,t){return S({"~kind":`Call`},{type:`call`,target:e,arguments:t},{})}function Rp(e){return w(e,`Call`)}function zp(e){return Ge(e,[`~immutable`])}function Bp(e,t){return C(zp(e),{},t)}function Vp(e,t,n,r){return Bp(Y(e,t,n),r)}function Hp(e,t={}){return T(`Awaited`,[e],t)}function Up(e){return nr(e)?Up(e.item):e}function Wp(e,t){return J([e])?C(Up(e),{},t):Hp(e,t)}function Gp(e,t,n,r){return Wp(Y(e,t,n),r)}function Kp(e,t){return e(t)}function qp(e,t){return h(t)?M(Kp(e,t)):M(t)}function Jp(e,t){return Xp(e,si(t))}function Yp(e,t){return P(t.map(t=>Xp(e,t)))}function Xp(e,t){return N(t)?qp(e,t.const):td(t)?Jp(e,t.pattern):F(t)?Yp(e,t.anyOf):t}function Zp(e,t={}){return T(`Capitalize`,[e],t)}function Qp(e,t={}){return T(`Lowercase`,[e],t)}function $p(e,t={}){return T(`Uncapitalize`,[e],t)}function em(e,t={}){return T(`Uppercase`,[e],t)}const tm=e=>e[0].toUpperCase()+e.slice(1),nm=e=>e.toLowerCase(),rm=e=>e[0].toLowerCase()+e.slice(1),im=e=>e.toUpperCase();function am(e,t){return J([e])?C(Xp(tm,e),{},t):Zp(e,t)}function om(e,t){return J([e])?C(Xp(nm,e),{},t):Qp(e,t)}function sm(e,t){return J([e])?C(Xp(rm,e),{},t):$p(e,t)}function cm(e,t){return J([e])?C(Xp(im,e),{},t):em(e,t)}function lm(e,t,n,r){return am(Y(e,t,n),r)}function um(e,t,n,r){return om(Y(e,t,n),r)}function dm(e,t,n,r){return sm(Y(e,t,n),r)}function fm(e,t,n,r){return cm(Y(e,t,n),r)}function pm(e,t,n,r,i={}){return T(`Conditional`,[e,t,n,r],i)}function mm(e,t,n,r,i,a){let o=rp(e,n,r);return rd(o)?P([Y(o.inferred,t,i),Y(e,t,a)]):id(o)?Y(o.inferred,t,i):Y(e,t,a)}function hm(e,t,n,r,i,a,o){return J([n,r])?C(mm(e,t,n,r,i,a),{},o):pm(n,r,i,a,o)}function gm(e,t,n,r,i,a,o){return hm(e,t,Y(e,t,n),Y(e,t,r),i,a,o)}function _m(e,t={}){return T(`ConstructorParameters`,[e],t)}function vm(e){let t=nt(e)?e.parameters:[];return Dr(l_({},s_([],[]),t))}function ym(e,t){return J([e])?C(vm(e),{},t):_m(e,t)}function bm(e,t,n,r){return ym(Y(e,t,n),r)}function xm(e,t,n={}){return T(`Exclude`,[e,t],n)}function Sm(e,t,n){return J([e,t])?C(ri(e,t),{},n):xm(e,t,n)}function Cm(e,t,n,r,i){return Sm(Y(e,t,n),Y(e,t,r),i)}function wm(e,t,n={}){return T(`Extract`,[e,t],n)}function Tm(e,t){return od(rp({},e,t))?[e]:[]}function Em(e,t){return e.reduce((e,n)=>[...e,...Tm(n,t)],[])}function Dm(e,t){let n=li(e);return ci(Em(F(n)?n.anyOf:[n],t))}function Om(e,t,n){return J([e,t])?C(Dm(e,t),{},n):wm(e,t,n)}function km(e,t,n,r,i){return Om(Y(e,t,n),Y(e,t,r),i)}function Am(e,t,n={}){return T(`Index`,[e,t],n)}function jm(e,t){return Bm(tp(e,t))}function Mm(e,t,n){return Bm(ii(e,t,n))}function Nm(e,n){let r=x(e).filter(e=>!b(n,e)),i=x(n).filter(t=>!b(e,t)),a=x(e).filter(e=>b(n,e)),o=r.reduce((t,n)=>({...t,[n]:e[n]}),{}),s=i.reduce((e,t)=>({...e,[t]:n[t]}),{}),c=a.reduce((t,r)=>({...t,[r]:oi([e[r],n[r]])}),{});return t(t(o,s),c)}function Pm(e){return e.reduce((e,t)=>Nm(e,Bm(t)),{})}function Fm(e){return e}function Im(e){return Bm(Br(Dr(e)))}function Lm(e,t){return x(e).filter(e=>e in t).reduce((n,r)=>({...n,[r]:ci([e[r],t[r]])}),{})}function Rm(e,t){return y(e,(e,n)=>Rm(n,Lm(t,Bm(e))),()=>t)}function zm(e){return y(e,(e,t)=>Rm(t,Bm(e)),()=>Bt())}function Bm(e){return Ot(e)?jm(e.$defs,e.$ref):Ft(e)?Mm(e.if,e.then,e.else):k(e)?Pm(e.allOf):F(e)?zm(e.anyOf):I(e)?Im(e.items):O(e)?Fm(e.properties):{}}function Vm(e){return D(Bm(e))}const Hm=RegExp(`^(?:0|[1-9][0-9]*)$`);function Um(e){let t=`${e}`;return Hm.test(t)?parseInt(t):e}function Wm(e){return M(Um(e))}function Gm(e){return e.map(e=>Km(e))}function Km(e){return k(e)?Rt(Gm(e.allOf)):F(e)?P(Gm(e.anyOf)):N(e)?Wm(e.const):e}function qm(e,t){return od(rp({},Km(t),Xn()))?e:N(t)&&g(t.const,`length`)?Xn():E()}function Jm(e,t){return th(tp(e,t))}function Ym(e,t,n){return th(ii(e,t,n))}function Xm(e){return th(ai(e))}function Zm(e){return th(oi(e))}function Qm(e){return[`${e}`]}function $m(e){return th(si(e))}function eh(e){return e.reduce((e,t)=>[...e,...th(t)],[])}function th(e){return Ot(e)?Jm(e.$defs,e.$ref):Ft(e)?Ym(e.if,e.then,e.else):Lt(e)?Xm(e.enum):k(e)?Zm(e.allOf):N(e)?Qm(e.const):td(e)?$m(e.pattern):F(e)?eh(e.anyOf):[]}function nh(e){return th(e)}function rh(e,t){return t.map(t=>ih(e,t))}function ih(e,t){return Xe(t)?Ye(ih(e,t.items)):$e(t)?Qe(ih(e,t.iteratorItems)):nt(t)?tt(rh(e,t.parameters),ih(e,t.instanceType)):at(t)?it(rh(e,t.parameters),ih(e,t.returnType)):Bn(t)?zn(ih(e,t.iteratorItems)):nr(t)?tr(ih(e,t.item)):I(t)?Dr(rh(e,t.items)):F(t)?P(rh(e,t.anyOf)):k(t)?Rt(rh(e,t.allOf)):Hi(t)?D(e):t}function ah(e,t){return ih(e,t)}function oh(e,t){return ah(e,t in e?e[t]:E())}function sh(e,t){return t.reduce((t,n)=>[...t,oh(e,n)],[])}function ch(e,t){return ci(sh(e,nh(t)))}const lh=new RegExp(Oi);function uh(e){return e.filter(e=>lh.test(e))}function dh(e){return ci(sh(e,uh(St(e))))}function fh(e,t){return Zn(t)?dh(e):ch(e,t)}function ph(e){return M(Um(e))}function mh(e){return e.map(e=>hh(e))}function hh(e){return k(e)?Rt(mh(e.allOf)):F(e)?P(mh(e.anyOf)):N(e)?ph(e.const):e}function gh(e,t){return e.reduceRight((e,n,r)=>od(rp({},M(r),t))?[n,...e]:e,[])}function _h(e,t){return ui(gh(e,hh(t)))}function vh(e){return ui(e)}function yh(e,t){return N(t)&&g(t.const,`length`)?M(e.length):Zn(t)||Rn(t)?vh(e):_h(e,t)}function bh(e,t){return Xe(e)?qm(e.items,t):O(e)?fh(e.properties,t):I(e)?yh(e.items,t):E()}function xh(e){return Ot(e)||Ft(e)||k(e)||F(e)?Vm(e):e}function Sh(e,t,n){return J([e,t])?C(bh(xh(e),t),{},n):Am(e,t,n)}function Ch(e,t,n,r,i){return Sh(Y(e,t,n),Y(e,t,r),i)}function wh(e,t={}){return T(`InstanceType`,[e],t)}function Th(e){return nt(e)?e.instanceType:E()}function Eh(e,t){return J([e])?C(Th(e),{},t):wh(e,t)}function Dh(e,t,n,r={}){return Eh(Y(e,t,n),r)}function Oh(e,t={}){return T(`KeyOf`,[e],t)}function kh(){return P([Xn(),ir(),Qn()])}function Ah(e){return Xn()}function jh(e){return e.reduce((e,t)=>Wn(t)?[...e,M(Um(t))]:Bt(),[])}function Mh(e){return ui(jh(x(e)))}function Nh(e){return Ii(e)}function Ph(e){return ui(e.map((e,t)=>M(t)))}function Fh(e){return ft(e)?kh():Xe(e)?Ah(e.items):O(e)?Mh(e.properties):Ri(e)?Nh(e):I(e)?Ph(e.items):E()}function Ih(e){return Ot(e)||Ft(e)||k(e)||F(e)?Vm(e):e}function Lh(e,t){return J([e])?C(Fh(Ih(e)),{},t):Oh(e,t)}function Rh(e,t,n,r){return Lh(Y(e,t,n),r)}function zh(e,t,n,r,i={}){return T(`Mapped`,[e,t,n,r],i)}function Bh(e){return Wh(si(e))}function Vh(e){return e.reduce((e,t)=>[...e,...Wh(t)],[])}function Hh(e){return Wh(ai(e))}function Uh(e){return p(e)?[M(`${e}`)]:[M(e)]}function Wh(e){return Lt(e)?Hh(e.enum):N(e)?Uh(e.const):td(e)?Bh(e.pattern):F(e)?Vh(e.anyOf):[e]}function Gh(e){return Wh(e)}function Kh(e){return td(e)?si(e.pattern):e}function qh(e,n,r,i,a,o){let s=t(e,{[r.name]:i}),c=Kh(Y(s,n,a)),l=Y(s,n,o);return Gn(c)||Kn(c)?{[c.const]:l}:{}}function Jh(e,t,n,r,i,a){return r.reduce((r,o)=>[...r,qh(e,t,n,o,i,a)],[])}function Yh(e){return e.reduce((e,t)=>[...e,D(t)],[])}function Xh(e,t,n,r,i,a){return oi(Yh(Jh(e,t,n,Gh(r),i,a)))}function Zh(e,t,n,r,i,a,o){return J([r])?C(Xh(e,t,n,r,i,a),{},o):zh(n,r,i,a,o)}function Qh(e,t,n,r,i,a,o){return Zh(e,t,n,Y(e,t,r),i,a,o)}function $h(e,n,r){let i=t(e,n);return x(n).filter(e=>r.includes(e)).reduce((e,t)=>({...e,[t]:$f(i,t,n[t])}),{})}function eg(e,n,r){let i=t(e,n);return x(n).filter(e=>!r.includes(e)).reduce((e,t)=>({...e,[t]:Y(i,s_([],[]),n[t])}),{})}function tg(e,t,n){let r=zf(t),i=$h(e,t,r),a=eg(e,t,r);return C({...i,...a},{},n)}function ng(e,t,n,r){return tg(e,n,r)}function rg(e,t={}){return T(`NonNullable`,[e],t)}function ig(e){return Sm(e,P([qn(),Ui()]),{})}function ag(e,t){return J([e])?C(ig(e),{},t):rg(e,t)}function og(e,t,n,r){return ag(Y(e,t,n),r)}function sg(e,t,n={}){return T(`Omit`,[e,t],n)}function cg(e){let t=Vm(e);return O(t)?t.properties:Bt()}function lg(e,t){return x(e).reduce((n,r)=>t.includes(r)?n:{...n,[r]:e[r]},{})}function ug(e,t){return D(lg(cg(e),nh(t)))}function dg(e,t,n){return J([e,t])?C(ug(e,t),{},n):sg(e,t,n)}function fg(e,t,n,r,i){return dg(Y(e,t,n),Y(e,t,r),i)}function pg(e,t={}){return T(`Parameters`,[e],t)}function mg(e){let t=at(e)?e.parameters:[];return Dr(l_({},s_([],[]),t))}function hg(e,t){return J([e])?C(mg(e),{},t):pg(e,t)}function gg(e,t,n,r){return hg(Y(e,t,n),r)}function _g(e,t={}){return T(`Partial`,[e],t)}function vg(e,n){let r=Cg(tp(e,n));return Dt(t(e,{[n]:r}),n)}function yg(e,t,n){return Cg(ii(e,t,n))}function bg(e){return Cg(oi(e))}function xg(e){return P(e.map(e=>Cg(e)))}function Sg(e){return D(x(e).reduce((t,n)=>({...t,[n]:vt(e[n])}),{}))}function Cg(e){return Ot(e)?vg(e.$defs,e.$ref):Ft(e)?yg(e.if,e.then,e.else):k(e)?bg(e.allOf):F(e)?xg(e.anyOf):O(e)?Sg(e.properties):D({})}function wg(e,t){return J([e])?C(Cg(e),{},t):_g(e,t)}function Tg(e,t,n,r){return wg(Y(e,t,n),r)}function Eg(e,t,n={}){return T(`Pick`,[e,t],n)}function Dg(e,n){return x(e).reduce((r,i)=>n.includes(i)?t(r,{[i]:e[i]}):r,{})}function Og(e,t){return D(Dg(cg(e),nh(t)))}function kg(e,t,n){return J([e,t])?C(Og(e,t),{},n):Eg(e,t,n)}function Ag(e,t,n,r,i){return kg(Y(e,t,n),Y(e,t,r),i)}function jg(e,t={}){return T(`ReadonlyObject`,[e],t)}function Mg(e){return v_(Ye(e))}function Ng(e,n){let r=zg(tp(e,n));return Dt(t(e,{[n]:r}),n)}function Pg(e,t,n){return zg(ii(e,t,n))}function Fg(e){return zg(oi(e))}function Ig(e){return D(x(e).reduce((t,n)=>({...t,[n]:wn(e[n])}),{}))}function Lg(e){return v_(Dr(e))}function Rg(e){return P(e.map(e=>zg(e)))}function zg(e){return Xe(e)?Mg(e.items):Ot(e)?Ng(e.$defs,e.$ref):Ft(e)?Pg(e.if,e.then,e.else):k(e)?Fg(e.allOf):O(e)?Ig(e.properties):I(e)?Lg(e.items):F(e)?Rg(e.anyOf):e}function Bg(e,t){return J([e])?C(zg(e),{},t):jg(e)}function Vg(e,t,n,r){return Bg(Y(e,t,n),r)}function Hg(e,t,n,r){return t.visited.includes(r)?n:r in e?Y(e,s_(t.callstack,[...t.visited,r]),e[r]):n}function Ug(e,n){let r=Jg(tp(e,n));return Dt(t(e,{[n]:r}),n)}function Wg(e,t,n){return Jg(ii(e,t,n))}function Gg(e){return Jg(oi(e))}function Kg(e){return P(e.map(e=>Jg(e)))}function qg(e){return D(x(e).reduce((t,n)=>({...t,[n]:Rr(e[n])}),{}))}function Jg(e){return Ot(e)?Ug(e.$defs,e.$ref):Ft(e)?Wg(e.if,e.then,e.else):k(e)?Gg(e.allOf):F(e)?Kg(e.anyOf):O(e)?qg(e.properties):D({})}function Yg(e,t={}){return T(`Required`,[e],t)}function Xg(e,t){return J([e])?C(Jg(e),{},t):Yg(e,t)}function Zg(e,t,n,r){return Xg(Y(e,t,n),r)}function Qg(e,t={}){return T(`ReturnType`,[e],t)}function $g(e){return at(e)?e.returnType:E()}function e_(e,t){return J([e])?C($g(e),{},t):Qg(e,t)}function t_(e,t,n,r={}){return e_(Y(e,t,n),r)}function n_(e,t){return T(`With`,[e,t],{})}function r_(e,t){return J([e])?C(e,{},t):n_(e,t)}function i_(e,t,n,r){return r_(Y(e,t,n),r)}function a_(e){return Bi(e)?I(e.items)?o_(e.items.items):Nt(e.items)||ct(e.items)?[e]:[E()]:[e]}function o_(e){return e.reduce((e,t)=>[...e,...a_(t)],[])}function s_(e,t){return{callstack:e,visited:t}}function J(e){return y(e,(e,t)=>ct(e)?!1:J(t),()=>!0)}function c_(e,t,n){return x(n).reduce((r,i)=>({...r,[i]:Y(e,t,n[i])}),{})}function l_(e,t,n){return o_(u_(e,t,n))}function u_(e,t,n){return n.map(n=>Y(e,t,n))}function d_(e,t,n,r,i){return g(n,`AddImmutable`)?g_(e,t,r[0],i):g(n,`RemoveImmutable`)?Vp(e,t,r[0],i):g(n,`AddReadonly`)?Sn(e,t,r[0],i):g(n,`RemoveReadonly`)?jr(e,t,r[0],i):g(n,`AddOptional`)?gt(e,t,r[0],i):g(n,`RemoveOptional`)?Ir(e,t,r[0],i):g(n,`Awaited`)?Gp(e,t,r[0],i):g(n,`Capitalize`)?lm(e,t,r[0],i):g(n,`Conditional`)?gm(e,t,r[0],r[1],r[2],r[3],i):g(n,`ConstructorParameters`)?bm(e,t,r[0],i):g(n,`Evaluate`)?dp(e,t,r[0],i):g(n,`Exclude`)?Cm(e,t,r[0],r[1],i):g(n,`Extract`)?km(e,t,r[0],r[1],i):g(n,`Index`)?Ch(e,t,r[0],r[1],i):g(n,`InstanceType`)?Dh(e,t,r[0],i):g(n,`Interface`)?Af(e,t,r[0],r[1],i):g(n,`KeyOf`)?Rh(e,t,r[0],i):g(n,`Lowercase`)?um(e,t,r[0],i):g(n,`Mapped`)?Qh(e,t,r[0],r[1],r[2],r[3],i):g(n,`Module`)?ng(e,t,r[0],i):g(n,`NonNullable`)?og(e,t,r[0],i):g(n,`Pick`)?Ag(e,t,r[0],r[1],i):g(n,`Parameters`)?gg(e,t,r[0],i):g(n,`Partial`)?Tg(e,t,r[0],i):g(n,`Omit`)?fg(e,t,r[0],r[1],i):g(n,`ReadonlyObject`)?Vg(e,t,r[0],i):g(n,`Record`)?Di(e,t,r[0],r[1],i):g(n,`Required`)?Zg(e,t,r[0],i):g(n,`ReturnType`)?t_(e,t,r[0],i):g(n,`TemplateLiteral`)?Qu(e,t,r[0],i):g(n,`Uncapitalize`)?dm(e,t,r[0],i):g(n,`Uppercase`)?fm(e,t,r[0],i):g(n,`With`)?i_(e,t,r[0],r[1]):T(n,r,i)}function f_(e,t,n){return n=Je(n)?n.Clone():n,ct(n)?Hg(e,t,n,n.$ref):Xe(n)?Ye(Y(e,t,n.items),Ze(n)):$e(n)?Qe(Y(e,t,n.iteratorItems),et(n)):Rp(n)?Ip(e,t,n.target,n.arguments):nt(n)?tt(u_(e,t,n.parameters),Y(e,t,n.instanceType),rt(n)):qe(n)?d_(e,t,n.action,n.parameters,n.options):at(n)?it(u_(e,t,n.parameters),Y(e,t,n.returnType),ot(n)):Ft(n)?Pt(Y(e,t,n.if),Y(e,t,n.then),Y(e,t,n.else),It(n)):k(n)?Rt(u_(e,t,n.allOf),zt(n)):Bn(n)?zn(Y(e,t,n.iteratorItems),Vn(n)):O(n)?D(c_(e,t,n.properties),wt(n)):nr(n)?tr(Y(e,t,n.item),rr(n)):Ri(n)?Ni(Fi(n),Y(e,t,Li(n))):Bi(n)?zi(Y(e,t,n.items)):I(n)?Dr(l_(e,t,n.items),Or(n)):F(n)?P(u_(e,t,n.anyOf),or(n)):n}function p_(e,t){let n=yn(e)?vn(t):t,r=En(e)?Tn(n):n;return bt(e)?yt(r):r}function Y(e,t,n){let r=f_(e,t,n);return qe(n)?r:p_(n,r)}function m_(e){return C(e,{"~immutable":!0},{})}function h_(e,t){return C(m_(e),{},t)}function g_(e,t,n,r){return h_(Y(e,t,n),r)}function __(e,t={}){return T(`AddImmutable`,[e],t)}function v_(e,t={}){return h_(e,t)}function y_(e,t={}){return T(`Evaluate`,[e],t)}function b_(e,t={}){return T(`Module`,[e],t)}function x_(...e){let[t,n,r]=jt(e,{2:(e,t)=>h(e)?[{},e,t]:[e,t,{}],3:(e,t,n)=>[e,t,n],1:e=>[{},e,{}]}),i=Pu(n);return C(d(i)&&g(i.length,2)?Y(t,s_([],[]),i[0]):E(),{},r)}function S_(e){return m(e)&&b(e,`check`)&&b(e,`errors`)&&oe(e.check)&&oe(e.errors)}function C_(e){return b(e,`~guard`)&&S_(e[`~guard`])}function w_(e){return b(e,`~refine`)&&d(e[`~refine`])&&_(e[`~refine`],0,e=>m(e)&&b(e,`check`)&&b(e,`error`)&&oe(e.check)&&oe(e.error))}function T_(e){return m(e)&&!d(e)}function E_(e){return ie(e)}function X(e){return T_(e)||E_(e)}function D_(e){return b(e,`additionalItems`)&&X(e.additionalItems)}function O_(e){return b(e,`additionalProperties`)&&X(e.additionalProperties)}function k_(e){return b(e,`allOf`)&&d(e.allOf)&&e.allOf.every(e=>X(e))}function A_(e){return b(e,`$anchor`)&&h(e.$anchor)}function j_(e){return b(e,`anyOf`)&&d(e.anyOf)&&e.anyOf.every(e=>X(e))}function M_(e){return b(e,`const`)}function N_(e){return b(e,`contains`)&&X(e.contains)}function P_(e){return b(e,`dependencies`)&&m(e.dependencies)&&Object.values(e.dependencies).every(e=>X(e)||d(e)&&e.every(e=>h(e)))}function F_(e){return b(e,`dependentRequired`)&&m(e.dependentRequired)&&Object.values(e.dependentRequired).every(e=>d(e)&&e.every(e=>h(e)))}function I_(e){return b(e,`dependentSchemas`)&&m(e.dependentSchemas)&&Object.values(e.dependentSchemas).every(e=>X(e))}function L_(e){return b(e,`$dynamicAnchor`)&&h(e.$dynamicAnchor)}function R_(e){return b(e,`$dynamicRef`)&&h(e.$dynamicRef)}function z_(e){return b(e,`else`)&&X(e.else)}function B_(e){return b(e,`enum`)&&d(e.enum)}function V_(e){return b(e,`exclusiveMaximum`)&&(p(e.exclusiveMaximum)||f(e.exclusiveMaximum))}function H_(e){return b(e,`exclusiveMinimum`)&&(p(e.exclusiveMinimum)||f(e.exclusiveMinimum))}function U_(e){return b(e,`format`)&&h(e.format)}function W_(e){return b(e,`$id`)&&h(e.$id)}function G_(e){return b(e,`if`)&&X(e.if)}function K_(e){return b(e,`items`)&&(X(e.items)||d(e.items)&&e.items.every(e=>X(e)))}function q_(e){return K_(e)&&d(e.items)}function J_(e){return b(e,`maximum`)&&(p(e.maximum)||f(e.maximum))}function Y_(e){return b(e,`maxContains`)&&p(e.maxContains)}function X_(e){return b(e,`maxItems`)&&p(e.maxItems)}function Z_(e){return b(e,`maxLength`)&&p(e.maxLength)}function Q_(e){return b(e,`maxProperties`)&&p(e.maxProperties)}function $_(e){return b(e,`minimum`)&&(p(e.minimum)||f(e.minimum))}function ev(e){return b(e,`minContains`)&&p(e.minContains)}function tv(e){return b(e,`minItems`)&&p(e.minItems)}function nv(e){return b(e,`minLength`)&&p(e.minLength)}function rv(e){return b(e,`minProperties`)&&p(e.minProperties)}function iv(e){return b(e,`multipleOf`)&&(p(e.multipleOf)||f(e.multipleOf))}function av(e){return b(e,`not`)&&X(e.not)}function ov(e){return b(e,`oneOf`)&&d(e.oneOf)&&e.oneOf.every(e=>X(e))}function sv(e){return b(e,`pattern`)&&(h(e.pattern)||e.pattern instanceof RegExp)}function cv(e){return b(e,`patternProperties`)&&m(e.patternProperties)&&Object.values(e.patternProperties).every(e=>X(e))}function lv(e){return b(e,`prefixItems`)&&d(e.prefixItems)&&e.prefixItems.every(e=>X(e))}function uv(e){return b(e,`properties`)&&m(e.properties)&&Object.values(e.properties).every(e=>X(e))}function dv(e){return b(e,`propertyNames`)&&(m(e.propertyNames)||X(e.propertyNames))}function fv(e){return b(e,`$recursiveAnchor`)&&ie(e.$recursiveAnchor)}function pv(e){return fv(e)&&g(e.$recursiveAnchor,!0)}function mv(e){return b(e,`$recursiveRef`)&&h(e.$recursiveRef)}function hv(e){return b(e,`$ref`)&&h(e.$ref)}function gv(e){return b(e,`required`)&&d(e.required)&&e.required.every(e=>h(e))}function _v(e){return b(e,`then`)&&X(e.then)}function vv(e){return b(e,`type`)&&(h(e.type)||d(e.type)&&e.type.every(e=>h(e)))}function yv(e){return b(e,`uniqueItems`)&&ie(e.uniqueItems)}function bv(e){return b(e,`unevaluatedItems`)&&X(e.unevaluatedItems)}function xv(e){return b(e,`unevaluatedProperties`)&&X(e.unevaluatedProperties)}var Sv=class{constructor(){let e=new Set,t=new Set;this.stack=[{indices:e,keys:t}]}Push(){let e=new Set,t=new Set;return this.stack.push({indices:e,keys:t}),!0}Pop(){return this.stack.pop(),!0}AddIndex(e){return this.GetIndices().add(e),!0}AddKey(e){return this.GetKeys().add(e),!0}GetIndices(){return this.stack[this.stack.length-1].indices}GetKeys(){return this.stack[this.stack.length-1].keys}Merge(e){for(let t of e)t.GetIndices().forEach(e=>this.GetIndices().add(e)),t.GetKeys().forEach(e=>this.GetKeys().add(e));return!0}},Cv=class extends Sv{constructor(e){super(),this.callback=e}AddError(e){return this.callback(e),!1}},wv=class extends Cv{constructor(){super(e=>this.errors.push(e)),this.errors=[]}AddError(e){return this.errors.push(e),!1}GetErrors(){return this.errors}};function Tv(e,t,n,r){return n[`~guard`].check(r)}function Ev(e,t,n,r,i,a){return i[`~guard`].check(a)||t.AddError({keyword:`~guard`,schemaPath:n,instancePath:r,params:{errors:i[`~guard`].errors(a)}})}function Dv(e,t,n,r){return _(n[`~refine`],0,(e,t)=>e.check(r))}function Ov(e,t,n,r,i,a){return v(i[`~refine`],0,(e,i)=>e.check(a)||t.AddError({keyword:`~refine`,schemaPath:n,instancePath:r,params:{index:i,message:e.error(a)}}))}function kv(e){return K_(e)&&d(e.items)}function Av(e,t,n,r){return kv(n)?r.every((r,i)=>me(i,n.items.length)||Ix(e,t,n.additionalItems,r)&&t.AddIndex(i)):!0}function jv(e,t,n,r,i,a){return kv(i)?a.every((a,o)=>{let s=`${n}/additionalItems`,c=`${r}/${o}`;return me(o,i.items.length)||Lx(e,t,s,c,i.additionalItems,a)&&t.AddIndex(o)}):!0}function Mv(e){return`^${e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}$`}function Nv(e){let t=[];return cv(e)&&t.push(...x(e.patternProperties)),uv(e)&&t.push(...x(e.properties).map(Mv)),g(t.length,0)?`(?!)`:`(${t.join(`|`)})`}function Pv(e,t,n,r){let i=new RegExp(Nv(n));return _(x(r),0,(a,o)=>i.test(a)||Ix(e,t,n.additionalProperties,r[a])&&t.AddKey(a))}function Fv(e,t,n,r,i,a){let o=new RegExp(Nv(i)),s=[];return v(x(a),0,(c,l)=>{let u=`${n}/additionalProperties`,ee=`${r}/${c}`,te=new wv,ne=o.test(c)||Lx(e,te,u,ee,i.additionalProperties,a[c])&&t.AddKey(c);return ne||s.push(c),ne})||t.AddError({keyword:`additionalProperties`,schemaPath:n,instancePath:r,params:{additionalProperties:s}})}function Iv(e,t,n,r){let i=n.allOf.reduce((t,n)=>{let i=new Sv;return Q(e,i,n,r)?[...t,i]:t},[]);return g(i.length,n.allOf.length)&&t.Merge(i)}function Lv(e,t,n,r,i,a){let o=[],s=i.allOf.reduce((t,i,s)=>{let c=`${n}/allOf/${s}`,l=new wv,u=$(e,l,c,r,i,a);return u||o.push(l),u?[...t,l]:t},[]),c=g(s.length,i.allOf.length)&&t.Merge(s);return c||o.forEach(e=>e.GetErrors().forEach(e=>t.AddError(e))),c}function Rv(e,t,n,r){let i=n.anyOf.reduce((t,n)=>{let i=new Sv;return Q(e,i,n,r)?[...t,i]:t},[]);return pe(i.length,0)&&t.Merge(i)}function zv(e,t,n,r,i,a){let o=[],s=i.anyOf.reduce((t,i,s)=>{let c=new wv,l=$(e,c,`${n}/anyOf/${s}`,r,i,a);return l||o.push(c),l?[...t,c]:t},[]),c=pe(s.length,0)&&t.Merge(s);return c||o.forEach(e=>e.GetErrors().forEach(e=>t.AddError(e))),c||t.AddError({keyword:`anyOf`,schemaPath:n,instancePath:r,params:{}})}function Bv(e,t,n,r){return n}function Vv(e,t,n,r,i,a){return Bv(e,t,i,a)||t.AddError({keyword:`boolean`,schemaPath:n,instancePath:r,params:{}})}function Hv(e,t,n,r){return ve(n.const)?g(r,n.const):Ee(r,n.const)}function Uv(e,t,n,r,i,a){return Hv(e,t,i,a)||t.AddError({keyword:`const`,schemaPath:n,instancePath:r,params:{allowedValue:i.const}})}function Wv(e){return!(ev(e)&&g(e.minContains,0))}function Gv(e,t,n,r){return Wv(n)?!g(r.length,0)&&r.some(r=>Q(e,t,n.contains,r)):!0}function Kv(e,t,n,r,i,a){return Gv(e,t,i,a)||t.AddError({keyword:`contains`,schemaPath:n,instancePath:r,params:{minContains:1}})}function qv(e,t,n,r){let i=g(x(r).length,0),a=_(Se(n.dependencies),0,([n,i])=>!b(r,n)||(d(i)?i.every(e=>b(r,e)):Q(e,t,i,r)));return i||a}function Jv(e,t,n,r,i,a){let o=g(x(a).length,0),s=v(Se(i.dependencies),0,([i,o])=>{let s=`${n}/dependencies/${i}`;return!b(a,i)||(d(o)?o.every(e=>b(a,e)||t.AddError({keyword:`dependencies`,schemaPath:n,instancePath:r,params:{property:i,dependencies:o}})):$(e,t,s,r,o,a))});return o||s}function Yv(e,t,n,r){let i=g(x(r).length,0),a=_(Se(n.dependentRequired),0,([e,t])=>!b(r,e)||t.every(e=>b(r,e)));return i||a}function Xv(e,t,n,r,i,a){let o=g(x(a).length,0),s=v(Se(i.dependentRequired),0,([e,i])=>!b(a,e)||v(i,0,o=>b(a,o)||t.AddError({keyword:`dependentRequired`,schemaPath:n,instancePath:r,params:{property:e,dependencies:i}})));return o||s}function Zv(e,t,n,r){let i=g(x(r).length,0),a=_(Se(n.dependentSchemas),0,([n,i])=>!b(r,n)||Q(e,t,i,r));return i||a}function Qv(e,t,n,r,i,a){let o=g(x(a).length,0),s=v(Se(i.dependentSchemas),0,([i,o])=>{let s=`${n}/dependentSchemas/${i}`;return!b(a,i)||$(e,t,s,r,o,a)});return o||s}function $v(e,t,n,r){let i=e.DynamicRef(n)??!1;return X(i)&&Q(e,t,i,r)}function ey(e,t,n,r,i,a){let o=e.DynamicRef(i)??!1;return X(o)&&$(e,t,`#`,r,o,a)}function ty(e,t,n,r){return n.enum.some(e=>ve(e)?g(r,e):Ee(r,e))}function ny(e,t,n,r,i,a){return ty(e,t,i,a)||t.AddError({keyword:`enum`,schemaPath:n,instancePath:r,params:{allowedValues:i.enum}})}function ry(e,t,n,r){return me(r,n.exclusiveMaximum)}function iy(e,t,n,r,i,a){return ry(e,t,i,a)||t.AddError({keyword:`exclusiveMaximum`,schemaPath:n,instancePath:r,params:{comparison:`<`,limit:i.exclusiveMaximum}})}function ay(e,t,n,r){return pe(r,n.exclusiveMinimum)}function oy(e,t,n,r,i,a){return ay(e,t,i,a)||t.AddError({keyword:`exclusiveMinimum`,schemaPath:n,instancePath:r,params:{comparison:`>`,limit:i.exclusiveMinimum}})}const sy=[0,31,28,31,30,31,30,31,31,30,31,30,31],cy=/^(\d\d\d\d)-(\d\d)-(\d\d)$/;function ly(e){return e%4==0&&(e%100!=0||e%400==0)}function uy(e){let t=cy.exec(e);if(!t)return!1;let n=+t[1],r=+t[2],i=+t[3];return r>=1&&r<=12&&i>=1&&i<=(r===2&&ly(n)?29:sy[r])}const dy=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(?:Z|([+-])(\d\d):(\d\d))?$/i;function fy(e,t=!0){let n=dy.exec(e);if(!n)return!1;let r=+n[1],i=+n[2],a=+n[3],o=n[4]===`-`?-1:1,s=+(n[5]||0),c=+(n[6]||0);if(s>23||c>59||t&&!n[4]&&e.toLowerCase().indexOf(`z`)===-1)return!1;if(r<=23&&i<=59&&a<60)return!0;let l=i-c*o,u=r-s*o-+(l<0);return(u===23||u===-1)&&(l===59||l===-1)&&a<61}function py(e,t=!0){let n=e.split(/T/i);return n.length===2&&uy(n[0])&&fy(n[1],t)}const my=/^P((\d+Y(\d+M(\d+D)?)?|\d+M(\d+D)?|\d+D)(T(\d+H(\d+M(\d+S)?)?|\d+M(\d+S)?|\d+S))?|T(\d+H(\d+M(\d+S)?)?|\d+M(\d+S)?|\d+S)|\d+W)$/;function hy(e){return my.test(e)}const gy=/^(?!.*\.\.)[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i;function _y(e){return gy.test(e)}function vy(e,t,n){e=n?Math.floor(e/700):e>>1,e+=Math.floor(e/t);let r=0;for(;e>455;)e=Math.floor(e/35),r+=36;return r+Math.floor(36*e/(e+38))}function yy(e){let t=[],n=128,r=0,i=72,a=e.lastIndexOf(`-`);if(a>0)for(let n=0;n=128)throw Error(`Invalid punycode: non-basic before delimiter`);t.push(r)}let o=a<0?0:a+1;for(;o=e.length)throw Error(`Invalid punycode: unexpected end of input`);let t=e.charCodeAt(o++),n;if(t>=97&&t<=122)n=t-97;else if(t>=48&&t<=57)n=t-48+26;else if(t>=65&&t<=90)n=t-65;else throw Error(`Invalid punycode: bad digit character`);r+=n*s;let a=c<=i?1:c>=i+26?26:c-i;if(n=1632&&e<=1641}function My(e){return e>=1776&&e<=1785}function Ny(e){return Ty.has(e)}function Py(e){if(e.length===0)return!1;let t=[...e].map(e=>e.codePointAt(0)),n=t.length;if(t[0]===45||t[n-1]===45||n>=4&&t[2]===45&&t[3]===45||Cy(t[0]))return!1;let r=!1,i=!1,a=!1;for(let e=0;e=4&&e.charCodeAt(2)===45&&e.charCodeAt(3)===45)return!1;for(let t=0;t=97&&n<=122||n>=65&&n<=90||n>=48&&n<=57||n===45))return!1}return!0}function Iy(e){return e.toLowerCase().startsWith(`xn--`)}function Ly(e){try{return Py(yy(e.slice(4)))}catch{return!1}}function Ry(e){return e.length===0||e.length>63?!1:Iy(e)?Ly(e):Py(e)}function zy(e){return e.length===0||e.length>63?!1:Iy(e)?Ly(e):Fy(e)}function By(e){if(e.length===0||e.length>253||e.charCodeAt(e.length-1)===46)return!1;for(let t of e.split(`.`))if(!zy(t))return!1;return!0}const Vy=/^(?!.*\.\.)[\p{L}\p{N}!#$%&'*+/=?^_`{|}~-]+(?:\.[\p{L}\p{N}!#$%&'*+/=?^_`{|}~-]+)*@[\p{L}\p{N}](?:[\p{L}\p{N}-]{0,61}[\p{L}\p{N}])?(?:\.[\p{L}\p{N}](?:[\p{L}\p{N}-]{0,61}[\p{L}\p{N}])?)*$/iu;function Hy(e){return Vy.test(e)}function Uy(e){if(e.length===0||e.includes(` `))return!1;let t=e.normalize(`NFC`).replace(/[\u002E\u3002\uFF0E\uFF61]/g,`.`);if(t.length>253)return!1;for(let e of t.split(`.`))if(!Ry(e))return!1;return!0}function Wy(e,t,n){let r=0,i=0,a=0,o=0;for(let s=t;s255||o===48&&a>1)return!1;r++,i=0,a=0,o=0}else if(t>=48&&t<=57)a===0&&(o=t),i=i*10+(t-48),a++;else return!1}return r===3&&a>0&&i<=255&&!(o===48&&a>1)}function Gy(e){return Wy(e,0,e.length)}function Ky(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function qy(e){let t=e.length;if(t===0)return!1;let n=0,r=!1,i=0;if(e.charCodeAt(0)===58&&e.charCodeAt(1)===58){if(t===2)return!0;r=!0,i=2}for(;i4)return!1;if(n++,i===t)break;if(s!==58)return!1;if(i++,e.charCodeAt(i)===58){if(r||e.charCodeAt(i+1)===58)return!1;if(r=!0,i++,i===t)break}}return r?n<=7:n===8}function Jy(e){try{return new URL(e,`http://example.com`),!0}catch{return!1}}function Yy(e){if(e.includes(` `)||e.includes(`\\`)||/[\x00-\x1F\x7F]/.test(e)||/%(?![0-9a-fA-F]{2})/.test(e))return!1;if(e===``)return!0;let t=e.indexOf(`:`);return t>0&&/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(e.substring(0,t))?Jy(e):e.match(/^([a-zA-Z][a-zA-Z0-9+\-.]*)(\/\/)/)&&t===-1?!1:Jy(e)}function Xy(e){try{return new URL(e),!0}catch{return!1}}const Zy=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i;function Qy(e){return Zy.test(e)}const $y=/^(?:\/(?:[^~/]|~0|~1)*)*$/;function eb(e){return $y.test(e)}function tb(e){if(e.length===0)return!1;try{return new RegExp(e),!0}catch{return!1}}const nb=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;function rb(e){return nb.test(e)}const ib=/^(?!.*[^\x00-\x7F])(?!.*\\)(?:(?:[a-z][a-z0-9+\-.]*:)?(?:\/\/[^\s[\]{}<>^`|]*)?|[^\s[\]{}<>^`|]*)(?:\?[^\s[\]{}<>^`|]*)?(?:#[^\s[\]{}<>^`|]*)?$/i;function ab(e){return ib.test(e)}const ob=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i;function sb(e){return ob.test(e)}function cb(e){return e>=97&&e<=122||e>=65&&e<=90}function lb(e){return cb(e)||e>=48&&e<=57}function ub(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function db(e){return lb(e)||e===43||e===45||e===46}function fb(e){return lb(e)||e===45||e===46||e===95||e===126}function pb(e){return e===33||e===36||e===38||e===39||e===40||e===41||e===42||e===43||e===44||e===59||e===61}function mb(e){return fb(e)||pb(e)||e===58||e===64}function hb(e){let t=e.length;if(t===0||!cb(e.charCodeAt(0)))return!1;let n=1;for(;n=i||!ub(e.charCodeAt(t+1))||!ub(e.charCodeAt(t+2)))return!1;t+=2}else if(!fb(n)&&!pb(n)&&n!==58)return!1}n=i+1}if(e.charCodeAt(n)===91){for(n++;n57)return!1;n++}}for(;n=t||!ub(e.charCodeAt(n+1))||!ub(e.charCodeAt(n+2)))return!1;n+=2}else if(r>127)return!1;else if(!(mb(r)||r===47||r===63||r===35))return!1;n++}return!0}const gb=/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu;function _b(e){return gb.test(e)}const vb=/^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;function yb(e){return vb.test(e)}const Z=new Map;function bb(){Z.clear()}function xb(e,t){return Z.get(e)?.(t)??!0}function Sb(){bb(),Z.set(`date-time`,py),Z.set(`date`,uy),Z.set(`duration`,hy),Z.set(`email`,_y),Z.set(`hostname`,By),Z.set(`idn-email`,Hy),Z.set(`idn-hostname`,Uy),Z.set(`ipv4`,Gy),Z.set(`ipv6`,qy),Z.set(`iri-reference`,Yy),Z.set(`iri`,Xy),Z.set(`json-pointer-uri-fragment`,Qy),Z.set(`json-pointer`,eb),Z.set(`regex`,tb),Z.set(`relative-json-pointer`,rb),Z.set(`time`,fy),Z.set(`uri-reference`,ab),Z.set(`uri-template`,sb),Z.set(`uri`,hb),Z.set(`url`,_b),Z.set(`uuid`,yb)}Sb();function Cb(e,t,n,r){return xb(n.format,r)}function wb(e,t,n,r,i,a){return Cb(e,t,i,a)||t.AddError({keyword:`format`,schemaPath:n,instancePath:r,params:{format:i.format}})}function Tb(e,t,n,r){let i=_v(n)?n.then:!0,a=z_(n)?n.else:!0;return Q(e,t,n.if,r)?Q(e,t,i,r):Q(e,t,a,r)}function Eb(e,t,n,r,i,a){let o=_v(i)?i.then:!0,s=z_(i)?i.else:!0,c=new wv,l=$(e,c,`${n}/if`,r,i.if,a)?$(e,c,`${n}/then`,r,o,a)||t.AddError({keyword:`if`,schemaPath:n,instancePath:r,params:{failingKeyword:`then`}}):$(e,t,`${n}/else`,r,s,a)||t.AddError({keyword:`if`,schemaPath:n,instancePath:r,params:{failingKeyword:`else`}});return l&&t.Merge([c]),l}function Db(e,t,n,r){return _(n.items,0,(n,i)=>he(r.length,i)||Ix(e,t,n,r[i])&&t.AddIndex(i))}function Ob(e,t,n,r,i,a){return v(i.items,0,(i,o)=>{let s=`${n}/items/${o}`,c=`${r}/${o}`;return he(a.length,o)||Lx(e,t,s,c,i,a[o])&&t.AddIndex(o)})}function kb(e,t,n,r){return _(r,lv(n)?n.prefixItems.length:0,(r,i)=>Ix(e,t,n.items,r)&&t.AddIndex(i))}function Ab(e,t,n,r,i,a){return v(a,lv(i)?i.prefixItems.length:0,(a,o)=>Lx(e,t,`${n}/items`,`${r}/${o}`,i.items,a)&&t.AddIndex(o))}function jb(e,t,n,r){return q_(n)?Db(e,t,n,r):kb(e,t,n,r)}function Mb(e,t,n,r,i,a){return q_(i)?Ob(e,t,n,r,i,a):Ab(e,t,n,r,i,a)}function Nb(e){return N_(e)}function Pb(e,t,n,r){return Nb(n)?he(r.reduce((r,i)=>Q(e,t,n.contains,i)?++r:r,0),n.maxContains):!0}function Fb(e,t,n,r,i,a){let o=ev(i)?i.minContains:1;return Pb(e,t,i,a)||t.AddError({keyword:`contains`,schemaPath:n,instancePath:r,params:{minContains:o,maxContains:i.maxContains}})}function Ib(e,t,n,r){return he(r,n.maximum)}function Lb(e,t,n,r,i,a){return Ib(e,t,i,a)||t.AddError({keyword:`maximum`,schemaPath:n,instancePath:r,params:{comparison:`<=`,limit:i.maximum}})}function Rb(e,t,n,r){return he(r.length,n.maxItems)}function zb(e,t,n,r,i,a){return Rb(e,t,i,a)||t.AddError({keyword:`maxItems`,schemaPath:n,instancePath:r,params:{limit:i.maxItems}})}function Bb(e,t,n,r){return ye(r,n.maxLength)}function Vb(e,t,n,r,i,a){return Bb(e,t,i,a)||t.AddError({keyword:`maxLength`,schemaPath:n,instancePath:r,params:{limit:i.maxLength}})}function Hb(e,t,n,r){return he(x(r).length,n.maxProperties)}function Ub(e,t,n,r,i,a){return Hb(e,t,i,a)||t.AddError({keyword:`maxProperties`,schemaPath:n,instancePath:r,params:{limit:i.maxProperties}})}function Wb(e){return N_(e)}function Gb(e,t,n,r){return Wb(n)?ge(r.reduce((r,i)=>Q(e,t,n.contains,i)?++r:r,0),n.minContains):!0}function Kb(e,t,n,r,i,a){return Gb(e,t,i,a)||t.AddError({keyword:`contains`,schemaPath:n,instancePath:r,params:{minContains:i.minContains}})}function qb(e,t,n,r){return ge(r,n.minimum)}function Jb(e,t,n,r,i,a){return qb(e,t,i,a)||t.AddError({keyword:`minimum`,schemaPath:n,instancePath:r,params:{comparison:`>=`,limit:i.minimum}})}function Yb(e,t,n,r){return ge(r.length,n.minItems)}function Xb(e,t,n,r,i,a){return Yb(e,t,i,a)||t.AddError({keyword:`minItems`,schemaPath:n,instancePath:r,params:{limit:i.minItems}})}function Zb(e,t,n,r){return be(r,n.minLength)}function Qb(e,t,n,r,i,a){return Zb(e,t,i,a)||t.AddError({keyword:`minLength`,schemaPath:n,instancePath:r,params:{limit:i.minLength}})}function $b(e,t,n,r){return ge(x(r).length,n.minProperties)}function ex(e,t,n,r,i,a){return $b(e,t,i,a)||t.AddError({keyword:`minProperties`,schemaPath:n,instancePath:r,params:{limit:i.minProperties}})}function tx(e,t,n,r){return _e(r,n.multipleOf)}function nx(e,t,n,r,i,a){return tx(e,t,i,a)||t.AddError({keyword:`multipleOf`,schemaPath:n,instancePath:r,params:{multipleOf:i.multipleOf}})}function rx(e,t,n,r){let i=new Sv;return!Q(e,i,n.not,r)&&t.Merge([i])}function ix(e,t,n,r,i,a){return rx(e,t,i,a)||t.AddError({keyword:`not`,schemaPath:n,instancePath:r,params:{}})}function ax(e,t,n,r){let i=n.oneOf.reduce((t,n)=>{let i=new Sv;return Q(e,i,n,r)?[...t,i]:t},[]);return g(i.length,1)&&t.Merge(i)}function ox(e,t,n,r,i,a){let o=[],s=[],c=i.oneOf.reduce((t,i,c)=>{let l=new wv,u=$(e,l,`${n}/oneOf/${c}`,r,i,a);return u&&s.push(c),u||o.push(l),u?[...t,l]:t},[]),l=g(c.length,1)&&t.Merge(c);return!l&&g(s.length,0)&&o.forEach(e=>e.GetErrors().forEach(e=>t.AddError(e))),l||t.AddError({keyword:`oneOf`,schemaPath:n,instancePath:r,params:{passingSchemas:s}})}function sx(e,t,n,r){return(h(n.pattern)?new RegExp(n.pattern,`u`):n.pattern).test(r)}function cx(e,t,n,r,i,a){return sx(e,t,i,a)||t.AddError({keyword:`pattern`,schemaPath:n,instancePath:r,params:{pattern:i.pattern}})}function lx(e,t,n,r){return _(Se(n.patternProperties),0,([n,i])=>{let a=new RegExp(n,`u`);return _(Se(r),0,([n,r])=>!a.test(n)||Ix(e,t,i,r)&&t.AddKey(n))})}function ux(e,t,n,r,i,a){return v(Se(i.patternProperties),0,([i,o])=>{let s=`${n}/patternProperties/${i}`,c=new RegExp(i,`u`);return v(Se(a),0,([n,i])=>{let a=`${r}/${n}`;return!c.test(n)||Lx(e,t,s,a,o,i)&&t.AddKey(n)})})}function dx(e,t,n,r){return g(r.length,0)||_(n.prefixItems,0,(n,i)=>he(r.length,i)||Ix(e,t,n,r[i])&&t.AddIndex(i))}function fx(e,t,n,r,i,a){return g(a.length,0)||v(i.prefixItems,0,(i,o)=>{let s=`${n}/prefixItems/${o}`,c=`${r}/${o}`;return he(a.length,o)||Lx(e,t,s,c,i,a[o])&&t.AddIndex(o)})}function px(e,t){return e.includes(t)||He().exactOptionalPropertyTypes}function mx(e,t){return fe(e[t])}function hx(e,t,n,r){let i=gv(n)?n.required:[];return _(Se(n.properties),0,([n,a])=>{let o=!b(r,n)||Ix(e,t,a,r[n])&&t.AddKey(n);return px(i,n)?o:mx(r,n)||o})}function gx(e,t,n,r,i,a){let o=gv(i)?i.required:[];return v(Se(i.properties),0,([i,s])=>{let c=`${n}/properties/${i}`,l=`${r}/${i}`,u=()=>!b(a,i)||Lx(e,t,c,l,s,a[i])&&t.AddKey(i);return px(o,i)?u():mx(a,i)||u()})}function _x(e,t,n,r){return _(x(r),0,(r,i)=>Q(e,t,n.propertyNames,r))}function vx(e,t,n,r,i,a){let o=[];return v(x(a),0,(t,a)=>{let s=`${r}/${t}`,c=`${n}/propertyNames`,l=$(e,new wv,c,s,i.propertyNames,t);return l||o.push(t),l})||t.AddError({keyword:`propertyNames`,schemaPath:n,instancePath:r,params:{propertyNames:o}})}function yx(e,t,n,r){let i=e.RecursiveRef(n)??!1;return X(i)&&Q(e,t,i,r)}function bx(e,t,n,r,i,a){let o=e.RecursiveRef(i)??!1;return X(o)&&$(e,t,`#`,r,o,a)}function xx(e,t,n,r){let i=e.Ref(n)??!1,a=new Sv,o=X(i)&&Q(e,a,i,r);return o&&t.Merge([a]),o}function Sx(e,t,n,r,i,a){let o=e.Ref(i)??!1,s=new wv,c=X(o)&&$(e,s,`#`,r,o,a);return c&&t.Merge([s]),c||s.GetErrors().forEach(e=>t.AddError(e)),c}function Cx(e,t,n,r){return _(n.required,0,e=>b(r,e))}function wx(e,t,n,r,i,a){let o=[];return v(i.required,0,e=>{let t=b(a,e);return t||o.push(e),t})||t.AddError({keyword:`required`,schemaPath:n,instancePath:r,params:{requiredProperties:o}})}function Tx(e,t,n,r,i){return g(n,`object`)?ue(i):g(n,`array`)?d(i):g(n,`boolean`)?ie(i):g(n,`integer`)?se(i):g(n,`number`)?p(i):g(n,`null`)?le(i):g(n,`string`)?h(i):g(n,`asyncIterator`)?re(i):g(n,`bigint`)?f(i):g(n,`constructor`)?ae(i):g(n,`function`)?oe(i):g(n,`iterator`)?ce(i):g(n,`symbol`)?de(i):g(n,`undefined`)||g(n,`void`)?fe(i):!0}function Ex(e,t,n,r,i){return n.some(n=>Tx(e,t,n,r,i))}function Dx(e,t,n,r){return d(n.type)?Ex(e,t,n.type,n,r):Tx(e,t,n.type,n,r)}function Ox(e,t,n,r,i,a){return(d(i.type)?Ex(e,t,i.type,i,a):Tx(e,t,i.type,i,a))||t.AddError({keyword:`type`,schemaPath:n,instancePath:r,params:{type:i.type}})}function kx(e,t,n,r){let i=t.GetIndices();return _(r,0,(r,a)=>(i.has(a)||Q(e,t,n.unevaluatedItems,r))&&t.AddIndex(a))}function Ax(e,t,n,r,i,a){let o=t.GetIndices(),s=[];return v(a,0,(a,c)=>{let l=new wv,u=(o.has(c)||$(e,l,n,r,i.unevaluatedItems,a))&&t.AddIndex(c);return u||s.push(c),u})||t.AddError({keyword:`unevaluatedItems`,schemaPath:n,instancePath:r,params:{unevaluatedItems:s}})}function jx(e,t,n,r){let i=t.GetKeys();return _(Se(r),0,([r,a])=>i.has(r)||Q(e,t,n.unevaluatedProperties,a)&&t.AddKey(r))}function Mx(e,t,n,r,i,a){let o=t.GetKeys(),s=[];return v(Se(a),0,([a,c])=>{let l=new wv,u=o.has(a)||$(e,l,n,r,i.unevaluatedProperties,c)&&t.AddKey(a);return u||s.push(a),u})||t.AddError({keyword:`unevaluatedProperties`,schemaPath:n,instancePath:r,params:{unevaluatedProperties:s}})}function Nx(e){return!g(e.uniqueItems,!1)}function Px(e,t,n,r){if(!Nx(n))return!0;let i=new Set(r.map(mn)).size,a=r.length;return g(i,a)}function Fx(e,t,n,r,i,a){if(!Nx(i))return!0;let o=new Set,s=a.reduce((e,t,n)=>{let r=mn(t);return o.has(r)?[...e,n]:(o.add(r),e)},[]);return g(s.length,0)||t.AddError({keyword:`uniqueItems`,schemaPath:n,instancePath:r,params:{duplicateItems:s}})}function Ix(e,t,n,r){return t.Push()&&Q(e,t,n,r)&&t.Pop()}function Q(e,t,n,r){e.Push(n);let i=E_(n)?Bv(e,t,n,r):(!vv(n)||Dx(e,t,n,r))&&(!(m(r)&&!d(r))||(!gv(n)||Cx(e,t,n,r))&&(!O_(n)||Pv(e,t,n,r))&&(!P_(n)||qv(e,t,n,r))&&(!F_(n)||Yv(e,t,n,r))&&(!I_(n)||Zv(e,t,n,r))&&(!cv(n)||lx(e,t,n,r))&&(!uv(n)||hx(e,t,n,r))&&(!dv(n)||_x(e,t,n,r))&&(!rv(n)||$b(e,t,n,r))&&(!Q_(n)||Hb(e,t,n,r)))&&(!d(r)||(!D_(n)||Av(e,t,n,r))&&(!N_(n)||Gv(e,t,n,r))&&(!K_(n)||jb(e,t,n,r))&&(!Y_(n)||Pb(e,t,n,r))&&(!X_(n)||Rb(e,t,n,r))&&(!ev(n)||Gb(e,t,n,r))&&(!tv(n)||Yb(e,t,n,r))&&(!lv(n)||dx(e,t,n,r))&&(!yv(n)||Px(e,t,n,r)))&&(!h(r)||(!Z_(n)||Bb(e,t,n,r))&&(!nv(n)||Zb(e,t,n,r))&&(!U_(n)||Cb(e,t,n,r))&&(!sv(n)||sx(e,t,n,r)))&&(!(p(r)||f(r))||(!V_(n)||ry(e,t,n,r))&&(!H_(n)||ay(e,t,n,r))&&(!J_(n)||Ib(e,t,n,r))&&(!$_(n)||qb(e,t,n,r))&&(!iv(n)||tx(e,t,n,r)))&&(!hv(n)||xx(e,t,n,r))&&(!mv(n)||yx(e,t,n,r))&&(!R_(n)||$v(e,t,n,r))&&(!C_(n)||Tv(e,t,n,r))&&(!M_(n)||Hv(e,t,n,r))&&(!B_(n)||ty(e,t,n,r))&&(!G_(n)||Tb(e,t,n,r))&&(!av(n)||rx(e,t,n,r))&&(!k_(n)||Iv(e,t,n,r))&&(!j_(n)||Rv(e,t,n,r))&&(!ov(n)||ax(e,t,n,r))&&(!bv(n)||!d(r)||kx(e,t,n,r))&&(!xv(n)||!m(r)||jx(e,t,n,r))&&(!w_(n)||Dv(e,t,n,r));return e.Pop(n),i}function Lx(e,t,n,r,i,a){return t.Push()&&$(e,t,n,r,i,a)&&t.Pop()}function $(e,t,n,r,i,a){e.Push(i);let o=E_(i)?Vv(e,t,n,r,i,a):!!((!vv(i)||Ox(e,t,n,r,i,a))&+(!(m(a)&&!d(a))||!!((!gv(i)||wx(e,t,n,r,i,a))&+(!O_(i)||Fv(e,t,n,r,i,a))&(!P_(i)||Jv(e,t,n,r,i,a))&(!F_(i)||Xv(e,t,n,r,i,a))&(!I_(i)||Qv(e,t,n,r,i,a))&(!cv(i)||ux(e,t,n,r,i,a))&(!uv(i)||gx(e,t,n,r,i,a))&(!dv(i)||vx(e,t,n,r,i,a))&(!rv(i)||ex(e,t,n,r,i,a))&(!Q_(i)||Ub(e,t,n,r,i,a))))&(!d(a)||!!((!D_(i)||jv(e,t,n,r,i,a))&+(!N_(i)||Kv(e,t,n,r,i,a))&(!K_(i)||Mb(e,t,n,r,i,a))&(!Y_(i)||Fb(e,t,n,r,i,a))&(!X_(i)||zb(e,t,n,r,i,a))&(!ev(i)||Kb(e,t,n,r,i,a))&(!tv(i)||Xb(e,t,n,r,i,a))&(!lv(i)||fx(e,t,n,r,i,a))&(!yv(i)||Fx(e,t,n,r,i,a))))&(!h(a)||!!((!Z_(i)||Vb(e,t,n,r,i,a))&+(!nv(i)||Qb(e,t,n,r,i,a))&(!U_(i)||wb(e,t,n,r,i,a))&(!sv(i)||cx(e,t,n,r,i,a))))&(!(p(a)||f(a))||!!((!V_(i)||iy(e,t,n,r,i,a))&+(!H_(i)||oy(e,t,n,r,i,a))&(!J_(i)||Lb(e,t,n,r,i,a))&(!$_(i)||Jb(e,t,n,r,i,a))&(!iv(i)||nx(e,t,n,r,i,a))))&(!hv(i)||Sx(e,t,n,r,i,a))&(!mv(i)||bx(e,t,n,r,i,a))&(!R_(i)||ey(e,t,n,r,i,a))&(!C_(i)||Ev(e,t,n,r,i,a))&(!M_(i)||Uv(e,t,n,r,i,a))&(!B_(i)||ny(e,t,n,r,i,a))&(!G_(i)||Eb(e,t,n,r,i,a))&(!av(i)||ix(e,t,n,r,i,a))&(!k_(i)||Lv(e,t,n,r,i,a))&(!j_(i)||zv(e,t,n,r,i,a))&(!ov(i)||ox(e,t,n,r,i,a))&(!bv(i)||!d(a)||Ax(e,t,n,r,i,a))&(!xv(i)||!m(a)||Mx(e,t,n,r,i,a)))&&(!w_(i)||Ov(e,t,n,r,i,a));return e.Pop(i),o}function Rx(e,t){return m(t)&&!xe(e)?t[e]:void 0}function zx(e,t){return e.reduce((e,t)=>Rx(t,e),t)}function Bx(e){if(g(e.length,0))return[];let t=e.split(`/`).map(e=>e.replace(/~1/g,`/`).replace(/~0/g,`~`));return t.length>0&&t[0]===``?t.slice(1):t}function Vx(e,t){return zx(Bx(t),e)}function Hx(e,t,n){if(e.$id===n.hash)return e;let r=new URL(e.$id,t.href),i=new URL(n.href,t.href);if(g(r.pathname,i.pathname))return n.hash.startsWith(`#`)?Gx(e,t,n):e}function Ux(e,t,n){let r=new URL(`#${e.$anchor}`,t.href),i=new URL(n.href,t.href);return g(r.href,i.href)?e:void 0}function Wx(e,t,n){let r=new URL(`#${e.$dynamicAnchor}`,t.href),i=new URL(n.href,t.href);return g(r.href,i.href)?e:void 0}function Gx(e,t,n){if(n.href.endsWith(`#`))return e;if(!n.hash.startsWith(`#`))return;let r=decodeURIComponent(n.hash.slice(1));if(r.startsWith(`/`))return Vx(e,r)}function Kx(e,t,n){if(W_(e)){let r=Hx(e,t,n);if(!fe(r))return r}if(A_(e)){let r=Ux(e,t,n);if(!fe(r))return r}if(L_(e)){let r=Wx(e,t,n);if(!fe(r))return r}return Gx(e,t,n)}function qx(e,t,n){return e.reduce((e,r)=>{let i=Yx(r,t,n);return fe(i)?e:i},void 0)}function Jx(e,t,n){return x(e).reduce((r,i)=>{let a=Yx(e[i],t,n);return fe(a)?r:a},void 0)}function Yx(e,t,n){let r=T_(e)&&W_(e)?new URL(e.$id,t.href):t;if(T_(e)){let t=Kx(e,r,n);if(!fe(t))return t}if(d(e))return qx(e,r,n);if(m(e))return Jx(e,r,n)}function Xx(e,t){let n=new URL(`http://unknown/`),r=W_(e)?new URL(e.$id,n.href):n;return Yx(e,r,new URL(t,r.href))}function Zx(e,t,n,r){let i=n.$dynamicRef.startsWith(`#`)?Xx(t,n.$dynamicRef):Xx(e,n.$dynamicRef);if(!fe(i))return!T_(i)||!L_(i)||new URL(n.$dynamicRef,`http://unknown/`).hash.startsWith(`#/`)?i:r.find(e=>e.$dynamicAnchor===i.$dynamicAnchor)??i}var Qx=function(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)},$x,eS,tS,nS,rS,iS=class{constructor(e,t){$x.add(this),this.context=e,this.schema=t,this.ids=[],this.anchors=[],this.recursiveAnchors=[],this.dynamicAnchors=[]}BaseURL(){return this.ids.reduce((e,t)=>new URL(t.$id,e),new URL(`http://unknown`))}Base(){return this.ids[this.ids.length-1]??this.schema}Push(e){T_(e)&&(W_(e)&&(this.ids.push(e),Qx(this,$x,`m`,eS).call(this,e)),A_(e)&&this.anchors.push(e),pv(e)&&this.recursiveAnchors.push(e),L_(e)&&this.dynamicAnchors.push(e))}Pop(e){T_(e)&&(W_(e)&&(this.ids.pop(),Qx(this,$x,`m`,tS).call(this,e)),A_(e)&&this.anchors.pop(),pv(e)&&this.recursiveAnchors.pop(),L_(e)&&this.dynamicAnchors.pop())}Ref(e){return Qx(this,$x,`m`,nS).call(this,e)??Qx(this,$x,`m`,rS).call(this,e)}RecursiveRef(e){return pv(this.Base())?Xx(this.recursiveAnchors[0],e.$recursiveRef):Xx(this.Base(),e.$recursiveRef)}DynamicRef(e){let t=this.schema;return Zx(t,this.Base(),e,this.dynamicAnchors)}};$x=new WeakSet,eS=function e(t,n=!0){if(!T_(t))return;let r=t;if(!(!n&&W_(r))){!n&&L_(r)&&this.dynamicAnchors.push(r);for(let t of x(r))Qx(this,$x,`m`,e).call(this,r[t],!1)}},tS=function e(t,n=!0){if(!T_(t))return;let r=t;if(!(!n&&W_(r))){!n&&L_(r)&&this.dynamicAnchors.pop();for(let t of x(r))Qx(this,$x,`m`,e).call(this,r[t],!1)}},nS=function(e){return b(this.context,e.$ref)?this.context[e.$ref]:void 0},rS=function(e){let t=this.schema;return e.$ref.startsWith(`#`)?Xx(this.Base(),e.$ref):Xx(t,e.$ref)};function aS(...e){let[t,n,r]=jt(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]}),i=He(),a=_n(),o=[];return[$(new iS(t,n),new Cv(e=>{if(!ge(o.length,i.maxErrors))return o.push({...e,message:a(e)})}),`#`,``,n,r),o]}function oS(...e){let[t,n,r]=jt(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]});return Q(new iS(t,n),new Sv,n,r)}var sS=class{constructor(e,t,n){this.schema=e,this.value=t,this.errors=n}};function cS(...e){let[t,n,r]=jt(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]});if(!oS(t,n,r)){let[e,i]=aS(t,n,r);throw new sS(n,r,i)}return r}const{Product:lS}=x_({Timestamp:On(kt({}),e=>e instanceof Date)},` +`,e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>[]))),([e,t])=>[as(e),t]),Cu=(e,t=[])=>V(V(Tu(e),([e,t])=>V(Su(t),([t,n])=>[[e,t],n])),([e,n])=>Cu(n,[...t,e]),()=>[t,e]),wu=e=>V(V(Cu(e),([e,t])=>V(V(V(Tu(t),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>V([[],t],([e,t])=>[e,t],()=>[])),([t,n])=>[[e,t],n])),([e,t])=>[os(e),t]),Tu=e=>V(V(xu(e),([e,t])=>V(V(_u(t),([e,t])=>[e,t],()=>V(vu(t),([e,t])=>[e,t],()=>V(yu(t),([e,t])=>[e,t],()=>V(bu(t),([e,t])=>[e,t],()=>[])))),([t,n])=>V(yc(n),([n,r])=>[[e,t,n],r]))),([e,t])=>[ss(e),t]),Eu=e=>V(V(Tu(e),([e,t])=>V(wu(t),([t,n])=>[[e,t],n])),([e,t])=>[cs(e),t]),Du=e=>V(V(Eu(e),([e,t])=>[e,t],()=>V(rl(e),([e,t])=>[e,t],()=>V(H(e),([e,t])=>[e,t],()=>[]))),([e,t])=>[ls(e),t]);function Ou(e){return e.join(`|`)}function ku(e){return e.slice(1,e.length-1)}function Au(e,t,n){return Vu(t,`${n}${e}`)}function ju(e,t){return Vu(e,`${t}-?(?:0|[1-9][0-9]*)n`)}function Mu(e,t){return Vu(e,`${t}${Fn}`)}function Nu(e,t){return Vu(e,`${t}${Gn}`)}function Pu(e,t){return Bu(P([M(`false`),M(`true`)]),e,t)}function Fu(e,t){return Vu(e,`${t}.*`)}function Iu(e,t,n){return Vu(t,`${n}${ku(e)}`)}function Lu(e,t,n){return Bu(Wu(e,{}),t,n)}function Ru(e,t,n){return Bu(Qr(e),t,n)}function zu(e,t,n,r=[]){return y(e,(e,i)=>zu(i,t,n,[...r,Bu(e,[],``)]),()=>Vu(t,`${n}(${Ou(r)})`))}function Bu(e,t,n){return Vt(e)?Ru(e.enum,t,n):Ln(e)?Mu(t,n):N(e)?Au(e.const,t,n):jn(e)?ju(t,n):Nn(e)?Pu(t,n):qn(e)?Nu(t,n):Qn(e)?Fu(t,n):Ju(e)?Iu(e.pattern,t,n):qu(e)?Lu(e.parameters[0],t,n):F(e)?zu(e.anyOf,t,n):`(?!)`}function Vu(e,t){return y(e,(e,n)=>Bu(e,n,t),()=>t)}function Hu(e){return`^${Vu(e,``)}$`}function Uu(e){return or(Hu(e))}function Wu(e,t){return J(e)?C(Uu(e),{},t):Ku(e,t)}function Gu(e,t,n,r){return Wu(Xg(e,t,n),r)}function Ku(e,t={}){return T(`TemplateLiteral`,[e],t)}function qu(e){return Qe(e)&&b(e,`action`)&&g(e.action,`TemplateLiteral`)}function Ju(e){return w(e,`TemplateLiteral`)}function Yu(e){return S({"~kind":`ExtendsUnion`},{inferred:e})}function Xu(e){return m(e)&&b(e,`~kind`)&&b(e,`inferred`)&&g(e[`~kind`],`ExtendsUnion`)&&m(e.inferred)}function U(e){return S({"~kind":`ExtendsTrue`},{inferred:e})}function Zu(e){return m(e)&&b(e,`~kind`)&&b(e,`inferred`)&&g(e[`~kind`],`ExtendsTrue`)&&m(e.inferred)}function W(){return S({"~kind":`ExtendsFalse`},{})}function Qu(e){return m(e)&&b(e,`~kind`)&&g(e[`~kind`],`ExtendsFalse`)}function $u(e){return Xu(e)||Zu(e)}function G(e,t,n){return $u(e)?t(e.inferred):n()}function ed(e,n,r,i){return G(q(e,r,i),i=>U(t(t(e,i),{[n]:r})),()=>W())}function td(e,t){return U(e)}function nd(e,t,n,r,i){return G(q(e,t,n),e=>G(q(e,t,r),e=>U(e),()=>W()),()=>G(q(e,t,i),e=>U(e),()=>W()))}function rd(e,t,n){return q(e,t,Qr(n))}function id(e,t,n){return y(n,(n,r)=>G(q(e,t,n),e=>id(e,t,r),()=>W()),()=>U(e))}function ad(e,t,n){return q(e,t,ei(n))}function od(e,t,n){return y(n,(n,r)=>G(q(e,t,n),e=>U(e),()=>od(e,t,r)),()=>W())}function K(e,t,n){return bt(n)?td(e,t):zt(n)?nd(e,t,n.if,n.then,n.else):Vt(n)?rd(e,t,n.enum):Lt(n)?ed(e,n.name,t,n.extends):k(n)?id(e,t,n.allOf):Ju(n)?ad(e,t,n.pattern):F(n)?od(e,t,n.anyOf):At(n)?U(e):W()}function sd(e,t,n){return Lt(n)?K(e,t,n):bt(n)||At(n)?U(e):Yu(e)}function cd(e,t){let n=Sn(e),r=Sn(t);return n&&r||!n&&r?!0:!(n&&!r)}function ld(e,t,n,r){return st(r)?cd(t,r)?q(e,n,r.items):W():K(e,t,r)}function ud(e,t,n){return jn(n)?U(e):K(e,t,n)}function dd(e,t,n){return Nn(n)?U(e):K(e,t,n)}function fd(e,t,n,r,i){let a=Lt(r)?t:r,o=Lt(r)?r:t,s=wt(t),c=wt(r);return!s&&c?W():G(q(e,a,o),e=>hd(e,n,i),()=>W())}function pd(e,t,n,r){return y(r,(r,i)=>fd(e,t,n,r,i),()=>wt(t)?U(e):W())}function md(e,t,n){return y(t,(t,r)=>pd(e,t,r,n),()=>U(e))}function hd(e,t,n){return md(e,t,n)}function gd(e,t,n){return zi(n)?U(e):q(e,t,n)}function _d(e,t,n,r){return bt(r)||At(r)?U(e):ut(r)?G(hd(e,t,r.parameters),e=>gd(e,n,r.instanceType),()=>W()):W()}function vd(e,t,n,r,i){return G(q(e,t,i),()=>q(e,n,i),()=>q(e,r,i))}function yd(e,t,n){return q(e,Qr(t),n)}function bd(e,t,n,r){return bt(r)||At(r)?U(e):pt(r)?G(hd(e,t,r.parameters),e=>gd(e,n,r.returnType),()=>W()):W()}function xd(e,t,n){return Ln(n)||qn(n)?U(e):K(e,t,n)}function Sd(e,t,n){return q(e,$r(t),n)}function Cd(e,t,n){return t===n?U(e):W()}function wd(e,t,n){return N(n)?Cd(e,t,n.const):jn(n)?U(e):K(e,M(t),n)}function Td(e,t,n){return N(n)?Cd(e,t,n.const):Nn(n)?U(e):K(e,M(t),n)}function Ed(e,t,n){return N(n)?Cd(e,t,n.const):qn(n)?U(e):K(e,M(t),n)}function Dd(e,t,n){return N(n)?Cd(e,t,n.const):Qn(n)?U(e):K(e,M(t),n)}function Od(e,t,n){return f(t.const)?wd(e,t.const,n):re(t.const)?Td(e,t.const,n):p(t.const)?Ed(e,t.const,n):h(t.const)?Dd(e,t.const,n):Wt()}function kd(e,t,n){return Lt(n)?K(e,t,n):U(e)}function Ad(e,t,n){return Wn(n)?U(e):K(e,t,n)}function jd(e,t,n){return qn(n)?U(e):K(e,t,n)}function Md(e,t,n){return wt(t)?wt(n)?U(e):W():U(e)}function Nd(e,t,n){return Lt(n)&&xt(n.extends)?W():G(q(e,t,n),e=>Md(e,t,n),()=>W())}function Pd(e,t){return e.reduce((e,n)=>n in t&&$u(t[n])?{...e,...t[n].inferred}:Wt(),{})}function Fd(e,n,r){let i={};for(let a of x(r))i[a]=a in n?Nd({},n[a],r[a]):wt(r[a])?Lt(r[a])?U(t(e,{[r[a].name]:r[a].extends})):U(e):W();let a=Ce(i).every(e=>$u(e)),o=a?Pd(x(i),i):{};return a?U(o):W()}function Id(e,n,r){let i=Fd(e,n,r);return $u(i)?U(t(e,i.inferred)):W()}function Ld(e,t,n){return Id(e,t,n)}function Rd(e,t){return x(t).reduce((n,r)=>({...n,[r]:b(e,r)?F(n[r])?P([...n[r].anyOf,t[r]]):P([e[r],t[r]]):t[r]}),e)}function zd(e,t,n,r){return y(t,(t,i)=>G(q({},e[t],n),t=>zd(e,i,n,Rd(r,t)),()=>W()),()=>U(r))}function Bd(e,t,n,r){return zd(t,x(t),r,e)}function Vd(e,t,n){return ji(n)?Bd(e,t,Oi(n),Ai(n)):O(n)?Ld(e,t,n.properties):K(e,D(t),n)}function Hd(e,t){return g(x(t).length,0)?U(e):W()}function Ud(e,t,n,r,i){return q(e,n,i)}function Wd(e,t,n,r){return ji(r)?Ud(e,Di(t),n,Di(Oi(r)),Ai(r)):O(r)?Hd(e,r.properties):bt(r)||At(r)?U(e):W()}function Gd(e,t,n){return Qn(n)?U(e):K(e,t,n)}function Kd(e,t,n){return Yn(n)?U(e):K(e,t,n)}function qd(e,t,n){return q(e,ei(t),n)}function Jd(e,t){return S({"~kind":`Inferrable`},{name:e,type:t},{})}function Yd(e){return m(e)&&b(e,`~kind`)&&b(e,`name`)&&b(e,`type`)&&g(e[`~kind`],`Inferrable`)&&h(e.name)&&m(e.type)}function Xd(e){return Ni(e)?Lt(e.items)?st(e.items.extends)?Jd(e.items.name,e.items.extends.items):At(e.items.extends)?Jd(e.items.name,e.items.extends):void 0:Wt():void 0}function Zd(e){return Lt(e)?Jd(e.name,e.extends):void 0}function Qd(e,t,n=[]){return y(e,(e,r)=>G(q({},e,t),()=>Qd(r,t,[...n,e]),()=>void 0),()=>n)}function $d(e,n,r,i){let a=Qd(r,i);return d(a)?U(t(e,{[n]:br(a)})):W()}function ef(e,n,r,i){let a=Qd(r,i);return d(a)?U(t(e,{[n]:P(a)})):W()}function tf(e){return[...e].reverse()}function nf(e,t){return t?tf(e):e}function rf(e){let t=e.length>0?e[0]:void 0;return Qe(Qe(t)?Xd(t):void 0)}function af(e,t,n,r,i,a){return G(q(e,n,i),e=>cf(e,t,r,a),()=>W())}function of(e,t,n,r,i){let a=Xd(r);return Yd(a)?$d(e,a.name,nf(n,t),a.type):y(n,(n,a)=>af(e,t,n,a,r,i),()=>W())}function sf(e,t,n,r){return y(r,(r,i)=>of(e,t,n,r,i),()=>g(n.length,0)?U(e):W())}function cf(e,t,n,r){return sf(e,t,n,r)}function lf(e,t,n){let r=Yg(e,qg([],[]),n),i=rf(r);return cf(e,i,nf(t,i),nf(r,i))}function uf(e,t,n){let r=Zd(n);return Yd(r)?ef(e,r.name,t,r.type):y(t,(t,r)=>G(q(e,t,n),e=>uf(e,r,n),()=>W()),()=>U(e))}function df(e,t,n){let r=Yg(e,qg([],[]),t);return I(n)?lf(e,r,n.items):st(n)?uf(e,r,n.items):K(e,br(r),n)}function ff(e,t,n){return zi(n)||Li(n)?U(e):K(e,t,n)}function pf(e,t,n){return y(n,(n,r)=>G(q(e,t,n),e=>U(e),()=>pf(e,t,r)),()=>W())}function mf(e,t,n){return y(t,(t,r)=>G(pf(e,t,n),e=>mf(e,r,n),()=>W()),()=>U(e))}function hf(e,t,n){let r=Zd(n);return Yd(r)?ef(e,r.name,t,r.type):F(n)?mf(e,t,n.anyOf):mf(e,t,[n])}function gf(e,t,n){return Lt(n)?K(e,t,n):bt(n)||At(n)?U(e):W()}function _f(e,t,n){return zi(n)?U(e):K(e,t,n)}function q(e,t,n){return bt(t)?sd(e,t,n):st(t)?ld(e,t,t.items,n):jn(t)?ud(e,t,n):Nn(t)?dd(e,t,n):ut(t)?_d(e,t.parameters,t.instanceType,n):zt(t)?vd(e,t.if,t.then,t.else,n):Vt(t)?yd(e,t.enum,n):pt(t)?bd(e,t.parameters,t.returnType,n):Ln(t)?xd(e,t,n):k(t)?Sd(e,t.allOf,n):N(t)?Od(e,t,n):xt(t)?kd(e,t,n):Wn(t)?Ad(e,t,n):qn(t)?jd(e,t,n):O(t)?Vd(e,t.properties,n):ji(t)?Wd(e,Oi(t),Ai(t),n):Qn(t)?Gd(e,t,n):Yn(t)?Kd(e,t,n):Ju(t)?qd(e,t.pattern,n):I(t)?df(e,t.items,n):Li(t)?ff(e,t,n):F(t)?hf(e,t.anyOf,n):At(t)?gf(e,t,n):zi(t)?_f(e,t,n):W()}function vf(e,t){return $r([...e,D(t)])}function yf(e,t,n){return J(e)?C(vf(e,t),{},n):xf(e,t,n)}function bf(e,t,n,r,i){return yf(Xg(e,t,n),Jg(e,t,r),i)}function xf(e,t,n={}){return T(`Interface`,[e,t],n)}function Sf(e){return Qe(e)&&b(e,`action`)&&g(e.action,`Interface`)}function Cf(e,t,n){return e.includes(n)?!0:Ef([...e,n],t,t[n])}function wf(e,t,n){return Tf(e,t,Dt(n))}function Tf(e,t,n){return y(n,(n,r)=>Ef(e,t,n)?!0:Tf(e,t,r),()=>!1)}function Ef(e,t,n){return gt(n)?Cf(e,t,n.$ref):st(n)?Ef(e,t,n.items):ut(n)?Tf(e,t,[...n.parameters,n.instanceType]):pt(n)?Tf(e,t,[...n.parameters,n.returnType]):Sf(n)?wf(e,t,n.parameters[1]):k(n)?Tf(e,t,n.allOf):O(n)?wf(e,t,n.properties):F(n)?Tf(e,t,n.anyOf):I(n)?Tf(e,t,n.items):ji(n)?Ef(e,t,Ai(n)):!1}function Df(e,t,n){return Ef(e,t,n)}function Of(e,t){return t.reduce((t,n)=>Df([n],e,e[n])?[...t,n]:t,[])}function kf(e){return Of(e,Et(e))}function Af(e,t,n){return n.includes(t)?n:t in e?Nf(e,e[t],[...n,t]):Wt()}function jf(e,t,n){return Mf(e,Dt(t),n)}function Mf(e,t,n){return t.reduce((t,n)=>Nf(e,n,t),n)}function Nf(e,t,n){return gt(t)?Af(e,t.$ref,n):st(t)?Nf(e,t.items,n):ut(t)?Mf(e,[...t.parameters,t.instanceType],n):pt(t)?Mf(e,[...t.parameters,t.returnType],n):Sf(t)?jf(e,t.parameters[1],n):k(t)?Mf(e,t.allOf,n):O(t)?jf(e,t.properties,n):F(t)?Mf(e,t.anyOf,n):I(t)?Mf(e,t.items,n):ji(t)?Nf(e,Ai(t),n):n}function Pf(e,t,n){return Nf(e,n,[t])}function Ff(e){return yt()}function If(e){return x(e).reduce((t,n)=>({...t,[n]:Rf(e[n])}),{})}function Lf(e){return e.reduce((e,t)=>[...e,Rf(t)],[])}function Rf(e){return gt(e)?Ff(e.$ref):st(e)?ot(Rf(e.items),ct(e)):ut(e)?lt(Lf(e.parameters),Rf(e.instanceType)):pt(e)?ft(Lf(e.parameters),Rf(e.returnType)):k(e)?Ht(Lf(e.allOf)):O(e)?D(If(e.properties)):ji(e)?Ti(ki(e),Rf(Ai(e))):F(e)?P(Lf(e.anyOf)):I(e)?br(Lf(e.items)):e}function zf(e,t){return t in e?Rf(e[t]):kt()}function Bf(e){return zf(e.$defs,e.$ref)}function Vf(e,t,n){let r=Xg(e,qg([],[]),t),i=Jg({},qg([],[]),n);return $r([...r,D(i)])}function Hf(e,t){return x(e).filter(e=>t.includes(e)).reduce((t,n)=>{let r=e[n],i=Sf(r)?Vf(e,r.parameters[0],r.parameters[1]):r;return{...t,[n]:i}},{})}function Uf(e,t,n){return jt(Hf(e,Pf(e,t,n)),t)}function Wf(e,t){return t in e?gt(e[t])?Wf(e,e[t].$ref):e[t]:E()}function Gf(e,t){return Wf(e,t)}function Kf(e){return Mt(e)?Bf(e):Pt(e)?kt():e}function qf(e,t,n){return q(e,Kf(t),Kf(n))}function Jf(e,t){let n=[At(e)?W():qf({},e,t),At(e)?U({}):qf({},t,e)];return $u(n[0])&&$u(n[1])?`equal`:$u(n[0])&&Qu(n[1])?`left-inside`:Qu(n[0])&&$u(n[1])?`right-inside`:`disjoint`}function Yf(e,t){return t.filter(t=>Jf(e,t)!==`right-inside`)}function Xf(e,t){return g(t.some(t=>{let n=Jf(e,t);return g(n,`left-inside`)||g(n,`equal`)}),!1)}function Zf(e,t){let n=ni(e);return bt(n)?[n]:Xf(n,t)?[...Yf(n,t),n]:t}function Qf(e){return e.reduce((e,t)=>O(t)?[...e,t]:xt(t)?e:Zf(t,e),[])}function $f(e){return fi(Qf(e))}function ep(e,t){return C(ni(e),{},t)}function tp(e,t,n,r){return ep(Y(e,t,n),r)}function np(e,t=[]){return $e(e)&&g(e.action,`Conditional`)?gt(e.parameters[0])?np(e.parameters[2],np(e.parameters[3],[...t,e.parameters[0].$ref])):np(e.parameters[2],np(e.parameters[3],t)):$e(e)&&g(e.action,`Mapped`)&&$e(e.parameters[1])&&g(e.parameters[1].action,`KeyOf`)&>(e.parameters[1].parameters[0])?[...t,e.parameters[1].parameters[0].$ref]:t}function rp(e,t){return e.reduce((e,n)=>[...e,t.includes(n.name)],[])}function ip(e,t,n=[]){return y(e,(e,r)=>y(t,(t,i)=>ip(r,i,[...n,[t,e]]),()=>n),()=>n)}function ap(e){return F(e)?[...e.anyOf]:[e]}function op(e,t){return e.reduce((e,n)=>[...e,[...n,t]],[])}function sp(e,t){return t.reduce((t,n)=>[...t,...op(e,n)],[])}function cp(e){return e.reduce((e,t)=>g(t[0],!0)?sp(e,ap(t[1])):sp(e,[t[1]]),[[]])}function lp(e,t,n){let r=ip(t,rp(e,np(n)));return $e(n)&&g(n.action,`Conditional`)||$e(n)&&g(n.action,`Mapped`)?cp(r):[t]}function up(){return[`(not-resolvable)`,E()]}function dp(){return[`(not-generic)`,E()]}function fp(e,t,n){return[e,_t(t,n)]}function pp(e,t,n){return t in e?mp(e,t,e[t],n):up()}function mp(e,t,n,r){return vt(n)?fp(t,n.parameters,n.expression):gt(n)?pp(e,n.$ref,r):dp()}function hp(e,t,n){return mp(e,`(anonymous)`,t,n)}function gp(e,t,n){if(Lt(t)||Op(t)||$u(qf({},t,n)))return;let r={parameter:e,expect:n,actual:t};throw Error(`Argument for parameter ${e} does not satisfy constraint`,{cause:r})}function _p(e,n,r,i,a){let o=Y(e,n,a);return gp(r,o,i),t(e,{[r]:o})}function vp(e,t,n,r,i){let a=Y(e,t,n.extends),o=Y(e,t,n.equals);return y(i,(i,o)=>yp(_p(e,t,n.name,a,i),t,r,o),()=>yp(_p(e,t,n.name,a,o),t,r,[]))}function yp(e,t,n,r){return y(n,(n,i)=>vp(e,t,n,i,r),()=>e)}function bp(e,t,n,r){return yp(e,t,n,r)}function xp(e){return de(e.callstack.length,0)?e.callstack[e.callstack.length-1]:``}function Sp(e,t){return g(xp(e),t)}function Cp(e,t,n,r,i,a){let o=bp(e,t,r,a),s=Y(o,qg([...t.callstack,n.$ref],t.visited),i);return Y(o,qg([],[]),s)}function wp(e,t,n,r,i,a){return a.reduce((a,o)=>[...a,Cp(e,t,n,r,i,o)],[])}function Tp(e,t,n,r,i,a){let o=wp(e,t,n,r,i,lp(r,a,i));return g(o.length,1)?o[0]:ti(o)}function Ep(e,t,n,r){let i=Xg(e,t,r),a=hp(e,n,r),o=a[0],s=a[1];return vt(s)?Sp(t,o)?Dp(ht(o),i):Tp(e,t,ht(o),s.parameters,s.expression,i):Dp(n,i)}function Dp(e,t){return S({"~kind":`Call`},{type:`call`,target:e,arguments:t},{})}function Op(e){return w(e,`Call`)}function kp(e){return Ze(e,[`~immutable`])}function Ap(e,t){return C(kp(e),{},t)}function jp(e,t,n,r){return Ap(Y(e,t,n),r)}function Mp(e,t){return e(t)}function Np(e,t){return h(t)?M(Mp(e,t)):M(t)}function Pp(e,t){return Ip(e,ei(t))}function Fp(e,t){return P(t.map(t=>Ip(e,t)))}function Ip(e,t){return N(t)?Np(e,t.const):Ju(t)?Pp(e,t.pattern):F(t)?Fp(e,t.anyOf):t}function Lp(e,t={}){return T(`Capitalize`,[e],t)}function Rp(e,t={}){return T(`Lowercase`,[e],t)}function zp(e,t={}){return T(`Uncapitalize`,[e],t)}function Bp(e,t={}){return T(`Uppercase`,[e],t)}const Vp=e=>e[0].toUpperCase()+e.slice(1),Hp=e=>e.toLowerCase(),Up=e=>e[0].toLowerCase()+e.slice(1),Wp=e=>e.toUpperCase();function Gp(e,t){return J([e])?C(Ip(Vp,e),{},t):Lp(e,t)}function Kp(e,t){return J([e])?C(Ip(Hp,e),{},t):Rp(e,t)}function qp(e,t){return J([e])?C(Ip(Up,e),{},t):zp(e,t)}function Jp(e,t){return J([e])?C(Ip(Wp,e),{},t):Bp(e,t)}function Yp(e,t,n,r){return Gp(Y(e,t,n),r)}function Xp(e,t,n,r){return Kp(Y(e,t,n),r)}function Zp(e,t,n,r){return qp(Y(e,t,n),r)}function Qp(e,t,n,r){return Jp(Y(e,t,n),r)}function $p(e,t,n,r,i={}){return T(`Conditional`,[e,t,n,r],i)}function em(e,t,n,r,i,a){let o=qf(e,n,r);return Xu(o)?P([Y(o.inferred,t,i),Y(e,t,a)]):Zu(o)?Y(o.inferred,t,i):Y(e,t,a)}function tm(e,t,n,r,i,a,o){return J([n,r])?C(em(e,t,n,r,i,a),{},o):$p(n,r,i,a,o)}function nm(e,t,n,r,i,a,o){return tm(e,t,Y(e,t,n),Y(e,t,r),i,a,o)}function rm(e,t={}){return T(`ConstructorParameters`,[e],t)}function im(e){let t=ut(e)?e.parameters:[];return br(Yg({},qg([],[]),t))}function am(e,t){return J([e])?C(im(e),{},t):rm(e,t)}function om(e,t,n,r){return am(Y(e,t,n),r)}function sm(e,t,n={}){return T(`Exclude`,[e,t],n)}function cm(e,t,n){return J([e,t])?C(Xr(e,t),{},n):sm(e,t,n)}function lm(e,t,n,r,i){return cm(Y(e,t,n),Y(e,t,r),i)}function um(e,t,n={}){return T(`Extract`,[e,t],n)}function dm(e,t){return $u(qf({},e,t))?[e]:[]}function fm(e,t){return e.reduce((e,n)=>[...e,...dm(n,t)],[])}function pm(e,t){let n=ni(e);return ti(fm(F(n)?n.anyOf:[n],t))}function mm(e,t,n){return J([e,t])?C(pm(e,t),{},n):um(e,t,n)}function hm(e,t,n,r,i){return mm(Y(e,t,n),Y(e,t,r),i)}function gm(e,t,n={}){return T(`Index`,[e,t],n)}function _m(e,t){return Em(Gf(e,t))}function vm(e,t,n){return Em(Zr(e,t,n))}function ym(e,n){let r=x(e).filter(e=>!b(n,e)),i=x(n).filter(t=>!b(e,t)),a=x(e).filter(e=>b(n,e)),o=r.reduce((t,n)=>({...t,[n]:e[n]}),{}),s=i.reduce((e,t)=>({...e,[t]:n[t]}),{}),c=a.reduce((t,r)=>({...t,[r]:$r([e[r],n[r]])}),{});return t(t(o,s),c)}function bm(e){return e.reduce((e,t)=>ym(e,Em(t)),{})}function xm(e){return e}function Sm(e){return Em(Nr(br(e)))}function Cm(e,t){return x(e).filter(e=>e in t).reduce((n,r)=>({...n,[r]:ti([e[r],t[r]])}),{})}function wm(e,t){return y(e,(e,n)=>wm(n,Cm(t,Em(e))),()=>t)}function Tm(e){return y(e,(e,t)=>wm(t,Em(e)),()=>Wt())}function Em(e){return Mt(e)?_m(e.$defs,e.$ref):zt(e)?vm(e.if,e.then,e.else):k(e)?bm(e.allOf):F(e)?Tm(e.anyOf):I(e)?Sm(e.items):O(e)?xm(e.properties):{}}function Dm(e){return D(Em(e))}const Om=RegExp(`^(?:0|[1-9][0-9]*)$`);function km(e){let t=`${e}`;return Om.test(t)?parseInt(t):e}function Am(e){return M(km(e))}function jm(e){return e.map(e=>Mm(e))}function Mm(e){return k(e)?Ht(jm(e.allOf)):F(e)?P(jm(e.anyOf)):N(e)?Am(e.const):e}function Nm(e,t){return $u(qf({},Mm(t),Kn()))?e:N(t)&&g(t.const,`length`)?Kn():E()}function Pm(e,t){return Vm(Gf(e,t))}function Fm(e,t,n){return Vm(Zr(e,t,n))}function Im(e){return Vm(Qr(e))}function Lm(e){return Vm($r(e))}function Rm(e){return[`${e}`]}function zm(e){return Vm(ei(e))}function Bm(e){return e.reduce((e,t)=>[...e,...Vm(t)],[])}function Vm(e){return Mt(e)?Pm(e.$defs,e.$ref):zt(e)?Fm(e.if,e.then,e.else):Vt(e)?Im(e.enum):k(e)?Lm(e.allOf):N(e)?Rm(e.const):Ju(e)?zm(e.pattern):F(e)?Bm(e.anyOf):[]}function Hm(e){return Vm(e)}function Um(e,t){return t.map(t=>Wm(e,t))}function Wm(e,t){return st(t)?ot(Wm(e,t.items)):ut(t)?lt(Um(e,t.parameters),Wm(e,t.instanceType)):pt(t)?ft(Um(e,t.parameters),Wm(e,t.returnType)):I(t)?br(Um(e,t.items)):F(t)?P(Um(e,t.anyOf)):k(t)?Ht(Um(e,t.allOf)):Fi(t)?D(e):t}function Gm(e,t){return Wm(e,t)}function Km(e,t){return Gm(e,t in e?e[t]:E())}function qm(e,t){return t.reduce((t,n)=>[...t,Km(e,n)],[])}function Jm(e,t){return ti(qm(e,Hm(t)))}const Ym=new RegExp(xi);function Xm(e){return e.filter(e=>Ym.test(e))}function Zm(e){return ti(qm(e,Xm(Et(e))))}function Qm(e,t){return qn(t)?Zm(e):Jm(e,t)}function $m(e){return M(km(e))}function eh(e){return e.map(e=>th(e))}function th(e){return k(e)?Ht(eh(e.allOf)):F(e)?P(eh(e.anyOf)):N(e)?$m(e.const):e}function nh(e,t){return e.reduceRight((e,n,r)=>$u(qf({},M(r),t))?[n,...e]:e,[])}function rh(e,t){return ri(nh(e,th(t)))}function ih(e){return ri(e)}function ah(e,t){return N(t)&&g(t.const,`length`)?M(e.length):qn(t)||Ln(t)?ih(e):rh(e,t)}function oh(e,t){return st(e)?Nm(e.items,t):O(e)?Qm(e.properties,t):I(e)?ah(e.items,t):E()}function sh(e){return Mt(e)||zt(e)||k(e)||F(e)?Dm(e):e}function ch(e,t,n){return J([e,t])?C(oh(sh(e),t),{},n):gm(e,t,n)}function lh(e,t,n,r,i){return ch(Y(e,t,n),Y(e,t,r),i)}function uh(e,t={}){return T(`InstanceType`,[e],t)}function dh(e){return ut(e)?e.instanceType:E()}function fh(e,t){return J([e])?C(dh(e),{},t):uh(e,t)}function ph(e,t,n,r={}){return fh(Y(e,t,n),r)}function mh(e,t={}){return T(`KeyOf`,[e],t)}function hh(){return P([Kn(),Zn(),Jn()])}function gh(e){return Kn()}function _h(e){return e.reduce((e,t)=>Bn(t)?[...e,M(km(t))]:Wt(),[])}function vh(e){return ri(_h(x(e)))}function yh(e){return ki(e)}function bh(e){return ri(e.map((e,t)=>M(t)))}function xh(e){return bt(e)?hh():st(e)?gh(e.items):O(e)?vh(e.properties):ji(e)?yh(e):I(e)?bh(e.items):E()}function Sh(e){return Mt(e)||zt(e)||k(e)||F(e)?Dm(e):e}function Ch(e,t){return J([e])?C(xh(Sh(e)),{},t):mh(e,t)}function wh(e,t,n,r){return Ch(Y(e,t,n),r)}function Th(e,t,n,r,i={}){return T(`Mapped`,[e,t,n,r],i)}function Eh(e){return Ah(ei(e))}function Dh(e){return e.reduce((e,t)=>[...e,...Ah(t)],[])}function Oh(e){return Ah(Qr(e))}function kh(e){return p(e)?[M(`${e}`)]:[M(e)]}function Ah(e){return Vt(e)?Oh(e.enum):N(e)?kh(e.const):Ju(e)?Eh(e.pattern):F(e)?Dh(e.anyOf):[e]}function jh(e){return Ah(e)}function Mh(e){return Ju(e)?ei(e.pattern):e}function Nh(e,n,r,i,a,o){let s=t(e,{[r.name]:i}),c=Mh(Y(s,n,a)),l=Y(s,n,o);return Vn(c)||Hn(c)?{[c.const]:l}:{}}function Ph(e,t,n,r,i,a){return r.reduce((r,o)=>[...r,Nh(e,t,n,o,i,a)],[])}function Fh(e){return e.reduce((e,t)=>[...e,D(t)],[])}function Ih(e,t,n,r,i,a){return $r(Fh(Ph(e,t,n,jh(r),i,a)))}function Lh(e,t,n,r,i,a,o){return J([r])?C(Ih(e,t,n,r,i,a),{},o):Th(n,r,i,a,o)}function Rh(e,t,n,r,i,a,o){return Lh(e,t,n,Y(e,t,r),i,a,o)}function zh(e,n,r){let i=t(e,n);return x(n).filter(e=>r.includes(e)).reduce((e,t)=>({...e,[t]:Uf(i,t,n[t])}),{})}function Bh(e,n,r){let i=t(e,n);return x(n).filter(e=>!r.includes(e)).reduce((e,t)=>({...e,[t]:Y(i,qg([],[]),n[t])}),{})}function Vh(e,t,n){let r=kf(t),i=zh(e,t,r),a=Bh(e,t,r);return C({...i,...a},{},n)}function Hh(e,t,n,r){return Vh(e,n,r)}function Uh(e,t={}){return T(`NonNullable`,[e],t)}function Wh(e){return cm(e,P([Un(),Ii()]),{})}function Gh(e,t){return J([e])?C(Wh(e),{},t):Uh(e,t)}function Kh(e,t,n,r){return Gh(Y(e,t,n),r)}function qh(e,t,n={}){return T(`Omit`,[e,t],n)}function Jh(e){let t=Dm(e);return O(t)?t.properties:Wt()}function Yh(e,t){return x(e).reduce((n,r)=>t.includes(r)?n:{...n,[r]:e[r]},{})}function Xh(e,t){return D(Yh(Jh(e),Hm(t)))}function Zh(e,t,n){return J([e,t])?C(Xh(e,t),{},n):qh(e,t,n)}function Qh(e,t,n,r,i){return Zh(Y(e,t,n),Y(e,t,r),i)}function $h(e,t={}){return T(`Parameters`,[e],t)}function eg(e){let t=pt(e)?e.parameters:[];return br(Yg({},qg([],[]),t))}function tg(e,t){return J([e])?C(eg(e),{},t):$h(e,t)}function ng(e,t,n,r){return tg(Y(e,t,n),r)}function rg(e,t={}){return T(`Partial`,[e],t)}function ig(e,n){let r=lg(Gf(e,n));return jt(t(e,{[n]:r}),n)}function ag(e,t,n){return lg(Zr(e,t,n))}function og(e){return lg($r(e))}function sg(e){return P(e.map(e=>lg(e)))}function cg(e){return D(x(e).reduce((t,n)=>({...t,[n]:Ct(e[n])}),{}))}function lg(e){return Mt(e)?ig(e.$defs,e.$ref):zt(e)?ag(e.if,e.then,e.else):k(e)?og(e.allOf):F(e)?sg(e.anyOf):O(e)?cg(e.properties):D({})}function ug(e,t){return J([e])?C(lg(e),{},t):rg(e,t)}function dg(e,t,n,r){return ug(Y(e,t,n),r)}function fg(e,t,n={}){return T(`Pick`,[e,t],n)}function pg(e,n){return x(e).reduce((r,i)=>n.includes(i)?t(r,{[i]:e[i]}):r,{})}function mg(e,t){return D(pg(Jh(e),Hm(t)))}function hg(e,t,n){return J([e,t])?C(mg(e,t),{},n):fg(e,t,n)}function gg(e,t,n,r,i){return hg(Y(e,t,n),Y(e,t,r),i)}function _g(e,t={}){return T(`ReadonlyObject`,[e],t)}function vg(e){return i_(ot(e))}function yg(e,n){let r=Tg(Gf(e,n));return jt(t(e,{[n]:r}),n)}function bg(e,t,n){return Tg(Zr(e,t,n))}function xg(e){return Tg($r(e))}function Sg(e){return D(x(e).reduce((t,n)=>({...t,[n]:wn(e[n])}),{}))}function Cg(e){return i_(br(e))}function wg(e){return P(e.map(e=>Tg(e)))}function Tg(e){return st(e)?vg(e.items):Mt(e)?yg(e.$defs,e.$ref):zt(e)?bg(e.if,e.then,e.else):k(e)?xg(e.allOf):O(e)?Sg(e.properties):I(e)?Cg(e.items):F(e)?wg(e.anyOf):e}function Eg(e,t){return J([e])?C(Tg(e),{},t):_g(e)}function Dg(e,t,n,r){return Eg(Y(e,t,n),r)}function Og(e,t,n,r){return t.visited.includes(r)?n:r in e?Y(e,qg(t.callstack,[...t.visited,r]),e[r]):n}function kg(e,n){let r=Pg(Gf(e,n));return jt(t(e,{[n]:r}),n)}function Ag(e,t,n){return Pg(Zr(e,t,n))}function jg(e){return Pg($r(e))}function Mg(e){return P(e.map(e=>Pg(e)))}function Ng(e){return D(x(e).reduce((t,n)=>({...t,[n]:jr(e[n])}),{}))}function Pg(e){return Mt(e)?kg(e.$defs,e.$ref):zt(e)?Ag(e.if,e.then,e.else):k(e)?jg(e.allOf):F(e)?Mg(e.anyOf):O(e)?Ng(e.properties):D({})}function Fg(e,t={}){return T(`Required`,[e],t)}function Ig(e,t){return J([e])?C(Pg(e),{},t):Fg(e,t)}function Lg(e,t,n,r){return Ig(Y(e,t,n),r)}function Rg(e,t={}){return T(`ReturnType`,[e],t)}function zg(e){return pt(e)?e.returnType:E()}function Bg(e,t){return J([e])?C(zg(e),{},t):Rg(e,t)}function Vg(e,t,n,r={}){return Bg(Y(e,t,n),r)}function Hg(e,t){return T(`With`,[e,t],{})}function Ug(e,t){return J([e])?C(e,{},t):Hg(e,t)}function Wg(e,t,n,r){return Ug(Y(e,t,n),r)}function Gg(e){return Ni(e)?I(e.items)?Kg(e.items.items):Lt(e.items)||gt(e.items)?[e]:[E()]:[e]}function Kg(e){return e.reduce((e,t)=>[...e,...Gg(t)],[])}function qg(e,t){return{callstack:e,visited:t}}function J(e){return y(e,(e,t)=>gt(e)?!1:J(t),()=>!0)}function Jg(e,t,n){return x(n).reduce((r,i)=>({...r,[i]:Y(e,t,n[i])}),{})}function Yg(e,t,n){return Kg(Xg(e,t,n))}function Xg(e,t,n){return n.map(n=>Y(e,t,n))}function Zg(e,t){let n=wt(e)?it(t,{}):t,r=Tn(e)?tt(n,{}):n;return Sn(e)?t_(r,{}):r}function Qg(e,t,n,r,i){return g(n,`AddImmutable`)?n_(e,t,r[0],i):g(n,`RemoveImmutable`)?jp(e,t,r[0],i):g(n,`AddReadonly`)?nt(e,t,r[0],i):g(n,`RemoveReadonly`)?wr(e,t,r[0],i):g(n,`AddOptional`)?at(e,t,r[0],i):g(n,`RemoveOptional`)?kr(e,t,r[0],i):g(n,`Capitalize`)?Yp(e,t,r[0],i):g(n,`Conditional`)?nm(e,t,r[0],r[1],r[2],r[3],i):g(n,`ConstructorParameters`)?om(e,t,r[0],i):g(n,`Evaluate`)?tp(e,t,r[0],i):g(n,`Exclude`)?lm(e,t,r[0],r[1],i):g(n,`Extract`)?hm(e,t,r[0],r[1],i):g(n,`Index`)?lh(e,t,r[0],r[1],i):g(n,`InstanceType`)?ph(e,t,r[0],i):g(n,`Interface`)?bf(e,t,r[0],r[1],i):g(n,`KeyOf`)?wh(e,t,r[0],i):g(n,`Lowercase`)?Xp(e,t,r[0],i):g(n,`Mapped`)?Rh(e,t,r[0],r[1],r[2],r[3],i):g(n,`Module`)?Hh(e,t,r[0],i):g(n,`NonNullable`)?Kh(e,t,r[0],i):g(n,`Pick`)?gg(e,t,r[0],r[1],i):g(n,`Parameters`)?ng(e,t,r[0],i):g(n,`Partial`)?dg(e,t,r[0],i):g(n,`Omit`)?Qh(e,t,r[0],r[1],i):g(n,`ReadonlyObject`)?Dg(e,t,r[0],i):g(n,`Record`)?bi(e,t,r[0],r[1],i):g(n,`Required`)?Lg(e,t,r[0],i):g(n,`ReturnType`)?Vg(e,t,r[0],i):g(n,`TemplateLiteral`)?Gu(e,t,r[0],i):g(n,`Uncapitalize`)?Zp(e,t,r[0],i):g(n,`Uppercase`)?Qp(e,t,r[0],i):g(n,`With`)?Wg(e,t,r[0],r[1]):T(n,r,i)}function $g(e,t,n){return Zg(n,gt(n)?Og(e,t,n,n.$ref):st(n)?ot(Y(e,t,n.items),ct(n)):Op(n)?Ep(e,t,n.target,n.arguments):ut(n)?lt(Xg(e,t,n.parameters),Y(e,t,n.instanceType),dt(n)):pt(n)?ft(Xg(e,t,n.parameters),Y(e,t,n.returnType),mt(n)):zt(n)?Rt(Y(e,t,n.if),Y(e,t,n.then),Y(e,t,n.else),Bt(n)):k(n)?Ht(Xg(e,t,n.allOf),Ut(n)):O(n)?D(Jg(e,t,n.properties),Ot(n)):ji(n)?Ei(Oi(n),Y(e,t,Ai(n))):Ni(n)?Mi(Y(e,t,n.items)):I(n)?br(Yg(e,t,n.items),xr(n)):F(n)?P(Xg(e,t,n.anyOf),$n(n)):n)}function Y(e,t,n){return $e(n)?Qg(e,t,n.action,n.parameters,n.options):$g(e,t,n)}function e_(e){return C(e,{"~immutable":!0},{})}function t_(e,t){return C(e_(e),{},t)}function n_(e,t,n,r){return t_(Y(e,t,n),r)}function r_(e,t={}){return T(`AddImmutable`,[e],t)}function i_(e,t={}){return t_(e,t)}function a_(e,t={}){return T(`Evaluate`,[e],t)}function o_(e,t={}){return T(`Module`,[e],t)}function s_(...e){let[t,n,r]=Ft(e,{2:(e,t)=>h(e)?[{},e,t]:[e,t,{}],3:(e,t,n)=>[e,t,n],1:e=>[{},e,{}]}),i=Du(n);return C(d(i)&&g(i.length,2)?Y(t,qg([],[]),i[0]):E(),{},r)}function c_(e){return b(e,`~refine`)&&d(e[`~refine`])&&_(e[`~refine`],0,e=>m(e)&&b(e,`check`)&&b(e,`error`)&&ae(e.check)&&ae(e.error))}function l_(e){return m(e)&&!d(e)}function u_(e){return re(e)}function X(e){return l_(e)||u_(e)}function d_(e){return b(e,`additionalItems`)&&X(e.additionalItems)}function f_(e){return b(e,`additionalProperties`)&&X(e.additionalProperties)}function p_(e){return b(e,`allOf`)&&d(e.allOf)&&e.allOf.every(e=>X(e))}function m_(e){return b(e,`$anchor`)&&h(e.$anchor)}function h_(e){return b(e,`anyOf`)&&d(e.anyOf)&&e.anyOf.every(e=>X(e))}function g_(e){return b(e,`const`)}function __(e){return b(e,`contains`)&&X(e.contains)}function v_(e){return b(e,`dependencies`)&&m(e.dependencies)&&Object.values(e.dependencies).every(e=>X(e)||d(e)&&e.every(e=>h(e)))}function y_(e){return b(e,`dependentRequired`)&&m(e.dependentRequired)&&Object.values(e.dependentRequired).every(e=>d(e)&&e.every(e=>h(e)))}function b_(e){return b(e,`dependentSchemas`)&&m(e.dependentSchemas)&&Object.values(e.dependentSchemas).every(e=>X(e))}function x_(e){return b(e,`$dynamicAnchor`)&&h(e.$dynamicAnchor)}function S_(e){return b(e,`$dynamicRef`)&&h(e.$dynamicRef)}function C_(e){return b(e,`else`)&&X(e.else)}function w_(e){return b(e,`enum`)&&d(e.enum)}function T_(e){return b(e,`exclusiveMaximum`)&&(p(e.exclusiveMaximum)||f(e.exclusiveMaximum))}function E_(e){return b(e,`exclusiveMinimum`)&&(p(e.exclusiveMinimum)||f(e.exclusiveMinimum))}function D_(e){return b(e,`format`)&&h(e.format)}function O_(e){return b(e,`$id`)&&h(e.$id)}function k_(e){return b(e,`if`)&&X(e.if)}function A_(e){return b(e,`items`)&&(X(e.items)||d(e.items)&&e.items.every(e=>X(e)))}function j_(e){return A_(e)&&d(e.items)}function M_(e){return b(e,`maximum`)&&(p(e.maximum)||f(e.maximum))}function N_(e){return b(e,`maxContains`)&&p(e.maxContains)}function P_(e){return b(e,`maxItems`)&&p(e.maxItems)}function F_(e){return b(e,`maxLength`)&&p(e.maxLength)}function I_(e){return b(e,`maxProperties`)&&p(e.maxProperties)}function L_(e){return b(e,`minimum`)&&(p(e.minimum)||f(e.minimum))}function R_(e){return b(e,`minContains`)&&p(e.minContains)}function z_(e){return b(e,`minItems`)&&p(e.minItems)}function B_(e){return b(e,`minLength`)&&p(e.minLength)}function V_(e){return b(e,`minProperties`)&&p(e.minProperties)}function H_(e){return b(e,`multipleOf`)&&(p(e.multipleOf)||f(e.multipleOf))}function U_(e){return b(e,`not`)&&X(e.not)}function W_(e){return b(e,`oneOf`)&&d(e.oneOf)&&e.oneOf.every(e=>X(e))}function G_(e){return b(e,`pattern`)&&(h(e.pattern)||e.pattern instanceof RegExp)}function K_(e){return b(e,`patternProperties`)&&m(e.patternProperties)&&Object.values(e.patternProperties).every(e=>X(e))}function q_(e){return b(e,`prefixItems`)&&d(e.prefixItems)&&e.prefixItems.every(e=>X(e))}function J_(e){return b(e,`properties`)&&m(e.properties)&&Object.values(e.properties).every(e=>X(e))}function Y_(e){return b(e,`propertyNames`)&&(m(e.propertyNames)||X(e.propertyNames))}function X_(e){return b(e,`$recursiveAnchor`)&&re(e.$recursiveAnchor)}function Z_(e){return X_(e)&&g(e.$recursiveAnchor,!0)}function Q_(e){return b(e,`$recursiveRef`)&&h(e.$recursiveRef)}function $_(e){return b(e,`$ref`)&&h(e.$ref)}function ev(e){return b(e,`required`)&&d(e.required)&&e.required.every(e=>h(e))}function tv(e){return b(e,`then`)&&X(e.then)}function nv(e){return b(e,`type`)&&(h(e.type)||d(e.type)&&e.type.every(e=>h(e)))}function rv(e){return b(e,`uniqueItems`)&&re(e.uniqueItems)}function iv(e){return b(e,`unevaluatedItems`)&&X(e.unevaluatedItems)}function av(e){return b(e,`unevaluatedProperties`)&&X(e.unevaluatedProperties)}var ov=class{constructor(){let e=new Set,t=new Set;this.stack=[{indices:e,keys:t}]}Push(){let e=new Set,t=new Set;return this.stack.push({indices:e,keys:t}),!0}Pop(){return this.stack.pop(),!0}AddIndex(e){return this.GetIndices().add(e),!0}AddKey(e){return this.GetKeys().add(e),!0}GetIndices(){return this.stack[this.stack.length-1].indices}GetKeys(){return this.stack[this.stack.length-1].keys}Merge(e){for(let t of e)t.GetIndices().forEach(e=>this.GetIndices().add(e)),t.GetKeys().forEach(e=>this.GetKeys().add(e));return!0}},sv=class extends ov{constructor(e){super(),this.callback=e}AddError(e){return this.callback(e),!1}},cv=class extends sv{constructor(){super(e=>this.errors.push(e)),this.errors=[]}AddError(e){return this.errors.push(e),!1}GetErrors(){return this.errors}};function lv(e,t,n,r){return _(n[`~refine`],0,(e,t)=>e.check(r))}function uv(e,t,n,r,i,a){return v(i[`~refine`],0,(e,i)=>e.check(a)||t.AddError({keyword:`~refine`,schemaPath:n,instancePath:r,params:{index:i,message:e.error(a)}}))}function dv(e){return A_(e)&&d(e.items)}function fv(e,t,n,r){return dv(n)?r.every((r,i)=>fe(i,n.items.length)||vx(e,t,n.additionalItems,r)&&t.AddIndex(i)):!0}function pv(e,t,n,r,i,a){return dv(i)?a.every((a,o)=>{let s=`${n}/additionalItems`,c=`${r}/${o}`;return fe(o,i.items.length)||yx(e,t,s,c,i.additionalItems,a)&&t.AddIndex(o)}):!0}function mv(e){return`^${e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}$`}function hv(e){let t=[];return K_(e)&&t.push(...x(e.patternProperties)),J_(e)&&t.push(...x(e.properties).map(mv)),g(t.length,0)?`(?!)`:`(${t.join(`|`)})`}function gv(e,t,n,r){let i=new RegExp(hv(n));return _(x(r),0,(a,o)=>i.test(a)||vx(e,t,n.additionalProperties,r[a])&&t.AddKey(a))}function _v(e,t,n,r,i,a){let o=new RegExp(hv(i)),s=[];return v(x(a),0,(c,l)=>{let u=`${n}/additionalProperties`,ee=`${r}/${c}`,te=new cv,ne=o.test(c)||yx(e,te,u,ee,i.additionalProperties,a[c])&&t.AddKey(c);return ne||s.push(c),ne})||t.AddError({keyword:`additionalProperties`,schemaPath:n,instancePath:r,params:{additionalProperties:s}})}function vv(e,t,n,r){let i=n.allOf.reduce((t,n)=>{let i=new ov;return Q(e,i,n,r)?[...t,i]:t},[]);return g(i.length,n.allOf.length)&&t.Merge(i)}function yv(e,t,n,r,i,a){let o=[],s=i.allOf.reduce((t,i,s)=>{let c=`${n}/allOf/${s}`,l=new cv,u=$(e,l,c,r,i,a);return u||o.push(l),u?[...t,l]:t},[]),c=g(s.length,i.allOf.length)&&t.Merge(s);return c||o.forEach(e=>e.GetErrors().forEach(e=>t.AddError(e))),c}function bv(e,t,n,r){let i=n.anyOf.reduce((t,n)=>{let i=new ov;return Q(e,i,n,r)?[...t,i]:t},[]);return de(i.length,0)&&t.Merge(i)}function xv(e,t,n,r,i,a){let o=[],s=i.anyOf.reduce((t,i,s)=>{let c=new cv,l=$(e,c,`${n}/anyOf/${s}`,r,i,a);return l||o.push(c),l?[...t,c]:t},[]),c=de(s.length,0)&&t.Merge(s);return c||o.forEach(e=>e.GetErrors().forEach(e=>t.AddError(e))),c||t.AddError({keyword:`anyOf`,schemaPath:n,instancePath:r,params:{}})}function Sv(e,t,n,r){return n}function Cv(e,t,n,r,i,a){return Sv(e,t,i,a)||t.AddError({keyword:`boolean`,schemaPath:n,instancePath:r,params:{}})}function wv(e,t,n,r){return _e(n.const)?g(r,n.const):Ee(r,n.const)}function Tv(e,t,n,r,i,a){return wv(e,t,i,a)||t.AddError({keyword:`const`,schemaPath:n,instancePath:r,params:{allowedValue:i.const}})}function Ev(e){return!(R_(e)&&g(e.minContains,0))}function Dv(e,t,n,r){return Ev(n)?!g(r.length,0)&&r.some(r=>Q(e,t,n.contains,r)):!0}function Ov(e,t,n,r,i,a){return Dv(e,t,i,a)||t.AddError({keyword:`contains`,schemaPath:n,instancePath:r,params:{minContains:1}})}function kv(e,t,n,r){let i=g(x(r).length,0),a=_(xe(n.dependencies),0,([n,i])=>!b(r,n)||(d(i)?i.every(e=>b(r,e)):Q(e,t,i,r)));return i||a}function Av(e,t,n,r,i,a){let o=g(x(a).length,0),s=v(xe(i.dependencies),0,([i,o])=>{let s=`${n}/dependencies/${i}`;return!b(a,i)||(d(o)?o.every(e=>b(a,e)||t.AddError({keyword:`dependencies`,schemaPath:n,instancePath:r,params:{property:i,dependencies:o}})):$(e,t,s,r,o,a))});return o||s}function jv(e,t,n,r){let i=g(x(r).length,0),a=_(xe(n.dependentRequired),0,([e,t])=>!b(r,e)||t.every(e=>b(r,e)));return i||a}function Mv(e,t,n,r,i,a){let o=g(x(a).length,0),s=v(xe(i.dependentRequired),0,([e,i])=>!b(a,e)||v(i,0,o=>b(a,o)||t.AddError({keyword:`dependentRequired`,schemaPath:n,instancePath:r,params:{property:e,dependencies:i}})));return o||s}function Nv(e,t,n,r){let i=g(x(r).length,0),a=_(xe(n.dependentSchemas),0,([n,i])=>!b(r,n)||Q(e,t,i,r));return i||a}function Pv(e,t,n,r,i,a){let o=g(x(a).length,0),s=v(xe(i.dependentSchemas),0,([i,o])=>{let s=`${n}/dependentSchemas/${i}`;return!b(a,i)||$(e,t,s,r,o,a)});return o||s}function Fv(e,t,n,r){let i=e.DynamicRef(n)??!1;return X(i)&&Q(e,t,i,r)}function Iv(e,t,n,r,i,a){let o=e.DynamicRef(i)??!1;return X(o)&&$(e,t,`#`,r,o,a)}function Lv(e,t,n,r){return n.enum.some(e=>_e(e)?g(r,e):Ee(r,e))}function Rv(e,t,n,r,i,a){return Lv(e,t,i,a)||t.AddError({keyword:`enum`,schemaPath:n,instancePath:r,params:{allowedValues:i.enum}})}function zv(e,t,n,r){return fe(r,n.exclusiveMaximum)}function Bv(e,t,n,r,i,a){return zv(e,t,i,a)||t.AddError({keyword:`exclusiveMaximum`,schemaPath:n,instancePath:r,params:{comparison:`<`,limit:i.exclusiveMaximum}})}function Vv(e,t,n,r){return de(r,n.exclusiveMinimum)}function Hv(e,t,n,r,i,a){return Vv(e,t,i,a)||t.AddError({keyword:`exclusiveMinimum`,schemaPath:n,instancePath:r,params:{comparison:`>`,limit:i.exclusiveMinimum}})}const Uv=[0,31,28,31,30,31,30,31,31,30,31,30,31],Wv=/^(\d\d\d\d)-(\d\d)-(\d\d)$/;function Gv(e){return e%4==0&&(e%100!=0||e%400==0)}function Kv(e){let t=Wv.exec(e);if(!t)return!1;let n=+t[1],r=+t[2],i=+t[3];return r>=1&&r<=12&&i>=1&&i<=(r===2&&Gv(n)?29:Uv[r])}const qv=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(?:Z|([+-])(\d\d):(\d\d))?$/i;function Jv(e,t=!0){let n=qv.exec(e);if(!n)return!1;let r=+n[1],i=+n[2],a=+n[3],o=n[4]===`-`?-1:1,s=+(n[5]||0),c=+(n[6]||0);if(s>23||c>59||t&&!n[4]&&e.toLowerCase().indexOf(`z`)===-1)return!1;if(r<=23&&i<=59&&a<60)return!0;let l=i-c*o,u=r-s*o-+(l<0);return(u===23||u===-1)&&(l===59||l===-1)&&a<61}function Yv(e,t=!0){let n=e.split(/T/i);return n.length===2&&Kv(n[0])&&Jv(n[1],t)}const Xv=/^P((\d+Y(\d+M(\d+D)?)?|\d+M(\d+D)?|\d+D)(T(\d+H(\d+M(\d+S)?)?|\d+M(\d+S)?|\d+S))?|T(\d+H(\d+M(\d+S)?)?|\d+M(\d+S)?|\d+S)|\d+W)$/;function Zv(e){return Xv.test(e)}const Qv=/^(?!.*\.\.)[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i;function $v(e){return Qv.test(e)}function ey(e,t,n){e=n?Math.floor(e/700):e>>1,e+=Math.floor(e/t);let r=0;for(;e>455;)e=Math.floor(e/35),r+=36;return r+Math.floor(36*e/(e+38))}function ty(e){let t=[],n=128,r=0,i=72,a=e.lastIndexOf(`-`);if(a>0)for(let n=0;n=128)throw Error(`Invalid punycode: non-basic before delimiter`);t.push(r)}let o=a<0?0:a+1;for(;o=e.length)throw Error(`Invalid punycode: unexpected end of input`);let t=e.charCodeAt(o++),n;if(t>=97&&t<=122)n=t-97;else if(t>=48&&t<=57)n=t-48+26;else if(t>=65&&t<=90)n=t-65;else throw Error(`Invalid punycode: bad digit character`);r+=n*s;let a=c<=i?1:c>=i+26?26:c-i;if(n=1632&&e<=1641}function my(e){return e>=1776&&e<=1785}function hy(e){return sy.has(e)}function gy(e){if(e.length===0)return!1;let t=[...e].map(e=>e.codePointAt(0)),n=t.length;if(t[0]===45||t[n-1]===45||n>=4&&t[2]===45&&t[3]===45||ay(t[0]))return!1;let r=!1,i=!1,a=!1;for(let e=0;e=4&&e.charCodeAt(2)===45&&e.charCodeAt(3)===45)return!1;for(let t=0;t=97&&n<=122||n>=65&&n<=90||n>=48&&n<=57||n===45))return!1}return!0}function vy(e){return e.toLowerCase().startsWith(`xn--`)}function yy(e){try{let t=e.slice(4).toLowerCase();if(t.lastIndexOf(`-`)===0)return!1;let n=ty(t);return n?gy(n):!1}catch{return!1}}function by(e){return e.length===0||e.length>63?!1:vy(e)?yy(e):gy(e)}function xy(e){return e.length===0||e.length>63?!1:vy(e)?yy(e):_y(e)}function Sy(e){if(e.length===0||e.length>253||e.charCodeAt(e.length-1)===46)return!1;for(let t of e.split(`.`))if(!xy(t))return!1;return!0}const Cy=/^(?!.*\.\.)[\p{L}\p{N}!#$%&'*+/=?^_`{|}~-]+(?:\.[\p{L}\p{N}!#$%&'*+/=?^_`{|}~-]+)*@[\p{L}\p{N}](?:[\p{L}\p{N}-]{0,61}[\p{L}\p{N}])?(?:\.[\p{L}\p{N}](?:[\p{L}\p{N}-]{0,61}[\p{L}\p{N}])?)*$/iu;function wy(e){return Cy.test(e)}function Ty(e){if(e.length===0||e.includes(` `))return!1;let t=e.normalize(`NFC`).replace(/[\u002E\u3002\uFF0E\uFF61]/g,`.`);if(t.length>253)return!1;for(let e of t.split(`.`))if(!by(e))return!1;return!0}function Ey(e,t,n){let r=0,i=0,a=0,o=0;for(let s=t;s255||o===48&&a>1)return!1;r++,i=0,a=0,o=0}else if(t>=48&&t<=57)a===0&&(o=t),i=i*10+(t-48),a++;else return!1}return r===3&&a>0&&i<=255&&!(o===48&&a>1)}function Dy(e){return Ey(e,0,e.length)}function Oy(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function ky(e){let t=e.length;if(t===0)return!1;let n=0,r=!1,i=0;if(e.charCodeAt(0)===58&&e.charCodeAt(1)===58){if(t===2)return!0;r=!0,i=2}for(;i4)return!1;if(n++,i===t)break;if(s!==58)return!1;if(i++,e.charCodeAt(i)===58){if(r||e.charCodeAt(i+1)===58)return!1;if(r=!0,i++,i===t)break}}return r?n<=7:n===8}function Ay(e){try{return new URL(e,`http://example.com`),!0}catch{return!1}}function jy(e){if(e.includes(` `)||e.includes(`\\`)||/[\x00-\x1F\x7F]/.test(e)||/%(?![0-9a-fA-F]{2})/.test(e))return!1;if(e===``)return!0;let t=e.indexOf(`:`);return t>0&&/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(e.substring(0,t))?Ay(e):e.match(/^([a-zA-Z][a-zA-Z0-9+\-.]*)(\/\/)/)&&t===-1?!1:Ay(e)}function My(e){try{return new URL(e),!0}catch{return!1}}const Ny=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i;function Py(e){return Ny.test(e)}const Fy=/^(?:\/(?:[^~/]|~0|~1)*)*$/;function Iy(e){return Fy.test(e)}function Ly(e){if(e.length===0)return!1;try{return new RegExp(e),!0}catch{return!1}}const Ry=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;function zy(e){return Ry.test(e)}const By=/^(?!.*[^\x00-\x7F])(?!.*\\)(?:(?:[a-z][a-z0-9+\-.]*:)?(?:\/\/[^\s[\]{}<>^`|]*)?|[^\s[\]{}<>^`|]*)(?:\?[^\s[\]{}<>^`|]*)?(?:#[^\s[\]{}<>^`|]*)?$/i;function Vy(e){return By.test(e)}const Hy=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i;function Uy(e){return Hy.test(e)}function Wy(e){return e>=97&&e<=122||e>=65&&e<=90}function Gy(e){return Wy(e)||e>=48&&e<=57}function Ky(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function qy(e){return Gy(e)||e===43||e===45||e===46}function Jy(e){return Gy(e)||e===45||e===46||e===95||e===126}function Yy(e){return e===33||e===36||e===38||e===39||e===40||e===41||e===42||e===43||e===44||e===59||e===61}function Xy(e){return Jy(e)||Yy(e)||e===58||e===64}function Zy(e){let t=e.length;if(t===0||!Wy(e.charCodeAt(0)))return!1;let n=1;for(;n=i||!Ky(e.charCodeAt(t+1))||!Ky(e.charCodeAt(t+2)))return!1;t+=2}else if(!Jy(n)&&!Yy(n)&&n!==58)return!1}n=i+1}if(e.charCodeAt(n)===91){for(n++;n57)return!1;n++}}for(;n=t||!Ky(e.charCodeAt(n+1))||!Ky(e.charCodeAt(n+2)))return!1;n+=2}else if(r>127)return!1;else if(!(Xy(r)||r===47||r===63||r===35))return!1;n++}return!0}const Qy=/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu;function $y(e){return Qy.test(e)}const eb=/^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;function tb(e){return eb.test(e)}const Z=new Map;function nb(){Z.clear()}function rb(e,t){return Z.get(e)?.(t)??!0}function ib(){nb(),Z.set(`date-time`,Yv),Z.set(`date`,Kv),Z.set(`duration`,Zv),Z.set(`email`,$v),Z.set(`hostname`,Sy),Z.set(`idn-email`,wy),Z.set(`idn-hostname`,Ty),Z.set(`ipv4`,Dy),Z.set(`ipv6`,ky),Z.set(`iri-reference`,jy),Z.set(`iri`,My),Z.set(`json-pointer-uri-fragment`,Py),Z.set(`json-pointer`,Iy),Z.set(`regex`,Ly),Z.set(`relative-json-pointer`,zy),Z.set(`time`,Jv),Z.set(`uri-reference`,Vy),Z.set(`uri-template`,Uy),Z.set(`uri`,Zy),Z.set(`url`,$y),Z.set(`uuid`,tb)}ib();function ab(e,t,n,r){return rb(n.format,r)}function ob(e,t,n,r,i,a){return ab(e,t,i,a)||t.AddError({keyword:`format`,schemaPath:n,instancePath:r,params:{format:i.format}})}function sb(e,t,n,r){let i=tv(n)?n.then:!0,a=C_(n)?n.else:!0;return Q(e,t,n.if,r)?Q(e,t,i,r):Q(e,t,a,r)}function cb(e,t,n,r,i,a){let o=tv(i)?i.then:!0,s=C_(i)?i.else:!0,c=new cv,l=$(e,c,`${n}/if`,r,i.if,a)?$(e,c,`${n}/then`,r,o,a)||t.AddError({keyword:`if`,schemaPath:n,instancePath:r,params:{failingKeyword:`then`}}):$(e,t,`${n}/else`,r,s,a)||t.AddError({keyword:`if`,schemaPath:n,instancePath:r,params:{failingKeyword:`else`}});return l&&t.Merge([c]),l}function lb(e,t,n,r){return _(n.items,0,(n,i)=>pe(r.length,i)||vx(e,t,n,r[i])&&t.AddIndex(i))}function ub(e,t,n,r,i,a){return v(i.items,0,(i,o)=>{let s=`${n}/items/${o}`,c=`${r}/${o}`;return pe(a.length,o)||yx(e,t,s,c,i,a[o])&&t.AddIndex(o)})}function db(e,t,n,r){return _(r,q_(n)?n.prefixItems.length:0,(r,i)=>vx(e,t,n.items,r)&&t.AddIndex(i))}function fb(e,t,n,r,i,a){return v(a,q_(i)?i.prefixItems.length:0,(a,o)=>yx(e,t,`${n}/items`,`${r}/${o}`,i.items,a)&&t.AddIndex(o))}function pb(e,t,n,r){return j_(n)?lb(e,t,n,r):db(e,t,n,r)}function mb(e,t,n,r,i,a){return j_(i)?ub(e,t,n,r,i,a):fb(e,t,n,r,i,a)}function hb(e){return __(e)}function gb(e,t,n,r){return hb(n)?pe(r.reduce((r,i)=>Q(e,t,n.contains,i)?++r:r,0),n.maxContains):!0}function _b(e,t,n,r,i,a){let o=R_(i)?i.minContains:1;return gb(e,t,i,a)||t.AddError({keyword:`contains`,schemaPath:n,instancePath:r,params:{minContains:o,maxContains:i.maxContains}})}function vb(e,t,n,r){return pe(r,n.maximum)}function yb(e,t,n,r,i,a){return vb(e,t,i,a)||t.AddError({keyword:`maximum`,schemaPath:n,instancePath:r,params:{comparison:`<=`,limit:i.maximum}})}function bb(e,t,n,r){return pe(r.length,n.maxItems)}function xb(e,t,n,r,i,a){return bb(e,t,i,a)||t.AddError({keyword:`maxItems`,schemaPath:n,instancePath:r,params:{limit:i.maxItems}})}function Sb(e,t,n,r){return ve(r,n.maxLength)}function Cb(e,t,n,r,i,a){return Sb(e,t,i,a)||t.AddError({keyword:`maxLength`,schemaPath:n,instancePath:r,params:{limit:i.maxLength}})}function wb(e,t,n,r){return pe(x(r).length,n.maxProperties)}function Tb(e,t,n,r,i,a){return wb(e,t,i,a)||t.AddError({keyword:`maxProperties`,schemaPath:n,instancePath:r,params:{limit:i.maxProperties}})}function Eb(e){return __(e)}function Db(e,t,n,r){return Eb(n)?me(r.reduce((r,i)=>Q(e,t,n.contains,i)?++r:r,0),n.minContains):!0}function Ob(e,t,n,r,i,a){return Db(e,t,i,a)||t.AddError({keyword:`contains`,schemaPath:n,instancePath:r,params:{minContains:i.minContains}})}function kb(e,t,n,r){return me(r,n.minimum)}function Ab(e,t,n,r,i,a){return kb(e,t,i,a)||t.AddError({keyword:`minimum`,schemaPath:n,instancePath:r,params:{comparison:`>=`,limit:i.minimum}})}function jb(e,t,n,r){return me(r.length,n.minItems)}function Mb(e,t,n,r,i,a){return jb(e,t,i,a)||t.AddError({keyword:`minItems`,schemaPath:n,instancePath:r,params:{limit:i.minItems}})}function Nb(e,t,n,r){return ye(r,n.minLength)}function Pb(e,t,n,r,i,a){return Nb(e,t,i,a)||t.AddError({keyword:`minLength`,schemaPath:n,instancePath:r,params:{limit:i.minLength}})}function Fb(e,t,n,r){return me(x(r).length,n.minProperties)}function Ib(e,t,n,r,i,a){return Fb(e,t,i,a)||t.AddError({keyword:`minProperties`,schemaPath:n,instancePath:r,params:{limit:i.minProperties}})}function Lb(e,t,n,r){return he(r,n.multipleOf)}function Rb(e,t,n,r,i,a){return Lb(e,t,i,a)||t.AddError({keyword:`multipleOf`,schemaPath:n,instancePath:r,params:{multipleOf:i.multipleOf}})}function zb(e,t,n,r){let i=new ov;return!Q(e,i,n.not,r)&&t.Merge([i])}function Bb(e,t,n,r,i,a){return zb(e,t,i,a)||t.AddError({keyword:`not`,schemaPath:n,instancePath:r,params:{}})}function Vb(e,t,n,r){let i=n.oneOf.reduce((t,n)=>{let i=new ov;return Q(e,i,n,r)?[...t,i]:t},[]);return g(i.length,1)&&t.Merge(i)}function Hb(e,t,n,r,i,a){let o=[],s=[],c=i.oneOf.reduce((t,i,c)=>{let l=new cv,u=$(e,l,`${n}/oneOf/${c}`,r,i,a);return u&&s.push(c),u||o.push(l),u?[...t,l]:t},[]),l=g(c.length,1)&&t.Merge(c);return!l&&g(s.length,0)&&o.forEach(e=>e.GetErrors().forEach(e=>t.AddError(e))),l||t.AddError({keyword:`oneOf`,schemaPath:n,instancePath:r,params:{passingSchemas:s}})}function Ub(e,t,n,r){return(h(n.pattern)?new RegExp(n.pattern,`u`):n.pattern).test(r)}function Wb(e,t,n,r,i,a){return Ub(e,t,i,a)||t.AddError({keyword:`pattern`,schemaPath:n,instancePath:r,params:{pattern:i.pattern}})}function Gb(e,t,n,r){return _(xe(n.patternProperties),0,([n,i])=>{let a=new RegExp(n,`u`);return _(xe(r),0,([n,r])=>!a.test(n)||vx(e,t,i,r)&&t.AddKey(n))})}function Kb(e,t,n,r,i,a){return v(xe(i.patternProperties),0,([i,o])=>{let s=`${n}/patternProperties/${i}`,c=new RegExp(i,`u`);return v(xe(a),0,([n,i])=>{let a=`${r}/${n}`;return!c.test(n)||yx(e,t,s,a,o,i)&&t.AddKey(n)})})}function qb(e,t,n,r){return g(r.length,0)||_(n.prefixItems,0,(n,i)=>pe(r.length,i)||vx(e,t,n,r[i])&&t.AddIndex(i))}function Jb(e,t,n,r,i,a){return g(a.length,0)||v(i.prefixItems,0,(i,o)=>{let s=`${n}/prefixItems/${o}`,c=`${r}/${o}`;return pe(a.length,o)||yx(e,t,s,c,i,a[o])&&t.AddIndex(o)})}function Yb(e,t){return e.includes(t)||Je().exactOptionalPropertyTypes}function Xb(e,t){return ue(e[t])}function Zb(e,t,n,r){let i=ev(n)?n.required:[];return _(xe(n.properties),0,([n,a])=>{let o=!b(r,n)||vx(e,t,a,r[n])&&t.AddKey(n);return Yb(i,n)?o:Xb(r,n)||o})}function Qb(e,t,n,r,i,a){let o=ev(i)?i.required:[];return v(xe(i.properties),0,([i,s])=>{let c=`${n}/properties/${i}`,l=`${r}/${i}`,u=()=>!b(a,i)||yx(e,t,c,l,s,a[i])&&t.AddKey(i);return Yb(o,i)?u():Xb(a,i)||u()})}function $b(e,t,n,r){return _(x(r),0,(r,i)=>Q(e,t,n.propertyNames,r))}function ex(e,t,n,r,i,a){let o=[];return v(x(a),0,(t,a)=>{let s=`${r}/${t}`,c=`${n}/propertyNames`,l=$(e,new cv,c,s,i.propertyNames,t);return l||o.push(t),l})||t.AddError({keyword:`propertyNames`,schemaPath:n,instancePath:r,params:{propertyNames:o}})}function tx(e,t,n,r){let i=e.RecursiveRef(n)??!1;return X(i)&&Q(e,t,i,r)}function nx(e,t,n,r,i,a){let o=e.RecursiveRef(i)??!1;return X(o)&&$(e,t,`#`,r,o,a)}function rx(e,t,n,r){let i=e.Ref(n)??!1,a=new ov,o=X(i)&&Q(e,a,i,r);return o&&t.Merge([a]),o}function ix(e,t,n,r,i,a){let o=e.Ref(i)??!1,s=new cv,c=X(o)&&$(e,s,`#`,r,o,a);return c&&t.Merge([s]),c||s.GetErrors().forEach(e=>t.AddError(e)),c}function ax(e,t,n,r){return _(n.required,0,e=>b(r,e))}function ox(e,t,n,r,i,a){let o=[];return v(i.required,0,e=>{let t=b(a,e);return t||o.push(e),t})||t.AddError({keyword:`required`,schemaPath:n,instancePath:r,params:{requiredProperties:o}})}function sx(e,t,n,r,i){return g(n,`object`)?ce(i):g(n,`array`)?d(i):g(n,`boolean`)?re(i):g(n,`integer`)?oe(i):g(n,`number`)?p(i):g(n,`null`)?se(i):g(n,`string`)?h(i):g(n,`bigint`)?f(i):g(n,`constructor`)?ie(i):g(n,`function`)?ae(i):g(n,`symbol`)?le(i):g(n,`undefined`)||g(n,`void`)?ue(i):!0}function cx(e,t,n,r,i){return n.some(n=>sx(e,t,n,r,i))}function lx(e,t,n,r){return d(n.type)?cx(e,t,n.type,n,r):sx(e,t,n.type,n,r)}function ux(e,t,n,r,i,a){return(d(i.type)?cx(e,t,i.type,i,a):sx(e,t,i.type,i,a))||t.AddError({keyword:`type`,schemaPath:n,instancePath:r,params:{type:i.type}})}function dx(e,t,n,r){let i=t.GetIndices();return _(r,0,(r,a)=>(i.has(a)||Q(e,t,n.unevaluatedItems,r))&&t.AddIndex(a))}function fx(e,t,n,r,i,a){let o=t.GetIndices(),s=[];return v(a,0,(a,c)=>{let l=new cv,u=(o.has(c)||$(e,l,n,r,i.unevaluatedItems,a))&&t.AddIndex(c);return u||s.push(c),u})||t.AddError({keyword:`unevaluatedItems`,schemaPath:n,instancePath:r,params:{unevaluatedItems:s}})}function px(e,t,n,r){let i=t.GetKeys();return _(xe(r),0,([r,a])=>i.has(r)||Q(e,t,n.unevaluatedProperties,a)&&t.AddKey(r))}function mx(e,t,n,r,i,a){let o=t.GetKeys(),s=[];return v(xe(a),0,([a,c])=>{let l=new cv,u=o.has(a)||$(e,l,n,r,i.unevaluatedProperties,c)&&t.AddKey(a);return u||s.push(a),u})||t.AddError({keyword:`unevaluatedProperties`,schemaPath:n,instancePath:r,params:{unevaluatedProperties:s}})}function hx(e){return!g(e.uniqueItems,!1)}function gx(e,t,n,r){if(!hx(n))return!0;let i=new Set(r.map(vn)).size,a=r.length;return g(i,a)}function _x(e,t,n,r,i,a){if(!hx(i))return!0;let o=new Set,s=a.reduce((e,t,n)=>{let r=vn(t);return o.has(r)?[...e,n]:(o.add(r),e)},[]);return g(s.length,0)||t.AddError({keyword:`uniqueItems`,schemaPath:n,instancePath:r,params:{duplicateItems:s}})}function vx(e,t,n,r){return t.Push()&&Q(e,t,n,r)&&t.Pop()}function Q(e,t,n,r){e.Push(n);let i=u_(n)?Sv(e,t,n,r):(!nv(n)||lx(e,t,n,r))&&(!(m(r)&&!d(r))||(!ev(n)||ax(e,t,n,r))&&(!f_(n)||gv(e,t,n,r))&&(!v_(n)||kv(e,t,n,r))&&(!y_(n)||jv(e,t,n,r))&&(!b_(n)||Nv(e,t,n,r))&&(!K_(n)||Gb(e,t,n,r))&&(!J_(n)||Zb(e,t,n,r))&&(!Y_(n)||$b(e,t,n,r))&&(!V_(n)||Fb(e,t,n,r))&&(!I_(n)||wb(e,t,n,r)))&&(!d(r)||(!d_(n)||fv(e,t,n,r))&&(!__(n)||Dv(e,t,n,r))&&(!A_(n)||pb(e,t,n,r))&&(!N_(n)||gb(e,t,n,r))&&(!P_(n)||bb(e,t,n,r))&&(!R_(n)||Db(e,t,n,r))&&(!z_(n)||jb(e,t,n,r))&&(!q_(n)||qb(e,t,n,r))&&(!rv(n)||gx(e,t,n,r)))&&(!h(r)||(!F_(n)||Sb(e,t,n,r))&&(!B_(n)||Nb(e,t,n,r))&&(!D_(n)||ab(e,t,n,r))&&(!G_(n)||Ub(e,t,n,r)))&&(!(p(r)||f(r))||(!T_(n)||zv(e,t,n,r))&&(!E_(n)||Vv(e,t,n,r))&&(!M_(n)||vb(e,t,n,r))&&(!L_(n)||kb(e,t,n,r))&&(!H_(n)||Lb(e,t,n,r)))&&(!$_(n)||rx(e,t,n,r))&&(!Q_(n)||tx(e,t,n,r))&&(!S_(n)||Fv(e,t,n,r))&&(!g_(n)||wv(e,t,n,r))&&(!w_(n)||Lv(e,t,n,r))&&(!k_(n)||sb(e,t,n,r))&&(!U_(n)||zb(e,t,n,r))&&(!p_(n)||vv(e,t,n,r))&&(!h_(n)||bv(e,t,n,r))&&(!W_(n)||Vb(e,t,n,r))&&(!iv(n)||!d(r)||dx(e,t,n,r))&&(!av(n)||!m(r)||px(e,t,n,r))&&(!c_(n)||lv(e,t,n,r));return e.Pop(n),i}function yx(e,t,n,r,i,a){return t.Push()&&$(e,t,n,r,i,a)&&t.Pop()}function $(e,t,n,r,i,a){e.Push(i);let o=u_(i)?Cv(e,t,n,r,i,a):!!((!nv(i)||ux(e,t,n,r,i,a))&+(!(m(a)&&!d(a))||!!((!ev(i)||ox(e,t,n,r,i,a))&+(!f_(i)||_v(e,t,n,r,i,a))&(!v_(i)||Av(e,t,n,r,i,a))&(!y_(i)||Mv(e,t,n,r,i,a))&(!b_(i)||Pv(e,t,n,r,i,a))&(!K_(i)||Kb(e,t,n,r,i,a))&(!J_(i)||Qb(e,t,n,r,i,a))&(!Y_(i)||ex(e,t,n,r,i,a))&(!V_(i)||Ib(e,t,n,r,i,a))&(!I_(i)||Tb(e,t,n,r,i,a))))&(!d(a)||!!((!d_(i)||pv(e,t,n,r,i,a))&+(!__(i)||Ov(e,t,n,r,i,a))&(!A_(i)||mb(e,t,n,r,i,a))&(!N_(i)||_b(e,t,n,r,i,a))&(!P_(i)||xb(e,t,n,r,i,a))&(!R_(i)||Ob(e,t,n,r,i,a))&(!z_(i)||Mb(e,t,n,r,i,a))&(!q_(i)||Jb(e,t,n,r,i,a))&(!rv(i)||_x(e,t,n,r,i,a))))&(!h(a)||!!((!F_(i)||Cb(e,t,n,r,i,a))&+(!B_(i)||Pb(e,t,n,r,i,a))&(!D_(i)||ob(e,t,n,r,i,a))&(!G_(i)||Wb(e,t,n,r,i,a))))&(!(p(a)||f(a))||!!((!T_(i)||Bv(e,t,n,r,i,a))&+(!E_(i)||Hv(e,t,n,r,i,a))&(!M_(i)||yb(e,t,n,r,i,a))&(!L_(i)||Ab(e,t,n,r,i,a))&(!H_(i)||Rb(e,t,n,r,i,a))))&(!$_(i)||ix(e,t,n,r,i,a))&(!Q_(i)||nx(e,t,n,r,i,a))&(!S_(i)||Iv(e,t,n,r,i,a))&(!g_(i)||Tv(e,t,n,r,i,a))&(!w_(i)||Rv(e,t,n,r,i,a))&(!k_(i)||cb(e,t,n,r,i,a))&(!U_(i)||Bb(e,t,n,r,i,a))&(!p_(i)||yv(e,t,n,r,i,a))&(!h_(i)||xv(e,t,n,r,i,a))&(!W_(i)||Hb(e,t,n,r,i,a))&(!iv(i)||!d(a)||fx(e,t,n,r,i,a))&(!av(i)||!m(a)||mx(e,t,n,r,i,a)))&&(!c_(i)||uv(e,t,n,r,i,a));return e.Pop(i),o}function bx(e,t){return m(t)&&!be(e)?t[e]:void 0}function xx(e,t){return e.reduce((e,t)=>bx(t,e),t)}function Sx(e){if(g(e.length,0))return[];let t=e.split(`/`).map(e=>e.replace(/~1/g,`/`).replace(/~0/g,`~`));return t.length>0&&t[0]===``?t.slice(1):t}function Cx(e,t){return xx(Sx(t),e)}function wx(e,t,n){if(e.$id===n.hash)return e;let r=new URL(e.$id,t.href),i=new URL(n.href,t.href);if(g(r.pathname,i.pathname))return n.hash.startsWith(`#`)?Dx(e,t,n):e}function Tx(e,t,n){let r=new URL(`#${e.$anchor}`,t.href),i=new URL(n.href,t.href);return g(r.href,i.href)?e:void 0}function Ex(e,t,n){let r=new URL(`#${e.$dynamicAnchor}`,t.href),i=new URL(n.href,t.href);return g(r.href,i.href)?e:void 0}function Dx(e,t,n){if(n.href.endsWith(`#`))return e;if(!n.hash.startsWith(`#`))return;let r=decodeURIComponent(n.hash.slice(1));if(r.startsWith(`/`))return Cx(e,r)}function Ox(e,t,n){if(O_(e)){let r=wx(e,t,n);if(!ue(r))return r}if(m_(e)){let r=Tx(e,t,n);if(!ue(r))return r}if(x_(e)){let r=Ex(e,t,n);if(!ue(r))return r}return Dx(e,t,n)}function kx(e,t,n){return e.reduce((e,r)=>{let i=jx(r,t,n);return ue(i)?e:i},void 0)}function Ax(e,t,n){return x(e).reduce((r,i)=>{let a=jx(e[i],t,n);return ue(a)?r:a},void 0)}function jx(e,t,n){let r=l_(e)&&O_(e)?new URL(e.$id,t.href):t;if(l_(e)){let t=Ox(e,r,n);if(!ue(t))return t}if(d(e))return kx(e,r,n);if(m(e))return Ax(e,r,n)}function Mx(e,t){let n=new URL(`http://unknown/`),r=O_(e)?new URL(e.$id,n.href):n;return jx(e,r,new URL(t,r.href))}function Nx(e,t,n,r){let i=n.$dynamicRef.startsWith(`#`)?Mx(t,n.$dynamicRef):Mx(e,n.$dynamicRef);if(!ue(i))return!l_(i)||!x_(i)||new URL(n.$dynamicRef,`http://unknown/`).hash.startsWith(`#/`)?i:r.find(e=>e.$dynamicAnchor===i.$dynamicAnchor)??i}var Px=function(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)},Fx,Ix,Lx,Rx,zx,Bx=class{constructor(e,t){Fx.add(this),this.context=e,this.schema=t,this.ids=[],this.anchors=[],this.recursiveAnchors=[],this.dynamicAnchors=[]}BaseURL(){return this.ids.reduce((e,t)=>new URL(t.$id,e),new URL(`http://unknown`))}Base(){return this.ids[this.ids.length-1]??this.schema}Push(e){l_(e)&&(O_(e)&&(this.ids.push(e),Px(this,Fx,`m`,Ix).call(this,e)),m_(e)&&this.anchors.push(e),Z_(e)&&this.recursiveAnchors.push(e),x_(e)&&this.dynamicAnchors.push(e))}Pop(e){l_(e)&&(O_(e)&&(this.ids.pop(),Px(this,Fx,`m`,Lx).call(this,e)),m_(e)&&this.anchors.pop(),Z_(e)&&this.recursiveAnchors.pop(),x_(e)&&this.dynamicAnchors.pop())}Ref(e){return Px(this,Fx,`m`,Rx).call(this,e)??Px(this,Fx,`m`,zx).call(this,e)}RecursiveRef(e){return Z_(this.Base())?Mx(this.recursiveAnchors[0],e.$recursiveRef):Mx(this.Base(),e.$recursiveRef)}DynamicRef(e){let t=this.schema;return Nx(t,this.Base(),e,this.dynamicAnchors)}};Fx=new WeakSet,Ix=function e(t,n=!0){if(!l_(t))return;let r=t;if(!(!n&&O_(r))){!n&&x_(r)&&this.dynamicAnchors.push(r);for(let t of x(r))Px(this,Fx,`m`,e).call(this,r[t],!1)}},Lx=function e(t,n=!0){if(!l_(t))return;let r=t;if(!(!n&&O_(r))){!n&&x_(r)&&this.dynamicAnchors.pop();for(let t of x(r))Px(this,Fx,`m`,e).call(this,r[t],!1)}},Rx=function(e){return b(this.context,e.$ref)?this.context[e.$ref]:void 0},zx=function(e){let t=this.schema;return e.$ref.startsWith(`#`)?Mx(this.Base(),e.$ref):Mx(t,e.$ref)};function Vx(...e){let[t,n,r]=Ft(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]}),i=Je(),a=xn(),o=[];return[$(new Bx(t,n),new sv(e=>{if(!me(o.length,i.maxErrors))return o.push({...e,message:a(e)})}),`#`,``,n,r),o]}function Hx(...e){let[t,n,r]=Ft(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]});return Q(new Bx(t,n),new ov,n,r)}var Ux=class{constructor(e,t,n){this.schema=e,this.value=t,this.errors=n}};function Wx(...e){let[t,n,r]=Ft(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]});if(!Hx(t,n,r)){let[e,i]=Vx(t,n,r);throw new Ux(n,r,i)}return r}const{Product:Gx}=s_({Timestamp:Dn(Nt({}),e=>e instanceof Date)},` interface Image { id: number; created: Timestamp; @@ -35,4 +35,4 @@ const e={assign:0,create:0,clone:0,discard:0,update:0};function t(t,n){return e. images: Array; ratings: Array; } - `);cS(lS,{}); \ No newline at end of file + `);Wx(Gx,{}); \ No newline at end of file diff --git a/schemas/libraries/typebox/download_compiled/script/unminified.js b/schemas/libraries/typebox/download_compiled/script/unminified.js index 0c1ee9e1..45044c1f 100644 --- a/schemas/libraries/typebox/download_compiled/script/unminified.js +++ b/schemas/libraries/typebox/download_compiled/script/unminified.js @@ -1,4 +1,4 @@ -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/memory/metrics.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/memory/metrics.mjs /** TypeBox instantiation metrics */ const Metrics = { assign: 0, @@ -8,7 +8,7 @@ const Metrics = { update: 0 }; //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/memory/assign.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/memory/assign.mjs /** * Performs an Object assign using the Left and Right object types. We track this operation as it * creates a new GC handle per assignment. @@ -21,7 +21,7 @@ function Assign(left, right) { }; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/guard/string.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/guard/string.mjs function IsBetween(value, min, max) { return value >= min && value <= max; } @@ -105,15 +105,11 @@ function IsMaxLengthFast(value, maxLength) { return true; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/guard/guard.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/guard/guard.mjs /** Returns true if this value is an array */ function IsArray$1(value) { return Array.isArray(value); } -/** Returns true if this value is an async iterator */ -function IsAsyncIterator$1(value) { - return IsObject$1(value) && Symbol.asyncIterator in value; -} /** Returns true if this value is bigint */ function IsBigInt$1(value) { return IsEqual(typeof value, "bigint"); @@ -138,10 +134,6 @@ function IsFunction$1(value) { function IsInteger$1(value) { return Number.isInteger(value); } -/** Returns true if this value is an iterator */ -function IsIterator$1(value) { - return IsObject$1(value) && Symbol.iterator in value; -} /** Returns true if this value is null */ function IsNull$1(value) { return IsEqual(value, null); @@ -193,6 +185,13 @@ function IsMultipleOf$1(dividend, divisor) { const mod = dividend % divisor; return Math.min(Math.abs(mod), Math.abs(mod - divisor)) < tolerance; } +/** Returns true if the value appears to be an instance of a class. */ +function IsClassInstance(value) { + if (!IsObject$1(value)) return false; + const proto = globalThis.Object.getPrototypeOf(value); + if (IsNull$1(proto)) return false; + return IsEqual(typeof proto.constructor, "function") && !(IsEqual(proto.constructor, globalThis.Object) || IsEqual(proto.constructor.name, "Object")); +} function IsValueLike(value) { return IsBigInt$1(value) || IsBoolean$2(value) || IsNull$1(value) || IsNumber$2(value) || IsString$2(value) || IsUndefined$1(value); } @@ -235,6 +234,10 @@ function Entries(value) { function Keys(value) { return Object.getOwnPropertyNames(value); } +/** Returns the property keys for this object via `Object.getOwnPropertySymbols({ ... })` */ +function Symbols(value) { + return Object.getOwnPropertySymbols(value); +} /** Returns the property values for the given object via `Object.values()` */ function Values(value) { return Object.values(value); @@ -252,7 +255,7 @@ function IsDeepEqual(left, right) { return IsArray$1(left) ? DeepEqualArray(left, right) : IsObject$1(left) ? DeepEqualObject(left, right) : IsEqual(left, right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/guard/globals.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/guard/globals.mjs function IsBoolean$1(value) { return value instanceof Boolean; } @@ -273,21 +276,27 @@ function IsRegExp(value) { function IsDate$1(value) { return value instanceof globalThis.Date; } -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/memory/clone.mjs -function IsGuard$1(value) { - return IsObject$1(value) && HasPropertyKey(value, "~guard"); +/** Returns true if the value is a Set */ +function IsSet(value) { + return value instanceof globalThis.Set; +} +/** Returns true if the value is a Map */ +function IsMap(value) { + return value instanceof globalThis.Map; } -function FromGuard(value) { +//#endregion +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/memory/clone.mjs +function FromClassInstance(value) { return value; } -function FromArray$5(value) { - return value.map((value) => FromValue$2(value)); +function IsKindedObject(value) { + return HasPropertyKey(value, "~kind"); } -function FromObject$9(value) { +function FromKindedObject(value) { const result = {}; const descriptors = Object.getOwnPropertyDescriptors(value); for (const key of Object.keys(descriptors)) { + if (IsUnsafePropertyKey(key)) continue; const descriptor = descriptors[key]; if (HasPropertyKey(descriptor, "value")) Object.defineProperty(result, key, { ...descriptor, @@ -296,26 +305,46 @@ function FromObject$9(value) { } return result; } +function FromPlainObject(value) { + const result = {}; + for (const key of Keys(value)) { + if (IsUnsafePropertyKey(key)) continue; + result[key] = FromValue$2(value[key]); + } + for (const key of Symbols(value)) result[key] = FromValue$2(value[key]); + return result; +} +function FromObject$9(value) { + return IsClassInstance(value) ? FromClassInstance(value) : IsKindedObject(value) ? FromKindedObject(value) : FromPlainObject(value); +} +function FromArray$5(value) { + return value.map((element) => FromValue$2(element)); +} +function FromTypedArray(value) { + return value.slice(); +} function FromRegExp$1(value) { return new RegExp(value.source, value.flags); } -function FromUnknown(value) { - return value; +function FromMap(value) { + return new Map(FromValue$2([...value.entries()])); +} +function FromSet(value) { + return new Set(FromValue$2([...value.values()])); } function FromValue$2(value) { - return value instanceof RegExp ? FromRegExp$1(value) : IsGuard$1(value) ? FromGuard(value) : IsArray$1(value) ? FromArray$5(value) : IsObject$1(value) ? FromObject$9(value) : FromUnknown(value); + return IsTypeArray(value) ? FromTypedArray(value) : IsRegExp(value) ? FromRegExp$1(value) : IsMap(value) ? FromMap(value) : IsSet(value) ? FromSet(value) : IsArray$1(value) ? FromArray$5(value) : IsObject$1(value) ? FromObject$9(value) : value; } /** -* Clones a value using the TypeBox type cloning strategy. This function preserves non-enumerable -* properties from the source value. This is to ensure cloned types retain discriminable -* hidden properties. +* Returns a Clone of the given value. This function is similar to structuredClone() +* but also supports deep cloning instances of Map, Set and TypeArray. */ function Clone(value) { Metrics.clone += 1; return FromValue$2(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/settings/settings.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/settings/settings.mjs const settings = { immutableTypes: false, maxErrors: 8, @@ -330,7 +359,7 @@ function Get$2() { return settings; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/memory/create.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/memory/create.mjs function MergeHidden(left, right) { for (const key of Object.keys(right)) Object.defineProperty(left, key, { configurable: true, @@ -359,7 +388,7 @@ function Create(hidden, enumerable, options = {}) { return settings.immutableTypes ? Object.freeze(withHidden) : withHidden; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/memory/discard.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/memory/discard.mjs /** Discards multiple property keys from the given object value */ function Discard(value, propertyKeys) { Metrics.discard += 1; @@ -373,7 +402,7 @@ function Discard(value, propertyKeys) { return result; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/memory/update.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/memory/update.mjs /** * Updates a value with new properties while preserving property enumerability. Use this function to modify * existing types without altering their configuration. @@ -397,7 +426,7 @@ function Update(current, hidden, enumerable) { return result; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/schema.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/schema.mjs function IsKind(value, kind) { return IsObject$1(value) && HasPropertyKey(value, "~kind") && IsEqual(value["~kind"], kind); } @@ -405,7 +434,7 @@ function IsSchema$1(value) { return IsObject$1(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/deferred.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/deferred.mjs /** Creates a Deferred action. */ function Deferred(action, parameters, options) { return Create({ "~kind": "Deferred" }, { @@ -420,13 +449,29 @@ function IsDeferred(value) { return IsKind(value, "Deferred"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/base.mjs -/** Returns true if the given value is a Base type. */ -function IsBase(value) { - return IsKind(value, "Base"); +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/readonly/instantiate_add.mjs +function AddReadonlyOperation(type) { + return Update(type, { "~readonly": true }, {}); +} +function AddReadonlyAction(type, options) { + return Update(AddReadonlyOperation(type), {}, options); +} +function AddReadonlyInstantiate(context, state, type, options) { + return AddReadonlyAction(InstantiateType(context, state, type), options); +} +//#endregion +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/optional/instantiate_add.mjs +function AddOptionalOperation(type) { + return Update(type, { "~optional": true }, {}); +} +function AddOptionalAction(type, options) { + return Update(AddOptionalOperation(type), {}, options); +} +function AddOptionalInstantiate(context, state, type, options) { + return AddOptionalAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/array.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/array.mjs /** Creates an Array type. */ function _Array_(items, options) { return Create({ "~kind": "Array" }, { @@ -447,32 +492,7 @@ function ArrayOptions(type) { ]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/async_iterator.mjs -/** -* Creates a AsyncIterator type. -* -* @deprecated This type is being removed in the next version of TypeBox. A fallback will be provided under examples. -*/ -function AsyncIterator(iteratorItems, options) { - return Create({ "~kind": "AsyncIterator" }, { - type: "asyncIterator", - iteratorItems - }, options); -} -/** Returns true if the given value is a TAsyncIterator */ -function IsAsyncIterator(value) { - return IsKind(value, "AsyncIterator"); -} -/** Extracts options from a TAsyncIterator. */ -function AsyncIteratorOptions(type) { - return Discard(type, [ - "~kind", - "type", - "iteratorItems" - ]); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/constructor.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/constructor.mjs /** Creates a Constructor type. */ function Constructor(parameters, instanceType, options = {}) { return Create({ "~kind": "Constructor" }, { @@ -495,7 +515,7 @@ function ConstructorOptions(type) { ]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/function.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/function.mjs /** Creates a Function type. */ function _Function_$1(parameters, returnType, options = {}) { return Create({ ["~kind"]: "Function" }, { @@ -518,7 +538,7 @@ function FunctionOptions(type) { ]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/ref.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/ref.mjs /** Creates a Ref type. */ function Ref$1(ref, options) { return Create({ ["~kind"]: "Ref" }, { $ref: ref }, options); @@ -528,7 +548,7 @@ function IsRef$1(value) { return IsKind(value, "Ref"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/generic.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/generic.mjs /** Creates a Generic type. */ function Generic(parameters, expression) { return Create({ "~kind": "Generic" }, { @@ -542,7 +562,7 @@ function IsGeneric(value) { return IsKind(value, "Generic"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/any.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/any.mjs /** Creates a Any type. */ function Any(options) { return Create({ ["~kind"]: "Any" }, {}, options); @@ -552,7 +572,7 @@ function IsAny(value) { return IsKind(value, "Any"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/never.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/never.mjs const NeverPattern = "(?!)"; /** Creates a Never type. */ function Never(options) { @@ -563,18 +583,7 @@ function IsNever(value) { return IsKind(value, "Never"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/optional/instantiate_add.mjs -function AddOptionalOperation(type) { - return Update(type, { "~optional": true }, {}); -} -function AddOptionalAction(type, options) { - return Update(AddOptionalOperation(type), {}, options); -} -function AddOptionalInstantiate(context, state, type, options) { - return AddOptionalAction(InstantiateType(context, state, type), options); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/_add_optional.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/_add_optional.mjs /** Creates a deferred AddOptional action. */ function AddOptionalDeferred(type, options = {}) { return Deferred("AddOptional", [type], options); @@ -584,17 +593,13 @@ function AddOptional(type, options = {}) { return AddOptionalAction(type, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/_optional.mjs -/** Applies an Optional modifier to the given type. */ -function Optional$2(type) { - return AddOptional(type); -} +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/_optional.mjs /** Returns true if the given value is TOptional */ function IsOptional(value) { return IsSchema$1(value) && HasPropertyKey(value, "~optional"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/properties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/properties.mjs /** Creates a RequiredArray derived from the given TProperties value. */ function RequiredArray(properties) { return Keys(properties).filter((key) => !IsOptional(properties[key])); @@ -608,7 +613,7 @@ function PropertyValues(properties) { return Values(properties); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/object.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/object.mjs /** Creates an Object type. */ function _Object_$1(properties, options = {}) { const requiredKeys = RequiredArray(properties); @@ -632,7 +637,7 @@ function ObjectOptions(type) { ]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/unknown.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/unknown.mjs /** Creates an Unknown type. */ function Unknown(options) { return Create({ ["~kind"]: "Unknown" }, {}, options); @@ -642,7 +647,7 @@ function IsUnknown(value) { return IsKind(value, "Unknown"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/cyclic.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/cyclic.mjs /** Creates a Cyclic type. */ function Cyclic($defs, $ref, options) { const defs = Keys($defs).reduce((result, key) => { @@ -661,7 +666,7 @@ function IsCyclic(value) { return IsKind(value, "Cyclic"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/unsafe.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/unsafe.mjs /** Creates a Unsafe type. */ function Unsafe(schema) { return Update(schema, { ["~unsafe"]: null }, {}); @@ -671,7 +676,7 @@ function IsUnsafe(value) { return IsObjectNotArray(value) && HasPropertyKey(value, "~unsafe") && IsNull$1(value["~unsafe"]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/arguments/arguments.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/arguments/arguments.mjs /** * Match arguments for overloaded functions that use the `...args: unknown[]` pattern. Arguments * are parsed using argument length only. @@ -682,7 +687,7 @@ function Match$3(args, match) { })(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/infer.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/infer.mjs /** Creates an Infer instruction. */ function Infer(...args) { const [name, extends_] = Match$3(args, { @@ -708,7 +713,7 @@ function IsInfer(value) { return IsKind(value, "Infer"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/dependent.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/dependent.mjs /** Creates a Dependent type */ function Dependent$1(if_, then_, else_, options = {}) { return Create({ "~kind": "Dependent" }, { @@ -731,13 +736,13 @@ function DependentOptions(type) { ]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/enum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/enum.mjs /** Returns true if the given value is a TEnum. */ function IsEnum$1(value) { return IsKind(value, "Enum"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/intersect.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/intersect.mjs /** Creates a Intersect type. */ function Intersect(types, options = {}) { return Create({ "~kind": "Intersect" }, { allOf: types }, options); @@ -751,13 +756,13 @@ function IntersectOptions(type) { return Discard(type, ["~kind", "allOf"]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/unreachable/unreachable.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/unreachable/unreachable.mjs /** Used for unreachable logic */ function Unreachable$1() { throw new Error("Unreachable"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/hashing/hash.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/hashing/hash.mjs function InstanceKeys(value) { const propertyKeys = /* @__PURE__ */ new Set(); let current = value; @@ -872,7 +877,7 @@ function Hash(value) { return HashCode(value).toString(16).padStart(16, "0"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/locale/en_US.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/locale/en_US.mjs /** en_US: English (United States) - ISO 639-1 language code 'en' with ISO 3166-1 alpha-2 country code 'US' for United States. */ function en_US(error) { switch (error.keyword) { @@ -906,41 +911,25 @@ function en_US(error) { case "unevaluatedItems": return "must not have unevaluated items"; case "unevaluatedProperties": return "must not have unevaluated properties"; case "uniqueItems": return `must not have duplicate items`; - case "~guard": return `must match check function`; case "~refine": return error.params.message; default: return "an unknown validation error occurred"; } } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/locale/_config.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/locale/_config.mjs let locale = en_US; /** Gets the locale */ function Get$1() { return locale; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/_immutable.mjs -/** Applies an Immutable modifier to the given type. */ -function Immutable(type) { - return AddImmutable(type); -} +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/_immutable.mjs /** Returns true if the given value is a TImmutable */ function IsImmutable(value) { return IsSchema$1(value) && HasPropertyKey(value, "~immutable"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/readonly/instantiate_add.mjs -function AddReadonlyOperation(type) { - return Update(type, { "~readonly": true }, {}); -} -function AddReadonlyAction(type, options) { - return Update(AddReadonlyOperation(type), {}, options); -} -function AddReadonlyInstantiate(context, state, type, options) { - return AddReadonlyAction(InstantiateType(context, state, type), options); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/_add_readonly.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/_add_readonly.mjs /** Creates a deferred AddReadonly action. */ function AddReadonlyDeferred(type, options = {}) { return Deferred("AddReadonly", [type], options); @@ -950,24 +939,20 @@ function AddReadonly(type, options = {}) { return AddReadonlyAction(type, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/_readonly.mjs -/** Applies an Readonly property modifier to the given type. */ -function Readonly$1(type) { - return AddReadonly(type); -} +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/_readonly.mjs /** Returns true if the given value is a TReadonly */ function IsReadonly(value) { return IsSchema$1(value) && HasPropertyKey(value, "~readonly"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/_refine.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/_refine.mjs /** Applies a Refine check to the given type. */ function RefineAdd(type, refinement) { return Update(type, { "~refine": IsRefine$1(type) ? [...type["~refine"], refinement] : [refinement] }, {}); } /** Refines a type with an explicit check */ function Refine(...args) { - const [type, check, error_or_message] = Match$3(args, { + const [type, check, error] = Match$3(args, { 3: (type, check, error) => [ type, check, @@ -981,7 +966,7 @@ function Refine(...args) { }); return RefineAdd(type, { check, - error: IsString$2(error_or_message) ? () => error_or_message : error_or_message + error }); } /** Returns true if the given value is a TRefinement. */ @@ -993,7 +978,7 @@ function IsRefine$1(value) { return IsSchema$1(value) && HasPropertyKey(value, "~refine") && IsArray$1(value["~refine"]) && Every(value["~refine"], 0, (value) => IsRefinement(value)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/bigint.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/bigint.mjs const BigIntPattern = "-?(?:0|[1-9][0-9]*)n"; /** Creates a BigInt type. */ function BigInt$2(options) { @@ -1004,7 +989,7 @@ function IsBigInt(value) { return IsKind(value, "BigInt"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/boolean.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/boolean.mjs /** Creates a Boolean type. */ function Boolean$1(options) { return Create({ "~kind": "Boolean" }, { type: "boolean" }, options); @@ -1014,13 +999,13 @@ function IsBoolean(value) { return IsKind(value, "Boolean"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/identifier.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/identifier.mjs /** Creates an Identifier. */ function Identifier(name) { return Create({ "~kind": "Identifier" }, { name }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/integer.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/integer.mjs const IntegerPattern = "-?(?:0|[1-9][0-9]*)"; /** Creates a Integer type. */ function Integer$1(options) { @@ -1031,32 +1016,7 @@ function IsInteger(value) { return IsKind(value, "Integer"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/iterator.mjs -/** -* Creates a Iterator type. -* -* @deprecated This type is being removed in the next version of TypeBox. A fallback will be provided under examples. -*/ -function Iterator(iteratorItems, options) { - return Create({ "~kind": "Iterator" }, { - type: "iterator", - iteratorItems - }, options); -} -/** Returns true if the given value is TIterator. */ -function IsIterator(value) { - return IsKind(value, "Iterator"); -} -/** Extracts options from a TIterator. */ -function IteratorOptions(type) { - return Discard(type, [ - "~kind", - "type", - "iteratorItems" - ]); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/literal.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/literal.mjs var InvalidLiteralValue = class extends Error { constructor(value) { super(`Invalid Literal value`); @@ -1097,7 +1057,7 @@ function IsLiteral(value) { return IsKind(value, "Literal"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/null.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/null.mjs /** Creates a Null type. */ function Null(options) { return Create({ "~kind": "Null" }, { type: "null" }, options); @@ -1107,7 +1067,7 @@ function IsNull(value) { return IsKind(value, "Null"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/number.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/number.mjs const NumberPattern = "-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?"; /** Creates a Number type. */ function Number$2(options) { @@ -1118,9 +1078,9 @@ function IsNumber(value) { return IsKind(value, "Number"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/symbol.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/symbol.mjs /** Creates a Symbol type. */ -function Symbol$1(options) { +function Symbol(options) { return Create({ "~kind": "Symbol" }, { type: "symbol" }, options); } /** Returns true if the given value is TSymbol. */ @@ -1128,7 +1088,7 @@ function IsSymbol(value) { return IsKind(value, "Symbol"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/parameter.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/parameter.mjs /** Creates a Parameter type. */ function Parameter$1(...args) { const [name, extends_, equals] = Match$3(args, { @@ -1155,32 +1115,7 @@ function Parameter$1(...args) { }, {}); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/promise.mjs -/** -* Creates a Promise type. -* -* @deprecated This type is being removed in the next version of TypeBox. A fallback will be provided under examples. -*/ -function _Promise_(item, options) { - return Create({ ["~kind"]: "Promise" }, { - type: "promise", - item - }, options); -} -/** Returns true if the given type is TPromise. */ -function IsPromise(value) { - return IsKind(value, "Promise"); -} -/** Extracts options from a TPromise. */ -function PromiseOptions(type) { - return Discard(type, [ - "~kind", - "type", - "item" - ]); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/string.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/string.mjs /** Creates a String type. */ function String$2(options) { return Create({ "~kind": "String" }, { type: "string" }, options); @@ -1190,7 +1125,7 @@ function IsString(value) { return IsKind(value, "String"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/union.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/union.mjs /** Creates a Union type. */ function Union(anyOf, options = {}) { return Create({ "~kind": "Union" }, { anyOf }, options); @@ -1204,14 +1139,14 @@ function UnionOptions(type) { return Discard(type, ["~kind", "anyOf"]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/patterns/pattern.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/patterns/pattern.mjs /** Parses a Pattern into a sequence of TemplateLiteral types. A result of [] indicates failure to parse. */ function ParsePatternIntoTypes(pattern) { const parsed = Pattern(pattern); return IsEqual(parsed.length, 2) ? parsed[0] : []; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/template_literal/is_finite.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/template_literal/is_finite.mjs function FromLiteral$4(_value) { return true; } @@ -1229,7 +1164,7 @@ function IsTemplateLiteralFinite(types) { return FromTypes$4(types); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/template_literal/create.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/template_literal/create.mjs function TemplateLiteralCreate(pattern) { return Create({ ["~kind"]: "TemplateLiteral" }, { type: "string", @@ -1237,7 +1172,7 @@ function TemplateLiteralCreate(pattern) { }, {}); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/template_literal/decode.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/template_literal/decode.mjs function FromLiteralPush(variants, value, result = []) { return ShiftLeft(variants, (left, right) => FromLiteralPush(right, value, [...result, `${left}${value}`]), () => result); } @@ -1278,7 +1213,7 @@ function TemplateLiteralDecode(pattern) { return IsTemplateLiteral(decoded) ? String$2() : decoded; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/record/record_create.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/record/record_create.mjs function CreateRecord(key, value) { const type = "object"; const patternProperties = { [key]: value }; @@ -1288,12 +1223,12 @@ function CreateRecord(key, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/record/from_key_any.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/record/from_key_any.mjs function FromAnyKey(value) { return CreateRecord(StringKey, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/record/from_key_boolean.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/record/from_key_boolean.mjs function FromBooleanKey(value) { return _Object_$1({ true: value, @@ -1301,7 +1236,7 @@ function FromBooleanKey(value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/tuple.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/tuple.mjs /** Creates a Tuple type. */ function Tuple(types, options = {}) { const [items, minItems, additionalItems] = [ @@ -1331,7 +1266,7 @@ function TupleOptions(type) { ]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/readonly/instantiate_remove.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/readonly/instantiate_remove.mjs function RemoveReadonlyOperation(type) { return Discard(type, ["~readonly"]); } @@ -1342,7 +1277,7 @@ function RemoveReadonlyInstantiate(context, state, type, options) { return RemoveReadonlyAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/_remove_readonly.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/_remove_readonly.mjs /** Creates a deferred RemoveReadonly action. */ function RemoveReadonlyDeferred(type, options = {}) { return Deferred("RemoveReadonly", [type], options); @@ -1352,7 +1287,7 @@ function RemoveReadonly(type, options = {}) { return RemoveReadonlyAction(type, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/optional/instantiate_remove.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/optional/instantiate_remove.mjs function RemoveOptionalOperation(type) { return Discard(type, ["~optional"]); } @@ -1363,7 +1298,7 @@ function RemoveOptionalInstantiate(context, state, type, options) { return RemoveOptionalAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/_remove_optional.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/_remove_optional.mjs /** Creates a deferred RemoveOptional action. */ function RemoveOptionalDeferred(type, options = {}) { return Deferred("RemoveOptional", [type], options); @@ -1373,7 +1308,7 @@ function RemoveOptional(type, options = {}) { return RemoveOptionalAction(type, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/tuple/to_object.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/tuple/to_object.mjs function TupleElementsToProperties(types) { return types.reduceRight((result, right, index) => { return { @@ -1386,7 +1321,7 @@ function TupleToObject(type) { return _Object_$1(TupleElementsToProperties(type.items)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/evaluate/composite.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/evaluate/composite.mjs function IsReadonlyProperty(left, right) { return IsReadonly(left) ? IsReadonly(right) ? true : false : false; } @@ -1417,13 +1352,13 @@ function Composite(left, right) { return _Object_$1(CompositeProperties(GetProperties(left), GetProperties(right))); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/evaluate/narrow.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/evaluate/narrow.mjs function Narrow(left, right) { const result = Compare(left, right); return IsEqual(result, "left-inside") ? left : IsEqual(result, "right-inside") ? right : IsEqual(result, "equal") ? right : Never(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/evaluate/distribute.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/evaluate/distribute.mjs function IsObjectLike(type) { return IsObject(type) || IsTuple(type); } @@ -1450,7 +1385,7 @@ function Distribute$1(types, result = []) { return ShiftLeft(types, (left, right) => IsUnion(left) ? Distribute$1(right, DistributeUnion(left.anyOf, result)) : Distribute$1(right, DistributeType(left, result)), () => result); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/exclude/operation.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/exclude/operation.mjs function ExcludeType(left, right) { return IsExtendsTrueLike(Extends({}, left, right)) ? [] : [left]; } @@ -1464,7 +1399,7 @@ function ExcludeOperation(left, right) { return EvaluateUnion(ExcludeUnion(IsUnion(evaluated) ? evaluated.anyOf : [evaluated], right)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/evaluate/evaluate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/evaluate/evaluate.mjs function EvaluateDependent(if_, then_, else_) { return EvaluateUnion([Intersect([if_, then_]), ExcludeOperation(else_, if_)]); } @@ -1487,42 +1422,42 @@ function EvaluateUnionFast(types) { return IsEqual(types.length, 1) ? types[0] : IsEqual(types.length, 0) ? Never() : Union(types); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/record/from_key_enum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/record/from_key_enum.mjs function FromEnumKey(values, value) { return FromKey(EvaluateEnum(values), value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/record/from_key_integer.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/record/from_key_integer.mjs function FromIntegerKey(_key, value) { return CreateRecord(IntegerKey, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/record/from_key_intersect.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/record/from_key_intersect.mjs function FromIntersectKey(types, value) { return FromKey(EvaluateIntersect(types), value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/record/from_key_literal.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/record/from_key_literal.mjs function FromLiteralKey(key, value) { return IsString$2(key) || IsNumber$2(key) ? _Object_$1({ [key]: value }) : IsEqual(key, false) ? _Object_$1({ false: value }) : IsEqual(key, true) ? _Object_$1({ true: value }) : _Object_$1({}); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/record/from_key_number.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/record/from_key_number.mjs function FromNumberKey(_key, value) { return CreateRecord(NumberKey, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/record/from_key_string.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/record/from_key_string.mjs function FromStringKey(key, value) { return HasPropertyKey(key, "pattern") && (IsString$2(key.pattern) || key.pattern instanceof RegExp) ? CreateRecord(key.pattern.toString(), value) : CreateRecord(StringKey, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/record/from_key_template_literal.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/record/from_key_template_literal.mjs function FromTemplateKey(pattern, value) { return IsTemplateLiteralFinite(ParsePatternIntoTypes(pattern)) ? FromKey(EvaluateTemplateLiteral(pattern), value) : CreateRecord(pattern, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/evaluate/flatten.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/evaluate/flatten.mjs function FlattenType(type) { return IsUnion(type) ? Flatten(type.anyOf) : [type]; } @@ -1532,7 +1467,7 @@ function Flatten(types) { }, []); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/record/from_key_union.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/record/from_key_union.mjs function StringOrNumberCheck(types) { return types.some((type) => IsString(type) || IsNumber(type) || IsInteger(type)); } @@ -1556,12 +1491,12 @@ function FromUnionKey(types, value) { return IsSchema$1(record) ? record : CreateObject(flattened, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/record/from_key.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/record/from_key.mjs function FromKey(key, value) { return IsAny(key) ? FromAnyKey(value) : IsBoolean(key) ? FromBooleanKey(value) : IsEnum$1(key) ? FromEnumKey(key.enum, value) : IsInteger(key) ? FromIntegerKey(key, value) : IsIntersect(key) ? FromIntersectKey(key.allOf, value) : IsLiteral(key) ? FromLiteralKey(key.const, value) : IsNumber(key) ? FromNumberKey(key, value) : IsUnion(key) ? FromUnionKey(key.anyOf, value) : IsString(key) ? FromStringKey(key, value) : IsTemplateLiteral(key) ? FromTemplateKey(key.pattern, value) : _Object_$1({}); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/record/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/record/instantiate.mjs function RecordAction(key, value, options) { return CanInstantiate([key]) ? Update(FromKey(key, value), {}, options) : RecordDeferred(key, value, options); } @@ -1569,7 +1504,7 @@ function RecordInstantiate(context, state, key, value, options) { return RecordAction(InstantiateType(context, state, key), InstantiateType(context, state, value), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/record.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/record.mjs const IntegerKey = `^${IntegerPattern}$`; const NumberKey = `^${NumberPattern}$`; const StringKey = `^.*$`; @@ -1605,7 +1540,7 @@ function IsRecord(value) { return IsKind(value, "Record"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/rest.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/rest.mjs /** Creates a Rest instruction type. */ function Rest(type) { return Create({ "~kind": "Rest" }, { @@ -1618,7 +1553,7 @@ function IsRest(value) { return IsKind(value, "Rest"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/this.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/this.mjs /** Creates a This type. */ function This(options) { return Create({ ["~kind"]: "This" }, { $ref: "#" }, options); @@ -1628,7 +1563,7 @@ function IsThis(value) { return IsKind(value, "This"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/undefined.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/undefined.mjs /** Creates a Undefined type. */ function Undefined(options) { return Create({ "~kind": "Undefined" }, { type: "undefined" }, options); @@ -1638,7 +1573,7 @@ function IsUndefined(value) { return IsKind(value, "Undefined"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/void.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/void.mjs /** Creates a Void type. */ function Void(options) { return Create({ "~kind": "Void" }, { type: "void" }, options); @@ -1648,9 +1583,9 @@ function IsVoid(value) { return IsKind(value, "Void"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/mapping.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/mapping.mjs function IntrinsicOrCall(ref, parameters) { - return IsEqual(ref, "Array") ? _Array_(parameters[0]) : IsEqual(ref, "AsyncIterator") ? AsyncIterator(parameters[0]) : IsEqual(ref, "Iterator") ? Iterator(parameters[0]) : IsEqual(ref, "Promise") ? _Promise_(parameters[0]) : IsEqual(ref, "Awaited") ? AwaitedDeferred(parameters[0]) : IsEqual(ref, "Capitalize") ? CapitalizeDeferred(parameters[0]) : IsEqual(ref, "ConstructorParameters") ? ConstructorParametersDeferred(parameters[0]) : IsEqual(ref, "Evaluate") ? EvaluateDeferred(parameters[0]) : IsEqual(ref, "Exclude") ? ExcludeDeferred(parameters[0], parameters[1]) : IsEqual(ref, "Extract") ? ExtractDeferred(parameters[0], parameters[1]) : IsEqual(ref, "Index") ? IndexDeferred(parameters[0], parameters[1]) : IsEqual(ref, "InstanceType") ? InstanceTypeDeferred(parameters[0]) : IsEqual(ref, "Lowercase") ? LowercaseDeferred(parameters[0]) : IsEqual(ref, "NonNullable") ? NonNullableDeferred(parameters[0]) : IsEqual(ref, "Omit") ? OmitDeferred(parameters[0], parameters[1]) : IsEqual(ref, "Parameters") ? ParametersDeferred(parameters[0]) : IsEqual(ref, "Partial") ? PartialDeferred(parameters[0]) : IsEqual(ref, "Pick") ? PickDeferred(parameters[0], parameters[1]) : IsEqual(ref, "Readonly") ? ReadonlyObjectDeferred(parameters[0]) : IsEqual(ref, "KeyOf") ? KeyOfDeferred(parameters[0]) : IsEqual(ref, "Record") ? RecordDeferred(parameters[0], parameters[1]) : IsEqual(ref, "Required") ? RequiredDeferred(parameters[0]) : IsEqual(ref, "ReturnType") ? ReturnTypeDeferred(parameters[0]) : IsEqual(ref, "Uncapitalize") ? UncapitalizeDeferred(parameters[0]) : IsEqual(ref, "Uppercase") ? UppercaseDeferred(parameters[0]) : CallConstruct(Ref$1(ref), parameters); + return IsEqual(ref, "Array") ? _Array_(parameters[0]) : IsEqual(ref, "Capitalize") ? CapitalizeDeferred(parameters[0]) : IsEqual(ref, "ConstructorParameters") ? ConstructorParametersDeferred(parameters[0]) : IsEqual(ref, "Evaluate") ? EvaluateDeferred(parameters[0]) : IsEqual(ref, "Exclude") ? ExcludeDeferred(parameters[0], parameters[1]) : IsEqual(ref, "Extract") ? ExtractDeferred(parameters[0], parameters[1]) : IsEqual(ref, "Index") ? IndexDeferred(parameters[0], parameters[1]) : IsEqual(ref, "InstanceType") ? InstanceTypeDeferred(parameters[0]) : IsEqual(ref, "Lowercase") ? LowercaseDeferred(parameters[0]) : IsEqual(ref, "NonNullable") ? NonNullableDeferred(parameters[0]) : IsEqual(ref, "Omit") ? OmitDeferred(parameters[0], parameters[1]) : IsEqual(ref, "Parameters") ? ParametersDeferred(parameters[0]) : IsEqual(ref, "Partial") ? PartialDeferred(parameters[0]) : IsEqual(ref, "Pick") ? PickDeferred(parameters[0], parameters[1]) : IsEqual(ref, "Readonly") ? ReadonlyObjectDeferred(parameters[0]) : IsEqual(ref, "KeyOf") ? KeyOfDeferred(parameters[0]) : IsEqual(ref, "Record") ? RecordDeferred(parameters[0], parameters[1]) : IsEqual(ref, "Required") ? RequiredDeferred(parameters[0]) : IsEqual(ref, "ReturnType") ? ReturnTypeDeferred(parameters[0]) : IsEqual(ref, "Uncapitalize") ? UncapitalizeDeferred(parameters[0]) : IsEqual(ref, "Uppercase") ? UppercaseDeferred(parameters[0]) : CallConstruct(Ref$1(ref), parameters); } function Unreachable() { throw Error("Unreachable"); @@ -1731,7 +1666,7 @@ function KeywordNeverMapping(input) { return Never(); } function KeywordSymbolMapping(input) { - return Symbol$1(); + return Symbol(); } function KeywordVoidMapping(input) { return Void(); @@ -2083,7 +2018,7 @@ function ScriptMapping(input) { return input; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/token/internal/match.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/token/internal/match.mjs /** Checks the value is a Tuple-2 [string, string] result */ function IsMatch(value) { return IsEqual(value.length, 2); @@ -2093,7 +2028,7 @@ function Match$2(input, ok, fail) { return IsMatch(input) ? ok(input[0], input[1]) : fail(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/token/internal/take.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/token/internal/take.mjs function TakeVariant(variant, input) { return IsEqual(input.indexOf(variant), 0) ? [variant, input.slice(variant.length)] : []; } @@ -2106,7 +2041,7 @@ function Take(variants, input) { return []; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/token/internal/char.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/token/internal/char.mjs function Range(start, end) { return Array.from({ length: end - start + 1 }, (_, i) => String.fromCharCode(start + i)); } @@ -2114,7 +2049,7 @@ const Alpha = [...Range(97, 122), ...Range(65, 90)]; const NonZero = Range(49, 57); const Digit = ["0", ...NonZero]; //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/token/internal/trim.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/token/internal/trim.mjs const LineComment = "//"; const OpenComment = "/*"; const CloseComment = "*/"; @@ -2138,13 +2073,13 @@ function Trim(input) { return trimmed.startsWith(OpenComment) ? Trim(DiscardMultilineComment(trimmed.slice(2))) : trimmed.startsWith(LineComment) ? Trim(DiscardLineComment(trimmed.slice(2))) : trimmed; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/token/internal/optional.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/token/internal/optional.mjs /** Matches the given Value or empty string if no match. This function never fails */ function Optional$1(value, input) { return Match$2(Take([value], input), (Optional, Rest) => [Optional, Rest], () => ["", input]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/token/internal/many.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/token/internal/many.mjs function IsDiscard(discard, input) { return discard.includes(input); } @@ -2153,7 +2088,7 @@ function Many(allowed, discard, input, result = "") { return Match$2(Take(allowed, input), (Char, Rest) => IsDiscard(discard, Char) ? Many(allowed, discard, Rest, result) : Many(allowed, discard, Rest, `${result}${Char}`), () => [result, input]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/token/unsigned_integer.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/token/unsigned_integer.mjs function TakeNonZero(input) { return Take(NonZero, input); } @@ -2169,7 +2104,7 @@ function UnsignedInteger(input) { return TakeUnsignedInteger(Trim(input)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/token/integer.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/token/integer.mjs function TakeSign$1(input) { return Optional$1("-", input); } @@ -2181,7 +2116,7 @@ function Integer(input) { return TakeSignedInteger(Trim(input)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/token/bigint.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/token/bigint.mjs function TakeBigInt(input) { return Match$2(Integer(input), (Integer, IntegerRest) => Match$2(Take(["n"], IntegerRest), (_N, NRest) => [`${Integer}`, NRest], () => []), () => []); } @@ -2190,7 +2125,7 @@ function BigInt$1(input) { return TakeBigInt(input); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/token/const.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/token/const.mjs function TakeConst(const_, input) { return Take([const_], input); } @@ -2199,7 +2134,7 @@ function Const(const_, input) { return IsEqual(const_, "") ? ["", input] : const_.startsWith("\n") ? TakeConst(const_, TrimWhitespace(input)) : const_.startsWith(" ") ? TakeConst(const_, input) : TakeConst(const_, Trim(input)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/token/ident.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/token/ident.mjs const Initial = [ ...Alpha, "_", @@ -2220,7 +2155,7 @@ function Ident(input) { return TakeIdent(Trim(input)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/token/unsigned_number.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/token/unsigned_number.mjs const AllowedDigits = [...Digit, "_"]; function IsLeadingDot(input) { return IsMatch(Take(["."], input)); @@ -2242,7 +2177,7 @@ function UnsignedNumber(input) { return TakeUnsignedNumber(Trim(input)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/token/number.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/token/number.mjs function TakeSign(input) { return Optional$1("-", input); } @@ -2254,7 +2189,7 @@ function Number$1(input) { return TakeSignedNumber(Trim(input)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/token/until.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/token/until.mjs function TakeOne(input) { return IsEqual(input, "") ? [] : [input.slice(0, 1), input.slice(1)]; } @@ -2266,7 +2201,7 @@ function Until(end, input, result = "") { return Match$2(TakeOne(input), (One, Rest) => IsInputMatchSentinal(end, input) ? [result, input] : Until(end, Rest, `${result}${One}`), () => []); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/token/span.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/token/span.mjs function MultiLine(start, end, input) { return Match$2(Take([start], input), (_, Rest) => Match$2(Until([end], Rest), (Until, UntilRest) => Match$2(Take([end], UntilRest), (_, Rest) => [`${Until}`, Rest], () => []), () => []), () => []); } @@ -2278,7 +2213,7 @@ function Span(start, end, multiLine, input) { return multiLine ? MultiLine(start, end, Trim(input)) : SingleLine(start, end, Trim(input)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/token/string.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/token/string.mjs function TakeInitial(quotes, input) { return Take(quotes, input); } @@ -2293,13 +2228,13 @@ function String$1(quotes, input) { return TakeString(quotes, Trim(input)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/token/until_1.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/token/until_1.mjs /** Match Input until but not including End. No match if End not found or match is zero-length. */ function Until_1(end, input) { return Match$2(Until(end, input), (Until, UntilRest) => IsEqual(Until, "") ? [] : [Until, UntilRest], () => []); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/parser.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/parser.mjs const If = (result, left, right = () => []) => result.length === 2 ? left(result) : right(); const GenericParameterExtendsEquals = (input) => If(If(Ident(input), ([_0, input]) => If(Const("extends", input), ([_1, input]) => If(Type(input), ([_2, input]) => If(Const("=", input), ([_3, input]) => If(Type(input), ([_4, input]) => [[ _0, @@ -2667,7 +2602,7 @@ const ModuleDeclaration = (input) => If(If(ExportKeyword(input), ([_0, input]) = const Module = (input) => If(If(ModuleDeclaration(input), ([_0, input]) => If(ModuleDeclarationList(input), ([_1, input]) => [[_0, _1], input])), ([_0, input]) => [ModuleMapping(_0), input]); const Script$1 = (input) => If(If(Module(input), ([_0, input]) => [_0, input], () => If(GenericType(input), ([_0, input]) => [_0, input], () => If(Type(input), ([_0, input]) => [_0, input], () => []))), ([_0, input]) => [ScriptMapping(_0), input]); //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/template_literal/encode.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/template_literal/encode.mjs function JoinString(input) { return input.join("|"); } @@ -2718,7 +2653,7 @@ function TemplateLiteralEncode(types) { return TemplateLiteralCreate(EncodePattern(types)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/template_literal/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/template_literal/instantiate.mjs function TemplateLiteralAction(types, options) { return CanInstantiate(types) ? Update(TemplateLiteralEncode(types), {}, options) : TemplateLiteralDeferred(types, options); } @@ -2726,7 +2661,7 @@ function TemplateLiteralInstantiate(context, state, types, options) { return TemplateLiteralAction(InstantiateTypes(context, state, types), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/template_literal.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/template_literal.mjs /** Creates a deferred TemplateLiteral action. */ function TemplateLiteralDeferred(types, options = {}) { return Deferred("TemplateLiteral", [types], options); @@ -2740,7 +2675,7 @@ function IsTemplateLiteral(value) { return IsKind(value, "TemplateLiteral"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/result.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/result.mjs function ExtendsUnion$1(inferred) { return Create({ ["~kind"]: "ExtendsUnion" }, { inferred }); } @@ -2766,7 +2701,7 @@ function Match$1(result, true_, false_) { return IsExtendsTrueLike(result) ? true_(result.inferred) : false_(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/extends_right.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/extends_right.mjs function ExtendsRightInfer(inferred, name, left, right) { return Match$1(ExtendsLeft(inferred, left, right), (checkInferred) => ExtendsTrue(Assign(Assign(inferred, checkInferred), { [name]: left })), () => ExtendsFalse()); } @@ -2792,12 +2727,12 @@ function ExtendsRight(inferred, left, right) { return IsAny(right) ? ExtendsRightAny(inferred, left) : IsDependent(right) ? ExtendsRightDependent(inferred, left, right.if, right.then, right.else) : IsEnum$1(right) ? ExtendsRightEnum(inferred, left, right.enum) : IsInfer(right) ? ExtendsRightInfer(inferred, right.name, left, right.extends) : IsIntersect(right) ? ExtendsRightIntersect(inferred, left, right.allOf) : IsTemplateLiteral(right) ? ExtendsRightTemplateLiteral(inferred, left, right.pattern) : IsUnion(right) ? ExtendsRightUnion(inferred, left, right.anyOf) : IsUnknown(right) ? ExtendsTrue(inferred) : ExtendsFalse(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/any.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/any.mjs function ExtendsAny(inferred, left, right) { return IsInfer(right) ? ExtendsRight(inferred, left, right) : IsAny(right) ? ExtendsTrue(inferred) : IsUnknown(right) ? ExtendsTrue(inferred) : ExtendsUnion$1(inferred); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/array.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/array.mjs function ExtendsImmutable(left, right) { const isImmutableLeft = IsImmutable(left); const isImmutableRight = IsImmutable(right); @@ -2807,22 +2742,17 @@ function ExtendsArray(inferred, arrayLeft, left, right) { return IsArray(right) ? ExtendsImmutable(arrayLeft, right) ? ExtendsLeft(inferred, left, right.items) : ExtendsFalse() : ExtendsRight(inferred, arrayLeft, right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/async_iterator.mjs -function ExtendsAsyncIterator(inferred, left, right) { - return IsAsyncIterator(right) ? ExtendsLeft(inferred, left, right.iteratorItems) : ExtendsRight(inferred, AsyncIterator(left), right); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/bigint.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/bigint.mjs function ExtendsBigInt(inferred, left, right) { return IsBigInt(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/boolean.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/boolean.mjs function ExtendsBoolean(inferred, left, right) { return IsBoolean(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/parameters.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/parameters.mjs function ParameterCompare(inferred, left, leftRest, right, rightRest) { const checkLeft = IsInfer(right) ? left : right; const checkRight = IsInfer(right) ? right : left; @@ -2840,47 +2770,42 @@ function ExtendsParameters(inferred, left, right) { return ParametersLeft(inferred, left, right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/return_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/return_type.mjs function ExtendsReturnType(inferred, left, right) { return IsVoid(right) ? ExtendsTrue(inferred) : ExtendsLeft(inferred, left, right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/constructor.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/constructor.mjs function ExtendsConstructor(inferred, parameters, returnType, right) { return IsAny(right) ? ExtendsTrue(inferred) : IsUnknown(right) ? ExtendsTrue(inferred) : IsConstructor(right) ? Match$1(ExtendsParameters(inferred, parameters, right["parameters"]), (inferred) => ExtendsReturnType(inferred, returnType, right["instanceType"]), () => ExtendsFalse()) : ExtendsFalse(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/dependent.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/dependent.mjs function ExtendsDependent(inferred, if_, then_, else_, right) { return Match$1(ExtendsLeft(inferred, if_, right), () => ExtendsLeft(inferred, then_, right), () => ExtendsLeft(inferred, else_, right)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/enum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/enum.mjs function ExtendsEnum(inferred, left, right) { return ExtendsLeft(inferred, EvaluateEnum(left), right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/function.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/function.mjs function ExtendsFunction(inferred, parameters, returnType, right) { return IsAny(right) ? ExtendsTrue(inferred) : IsUnknown(right) ? ExtendsTrue(inferred) : IsFunction(right) ? Match$1(ExtendsParameters(inferred, parameters, right["parameters"]), (inferred) => ExtendsReturnType(inferred, returnType, right["returnType"]), () => ExtendsFalse()) : ExtendsFalse(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/integer.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/integer.mjs function ExtendsInteger(inferred, left, right) { return IsInteger(right) ? ExtendsTrue(inferred) : IsNumber(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/intersect.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/intersect.mjs function ExtendsIntersect(inferred, left, right) { return ExtendsLeft(inferred, EvaluateIntersect(left), right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/iterator.mjs -function ExtendsIterator(inferred, left, right) { - return IsIterator(right) ? ExtendsLeft(inferred, left, right.iteratorItems) : ExtendsRight(inferred, Iterator(left), right); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/literal.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/literal.mjs function ExtendsLiteralValue(inferred, left, right) { return left === right ? ExtendsTrue(inferred) : ExtendsFalse(); } @@ -2900,22 +2825,22 @@ function ExtendsLiteral(inferred, left, right) { return IsBigInt$1(left.const) ? ExtendsLiteralBigInt(inferred, left.const, right) : IsBoolean$2(left.const) ? ExtendsLiteralBoolean(inferred, left.const, right) : IsNumber$2(left.const) ? ExtendsLiteralNumber(inferred, left.const, right) : IsString$2(left.const) ? ExtendsLiteralString(inferred, left.const, right) : Unreachable$1(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/never.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/never.mjs function ExtendsNever(inferred, left, right) { return IsInfer(right) ? ExtendsRight(inferred, left, right) : ExtendsTrue(inferred); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/null.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/null.mjs function ExtendsNull(inferred, left, right) { return IsNull(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/number.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/number.mjs function ExtendsNumber(inferred, left, right) { return IsNumber(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/object.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/object.mjs function ExtendsPropertyOptional(inferred, left, right) { return IsOptional(left) ? IsOptional(right) ? ExtendsTrue(inferred) : ExtendsFalse() : ExtendsTrue(inferred); } @@ -2962,12 +2887,7 @@ function ExtendsObject(inferred, left, right) { return IsRecord(right) ? ExtendsObjectToRecord(inferred, left, RecordPattern(right), RecordValue(right)) : IsObject(right) ? ExtendsObjectToObject(inferred, left, right.properties) : ExtendsRight(inferred, _Object_$1(left), right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/promise.mjs -function ExtendsPromise(inferred, left, right) { - return IsPromise(right) ? ExtendsLeft(inferred, left, right.item) : ExtendsRight(inferred, _Promise_(left), right); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/record.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/record.mjs function FromObject$7(inferred, properties) { return IsEqual(Keys(properties).length, 0) ? ExtendsTrue(inferred) : ExtendsFalse(); } @@ -2978,22 +2898,22 @@ function ExtendsRecord(inferred, leftPattern, leftValue, right) { return IsRecord(right) ? FromRecord$1(inferred, RecordPatternToType(leftPattern), leftValue, RecordPatternToType(RecordPattern(right)), RecordValue(right)) : IsObject(right) ? FromObject$7(inferred, right.properties) : IsAny(right) ? ExtendsTrue(inferred) : IsUnknown(right) ? ExtendsTrue(inferred) : ExtendsFalse(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/string.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/string.mjs function ExtendsString(inferred, left, right) { return IsString(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/symbol.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/symbol.mjs function ExtendsSymbol(inferred, left, right) { return IsSymbol(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/template_literal.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/template_literal.mjs function ExtendsTemplateLiteral(inferred, left, right) { return ExtendsLeft(inferred, EvaluateTemplateLiteral(left), right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/inference.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/inference.mjs function Inferrable(name, type) { return Create({ "~kind": "Inferrable" }, { name, @@ -3021,7 +2941,7 @@ function InferUnionResult(inferred, name, left, right) { return IsArray$1(results) ? ExtendsTrue(Assign(inferred, { [name]: Union(results) })) : ExtendsFalse(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/tuple.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/tuple.mjs function Reverse(types) { return [...types].reverse(); } @@ -3059,12 +2979,12 @@ function ExtendsTuple(inferred, left, right) { return IsTuple(right) ? ExtendsTupleToTuple(inferred, instantiatedLeft, right.items) : IsArray(right) ? ExtendsTupleToArray(inferred, instantiatedLeft, right.items) : ExtendsRight(inferred, Tuple(instantiatedLeft), right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/undefined.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/undefined.mjs function ExtendsUndefined(inferred, left, right) { return IsVoid(right) ? ExtendsTrue(inferred) : IsUndefined(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/union.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/union.mjs function ExtendsUnionSome(inferred, type, unionTypes) { return ShiftLeft(unionTypes, (head, tail) => Match$1(ExtendsLeft(inferred, type, head), (inferred) => ExtendsTrue(inferred), () => ExtendsUnionSome(inferred, type, tail)), () => ExtendsFalse()); } @@ -3076,22 +2996,22 @@ function ExtendsUnion(inferred, left, right) { return IsInferable(inferrable) ? InferUnionResult(inferred, inferrable.name, left, inferrable.type) : IsUnion(right) ? ExtendsUnionLeft(inferred, left, right.anyOf) : ExtendsUnionLeft(inferred, left, [right]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/unknown.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/unknown.mjs function ExtendsUnknown(inferred, left, right) { return IsInfer(right) ? ExtendsRight(inferred, left, right) : IsAny(right) ? ExtendsTrue(inferred) : IsUnknown(right) ? ExtendsTrue(inferred) : ExtendsFalse(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/void.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/void.mjs function ExtendsVoid(inferred, left, right) { return IsVoid(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/extends_left.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/extends_left.mjs function ExtendsLeft(inferred, left, right) { - return IsAny(left) ? ExtendsAny(inferred, left, right) : IsArray(left) ? ExtendsArray(inferred, left, left.items, right) : IsAsyncIterator(left) ? ExtendsAsyncIterator(inferred, left.iteratorItems, right) : IsBigInt(left) ? ExtendsBigInt(inferred, left, right) : IsBoolean(left) ? ExtendsBoolean(inferred, left, right) : IsConstructor(left) ? ExtendsConstructor(inferred, left.parameters, left.instanceType, right) : IsDependent(left) ? ExtendsDependent(inferred, left.if, left.then, left.else, right) : IsEnum$1(left) ? ExtendsEnum(inferred, left.enum, right) : IsFunction(left) ? ExtendsFunction(inferred, left.parameters, left.returnType, right) : IsInteger(left) ? ExtendsInteger(inferred, left, right) : IsIntersect(left) ? ExtendsIntersect(inferred, left.allOf, right) : IsIterator(left) ? ExtendsIterator(inferred, left.iteratorItems, right) : IsLiteral(left) ? ExtendsLiteral(inferred, left, right) : IsNever(left) ? ExtendsNever(inferred, left, right) : IsNull(left) ? ExtendsNull(inferred, left, right) : IsNumber(left) ? ExtendsNumber(inferred, left, right) : IsObject(left) ? ExtendsObject(inferred, left.properties, right) : IsPromise(left) ? ExtendsPromise(inferred, left.item, right) : IsRecord(left) ? ExtendsRecord(inferred, RecordPattern(left), RecordValue(left), right) : IsString(left) ? ExtendsString(inferred, left, right) : IsSymbol(left) ? ExtendsSymbol(inferred, left, right) : IsTemplateLiteral(left) ? ExtendsTemplateLiteral(inferred, left.pattern, right) : IsTuple(left) ? ExtendsTuple(inferred, left.items, right) : IsUndefined(left) ? ExtendsUndefined(inferred, left, right) : IsUnion(left) ? ExtendsUnion(inferred, left.anyOf, right) : IsUnknown(left) ? ExtendsUnknown(inferred, left, right) : IsVoid(left) ? ExtendsVoid(inferred, left, right) : ExtendsFalse(); + return IsAny(left) ? ExtendsAny(inferred, left, right) : IsArray(left) ? ExtendsArray(inferred, left, left.items, right) : IsBigInt(left) ? ExtendsBigInt(inferred, left, right) : IsBoolean(left) ? ExtendsBoolean(inferred, left, right) : IsConstructor(left) ? ExtendsConstructor(inferred, left.parameters, left.instanceType, right) : IsDependent(left) ? ExtendsDependent(inferred, left.if, left.then, left.else, right) : IsEnum$1(left) ? ExtendsEnum(inferred, left.enum, right) : IsFunction(left) ? ExtendsFunction(inferred, left.parameters, left.returnType, right) : IsInteger(left) ? ExtendsInteger(inferred, left, right) : IsIntersect(left) ? ExtendsIntersect(inferred, left.allOf, right) : IsLiteral(left) ? ExtendsLiteral(inferred, left, right) : IsNever(left) ? ExtendsNever(inferred, left, right) : IsNull(left) ? ExtendsNull(inferred, left, right) : IsNumber(left) ? ExtendsNumber(inferred, left, right) : IsObject(left) ? ExtendsObject(inferred, left.properties, right) : IsRecord(left) ? ExtendsRecord(inferred, RecordPattern(left), RecordValue(left), right) : IsString(left) ? ExtendsString(inferred, left, right) : IsSymbol(left) ? ExtendsSymbol(inferred, left, right) : IsTemplateLiteral(left) ? ExtendsTemplateLiteral(inferred, left.pattern, right) : IsTuple(left) ? ExtendsTuple(inferred, left.items, right) : IsUndefined(left) ? ExtendsUndefined(inferred, left, right) : IsUnion(left) ? ExtendsUnion(inferred, left.anyOf, right) : IsUnknown(left) ? ExtendsUnknown(inferred, left, right) : IsVoid(left) ? ExtendsVoid(inferred, left, right) : ExtendsFalse(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/interface/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/interface/instantiate.mjs function InterfaceOperation(heritage, properties) { return EvaluateIntersect([...heritage, _Object_$1(properties)]); } @@ -3102,7 +3022,7 @@ function InterfaceInstantiate(context, state, heritage, properties, options) { return InterfaceAction(InstantiateTypes(context, state, heritage), InstantiateProperties(context, state, properties), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/interface.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/interface.mjs /** Creates a deferred Interface action. */ function InterfaceDeferred(heritage, properties, options = {}) { return Deferred("Interface", [heritage, properties], options); @@ -3112,7 +3032,7 @@ function IsInterfaceDeferred(value) { return IsSchema$1(value) && HasPropertyKey(value, "action") && IsEqual(value.action, "Interface"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/cyclic/check.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/cyclic/check.mjs function FromRef$3(stack, context, ref) { return stack.includes(ref) ? true : FromType$15([...stack, ref], context, context[ref]); } @@ -3123,14 +3043,14 @@ function FromTypes$3(stack, context, types) { return ShiftLeft(types, (left, right) => FromType$15(stack, context, left) ? true : FromTypes$3(stack, context, right), () => false); } function FromType$15(stack, context, type) { - return IsRef$1(type) ? FromRef$3(stack, context, type.$ref) : IsArray(type) ? FromType$15(stack, context, type.items) : IsAsyncIterator(type) ? FromType$15(stack, context, type.iteratorItems) : IsConstructor(type) ? FromTypes$3(stack, context, [...type.parameters, type.instanceType]) : IsFunction(type) ? FromTypes$3(stack, context, [...type.parameters, type.returnType]) : IsInterfaceDeferred(type) ? FromProperties$2(stack, context, type.parameters[1]) : IsIntersect(type) ? FromTypes$3(stack, context, type.allOf) : IsIterator(type) ? FromType$15(stack, context, type.iteratorItems) : IsObject(type) ? FromProperties$2(stack, context, type.properties) : IsPromise(type) ? FromType$15(stack, context, type.item) : IsUnion(type) ? FromTypes$3(stack, context, type.anyOf) : IsTuple(type) ? FromTypes$3(stack, context, type.items) : IsRecord(type) ? FromType$15(stack, context, RecordValue(type)) : false; + return IsRef$1(type) ? FromRef$3(stack, context, type.$ref) : IsArray(type) ? FromType$15(stack, context, type.items) : IsConstructor(type) ? FromTypes$3(stack, context, [...type.parameters, type.instanceType]) : IsFunction(type) ? FromTypes$3(stack, context, [...type.parameters, type.returnType]) : IsInterfaceDeferred(type) ? FromProperties$2(stack, context, type.parameters[1]) : IsIntersect(type) ? FromTypes$3(stack, context, type.allOf) : IsObject(type) ? FromProperties$2(stack, context, type.properties) : IsUnion(type) ? FromTypes$3(stack, context, type.anyOf) : IsTuple(type) ? FromTypes$3(stack, context, type.items) : IsRecord(type) ? FromType$15(stack, context, RecordValue(type)) : false; } /** Performs a cyclic check on the given type. Initial key stack can be empty, but faster if specified */ function CyclicCheck(stack, context, type) { return FromType$15(stack, context, type); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/cyclic/candidates.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/cyclic/candidates.mjs function ResolveCandidateKeys(context, keys) { return keys.reduce((result, left) => { return CyclicCheck([left], context, context[left]) ? [...result, left] : result; @@ -3141,7 +3061,7 @@ function CyclicCandidates(context) { return ResolveCandidateKeys(context, PropertyKeys(context)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/cyclic/dependencies.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/cyclic/dependencies.mjs function FromRef$2(context, ref, result) { return result.includes(ref) ? result : ref in context ? FromType$14(context, context[ref], [...result, ref]) : Unreachable$1(); } @@ -3154,14 +3074,14 @@ function FromTypes$2(context, types, result) { }, result); } function FromType$14(context, type, result) { - return IsRef$1(type) ? FromRef$2(context, type.$ref, result) : IsArray(type) ? FromType$14(context, type.items, result) : IsAsyncIterator(type) ? FromType$14(context, type.iteratorItems, result) : IsConstructor(type) ? FromTypes$2(context, [...type.parameters, type.instanceType], result) : IsFunction(type) ? FromTypes$2(context, [...type.parameters, type.returnType], result) : IsInterfaceDeferred(type) ? FromProperties$1(context, type.parameters[1], result) : IsIntersect(type) ? FromTypes$2(context, type.allOf, result) : IsIterator(type) ? FromType$14(context, type.iteratorItems, result) : IsObject(type) ? FromProperties$1(context, type.properties, result) : IsPromise(type) ? FromType$14(context, type.item, result) : IsUnion(type) ? FromTypes$2(context, type.anyOf, result) : IsTuple(type) ? FromTypes$2(context, type.items, result) : IsRecord(type) ? FromType$14(context, RecordValue(type), result) : result; + return IsRef$1(type) ? FromRef$2(context, type.$ref, result) : IsArray(type) ? FromType$14(context, type.items, result) : IsConstructor(type) ? FromTypes$2(context, [...type.parameters, type.instanceType], result) : IsFunction(type) ? FromTypes$2(context, [...type.parameters, type.returnType], result) : IsInterfaceDeferred(type) ? FromProperties$1(context, type.parameters[1], result) : IsIntersect(type) ? FromTypes$2(context, type.allOf, result) : IsObject(type) ? FromProperties$1(context, type.properties, result) : IsUnion(type) ? FromTypes$2(context, type.anyOf, result) : IsTuple(type) ? FromTypes$2(context, type.items, result) : IsRecord(type) ? FromType$14(context, RecordValue(type), result) : result; } /** Returns dependent cyclic keys for the given type. This function is used to dead-type-eliminate (DTE) for initializing TCyclic types. */ function CyclicDependencies(context, key, type) { return FromType$14(context, type, [key]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/cyclic/extends.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/cyclic/extends.mjs function FromRef$1(_ref) { return Any(); } @@ -3179,7 +3099,7 @@ function FromTypes$1(types) { }, []); } function FromType$13(type) { - return IsRef$1(type) ? FromRef$1(type.$ref) : IsArray(type) ? _Array_(FromType$13(type.items), ArrayOptions(type)) : IsAsyncIterator(type) ? AsyncIterator(FromType$13(type.iteratorItems)) : IsConstructor(type) ? Constructor(FromTypes$1(type.parameters), FromType$13(type.instanceType)) : IsFunction(type) ? _Function_$1(FromTypes$1(type.parameters), FromType$13(type.returnType)) : IsIntersect(type) ? Intersect(FromTypes$1(type.allOf)) : IsIterator(type) ? Iterator(FromType$13(type.iteratorItems)) : IsObject(type) ? _Object_$1(FromProperties(type.properties)) : IsPromise(type) ? _Promise_(FromType$13(type.item)) : IsRecord(type) ? Record(RecordKey(type), FromType$13(RecordValue(type))) : IsUnion(type) ? Union(FromTypes$1(type.anyOf)) : IsTuple(type) ? Tuple(FromTypes$1(type.items)) : type; + return IsRef$1(type) ? FromRef$1(type.$ref) : IsArray(type) ? _Array_(FromType$13(type.items), ArrayOptions(type)) : IsConstructor(type) ? Constructor(FromTypes$1(type.parameters), FromType$13(type.instanceType)) : IsFunction(type) ? _Function_$1(FromTypes$1(type.parameters), FromType$13(type.returnType)) : IsIntersect(type) ? Intersect(FromTypes$1(type.allOf)) : IsObject(type) ? _Object_$1(FromProperties(type.properties)) : IsRecord(type) ? Record(RecordKey(type), FromType$13(RecordValue(type))) : IsUnion(type) ? Union(FromTypes$1(type.anyOf)) : IsTuple(type) ? Tuple(FromTypes$1(type.items)) : type; } function CyclicAnyFromParameters(defs, ref) { return ref in defs ? FromType$13(defs[ref]) : Unknown(); @@ -3189,7 +3109,7 @@ function CyclicExtends(type) { return CyclicAnyFromParameters(type.$defs, type.$ref); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/cyclic/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/cyclic/instantiate.mjs function CyclicInterface(context, heritage, properties) { const instantiatedHeritage = InstantiateTypes(context, State([], []), heritage); const instantiatedProperties = InstantiateProperties({}, State([], []), properties); @@ -3209,7 +3129,7 @@ function InstantiateCyclic(context, ref, type) { return Cyclic(CyclicDefinitions(context, CyclicDependencies(context, ref, type)), ref); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/cyclic/target.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/cyclic/target.mjs function Resolve(defs, ref) { return ref in defs ? IsRef$1(defs[ref]) ? Resolve(defs, defs[ref].$ref) : defs[ref] : Never(); } @@ -3218,7 +3138,7 @@ function CyclicTarget(defs, ref) { return Resolve(defs, ref); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/extends.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/extends.mjs function Canonical(type) { return IsCyclic(type) ? CyclicExtends(type) : IsUnsafe(type) ? Unknown() : type; } @@ -3227,7 +3147,7 @@ function Extends(inferred, left, right) { return ExtendsLeft(inferred, Canonical(left), Canonical(right)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/evaluate/compare.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/evaluate/compare.mjs const ResultEqual = "equal"; const ResultDisjoint = "disjoint"; const ResultLeftInside = "left-inside"; @@ -3238,7 +3158,7 @@ function Compare(left, right) { return IsExtendsTrueLike(extendsCheck[0]) && IsExtendsTrueLike(extendsCheck[1]) ? ResultEqual : IsExtendsTrueLike(extendsCheck[0]) && IsExtendsFalse(extendsCheck[1]) ? ResultLeftInside : IsExtendsFalse(extendsCheck[0]) && IsExtendsTrueLike(extendsCheck[1]) ? ResultRightInside : ResultDisjoint; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/evaluate/broaden.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/evaluate/broaden.mjs function BroadFilter(type, types) { return types.filter((left) => { return Compare(type, left) === "right-inside" ? false : true; @@ -3264,7 +3184,7 @@ function Broaden(types) { return Flatten(BroadenTypes(types)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/evaluate/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/evaluate/instantiate.mjs function EvaluateAction(type, options) { return Update(EvaluateType(type), {}, options); } @@ -3272,7 +3192,7 @@ function EvaluateInstantiate(context, state, type, options) { return EvaluateAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/call/distribute_arguments.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/call/distribute_arguments.mjs function CollectDistributionNames(expression, result = []) { return IsDeferred(expression) && IsEqual(expression.action, "Conditional") ? IsRef$1(expression.parameters[0]) ? CollectDistributionNames(expression.parameters[2], CollectDistributionNames(expression.parameters[3], [...result, expression.parameters[0]["$ref"]])) : CollectDistributionNames(expression.parameters[2], CollectDistributionNames(expression.parameters[3], result)) : IsDeferred(expression) && IsEqual(expression.action, "Mapped") ? IsDeferred(expression.parameters[1]) && IsEqual(expression.parameters[1].action, "KeyOf") && IsRef$1(expression.parameters[1].parameters[0]) ? [...result, expression.parameters[1].parameters[0]["$ref"]] : result : result; } @@ -3303,7 +3223,7 @@ function DistributeArguments(parameters, arguments_, expression) { return IsDeferred(expression) && IsEqual(expression.action, "Conditional") ? Distribute(zippedArguments) : IsDeferred(expression) && IsEqual(expression.action, "Mapped") ? Distribute(zippedArguments) : [arguments_]; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/call/resolve_target.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/call/resolve_target.mjs function FromNotResolvable() { return ["(not-resolvable)", Never()]; } @@ -3324,7 +3244,7 @@ function ResolveTarget(context, target, arguments_) { return FromType$12(context, "(anonymous)", target, arguments_); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/call/resolve_arguments.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/call/resolve_arguments.mjs function AssertArgumentExtends(name, type, extends_) { if (IsInfer(type) || IsCall(type) || IsExtendsTrueLike(Extends({}, type, extends_))) return; const cause = { @@ -3351,7 +3271,7 @@ function ResolveArgumentsContext(context, state, parameters, arguments_) { return BindParameters(context, state, parameters, arguments_); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/call/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/call/instantiate.mjs function Peek(state) { return IsGreaterThan(state.callstack.length, 0) ? state.callstack[state.callstack.length - 1] : ""; } @@ -3378,7 +3298,7 @@ function CallInstantiate(context, state, target, arguments_) { return IsGeneric(type) ? IsTailCall(state, name) ? CallConstruct(Ref$1(name), instantiatedArguments) : CallImmediate(context, state, Ref$1(name), type.parameters, type.expression, instantiatedArguments) : CallConstruct(target, instantiatedArguments); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/call.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/call.mjs function CallConstruct(target, arguments_) { return Create({ ["~kind"]: "Call" }, { type: "call", @@ -3391,7 +3311,7 @@ function IsCall(value) { return IsKind(value, "Call"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/immutable/instantiate_remove.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/immutable/instantiate_remove.mjs function RemoveImmutableOperation(type) { return Discard(type, ["~immutable"]); } @@ -3402,73 +3322,56 @@ function RemoveImmutableInstantiate(context, state, type, options) { return RemoveImmutableAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/awaited.mjs -/** Creates a deferred Awaited action. */ -function AwaitedDeferred(type, options = {}) { - return Deferred("Awaited", [type], options); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/awaited/instantiate.mjs -function AwaitedOperation(type) { - return IsPromise(type) ? AwaitedOperation(type.item) : type; -} -function AwaitedAction(type, options) { - return CanInstantiate([type]) ? Update(AwaitedOperation(type), {}, options) : AwaitedDeferred(type, options); -} -function AwaitedInstantiate(context, state, type, options) { - return AwaitedAction(InstantiateType(context, state, type), options); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/intrinsics/mapping.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/intrinsics/mapping.mjs function ApplyMapping(mapping, value) { return mapping(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/intrinsics/from_literal.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/intrinsics/from_literal.mjs function FromLiteral$2(mapping, value) { return IsString$2(value) ? Literal(ApplyMapping(mapping, value)) : Literal(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/intrinsics/from_template_literal.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/intrinsics/from_template_literal.mjs function FromTemplateLiteral$2(mapping, pattern) { return FromType$11(mapping, EvaluateTemplateLiteral(pattern)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/intrinsics/from_union.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/intrinsics/from_union.mjs function FromUnion$6(mapping, types) { return Union(types.map((type) => FromType$11(mapping, type))); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/intrinsics/from_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/intrinsics/from_type.mjs function FromType$11(mapping, type) { return IsLiteral(type) ? FromLiteral$2(mapping, type.const) : IsTemplateLiteral(type) ? FromTemplateLiteral$2(mapping, type.pattern) : IsUnion(type) ? FromUnion$6(mapping, type.anyOf) : type; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/capitalize.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/capitalize.mjs /** Creates a deferred Capitalize action. */ function CapitalizeDeferred(type, options = {}) { return Deferred("Capitalize", [type], options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/lowercase.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/lowercase.mjs /** Creates a deferred Lowercase action. */ function LowercaseDeferred(type, options = {}) { return Deferred("Lowercase", [type], options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/uncapitalize.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/uncapitalize.mjs /** Creates a deferred Uncapitalize action. */ function UncapitalizeDeferred(type, options = {}) { return Deferred("Uncapitalize", [type], options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/uppercase.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/uppercase.mjs /** Creates a deferred Uppercase action. */ function UppercaseDeferred(type, options = {}) { return Deferred("Uppercase", [type], options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/intrinsics/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/intrinsics/instantiate.mjs const CapitalizeMapping = (input) => input[0].toUpperCase() + input.slice(1); const LowercaseMapping = (input) => input.toLowerCase(); const UncapitalizeMapping = (input) => input[0].toLowerCase() + input.slice(1); @@ -3498,7 +3401,7 @@ function UppercaseInstantiate(context, state, type, options) { return UppercaseAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/conditional.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/conditional.mjs /** Creates a deferred Conditional action. */ function ConditionalDeferred(left, right, true_, false_, options = {}) { return Deferred("Conditional", [ @@ -3509,7 +3412,7 @@ function ConditionalDeferred(left, right, true_, false_, options = {}) { ], options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/conditional/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/conditional/instantiate.mjs function ConditionalOperation(context, state, left, right, true_, false_) { const extendsResult = Extends(context, left, right); return IsExtendsUnion(extendsResult) ? Union([InstantiateType(extendsResult.inferred, state, true_), InstantiateType(context, state, false_)]) : IsExtendsTrue(extendsResult) ? InstantiateType(extendsResult.inferred, state, true_) : InstantiateType(context, state, false_); @@ -3521,13 +3424,13 @@ function ConditionalInstantiate(context, state, left, right, true_, false_, opti return ConditionalAction(context, state, InstantiateType(context, state, left), InstantiateType(context, state, right), true_, false_, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/constructor_parameters.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/constructor_parameters.mjs /** Creates a deferred ConstructorParameters action. */ function ConstructorParametersDeferred(type, options = {}) { return Deferred("ConstructorParameters", [type], options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/constructor_parameters/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/constructor_parameters/instantiate.mjs function ConstructorParametersOperation(type) { const parameters = IsConstructor(type) ? type["parameters"] : []; return Tuple(InstantiateElements({}, State([], []), parameters)); @@ -3539,13 +3442,13 @@ function ConstructorParametersInstantiate(context, state, type, options) { return ConstructorParametersAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/exclude.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/exclude.mjs /** Creates a deferred Exclude action. */ function ExcludeDeferred(left, right, options = {}) { return Deferred("Exclude", [left, right], options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/exclude/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/exclude/instantiate.mjs function ExcludeAction(left, right, options) { return CanInstantiate([left, right]) ? Update(ExcludeOperation(left, right), {}, options) : ExcludeDeferred(left, right, options); } @@ -3553,13 +3456,13 @@ function ExcludeInstantiate(context, state, left, right, options) { return ExcludeAction(InstantiateType(context, state, left), InstantiateType(context, state, right), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/extract.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/extract.mjs /** Creates a deferred Extract action. */ function ExtractDeferred(left, right, options = {}) { return Deferred("Extract", [left, right], options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/extract/operation.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/extract/operation.mjs function ExtractType(left, right) { return IsExtendsTrueLike(Extends({}, left, right)) ? [left] : []; } @@ -3573,7 +3476,7 @@ function ExtractOperation(left, right) { return EvaluateUnion(ExtractUnion(IsUnion(evaluated) ? evaluated.anyOf : [evaluated], right)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/extract/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/extract/instantiate.mjs function ExtractAction(left, right, options) { return CanInstantiate([left, right]) ? Update(ExtractOperation(left, right), {}, options) : ExtractDeferred(left, right, options); } @@ -3581,23 +3484,23 @@ function ExtractInstantiate(context, state, left, right, options) { return ExtractAction(InstantiateType(context, state, left), InstantiateType(context, state, right), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/indexed.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/indexed.mjs /** Creates a deferred Index action. */ function IndexDeferred(type, indexer, options = {}) { return Deferred("Index", [type, indexer], options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/object/from_cyclic.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/object/from_cyclic.mjs function FromCyclic$4(defs, ref) { return FromType$10(CyclicTarget(defs, ref)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/object/from_dependent.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/object/from_dependent.mjs function FromDependent$4(if_, then_, else_) { return FromType$10(EvaluateDependent(if_, then_, else_)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/object/from_intersect.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/object/from_intersect.mjs function CollapseIntersectProperties(left, right) { const leftKeys = Keys(left).filter((key) => !HasPropertyKey(right, key)); const rightKeys = Keys(right).filter((key) => !HasPropertyKey(left, key)); @@ -3622,17 +3525,17 @@ function FromIntersect$4(types) { }, {}); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/object/from_object.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/object/from_object.mjs function FromObject$6(properties) { return properties; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/object/from_tuple.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/object/from_tuple.mjs function FromTuple$3(types) { return FromType$10(TupleToObject(Tuple(types))); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/object/from_union.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/object/from_union.mjs function CollapseUnionProperties(left, right) { return Keys(left).filter((key) => key in right).reduce((result, key) => { return { @@ -3648,12 +3551,12 @@ function FromUnion$5(types) { return ShiftLeft(types, (left, right) => ReduceVariants(right, FromType$10(left)), () => Unreachable$1()); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/object/from_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/object/from_type.mjs function FromType$10(type) { return IsCyclic(type) ? FromCyclic$4(type.$defs, type.$ref) : IsDependent(type) ? FromDependent$4(type.if, type.then, type.else) : IsIntersect(type) ? FromIntersect$4(type.allOf) : IsUnion(type) ? FromUnion$5(type.anyOf) : IsTuple(type) ? FromTuple$3(type.items) : IsObject(type) ? FromObject$6(type.properties) : {}; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/object/collapse.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/object/collapse.mjs /** * Collapses a type into a TObject schema. This is a lossy fast path used to * normalize arbitrary TSchema types into a TObject structure. This function is @@ -3664,14 +3567,14 @@ function CollapseToObject(type) { return _Object_$1(FromType$10(type)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/helpers/keys.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/helpers/keys.mjs const integerKeyPattern = /* @__PURE__ */ new RegExp("^(?:0|[1-9][0-9]*)$"); function ConvertToIntegerKey(value) { const normal = `${value}`; return integerKeyPattern.test(normal) ? parseInt(normal) : value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexed/from_array.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexed/from_array.mjs function NormalizeLiteral(value) { return Literal(ConvertToIntegerKey(value)); } @@ -3685,49 +3588,49 @@ function FromArray$3(type, indexer) { return IsExtendsTrueLike(Extends({}, NormalizeIndexer(indexer), Number$2())) ? type : IsLiteral(indexer) && IsEqual(indexer.const, "length") ? Number$2() : Never(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexable/from_cyclic.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexable/from_cyclic.mjs function FromCyclic$3(defs, ref) { return FromType$9(CyclicTarget(defs, ref)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexable/from_dependent.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexable/from_dependent.mjs function FromDependent$3(if_, then_, else_) { return FromType$9(EvaluateDependent(if_, then_, else_)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexable/from_enum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexable/from_enum.mjs function FromEnum$1(values) { return FromType$9(EvaluateEnum(values)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexable/from_intersect.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexable/from_intersect.mjs function FromIntersect$3(types) { return FromType$9(EvaluateIntersect(types)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexable/from_literal.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexable/from_literal.mjs function FromLiteral$1(value) { return [`${value}`]; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexable/from_template_literal.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexable/from_template_literal.mjs function FromTemplateLiteral$1(pattern) { return FromType$9(EvaluateTemplateLiteral(pattern)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexable/from_union.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexable/from_union.mjs function FromUnion$4(types) { return types.reduce((result, left) => { return [...result, ...FromType$9(left)]; }, []); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexable/from_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexable/from_type.mjs function FromType$9(type) { return IsCyclic(type) ? FromCyclic$3(type.$defs, type.$ref) : IsDependent(type) ? FromDependent$3(type.if, type.then, type.else) : IsEnum$1(type) ? FromEnum$1(type.enum) : IsIntersect(type) ? FromIntersect$3(type.allOf) : IsLiteral(type) ? FromLiteral$1(type.const) : IsTemplateLiteral(type) ? FromTemplateLiteral$1(type.pattern) : IsUnion(type) ? FromUnion$4(type.anyOf) : []; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexable/to_indexable_keys.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexable/to_indexable_keys.mjs /** * Transforms a type meant as an Indexer into string[] array which is used by Indexable types * like Index, Pick and Omit to select from property keys. This function should only be used @@ -3738,18 +3641,18 @@ function ToIndexableKeys(type) { return FromType$9(type); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/this/expand_this.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/this/expand_this.mjs function FromTypes(properties, types) { return types.map((type) => FromType$8(properties, type)); } function FromType$8(properties, type) { - return IsArray(type) ? _Array_(FromType$8(properties, type.items)) : IsAsyncIterator(type) ? AsyncIterator(FromType$8(properties, type.iteratorItems)) : IsConstructor(type) ? Constructor(FromTypes(properties, type.parameters), FromType$8(properties, type.instanceType)) : IsFunction(type) ? _Function_$1(FromTypes(properties, type.parameters), FromType$8(properties, type.returnType)) : IsIterator(type) ? Iterator(FromType$8(properties, type.iteratorItems)) : IsPromise(type) ? _Promise_(FromType$8(properties, type.item)) : IsTuple(type) ? Tuple(FromTypes(properties, type.items)) : IsUnion(type) ? Union(FromTypes(properties, type.anyOf)) : IsIntersect(type) ? Intersect(FromTypes(properties, type.allOf)) : IsThis(type) ? _Object_$1(properties) : type; + return IsArray(type) ? _Array_(FromType$8(properties, type.items)) : IsConstructor(type) ? Constructor(FromTypes(properties, type.parameters), FromType$8(properties, type.instanceType)) : IsFunction(type) ? _Function_$1(FromTypes(properties, type.parameters), FromType$8(properties, type.returnType)) : IsTuple(type) ? Tuple(FromTypes(properties, type.items)) : IsUnion(type) ? Union(FromTypes(properties, type.anyOf)) : IsIntersect(type) ? Intersect(FromTypes(properties, type.allOf)) : IsThis(type) ? _Object_$1(properties) : type; } function ExpandThis(properties, type) { return FromType$8(properties, type); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexed/from_object.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexed/from_object.mjs function IndexProperty(properties, key) { return ExpandThis(properties, key in properties ? properties[key] : Never()); } @@ -3772,7 +3675,7 @@ function FromObject$5(properties, indexer) { return IsNumber(indexer) ? FromIndexerNumber(properties) : FromIndexer(properties, indexer); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexed/array_indexer.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexed/array_indexer.mjs function ConvertLiteral(value) { return Literal(ConvertToIntegerKey(value)); } @@ -3784,7 +3687,7 @@ function FormatArrayIndexer(type) { return IsIntersect(type) ? Intersect(ArrayIndexerTypes(type.allOf)) : IsUnion(type) ? Union(ArrayIndexerTypes(type.anyOf)) : IsLiteral(type) ? ConvertLiteral(type.const) : type; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexed/from_tuple.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexed/from_tuple.mjs function IndexElementsWithIndexer(types, indexer) { return types.reduceRight((result, right, index) => { return IsExtendsTrueLike(Extends({}, Literal(index), indexer)) ? [right, ...result] : result; @@ -3800,12 +3703,12 @@ function FromTuple$2(types, indexer) { return IsLiteral(indexer) && IsEqual(indexer.const, "length") ? Literal(types.length) : IsNumber(indexer) || IsInteger(indexer) ? FromTupleWithoutIndexer(types) : FromTupleWithIndexer(types, indexer); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexed/from_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexed/from_type.mjs function FromType$7(type, indexer) { return IsArray(type) ? FromArray$3(type.items, indexer) : IsObject(type) ? FromObject$5(type.properties, indexer) : IsTuple(type) ? FromTuple$2(type.items, indexer) : Never(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexed/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexed/instantiate.mjs function NormalizeType$1(type) { return IsCyclic(type) || IsDependent(type) || IsIntersect(type) || IsUnion(type) ? CollapseToObject(type) : type; } @@ -3816,13 +3719,13 @@ function IndexInstantiate(context, state, type, indexer, options) { return IndexAction(InstantiateType(context, state, type), InstantiateType(context, state, indexer), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/instance_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/instance_type.mjs /** Creates a deferred InstanceType action. */ function InstanceTypeDeferred(type, options = {}) { return Deferred("InstanceType", [type], options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/instance_type/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/instance_type/instantiate.mjs function InstanceTypeOperation(type) { return IsConstructor(type) ? type["instanceType"] : Never(); } @@ -3833,27 +3736,27 @@ function InstanceTypeInstantiate(context, state, type, options = {}) { return InstanceTypeAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/keyof.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/keyof.mjs /** Creates a deferred KeyOf action. */ function KeyOfDeferred(type, options = {}) { return Deferred("KeyOf", [type], options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/keyof/from_any.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/keyof/from_any.mjs function FromAny() { return Union([ Number$2(), String$2(), - Symbol$1() + Symbol() ]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/keyof/from_array.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/keyof/from_array.mjs function FromArray$2(_type) { return Number$2(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/keyof/from_object.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/keyof/from_object.mjs function FromPropertyKeys(keys) { return keys.reduce((result, left) => { return IsLiteralValue(left) ? [...result, Literal(ConvertToIntegerKey(left))] : Unreachable$1(); @@ -3863,22 +3766,22 @@ function FromObject$4(properties) { return EvaluateUnionFast(FromPropertyKeys(Keys(properties))); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/keyof/from_record.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/keyof/from_record.mjs function FromRecord(type) { return RecordKey(type); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/keyof/from_tuple.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/keyof/from_tuple.mjs function FromTuple$1(types) { return EvaluateUnionFast(types.map((_, index) => Literal(index))); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/keyof/from_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/keyof/from_type.mjs function FromType$6(type) { return IsAny(type) ? FromAny() : IsArray(type) ? FromArray$2(type.items) : IsObject(type) ? FromObject$4(type.properties) : IsRecord(type) ? FromRecord(type) : IsTuple(type) ? FromTuple$1(type.items) : Never(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/keyof/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/keyof/instantiate.mjs function NormalizeType(type) { return IsCyclic(type) || IsDependent(type) || IsIntersect(type) || IsUnion(type) ? CollapseToObject(type) : type; } @@ -3889,7 +3792,7 @@ function KeyOfInstantiate(context, state, type, options) { return KeyOfAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/mapped.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/mapped.mjs /** Creates a deferred Mapped action. */ function MappedDeferred(identifier, type, as, property, options = {}) { return Deferred("Mapped", [ @@ -3900,7 +3803,7 @@ function MappedDeferred(identifier, type, as, property, options = {}) { ], options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/mapped/mapped_variants.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/mapped/mapped_variants.mjs function FromTemplateLiteral(pattern) { return FromType$5(EvaluateTemplateLiteral(pattern)); } @@ -3922,7 +3825,7 @@ function MappedVariants(type) { return FromType$5(type); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/mapped/mapped_operation.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/mapped/mapped_operation.mjs function CanonicalAs(instantiatedAs) { return IsTemplateLiteral(instantiatedAs) ? EvaluateTemplateLiteral(instantiatedAs.pattern) : instantiatedAs; } @@ -3946,7 +3849,7 @@ function MappedOperation(context, state, identifier, type, as, property) { return EvaluateIntersect(MappedObjects(MappedProperties(context, state, identifier, MappedVariants(type), as, property))); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/mapped/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/mapped/instantiate.mjs function MappedAction(context, state, identifier, type, as, property, options) { return CanInstantiate([type]) ? Update(MappedOperation(context, state, identifier, type, as, property), {}, options) : MappedDeferred(identifier, type, as, property, options); } @@ -3954,7 +3857,7 @@ function MappedInstantiate(context, state, identifier, type, as, property, optio return MappedAction(context, state, identifier, InstantiateType(context, state, type), as, property, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/module/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/module/instantiate.mjs function InstantiateCyclics(context, declarations, cyclicKeys) { const declarationContext = Assign(context, declarations); return Keys(declarations).filter((key) => cyclicKeys.includes(key)).reduce((result, key) => { @@ -3986,13 +3889,13 @@ function ModuleInstantiate(context, _state, declarations, options) { return InstantiateModule(context, declarations, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/non_nullable.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/non_nullable.mjs /** Creates a deferred NonNullable action. */ function NonNullableDeferred(type, options = {}) { return Deferred("NonNullable", [type], options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/non_nullable/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/non_nullable/instantiate.mjs function NonNullableOperation(type) { return ExcludeAction(type, Union([Null(), Undefined()]), {}); } @@ -4003,20 +3906,20 @@ function NonNullableInstantiate(context, state, type, options) { return NonNullableAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/omit.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/omit.mjs /** Creates a deferred Omit action. */ function OmitDeferred(type, indexer, options = {}) { return Deferred("Omit", [type, indexer], options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexable/to_indexable.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexable/to_indexable.mjs /** Transforms a type into a TProperties used for indexing operations */ function ToIndexable(type) { const collapsed = CollapseToObject(type); return IsObject(collapsed) ? collapsed.properties : Unreachable$1(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/omit/from_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/omit/from_type.mjs function FromKeys$1(properties, keys) { return Keys(properties).reduce((result, key) => { return keys.includes(key) ? result : { @@ -4029,7 +3932,7 @@ function FromType$4(type, indexer) { return _Object_$1(FromKeys$1(ToIndexable(type), ToIndexableKeys(indexer))); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/omit/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/omit/instantiate.mjs function OmitAction(type, indexer, options) { return CanInstantiate([type, indexer]) ? Update(FromType$4(type, indexer), {}, options) : OmitDeferred(type, indexer, options); } @@ -4037,13 +3940,13 @@ function OmitInstantiate(context, state, type, indexer, options) { return OmitAction(InstantiateType(context, state, type), InstantiateType(context, state, indexer), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/parameters.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/parameters.mjs /** Creates a deferred Parameters action. */ function ParametersDeferred(type, options = {}) { return Deferred("Parameters", [type], options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/parameters/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/parameters/instantiate.mjs function ParametersOperation(type) { const parameters = IsFunction(type) ? type["parameters"] : []; return Tuple(InstantiateElements({}, State([], []), parameters)); @@ -4055,34 +3958,34 @@ function ParametersInstantiate(context, state, type, options) { return ParametersAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/partial.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/partial.mjs /** Creates a deferred Partial action. */ function PartialDeferred(type, options = {}) { return Deferred("Partial", [type], options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/partial/from_cyclic.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/partial/from_cyclic.mjs function FromCyclic$2(defs, ref) { const partial = FromType$3(CyclicTarget(defs, ref)); return Cyclic(Assign(defs, { [ref]: partial }), ref); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/partial/from_dependent.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/partial/from_dependent.mjs function FromDependent$2(if_, then_, else_) { return FromType$3(EvaluateDependent(if_, then_, else_)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/partial/from_intersect.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/partial/from_intersect.mjs function FromIntersect$2(types) { return FromType$3(EvaluateIntersect(types)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/partial/from_union.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/partial/from_union.mjs function FromUnion$2(types) { return Union(types.map((type) => FromType$3(type))); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/partial/from_object.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/partial/from_object.mjs function FromObject$3(properties) { return _Object_$1(Keys(properties).reduce((result, left) => { return { @@ -4092,12 +3995,12 @@ function FromObject$3(properties) { }, {})); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/partial/from_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/partial/from_type.mjs function FromType$3(type) { return IsCyclic(type) ? FromCyclic$2(type.$defs, type.$ref) : IsDependent(type) ? FromDependent$2(type.if, type.then, type.else) : IsIntersect(type) ? FromIntersect$2(type.allOf) : IsUnion(type) ? FromUnion$2(type.anyOf) : IsObject(type) ? FromObject$3(type.properties) : _Object_$1({}); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/partial/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/partial/instantiate.mjs function PartialAction(type, options) { return CanInstantiate([type]) ? Update(FromType$3(type), {}, options) : PartialDeferred(type, options); } @@ -4105,13 +4008,13 @@ function PartialInstantiate(context, state, type, options) { return PartialAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/pick.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/pick.mjs /** Creates a deferred Pick action. */ function PickDeferred(type, indexer, options = {}) { return Deferred("Pick", [type, indexer], options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/pick/from_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/pick/from_type.mjs function FromKeys(properties, keys) { return Keys(properties).reduce((result, key) => { return keys.includes(key) ? Assign(result, { [key]: properties[key] }) : result; @@ -4121,7 +4024,7 @@ function FromType$2(type, indexer) { return _Object_$1(FromKeys(ToIndexable(type), ToIndexableKeys(indexer))); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/pick/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/pick/instantiate.mjs function PickAction(type, indexer, options) { return CanInstantiate([type, indexer]) ? Update(FromType$2(type, indexer), {}, options) : PickDeferred(type, indexer, options); } @@ -4129,34 +4032,34 @@ function PickInstantiate(context, state, type, indexer, options) { return PickAction(InstantiateType(context, state, type), InstantiateType(context, state, indexer), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/readonly_object.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/readonly_object.mjs /** Creates a deferred ReadonlyType action. */ function ReadonlyObjectDeferred(type, options = {}) { return Deferred("ReadonlyObject", [type], options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/readonly_object/from_array.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/readonly_object/from_array.mjs function FromArray$1(type) { return AddImmutable(_Array_(type)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/readonly_object/from_cyclic.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/readonly_object/from_cyclic.mjs function FromCyclic$1(defs, ref) { const partial = FromType$1(CyclicTarget(defs, ref)); return Cyclic(Assign(defs, { [ref]: partial }), ref); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/readonly_object/from_dependent.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/readonly_object/from_dependent.mjs function FromDependent$1(if_, then_, else_) { return FromType$1(EvaluateDependent(if_, then_, else_)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/readonly_object/from_intersect.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/readonly_object/from_intersect.mjs function FromIntersect$1(types) { return FromType$1(EvaluateIntersect(types)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/readonly_object/from_object.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/readonly_object/from_object.mjs function FromObject$2(properties) { return _Object_$1(Keys(properties).reduce((result, left) => { return { @@ -4166,22 +4069,22 @@ function FromObject$2(properties) { }, {})); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/readonly_object/from_tuple.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/readonly_object/from_tuple.mjs function FromTuple(types) { return AddImmutable(Tuple(types)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/readonly_object/from_union.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/readonly_object/from_union.mjs function FromUnion$1(types) { return Union(types.map((type) => FromType$1(type))); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/readonly_object/from_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/readonly_object/from_type.mjs function FromType$1(type) { return IsArray(type) ? FromArray$1(type.items) : IsCyclic(type) ? FromCyclic$1(type.$defs, type.$ref) : IsDependent(type) ? FromDependent$1(type.if, type.then, type.else) : IsIntersect(type) ? FromIntersect$1(type.allOf) : IsObject(type) ? FromObject$2(type.properties) : IsTuple(type) ? FromTuple(type.items) : IsUnion(type) ? FromUnion$1(type.anyOf) : type; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/readonly_object/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/readonly_object/instantiate.mjs function ReadonlyObjectAction(type, options) { return CanInstantiate([type]) ? Update(FromType$1(type), {}, options) : ReadonlyObjectDeferred(type); } @@ -4189,33 +4092,33 @@ function ReadonlyObjectInstantiate(context, state, type, options) { return ReadonlyObjectAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/ref/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/ref/instantiate.mjs function RefInstantiate(context, state, type, ref) { return state.visited.includes(ref) ? type : ref in context ? InstantiateType(context, State(state["callstack"], [...state["visited"], ref]), context[ref]) : type; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/required/from_cyclic.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/required/from_cyclic.mjs function FromCyclic(defs, ref) { const partial = FromType(CyclicTarget(defs, ref)); return Cyclic(Assign(defs, { [ref]: partial }), ref); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/required/from_dependent.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/required/from_dependent.mjs function FromDependent(if_, then_, else_) { return FromType(EvaluateDependent(if_, then_, else_)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/required/from_intersect.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/required/from_intersect.mjs function FromIntersect(types) { return FromType(EvaluateIntersect(types)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/required/from_union.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/required/from_union.mjs function FromUnion(types) { return Union(types.map((type) => FromType(type))); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/required/from_object.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/required/from_object.mjs function FromObject$1(properties) { return _Object_$1(Keys(properties).reduce((result, left) => { return { @@ -4225,18 +4128,18 @@ function FromObject$1(properties) { }, {})); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/required/from_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/required/from_type.mjs function FromType(type) { return IsCyclic(type) ? FromCyclic(type.$defs, type.$ref) : IsDependent(type) ? FromDependent(type.if, type.then, type.else) : IsIntersect(type) ? FromIntersect(type.allOf) : IsUnion(type) ? FromUnion(type.anyOf) : IsObject(type) ? FromObject$1(type.properties) : _Object_$1({}); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/required.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/required.mjs /** Creates a deferred Required action. */ function RequiredDeferred(type, options = {}) { return Deferred("Required", [type], options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/required/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/required/instantiate.mjs function RequiredAction(type, options) { return CanInstantiate([type]) ? Update(FromType(type), {}, options) : RequiredDeferred(type, options); } @@ -4244,13 +4147,13 @@ function RequiredInstantiate(context, state, type, options) { return RequiredAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/return_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/return_type.mjs /** Creates a deferred ReturnType action. */ function ReturnTypeDeferred(type, options = {}) { return Deferred("ReturnType", [type], options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/return_type/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/return_type/instantiate.mjs function ReturnTypeOperation(type) { return IsFunction(type) ? type["returnType"] : Never(); } @@ -4261,13 +4164,13 @@ function ReturnTypeInstantiate(context, state, type, options = {}) { return ReturnTypeAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/with.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/with.mjs /** Creates a deferred With action. */ function WithDeferred(type, options) { return Deferred("With", [type, options], {}); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/with/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/with/instantiate.mjs function WithAction(type, options) { return CanInstantiate([type]) ? Update(type, {}, options) : WithDeferred(type, options); } @@ -4275,7 +4178,7 @@ function WithInstantiate(context, state, type, options) { return WithAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/rest/spread.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/rest/spread.mjs function SpreadElement(type) { return IsRest(type) ? IsTuple(type.items) ? RestSpread(type.items.items) : IsInfer(type.items) ? [type] : IsRef$1(type.items) ? [type] : [Never()] : [type]; } @@ -4285,7 +4188,7 @@ function RestSpread(types) { }, []); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/instantiate.mjs function State(callstack, visited) { return { callstack, @@ -4309,24 +4212,22 @@ function InstantiateElements(context, state, types) { function InstantiateTypes(context, state, types) { return types.map((type) => InstantiateType(context, state, type)); } +function WithModifiers(type, instantiatedType) { + const withOptional = IsOptional(type) ? AddOptionalAction(instantiatedType, {}) : instantiatedType; + const withReadonly = IsReadonly(type) ? AddReadonlyAction(withOptional, {}) : withOptional; + return IsImmutable(type) ? AddImmutableAction(withReadonly, {}) : withReadonly; +} function InstantiateDeferred(context, state, action, parameters, options) { - return IsEqual(action, "AddImmutable") ? AddImmutableInstantiate(context, state, parameters[0], options) : IsEqual(action, "RemoveImmutable") ? RemoveImmutableInstantiate(context, state, parameters[0], options) : IsEqual(action, "AddReadonly") ? AddReadonlyInstantiate(context, state, parameters[0], options) : IsEqual(action, "RemoveReadonly") ? RemoveReadonlyInstantiate(context, state, parameters[0], options) : IsEqual(action, "AddOptional") ? AddOptionalInstantiate(context, state, parameters[0], options) : IsEqual(action, "RemoveOptional") ? RemoveOptionalInstantiate(context, state, parameters[0], options) : IsEqual(action, "Awaited") ? AwaitedInstantiate(context, state, parameters[0], options) : IsEqual(action, "Capitalize") ? CapitalizeInstantiate(context, state, parameters[0], options) : IsEqual(action, "Conditional") ? ConditionalInstantiate(context, state, parameters[0], parameters[1], parameters[2], parameters[3], options) : IsEqual(action, "ConstructorParameters") ? ConstructorParametersInstantiate(context, state, parameters[0], options) : IsEqual(action, "Evaluate") ? EvaluateInstantiate(context, state, parameters[0], options) : IsEqual(action, "Exclude") ? ExcludeInstantiate(context, state, parameters[0], parameters[1], options) : IsEqual(action, "Extract") ? ExtractInstantiate(context, state, parameters[0], parameters[1], options) : IsEqual(action, "Index") ? IndexInstantiate(context, state, parameters[0], parameters[1], options) : IsEqual(action, "InstanceType") ? InstanceTypeInstantiate(context, state, parameters[0], options) : IsEqual(action, "Interface") ? InterfaceInstantiate(context, state, parameters[0], parameters[1], options) : IsEqual(action, "KeyOf") ? KeyOfInstantiate(context, state, parameters[0], options) : IsEqual(action, "Lowercase") ? LowercaseInstantiate(context, state, parameters[0], options) : IsEqual(action, "Mapped") ? MappedInstantiate(context, state, parameters[0], parameters[1], parameters[2], parameters[3], options) : IsEqual(action, "Module") ? ModuleInstantiate(context, state, parameters[0], options) : IsEqual(action, "NonNullable") ? NonNullableInstantiate(context, state, parameters[0], options) : IsEqual(action, "Pick") ? PickInstantiate(context, state, parameters[0], parameters[1], options) : IsEqual(action, "Parameters") ? ParametersInstantiate(context, state, parameters[0], options) : IsEqual(action, "Partial") ? PartialInstantiate(context, state, parameters[0], options) : IsEqual(action, "Omit") ? OmitInstantiate(context, state, parameters[0], parameters[1], options) : IsEqual(action, "ReadonlyObject") ? ReadonlyObjectInstantiate(context, state, parameters[0], options) : IsEqual(action, "Record") ? RecordInstantiate(context, state, parameters[0], parameters[1], options) : IsEqual(action, "Required") ? RequiredInstantiate(context, state, parameters[0], options) : IsEqual(action, "ReturnType") ? ReturnTypeInstantiate(context, state, parameters[0], options) : IsEqual(action, "TemplateLiteral") ? TemplateLiteralInstantiate(context, state, parameters[0], options) : IsEqual(action, "Uncapitalize") ? UncapitalizeInstantiate(context, state, parameters[0], options) : IsEqual(action, "Uppercase") ? UppercaseInstantiate(context, state, parameters[0], options) : IsEqual(action, "With") ? WithInstantiate(context, state, parameters[0], parameters[1]) : Deferred(action, parameters, options); + return IsEqual(action, "AddImmutable") ? AddImmutableInstantiate(context, state, parameters[0], options) : IsEqual(action, "RemoveImmutable") ? RemoveImmutableInstantiate(context, state, parameters[0], options) : IsEqual(action, "AddReadonly") ? AddReadonlyInstantiate(context, state, parameters[0], options) : IsEqual(action, "RemoveReadonly") ? RemoveReadonlyInstantiate(context, state, parameters[0], options) : IsEqual(action, "AddOptional") ? AddOptionalInstantiate(context, state, parameters[0], options) : IsEqual(action, "RemoveOptional") ? RemoveOptionalInstantiate(context, state, parameters[0], options) : IsEqual(action, "Capitalize") ? CapitalizeInstantiate(context, state, parameters[0], options) : IsEqual(action, "Conditional") ? ConditionalInstantiate(context, state, parameters[0], parameters[1], parameters[2], parameters[3], options) : IsEqual(action, "ConstructorParameters") ? ConstructorParametersInstantiate(context, state, parameters[0], options) : IsEqual(action, "Evaluate") ? EvaluateInstantiate(context, state, parameters[0], options) : IsEqual(action, "Exclude") ? ExcludeInstantiate(context, state, parameters[0], parameters[1], options) : IsEqual(action, "Extract") ? ExtractInstantiate(context, state, parameters[0], parameters[1], options) : IsEqual(action, "Index") ? IndexInstantiate(context, state, parameters[0], parameters[1], options) : IsEqual(action, "InstanceType") ? InstanceTypeInstantiate(context, state, parameters[0], options) : IsEqual(action, "Interface") ? InterfaceInstantiate(context, state, parameters[0], parameters[1], options) : IsEqual(action, "KeyOf") ? KeyOfInstantiate(context, state, parameters[0], options) : IsEqual(action, "Lowercase") ? LowercaseInstantiate(context, state, parameters[0], options) : IsEqual(action, "Mapped") ? MappedInstantiate(context, state, parameters[0], parameters[1], parameters[2], parameters[3], options) : IsEqual(action, "Module") ? ModuleInstantiate(context, state, parameters[0], options) : IsEqual(action, "NonNullable") ? NonNullableInstantiate(context, state, parameters[0], options) : IsEqual(action, "Pick") ? PickInstantiate(context, state, parameters[0], parameters[1], options) : IsEqual(action, "Parameters") ? ParametersInstantiate(context, state, parameters[0], options) : IsEqual(action, "Partial") ? PartialInstantiate(context, state, parameters[0], options) : IsEqual(action, "Omit") ? OmitInstantiate(context, state, parameters[0], parameters[1], options) : IsEqual(action, "ReadonlyObject") ? ReadonlyObjectInstantiate(context, state, parameters[0], options) : IsEqual(action, "Record") ? RecordInstantiate(context, state, parameters[0], parameters[1], options) : IsEqual(action, "Required") ? RequiredInstantiate(context, state, parameters[0], options) : IsEqual(action, "ReturnType") ? ReturnTypeInstantiate(context, state, parameters[0], options) : IsEqual(action, "TemplateLiteral") ? TemplateLiteralInstantiate(context, state, parameters[0], options) : IsEqual(action, "Uncapitalize") ? UncapitalizeInstantiate(context, state, parameters[0], options) : IsEqual(action, "Uppercase") ? UppercaseInstantiate(context, state, parameters[0], options) : IsEqual(action, "With") ? WithInstantiate(context, state, parameters[0], parameters[1]) : Deferred(action, parameters, options); } function InstantiateImmediate(context, state, type) { - type = IsBase(type) ? type.Clone() : type; - return IsRef$1(type) ? RefInstantiate(context, state, type, type.$ref) : IsArray(type) ? _Array_(InstantiateType(context, state, type.items), ArrayOptions(type)) : IsAsyncIterator(type) ? AsyncIterator(InstantiateType(context, state, type.iteratorItems), AsyncIteratorOptions(type)) : IsCall(type) ? CallInstantiate(context, state, type.target, type.arguments) : IsConstructor(type) ? Constructor(InstantiateTypes(context, state, type.parameters), InstantiateType(context, state, type.instanceType), ConstructorOptions(type)) : IsDeferred(type) ? InstantiateDeferred(context, state, type.action, type.parameters, type.options) : IsFunction(type) ? _Function_$1(InstantiateTypes(context, state, type.parameters), InstantiateType(context, state, type.returnType), FunctionOptions(type)) : IsDependent(type) ? Dependent$1(InstantiateType(context, state, type.if), InstantiateType(context, state, type.then), InstantiateType(context, state, type.else), DependentOptions(type)) : IsIntersect(type) ? Intersect(InstantiateTypes(context, state, type.allOf), IntersectOptions(type)) : IsIterator(type) ? Iterator(InstantiateType(context, state, type.iteratorItems), IteratorOptions(type)) : IsObject(type) ? _Object_$1(InstantiateProperties(context, state, type.properties), ObjectOptions(type)) : IsPromise(type) ? _Promise_(InstantiateType(context, state, type.item), PromiseOptions(type)) : IsRecord(type) ? RecordFromPattern(RecordPattern(type), InstantiateType(context, state, RecordValue(type))) : IsRest(type) ? Rest(InstantiateType(context, state, type.items)) : IsTuple(type) ? Tuple(InstantiateElements(context, state, type.items), TupleOptions(type)) : IsUnion(type) ? Union(InstantiateTypes(context, state, type.anyOf), UnionOptions(type)) : type; -} -function WithModifiers(type, instantiatedType) { - const withImmutable = IsImmutable(type) ? Immutable(instantiatedType) : instantiatedType; - const withReadonly = IsReadonly(type) ? Readonly$1(withImmutable) : withImmutable; - return IsOptional(type) ? Optional$2(withReadonly) : withReadonly; + return WithModifiers(type, IsRef$1(type) ? RefInstantiate(context, state, type, type.$ref) : IsArray(type) ? _Array_(InstantiateType(context, state, type.items), ArrayOptions(type)) : IsCall(type) ? CallInstantiate(context, state, type.target, type.arguments) : IsConstructor(type) ? Constructor(InstantiateTypes(context, state, type.parameters), InstantiateType(context, state, type.instanceType), ConstructorOptions(type)) : IsFunction(type) ? _Function_$1(InstantiateTypes(context, state, type.parameters), InstantiateType(context, state, type.returnType), FunctionOptions(type)) : IsDependent(type) ? Dependent$1(InstantiateType(context, state, type.if), InstantiateType(context, state, type.then), InstantiateType(context, state, type.else), DependentOptions(type)) : IsIntersect(type) ? Intersect(InstantiateTypes(context, state, type.allOf), IntersectOptions(type)) : IsObject(type) ? _Object_$1(InstantiateProperties(context, state, type.properties), ObjectOptions(type)) : IsRecord(type) ? RecordFromPattern(RecordPattern(type), InstantiateType(context, state, RecordValue(type))) : IsRest(type) ? Rest(InstantiateType(context, state, type.items)) : IsTuple(type) ? Tuple(InstantiateElements(context, state, type.items), TupleOptions(type)) : IsUnion(type) ? Union(InstantiateTypes(context, state, type.anyOf), UnionOptions(type)) : type); } function InstantiateType(context, state, type) { - const instantiatedType = InstantiateImmediate(context, state, type); - return IsDeferred(type) ? instantiatedType : WithModifiers(type, instantiatedType); + return IsDeferred(type) ? InstantiateDeferred(context, state, type.action, type.parameters, type.options) : InstantiateImmediate(context, state, type); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/immutable/instantiate_add.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/immutable/instantiate_add.mjs function AddImmutableOperation(type) { return Update(type, { "~immutable": true }, {}); } @@ -4337,7 +4238,7 @@ function AddImmutableInstantiate(context, state, type, options) { return AddImmutableAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/_add_immutable.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/_add_immutable.mjs /** Creates a deferred AddImmutable action. */ function AddImmutableDeferred(type, options = {}) { return Deferred("AddImmutable", [type], options); @@ -4347,19 +4248,19 @@ function AddImmutable(type, options = {}) { return AddImmutableAction(type, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/evaluate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/evaluate.mjs /** Creates a deferred Evaluate action. */ function EvaluateDeferred(type, options = {}) { return Deferred("Evaluate", [type], options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/module.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/module.mjs /** Creates a deferred Module action. */ function ModuleDeferred(declarations, options = {}) { return Deferred("Module", [declarations], options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/script.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/script.mjs /** Parses a type from a TypeScript type expression */ function Script(...args) { const [context, input, options] = Match$3(args, { @@ -4387,15 +4288,7 @@ function Script(...args) { return Update(IsArray$1(result) && IsEqual(result.length, 2) ? InstantiateType(context, State([], []), result[0]) : Never(), {}, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/_guard.mjs -function IsGuardInterface(value) { - return IsObject$1(value) && HasPropertyKey(value, "check") && HasPropertyKey(value, "errors") && IsFunction$1(value.check) && IsFunction$1(value.errors); -} -function IsGuard(value) { - return HasPropertyKey(value, "~guard") && IsGuardInterface(value["~guard"]); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/_refine.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/_refine.mjs /** * Returns true if the schema contains an '~refine` keyword * @specification None @@ -4404,7 +4297,7 @@ function IsRefine(value) { return HasPropertyKey(value, "~refine") && IsArray$1(value["~refine"]) && Every(value["~refine"], 0, (value) => IsObject$1(value) && HasPropertyKey(value, "check") && HasPropertyKey(value, "error") && IsFunction$1(value.check) && IsFunction$1(value.error)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/schema.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/schema.mjs /** Returns true if this value is object like */ function IsSchemaObject(value) { return IsObject$1(value) && !IsArray$1(value); @@ -4418,7 +4311,7 @@ function IsSchema(value) { return IsSchemaObject(value) || IsBooleanSchema(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/additionalItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/additionalItems.mjs /** * Returns true if the schema contains a valid additionalItems property * @specification Json Schema 7 @@ -4427,7 +4320,7 @@ function IsAdditionalItems(schema) { return HasPropertyKey(schema, "additionalItems") && IsSchema(schema.additionalItems); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/additionalProperties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/additionalProperties.mjs /** * Returns true if the schema contains a valid additionalProperties property * @specification Json Schema 7 @@ -4436,7 +4329,7 @@ function IsAdditionalProperties(schema) { return HasPropertyKey(schema, "additionalProperties") && IsSchema(schema.additionalProperties); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/allOf.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/allOf.mjs /** * Returns true if the schema contains a valid allOf property * @specification Json Schema 7 @@ -4445,7 +4338,7 @@ function IsAllOf(schema) { return HasPropertyKey(schema, "allOf") && IsArray$1(schema.allOf) && schema.allOf.every((value) => IsSchema(value)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/anchor.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/anchor.mjs /** * Returns true if the schema contains a valid $anchor property */ @@ -4453,7 +4346,7 @@ function IsAnchor(schema) { return HasPropertyKey(schema, "$anchor") && IsString$2(schema.$anchor); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/anyOf.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/anyOf.mjs /** * Returns true if the schema contains a valid anyOf property * @specification Json Schema 7 @@ -4462,7 +4355,7 @@ function IsAnyOf(schema) { return HasPropertyKey(schema, "anyOf") && IsArray$1(schema.anyOf) && schema.anyOf.every((value) => IsSchema(value)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/const.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/const.mjs /** * Returns true if the schema contains a valid const property * @specification Json Schema 7 @@ -4471,7 +4364,7 @@ function IsConst(value) { return HasPropertyKey(value, "const"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/contains.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/contains.mjs /** * Returns true if the schema contains a valid contains property * @specification Json Schema 7 @@ -4480,7 +4373,7 @@ function IsContains(schema) { return HasPropertyKey(schema, "contains") && IsSchema(schema.contains); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/dependencies.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/dependencies.mjs /** * Returns true if the schema contains a valid dependencies property * @specification Json Schema 7 @@ -4489,7 +4382,7 @@ function IsDependencies(schema) { return HasPropertyKey(schema, "dependencies") && IsObject$1(schema.dependencies) && Object.values(schema.dependencies).every((value) => IsSchema(value) || IsArray$1(value) && value.every((value) => IsString$2(value))); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/dependentRequired.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/dependentRequired.mjs /** * Returns true if the schema contains a valid dependentRequired property * @specification Json Schema 2019-09 @@ -4498,7 +4391,7 @@ function IsDependentRequired(schema) { return HasPropertyKey(schema, "dependentRequired") && IsObject$1(schema.dependentRequired) && Object.values(schema.dependentRequired).every((value) => IsArray$1(value) && value.every((value) => IsString$2(value))); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/dependentSchemas.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/dependentSchemas.mjs /** * Returns true if the schema contains a valid dependentRequired property * @specification Json Schema 2019-09 @@ -4507,7 +4400,7 @@ function IsDependentSchemas(schema) { return HasPropertyKey(schema, "dependentSchemas") && IsObject$1(schema.dependentSchemas) && Object.values(schema.dependentSchemas).every((value) => IsSchema(value)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/dynamicAnchor.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/dynamicAnchor.mjs /** * Returns true if the schema contains a valid $dynamicAnchor property */ @@ -4515,7 +4408,7 @@ function IsDynamicAnchor(schema) { return HasPropertyKey(schema, "$dynamicAnchor") && IsString$2(schema.$dynamicAnchor); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/dynamicRef.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/dynamicRef.mjs /** * Returns true if the schema contains a valid $dynamicRef property */ @@ -4523,7 +4416,7 @@ function IsDynamicRef(schema) { return HasPropertyKey(schema, "$dynamicRef") && IsString$2(schema.$dynamicRef); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/else.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/else.mjs /** * Returns true if the schema contains a valid else property * @specification Json Schema 7 @@ -4532,7 +4425,7 @@ function IsElse(schema) { return HasPropertyKey(schema, "else") && IsSchema(schema.else); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/enum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/enum.mjs /** * Returns true if the schema contains a valid enum property * @specification Json Schema 7 @@ -4541,7 +4434,7 @@ function IsEnum(schema) { return HasPropertyKey(schema, "enum") && IsArray$1(schema.enum); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/exclusiveMaximum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/exclusiveMaximum.mjs /** * Returns true if the schema contains a valid exclusiveMaximum property * @specification Json Schema 7 @@ -4550,7 +4443,7 @@ function IsExclusiveMaximum(schema) { return HasPropertyKey(schema, "exclusiveMaximum") && (IsNumber$2(schema.exclusiveMaximum) || IsBigInt$1(schema.exclusiveMaximum)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/exclusiveMinimum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/exclusiveMinimum.mjs /** * Returns true if the schema contains a valid exclusiveMinimum property * @specification Json Schema 7 @@ -4559,7 +4452,7 @@ function IsExclusiveMinimum(schema) { return HasPropertyKey(schema, "exclusiveMinimum") && (IsNumber$2(schema.exclusiveMinimum) || IsBigInt$1(schema.exclusiveMinimum)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/format.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/format.mjs /** * Returns true if the schema contains a valid format property * @specification Json Schema 7 @@ -4568,7 +4461,7 @@ function IsFormat(schema) { return HasPropertyKey(schema, "format") && IsString$2(schema.format); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/id.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/id.mjs /** * Returns true if the schema contains a valid $id property * @specification Json Schema 7 @@ -4577,7 +4470,7 @@ function IsId(schema) { return HasPropertyKey(schema, "$id") && IsString$2(schema.$id); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/if.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/if.mjs /** * Returns true if the schema contains a valid $id property * @specification Json Schema 7 @@ -4586,7 +4479,7 @@ function IsIf(schema) { return HasPropertyKey(schema, "if") && IsSchema(schema.if); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/items.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/items.mjs /** * Returns true if the schema contains a valid items property * @specification Json Schema 7 @@ -4601,7 +4494,7 @@ function IsItemsSized(schema) { return IsItems(schema) && IsArray$1(schema.items); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/maximum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/maximum.mjs /** * Returns true if the schema contains a valid maximum property * @specification Json Schema 7 @@ -4610,7 +4503,7 @@ function IsMaximum(schema) { return HasPropertyKey(schema, "maximum") && (IsNumber$2(schema.maximum) || IsBigInt$1(schema.maximum)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/maxContains.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/maxContains.mjs /** * Returns true if the schema contains a valid maxContains property * @specification Json Schema 2019-09 @@ -4619,7 +4512,7 @@ function IsMaxContains(schema) { return HasPropertyKey(schema, "maxContains") && IsNumber$2(schema.maxContains); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/maxItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/maxItems.mjs /** * Returns true if the schema contains a valid maxItems property * @specification Json Schema 7 @@ -4628,7 +4521,7 @@ function IsMaxItems(schema) { return HasPropertyKey(schema, "maxItems") && IsNumber$2(schema.maxItems); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/maxLength.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/maxLength.mjs /** * Returns true if the schema contains a valid maxLength property * @specification Json Schema 7 @@ -4637,7 +4530,7 @@ function IsMaxLength(schema) { return HasPropertyKey(schema, "maxLength") && IsNumber$2(schema.maxLength); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/maxProperties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/maxProperties.mjs /** * Returns true if the schema contains a valid maxProperties property * @specification Json Schema 7 @@ -4646,7 +4539,7 @@ function IsMaxProperties(schema) { return HasPropertyKey(schema, "maxProperties") && IsNumber$2(schema.maxProperties); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/minimum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/minimum.mjs /** * Returns true if the schema contains a valid minimum property * @specification Json Schema 7 @@ -4655,7 +4548,7 @@ function IsMinimum(schema) { return HasPropertyKey(schema, "minimum") && (IsNumber$2(schema.minimum) || IsBigInt$1(schema.minimum)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/minContains.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/minContains.mjs /** * Returns true if the schema contains a valid maxContains property * @specification Json Schema 2019-09 @@ -4664,7 +4557,7 @@ function IsMinContains(schema) { return HasPropertyKey(schema, "minContains") && IsNumber$2(schema.minContains); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/minItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/minItems.mjs /** * Returns true if the schema contains a valid minItems property * @specification Json Schema 7 @@ -4673,7 +4566,7 @@ function IsMinItems(schema) { return HasPropertyKey(schema, "minItems") && IsNumber$2(schema.minItems); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/minLength.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/minLength.mjs /** * Returns true if the schema contains a valid minLength property * @specification Json Schema 7 @@ -4682,7 +4575,7 @@ function IsMinLength(schema) { return HasPropertyKey(schema, "minLength") && IsNumber$2(schema.minLength); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/minProperties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/minProperties.mjs /** * Returns true if the schema contains a valid minProperties property * @specification Json Schema 7 @@ -4691,7 +4584,7 @@ function IsMinProperties(schema) { return HasPropertyKey(schema, "minProperties") && IsNumber$2(schema.minProperties); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/multipleOf.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/multipleOf.mjs /** * Returns true if the schema contains a valid multipleOf property * @specification Json Schema 7 @@ -4700,7 +4593,7 @@ function IsMultipleOf(schema) { return HasPropertyKey(schema, "multipleOf") && (IsNumber$2(schema.multipleOf) || IsBigInt$1(schema.multipleOf)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/not.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/not.mjs /** * Returns true if the schema contains a valid not property * @specification Json Schema 7 @@ -4709,7 +4602,7 @@ function IsNot(schema) { return HasPropertyKey(schema, "not") && IsSchema(schema.not); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/oneOf.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/oneOf.mjs /** * Returns true if the schema contains a valid oneOf property * @specification Json Schema 7 @@ -4718,7 +4611,7 @@ function IsOneOf(schema) { return HasPropertyKey(schema, "oneOf") && IsArray$1(schema.oneOf) && schema.oneOf.every((value) => IsSchema(value)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/pattern.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/pattern.mjs /** * Returns true if the schema contains a valid pattern property * @specification Json Schema 7 @@ -4727,7 +4620,7 @@ function IsPattern(schema) { return HasPropertyKey(schema, "pattern") && (IsString$2(schema.pattern) || schema.pattern instanceof RegExp); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/patternProperties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/patternProperties.mjs /** * Returns true if the schema contains a valid patternProperties property * @specification Json Schema 7 @@ -4736,7 +4629,7 @@ function IsPatternProperties(schema) { return HasPropertyKey(schema, "patternProperties") && IsObject$1(schema.patternProperties) && Object.values(schema.patternProperties).every((value) => IsSchema(value)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/prefixItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/prefixItems.mjs /** * Returns true if the schema contains a valid prefixItems property */ @@ -4744,7 +4637,7 @@ function IsPrefixItems(schema) { return HasPropertyKey(schema, "prefixItems") && IsArray$1(schema.prefixItems) && schema.prefixItems.every((schema) => IsSchema(schema)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/properties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/properties.mjs /** * Returns true if the schema contains a valid properties property * @specification Json Schema 7 @@ -4753,7 +4646,7 @@ function IsProperties(schema) { return HasPropertyKey(schema, "properties") && IsObject$1(schema.properties) && Object.values(schema.properties).every((value) => IsSchema(value)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/propertyNames.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/propertyNames.mjs /** * Returns true if the schema contains a valid propertyNames property * @specification Json Schema 7 @@ -4762,7 +4655,7 @@ function IsPropertyNames(schema) { return HasPropertyKey(schema, "propertyNames") && (IsObject$1(schema.propertyNames) || IsSchema(schema.propertyNames)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/recursiveAnchor.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/recursiveAnchor.mjs /** * Returns true if the schema contains a valid $recursiveAnchor property */ @@ -4776,7 +4669,7 @@ function IsRecursiveAnchorTrue(schema) { return IsRecursiveAnchor(schema) && IsEqual(schema.$recursiveAnchor, true); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/recursiveRef.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/recursiveRef.mjs /** * Returns true if the schema contains a valid $recursiveRef property */ @@ -4784,7 +4677,7 @@ function IsRecursiveRef(schema) { return HasPropertyKey(schema, "$recursiveRef") && IsString$2(schema.$recursiveRef); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/ref.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/ref.mjs /** * Returns true if the schema contains a valid $ref property * @specification Json Schema 7 @@ -4793,7 +4686,7 @@ function IsRef(schema) { return HasPropertyKey(schema, "$ref") && IsString$2(schema.$ref); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/required.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/required.mjs /** * Returns true if the schema contains a valid required property * @specification Json Schema 7 @@ -4802,7 +4695,7 @@ function IsRequired(schema) { return HasPropertyKey(schema, "required") && IsArray$1(schema.required) && schema.required.every((value) => IsString$2(value)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/then.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/then.mjs /** * Returns true if the schema contains a valid then property * @specification Json Schema 7 @@ -4811,7 +4704,7 @@ function IsThen(schema) { return HasPropertyKey(schema, "then") && IsSchema(schema.then); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/type.mjs /** * Returns true if the schema contains a valid type property * @specification Json Schema 7 @@ -4820,7 +4713,7 @@ function IsType(schema) { return HasPropertyKey(schema, "type") && (IsString$2(schema.type) || IsArray$1(schema.type) && schema.type.every((value) => IsString$2(value))); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/uniqueItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/uniqueItems.mjs /** * Returns true if the schema contains a valid uniqueItems property * @specification Json Schema 7 @@ -4829,7 +4722,7 @@ function IsUniqueItems(schema) { return HasPropertyKey(schema, "uniqueItems") && IsBoolean$2(schema.uniqueItems); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/unevaluatedItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/unevaluatedItems.mjs /** * Returns true if the schema contains a valid unevaluatedItems property * @specification Json Schema 2019-09 @@ -4838,7 +4731,7 @@ function IsUnevaluatedItems(schema) { return HasPropertyKey(schema, "unevaluatedItems") && IsSchema(schema.unevaluatedItems); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/unevaluatedProperties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/unevaluatedProperties.mjs /** * Returns true if the schema contains a valid unevaluatedProperties property * @specification Json Schema 2019-09 @@ -4847,7 +4740,7 @@ function IsUnevaluatedProperties(schema) { return HasPropertyKey(schema, "unevaluatedProperties") && IsSchema(schema.unevaluatedProperties); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/_context.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/_context.mjs var CheckContext = class { constructor() { const indices = /* @__PURE__ */ new Set(); @@ -4916,20 +4809,7 @@ var AccumulatedErrorContext = class extends ErrorContext { } }; //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/_guard.mjs -function CheckGuard(_stack, _context, schema, value) { - return schema["~guard"].check(value); -} -function ErrorGuard(_stack, context, schemaPath, instancePath, schema, value) { - return schema["~guard"].check(value) || context.AddError({ - keyword: "~guard", - schemaPath, - instancePath, - params: { errors: schema["~guard"].errors(value) } - }); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/_refine.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/_refine.mjs function CheckRefine(_stack, _context, schema, value) { return Every(schema["~refine"], 0, (refinement, _) => refinement.check(value)); } @@ -4947,7 +4827,7 @@ function ErrorRefine(_stack, context, schemaPath, instancePath, schema, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/additionalItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/additionalItems.mjs function IsValid$4(schema) { return IsItems(schema) && IsArray$1(schema.items); } @@ -4966,7 +4846,7 @@ function ErrorAdditionalItems(stack, context, schemaPath, instancePath, schema, }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/additionalProperties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/additionalProperties.mjs function GetPropertyKeyAsPattern(key) { return `^${key.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}$`; } @@ -5000,7 +4880,7 @@ function ErrorAdditionalProperties(stack, context, schemaPath, instancePath, sch }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/allOf.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/allOf.mjs function CheckAllOf(stack, context, schema, value) { const results = schema.allOf.reduce((result, schema) => { const nextContext = new CheckContext(); @@ -5022,7 +4902,7 @@ function ErrorAllOf(stack, context, schemaPath, instancePath, schema, value) { return isAllOf; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/anyOf.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/anyOf.mjs function CheckAnyOf(stack, context, schema, value) { const results = schema.anyOf.reduce((result, schema) => { const nextContext = new CheckContext(); @@ -5048,7 +4928,7 @@ function ErrorAnyOf(stack, context, schemaPath, instancePath, schema, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/boolean.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/boolean.mjs function CheckBooleanSchema(_stack, _context, schema, _value) { return schema; } @@ -5061,7 +4941,7 @@ function ErrorBooleanSchema(stack, context, schemaPath, instancePath, schema, va }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/const.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/const.mjs function CheckConst(_stack, _context, schema, value) { return IsValueLike(schema.const) ? IsEqual(value, schema.const) : IsDeepEqual(value, schema.const); } @@ -5074,7 +4954,7 @@ function ErrorConst(stack, context, schemaPath, instancePath, schema, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/contains.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/contains.mjs function IsValid$3(schema) { return !(IsMinContains(schema) && IsEqual(schema.minContains, 0)); } @@ -5091,7 +4971,7 @@ function ErrorContains(stack, context, schemaPath, instancePath, schema, value) }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/dependencies.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/dependencies.mjs function CheckDependencies(stack, context, schema, value) { const isLength = IsEqual(Keys(value).length, 0); const isEvery = Every(Entries(schema.dependencies), 0, ([key, schema]) => { @@ -5116,7 +4996,7 @@ function ErrorDependencies(stack, context, schemaPath, instancePath, schema, val return isLength || isEvery; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/dependentRequired.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/dependentRequired.mjs function CheckDependentRequired(_stack, _context, schema, value) { const isLength = IsEqual(Keys(value).length, 0); const isEvery = Every(Entries(schema.dependentRequired), 0, ([key, keys]) => { @@ -5140,7 +5020,7 @@ function ErrorDependentRequired(_stack, context, schemaPath, instancePath, schem return isLength || isEveryEntry; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/dependentSchemas.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/dependentSchemas.mjs function CheckDependentSchemas(stack, context, schema, value) { const isLength = IsEqual(Keys(value).length, 0); const isEvery = Every(Entries(schema.dependentSchemas), 0, ([key, schema]) => { @@ -5157,7 +5037,7 @@ function ErrorDependentSchemas(stack, context, schemaPath, instancePath, schema, return isLength || isEvery; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/dynamicRef.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/dynamicRef.mjs function CheckDynamicRef(stack, context, schema, value) { const target = stack.DynamicRef(schema) ?? false; return IsSchema(target) && CheckSchema(stack, context, target, value); @@ -5167,7 +5047,7 @@ function ErrorDynamicRef(stack, context, _schemaPath, instancePath, schema, valu return IsSchema(target) && ErrorSchema(stack, context, "#", instancePath, target, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/enum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/enum.mjs function CheckEnum(_stack, _context, schema, value) { return schema.enum.some((option) => IsValueLike(option) ? IsEqual(value, option) : IsDeepEqual(value, option)); } @@ -5180,7 +5060,7 @@ function ErrorEnum(stack, context, schemaPath, instancePath, schema, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/exclusiveMaximum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/exclusiveMaximum.mjs function CheckExclusiveMaximum(_stack, _context, schema, value) { return IsLessThan(value, schema.exclusiveMaximum); } @@ -5196,7 +5076,7 @@ function ErrorExclusiveMaximum(stack, context, schemaPath, instancePath, schema, }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/exclusiveMinimum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/exclusiveMinimum.mjs function CheckExclusiveMinimum(_stack, _context, schema, value) { return IsGreaterThan(value, schema.exclusiveMinimum); } @@ -5212,7 +5092,7 @@ function ErrorExclusiveMinimum(stack, context, schemaPath, instancePath, schema, }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/date.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/date.mjs const DAYS = [ 0, 31, @@ -5246,7 +5126,7 @@ function IsDate(value) { return month >= 1 && month <= 12 && day >= 1 && day <= (month === 2 && IsLeapYear(year) ? 29 : DAYS[month]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/time.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/time.mjs const TIME = /^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(?:Z|([+-])(\d\d):(\d\d))?$/i; /** * Returns true if the value is a ISO time string @@ -5269,7 +5149,7 @@ function IsTime(value, strictTimeZone = true) { return (utcHr === 23 || utcHr === -1) && (utcMin === 59 || utcMin === -1) && sec < 61; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/date_time.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/date_time.mjs /** * Returns true if the value is a ISO8601 DateTime string * @source ajv-formats @@ -5280,7 +5160,7 @@ function IsDateTime(value, strictTimeZone = true) { return dateTime.length === 2 && IsDate(dateTime[0]) && IsTime(dateTime[1], strictTimeZone); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/duration.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/duration.mjs const Duration = /^P((\d+Y(\d+M(\d+D)?)?|\d+M(\d+D)?|\d+D)(T(\d+H(\d+M(\d+S)?)?|\d+M(\d+S)?|\d+S))?|T(\d+H(\d+M(\d+S)?)?|\d+M(\d+S)?|\d+S)|\d+W)$/; /** * Returns true if the value is a valid ISO-8601 duration. @@ -5290,7 +5170,7 @@ function IsDuration(value) { return Duration.test(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/email.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/email.mjs const Email = /^(?!.*\.\.)[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i; /** * Returns true if the value is an Email @@ -5300,7 +5180,7 @@ function IsEmail(value) { return Email.test(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/_puny.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/_puny.mjs const PUNYCODE_BASE = 36; const PUNYCODE_TMIN = 1; const PUNYCODE_TMAX = 26; @@ -5358,7 +5238,7 @@ function Decode(value) { return globalThis.String.fromCodePoint(...output); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/_idna.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/_idna.mjs function IsNonspacingMark(cp) { return /\p{Mn}/u.test(String.fromCodePoint(cp)); } @@ -5493,7 +5373,11 @@ function IsPuny(value) { } function IsPunyLabel(value) { try { - return IsUnicodeLabel(Decode(value.slice(4))); + const payload = value.slice(4).toLowerCase(); + if (payload.lastIndexOf("-") === 0) return false; + const decoded = Decode(payload); + if (!decoded) return false; + return IsUnicodeLabel(decoded); } catch { return false; } @@ -5507,7 +5391,7 @@ function IsLabel(value) { return IsPuny(value) ? IsPunyLabel(value) : IsAsciiLabel(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/hostname.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/hostname.mjs /** * Returns true if the value is a valid hostname. * @specification https://tools.ietf.org/html/rfc1123 @@ -5521,7 +5405,7 @@ function IsHostname(value) { return true; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/idn_email.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/idn_email.mjs const IdnEmail = /^(?!.*\.\.)[\p{L}\p{N}!#$%&'*+/=?^_`{|}~-]+(?:\.[\p{L}\p{N}!#$%&'*+/=?^_`{|}~-]+)*@[\p{L}\p{N}](?:[\p{L}\p{N}-]{0,61}[\p{L}\p{N}])?(?:\.[\p{L}\p{N}](?:[\p{L}\p{N}-]{0,61}[\p{L}\p{N}])?)*$/iu; /** * Returns true if the value is an IdnEmail @@ -5531,7 +5415,7 @@ function IsIdnEmail(value) { return IdnEmail.test(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/idn_hostname.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/idn_hostname.mjs /** * Returns true if the value is a valid internationalized (IDN) hostname. * @specification https://tools.ietf.org/html/rfc3490 @@ -5546,7 +5430,7 @@ function IsIdnHostname(value) { return true; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/ipv4.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/ipv4.mjs function IsIPv4Internal(value, start, end) { let dots = 0; let num = 0; @@ -5576,7 +5460,7 @@ function IsIPv4(value) { return IsIPv4Internal(value, 0, value.length); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/ipv6.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/ipv6.mjs function InRange(ch) { return ch >= 48 && ch <= 57 || ch >= 65 && ch <= 70 || ch >= 97 && ch <= 102; } @@ -5626,7 +5510,7 @@ function IsIPv6(value) { return compressed ? groups <= 7 : groups === 8; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/iri_reference.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/iri_reference.mjs function TryUrl(value) { try { new URL(value, "http://example.com"); @@ -5653,7 +5537,7 @@ function IsIriReference(value) { } } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/iri.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/iri.mjs /** * Returns true if the value is a Iri * @specification @@ -5667,7 +5551,7 @@ function IsIri(value) { } } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/json_pointer_uri_fragment.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/json_pointer_uri_fragment.mjs const JsonPointerUriFragment = /^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i; /** * Returns true if the value is a json pointer uri fragment @@ -5678,7 +5562,7 @@ function IsJsonPointerUriFragment(value) { return JsonPointerUriFragment.test(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/json_pointer.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/json_pointer.mjs const JsonPointer = /^(?:\/(?:[^~/]|~0|~1)*)*$/; /** * Returns true if the value is a json pointer @@ -5689,7 +5573,7 @@ function IsJsonPointer(value) { return JsonPointer.test(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/regex.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/regex.mjs /** * Returns true if the value is a regular expression string pattern * @specification @@ -5705,7 +5589,7 @@ function IsRegex(value) { } } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/relative_json_pointer.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/relative_json_pointer.mjs const RelativeJsonPointer = /^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/; /** * Returns true if the value is a relative json pointer @@ -5716,7 +5600,7 @@ function IsRelativeJsonPointer(value) { return RelativeJsonPointer.test(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/uri_reference.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/uri_reference.mjs const UriReference = /^(?!.*[^\x00-\x7F])(?!.*\\)(?:(?:[a-z][a-z0-9+\-.]*:)?(?:\/\/[^\s[\]{}<>^`|]*)?|[^\s[\]{}<>^`|]*)(?:\?[^\s[\]{}<>^`|]*)?(?:#[^\s[\]{}<>^`|]*)?$/i; /** * Returns true if the value is a valid URI Reference. @@ -5726,7 +5610,7 @@ function IsUriReference(value) { return UriReference.test(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/uri_template.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/uri_template.mjs const UriTemplate = /^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i; /** * Returns true if the value is a uri template @@ -5737,7 +5621,7 @@ function IsUriTemplate(value) { return UriTemplate.test(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/uri.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/uri.mjs function IsAlpha(ch) { return ch >= 97 && ch <= 122 || ch >= 65 && ch <= 90; } @@ -5832,7 +5716,7 @@ function IsUri(value) { return true; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/url.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/url.mjs const Url = /^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu; /** * Returns true if the value is a Url @@ -5843,7 +5727,7 @@ function IsUrl(value) { return Url.test(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/uuid.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/uuid.mjs const Uuid = /^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i; /** * Returns true if the value is a uuid @@ -5854,7 +5738,7 @@ function IsUuid(value) { return Uuid.test(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/_registry.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/_registry.mjs const formats = /* @__PURE__ */ new Map(); /** Clears all entries */ function Clear() { @@ -5891,7 +5775,7 @@ function Reset() { } Reset(); //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/format.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/format.mjs function CheckFormat(_stack, _context, schema, value) { return Test(schema.format, value); } @@ -5904,7 +5788,7 @@ function ErrorFormat(stack, context, schemaPath, instancePath, schema, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/if.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/if.mjs function CheckIf(stack, context, schema, value) { const thenSchema = IsThen(schema) ? schema.then : true; const elseSchema = IsElse(schema) ? schema.else : true; @@ -5929,7 +5813,7 @@ function ErrorIf(stack, context, schemaPath, instancePath, schema, value) { return isIf; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/items.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/items.mjs function CheckItemsSized(stack, context, schema, value) { return Every(schema.items, 0, (schema, index) => { return IsLessEqualThan(value.length, index) || CheckSchemaPushStack(stack, context, schema, value[index]) && context.AddIndex(index); @@ -5959,7 +5843,7 @@ function ErrorItems(stack, context, schemaPath, instancePath, schema, value) { return IsItemsSized(schema) ? ErrorItemsSized(stack, context, schemaPath, instancePath, schema, value) : ErrorItemsUnsized(stack, context, schemaPath, instancePath, schema, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/maxContains.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/maxContains.mjs function IsValid$2(schema) { return IsContains(schema); } @@ -5980,7 +5864,7 @@ function ErrorMaxContains(stack, context, schemaPath, instancePath, schema, valu }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/maximum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/maximum.mjs function CheckMaximum(_stack, _context, schema, value) { return IsLessEqualThan(value, schema.maximum); } @@ -5996,7 +5880,7 @@ function ErrorMaximum(stack, context, schemaPath, instancePath, schema, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/maxItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/maxItems.mjs function CheckMaxItems(_stack, _context, schema, value) { return IsLessEqualThan(value.length, schema.maxItems); } @@ -6009,7 +5893,7 @@ function ErrorMaxItems(stack, context, schemaPath, instancePath, schema, value) }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/maxLength.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/maxLength.mjs function CheckMaxLength(_stack, _context, schema, value) { return IsMaxLength$1(value, schema.maxLength); } @@ -6022,7 +5906,7 @@ function ErrorMaxLength(stack, context, schemaPath, instancePath, schema, value) }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/maxProperties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/maxProperties.mjs function CheckMaxProperties(_stack, _context, schema, value) { return IsLessEqualThan(Keys(value).length, schema.maxProperties); } @@ -6035,7 +5919,7 @@ function ErrorMaxProperties(stack, context, schemaPath, instancePath, schema, va }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/minContains.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/minContains.mjs function IsValid$1(schema) { return IsContains(schema); } @@ -6052,7 +5936,7 @@ function ErrorMinContains(stack, context, schemaPath, instancePath, schema, valu }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/minimum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/minimum.mjs function CheckMinimum(_stack, _context, schema, value) { return IsGreaterEqualThan(value, schema.minimum); } @@ -6068,7 +5952,7 @@ function ErrorMinimum(stack, context, schemaPath, instancePath, schema, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/minItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/minItems.mjs function CheckMinItems(_stack, _context, schema, value) { return IsGreaterEqualThan(value.length, schema.minItems); } @@ -6081,7 +5965,7 @@ function ErrorMinItems(stack, context, schemaPath, instancePath, schema, value) }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/minLength.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/minLength.mjs function CheckMinLength(_stack, _context, schema, value) { return IsMinLength$1(value, schema.minLength); } @@ -6094,7 +5978,7 @@ function ErrorMinLength(stack, context, schemaPath, instancePath, schema, value) }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/minProperties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/minProperties.mjs function CheckMinProperties(_stack, _context, schema, value) { return IsGreaterEqualThan(Keys(value).length, schema.minProperties); } @@ -6107,7 +5991,7 @@ function ErrorMinProperties(stack, context, schemaPath, instancePath, schema, va }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/multipleOf.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/multipleOf.mjs function CheckMultipleOf(_stack, _context, schema, value) { return IsMultipleOf$1(value, schema.multipleOf); } @@ -6120,7 +6004,7 @@ function ErrorMultipleOf(stack, context, schemaPath, instancePath, schema, value }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/not.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/not.mjs function CheckNot(stack, context, schema, value) { const nextContext = new CheckContext(); return !CheckSchema(stack, nextContext, schema.not, value) && context.Merge([nextContext]); @@ -6134,7 +6018,7 @@ function ErrorNot(stack, context, schemaPath, instancePath, schema, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/oneOf.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/oneOf.mjs function CheckOneOf(stack, context, schema, value) { const passedContexts = schema.oneOf.reduce((result, schema) => { const nextContext = new CheckContext(); @@ -6162,7 +6046,7 @@ function ErrorOneOf(stack, context, schemaPath, instancePath, schema, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/pattern.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/pattern.mjs function CheckPattern(_stack, _context, schema, value) { return (IsString$2(schema.pattern) ? new RegExp(schema.pattern, "u") : schema.pattern).test(value); } @@ -6175,7 +6059,7 @@ function ErrorPattern(stack, context, schemaPath, instancePath, schema, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/patternProperties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/patternProperties.mjs function CheckPatternProperties(stack, context, schema, value) { return Every(Entries(schema.patternProperties), 0, ([pattern, schema]) => { const regexp = new RegExp(pattern, "u"); @@ -6195,7 +6079,7 @@ function ErrorPatternProperties(stack, context, schemaPath, instancePath, schema }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/prefixItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/prefixItems.mjs function CheckPrefixItems(stack, context, schema, value) { return IsEqual(value.length, 0) || Every(schema.prefixItems, 0, (schema, index) => { return IsLessEqualThan(value.length, index) || CheckSchemaPushStack(stack, context, schema, value[index]) && context.AddIndex(index); @@ -6209,7 +6093,7 @@ function ErrorPrefixItems(stack, context, schemaPath, instancePath, schema, valu }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/_exact_optional.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/_exact_optional.mjs function IsExactOptional(required, key) { return required.includes(key) || Get$2().exactOptionalPropertyTypes; } @@ -6217,7 +6101,7 @@ function InexactOptionalCheck(value, key) { return IsUndefined$1(value[key]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/properties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/properties.mjs function CheckProperties(stack, context, schema, value) { const required = IsRequired(schema) ? schema.required : []; return Every(Entries(schema.properties), 0, ([key, schema]) => { @@ -6235,7 +6119,7 @@ function ErrorProperties(stack, context, schemaPath, instancePath, schema, value }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/propertyNames.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/propertyNames.mjs function CheckPropertyNames(stack, context, schema, value) { return Every(Keys(value), 0, (key, _index) => CheckSchema(stack, context, schema.propertyNames, key)); } @@ -6255,7 +6139,7 @@ function ErrorPropertyNames(stack, context, schemaPath, instancePath, schema, va }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/recursiveRef.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/recursiveRef.mjs function CheckRecursiveRef(stack, context, schema, value) { const target = stack.RecursiveRef(schema) ?? false; return IsSchema(target) && CheckSchema(stack, context, target, value); @@ -6265,7 +6149,7 @@ function ErrorRecursiveRef(stack, context, _schemaPath, instancePath, schema, va return IsSchema(target) && ErrorSchema(stack, context, "#", instancePath, target, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/ref.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/ref.mjs function CheckRef(stack, context, schema, value) { const target = stack.Ref(schema) ?? false; const nextContext = new CheckContext(); @@ -6282,7 +6166,7 @@ function ErrorRef(stack, context, _schemaPath, instancePath, schema, value) { return result; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/required.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/required.mjs function CheckRequired(_stack, _context, schema, value) { return Every(schema.required, 0, (key) => HasPropertyKey(value, key)); } @@ -6300,9 +6184,9 @@ function ErrorRequired(_stack, context, schemaPath, instancePath, schema, value) }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/type.mjs function CheckTypeName(_stack, _context, type, _schema, value) { - return IsEqual(type, "object") ? IsObjectNotArray(value) : IsEqual(type, "array") ? IsArray$1(value) : IsEqual(type, "boolean") ? IsBoolean$2(value) : IsEqual(type, "integer") ? IsInteger$1(value) : IsEqual(type, "number") ? IsNumber$2(value) : IsEqual(type, "null") ? IsNull$1(value) : IsEqual(type, "string") ? IsString$2(value) : IsEqual(type, "asyncIterator") ? IsAsyncIterator$1(value) : IsEqual(type, "bigint") ? IsBigInt$1(value) : IsEqual(type, "constructor") ? IsConstructor$1(value) : IsEqual(type, "function") ? IsFunction$1(value) : IsEqual(type, "iterator") ? IsIterator$1(value) : IsEqual(type, "symbol") ? IsSymbol$1(value) : IsEqual(type, "undefined") ? IsUndefined$1(value) : IsEqual(type, "void") ? IsUndefined$1(value) : true; + return IsEqual(type, "object") ? IsObjectNotArray(value) : IsEqual(type, "array") ? IsArray$1(value) : IsEqual(type, "boolean") ? IsBoolean$2(value) : IsEqual(type, "integer") ? IsInteger$1(value) : IsEqual(type, "number") ? IsNumber$2(value) : IsEqual(type, "null") ? IsNull$1(value) : IsEqual(type, "string") ? IsString$2(value) : IsEqual(type, "bigint") ? IsBigInt$1(value) : IsEqual(type, "constructor") ? IsConstructor$1(value) : IsEqual(type, "function") ? IsFunction$1(value) : IsEqual(type, "symbol") ? IsSymbol$1(value) : IsEqual(type, "undefined") ? IsUndefined$1(value) : IsEqual(type, "void") ? IsUndefined$1(value) : true; } function CheckTypeNames(stack, context, types, schema, value) { return types.some((type) => CheckTypeName(stack, context, type, schema, value)); @@ -6319,7 +6203,7 @@ function ErrorType(stack, context, schemaPath, instancePath, schema, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/unevaluatedItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/unevaluatedItems.mjs function CheckUnevaluatedItems(stack, context, schema, value) { const indices = context.GetIndices(); return Every(value, 0, (item, index) => { @@ -6342,7 +6226,7 @@ function ErrorUnevaluatedItems(stack, context, schemaPath, instancePath, schema, }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/unevaluatedProperties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/unevaluatedProperties.mjs function CheckUnevaluatedProperties(stack, context, schema, value) { const keys = context.GetKeys(); return Every(Entries(value), 0, ([key, prop]) => { @@ -6365,7 +6249,7 @@ function ErrorUnevaluatedProperties(stack, context, schemaPath, instancePath, sc }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/uniqueItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/uniqueItems.mjs function IsValid(schema) { return !IsEqual(schema.uniqueItems, false); } @@ -6392,13 +6276,13 @@ function ErrorUniqueItems(_stack, context, schemaPath, instancePath, schema, val }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/schema.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/schema.mjs function CheckSchemaPushStack(stack, context, schema, value) { return context.Push() && CheckSchema(stack, context, schema, value) && context.Pop(); } function CheckSchema(stack, context, schema, value) { stack.Push(schema); - const result = IsBooleanSchema(schema) ? CheckBooleanSchema(stack, context, schema, value) : (!IsType(schema) || CheckType(stack, context, schema, value)) && (!(IsObject$1(value) && !IsArray$1(value)) || (!IsRequired(schema) || CheckRequired(stack, context, schema, value)) && (!IsAdditionalProperties(schema) || CheckAdditionalProperties(stack, context, schema, value)) && (!IsDependencies(schema) || CheckDependencies(stack, context, schema, value)) && (!IsDependentRequired(schema) || CheckDependentRequired(stack, context, schema, value)) && (!IsDependentSchemas(schema) || CheckDependentSchemas(stack, context, schema, value)) && (!IsPatternProperties(schema) || CheckPatternProperties(stack, context, schema, value)) && (!IsProperties(schema) || CheckProperties(stack, context, schema, value)) && (!IsPropertyNames(schema) || CheckPropertyNames(stack, context, schema, value)) && (!IsMinProperties(schema) || CheckMinProperties(stack, context, schema, value)) && (!IsMaxProperties(schema) || CheckMaxProperties(stack, context, schema, value))) && (!IsArray$1(value) || (!IsAdditionalItems(schema) || CheckAdditionalItems(stack, context, schema, value)) && (!IsContains(schema) || CheckContains(stack, context, schema, value)) && (!IsItems(schema) || CheckItems(stack, context, schema, value)) && (!IsMaxContains(schema) || CheckMaxContains(stack, context, schema, value)) && (!IsMaxItems(schema) || CheckMaxItems(stack, context, schema, value)) && (!IsMinContains(schema) || CheckMinContains(stack, context, schema, value)) && (!IsMinItems(schema) || CheckMinItems(stack, context, schema, value)) && (!IsPrefixItems(schema) || CheckPrefixItems(stack, context, schema, value)) && (!IsUniqueItems(schema) || CheckUniqueItems(stack, context, schema, value))) && (!IsString$2(value) || (!IsMaxLength(schema) || CheckMaxLength(stack, context, schema, value)) && (!IsMinLength(schema) || CheckMinLength(stack, context, schema, value)) && (!IsFormat(schema) || CheckFormat(stack, context, schema, value)) && (!IsPattern(schema) || CheckPattern(stack, context, schema, value))) && (!(IsNumber$2(value) || IsBigInt$1(value)) || (!IsExclusiveMaximum(schema) || CheckExclusiveMaximum(stack, context, schema, value)) && (!IsExclusiveMinimum(schema) || CheckExclusiveMinimum(stack, context, schema, value)) && (!IsMaximum(schema) || CheckMaximum(stack, context, schema, value)) && (!IsMinimum(schema) || CheckMinimum(stack, context, schema, value)) && (!IsMultipleOf(schema) || CheckMultipleOf(stack, context, schema, value))) && (!IsRef(schema) || CheckRef(stack, context, schema, value)) && (!IsRecursiveRef(schema) || CheckRecursiveRef(stack, context, schema, value)) && (!IsDynamicRef(schema) || CheckDynamicRef(stack, context, schema, value)) && (!IsGuard(schema) || CheckGuard(stack, context, schema, value)) && (!IsConst(schema) || CheckConst(stack, context, schema, value)) && (!IsEnum(schema) || CheckEnum(stack, context, schema, value)) && (!IsIf(schema) || CheckIf(stack, context, schema, value)) && (!IsNot(schema) || CheckNot(stack, context, schema, value)) && (!IsAllOf(schema) || CheckAllOf(stack, context, schema, value)) && (!IsAnyOf(schema) || CheckAnyOf(stack, context, schema, value)) && (!IsOneOf(schema) || CheckOneOf(stack, context, schema, value)) && (!IsUnevaluatedItems(schema) || !IsArray$1(value) || CheckUnevaluatedItems(stack, context, schema, value)) && (!IsUnevaluatedProperties(schema) || !IsObject$1(value) || CheckUnevaluatedProperties(stack, context, schema, value)) && (!IsRefine(schema) || CheckRefine(stack, context, schema, value)); + const result = IsBooleanSchema(schema) ? CheckBooleanSchema(stack, context, schema, value) : (!IsType(schema) || CheckType(stack, context, schema, value)) && (!(IsObject$1(value) && !IsArray$1(value)) || (!IsRequired(schema) || CheckRequired(stack, context, schema, value)) && (!IsAdditionalProperties(schema) || CheckAdditionalProperties(stack, context, schema, value)) && (!IsDependencies(schema) || CheckDependencies(stack, context, schema, value)) && (!IsDependentRequired(schema) || CheckDependentRequired(stack, context, schema, value)) && (!IsDependentSchemas(schema) || CheckDependentSchemas(stack, context, schema, value)) && (!IsPatternProperties(schema) || CheckPatternProperties(stack, context, schema, value)) && (!IsProperties(schema) || CheckProperties(stack, context, schema, value)) && (!IsPropertyNames(schema) || CheckPropertyNames(stack, context, schema, value)) && (!IsMinProperties(schema) || CheckMinProperties(stack, context, schema, value)) && (!IsMaxProperties(schema) || CheckMaxProperties(stack, context, schema, value))) && (!IsArray$1(value) || (!IsAdditionalItems(schema) || CheckAdditionalItems(stack, context, schema, value)) && (!IsContains(schema) || CheckContains(stack, context, schema, value)) && (!IsItems(schema) || CheckItems(stack, context, schema, value)) && (!IsMaxContains(schema) || CheckMaxContains(stack, context, schema, value)) && (!IsMaxItems(schema) || CheckMaxItems(stack, context, schema, value)) && (!IsMinContains(schema) || CheckMinContains(stack, context, schema, value)) && (!IsMinItems(schema) || CheckMinItems(stack, context, schema, value)) && (!IsPrefixItems(schema) || CheckPrefixItems(stack, context, schema, value)) && (!IsUniqueItems(schema) || CheckUniqueItems(stack, context, schema, value))) && (!IsString$2(value) || (!IsMaxLength(schema) || CheckMaxLength(stack, context, schema, value)) && (!IsMinLength(schema) || CheckMinLength(stack, context, schema, value)) && (!IsFormat(schema) || CheckFormat(stack, context, schema, value)) && (!IsPattern(schema) || CheckPattern(stack, context, schema, value))) && (!(IsNumber$2(value) || IsBigInt$1(value)) || (!IsExclusiveMaximum(schema) || CheckExclusiveMaximum(stack, context, schema, value)) && (!IsExclusiveMinimum(schema) || CheckExclusiveMinimum(stack, context, schema, value)) && (!IsMaximum(schema) || CheckMaximum(stack, context, schema, value)) && (!IsMinimum(schema) || CheckMinimum(stack, context, schema, value)) && (!IsMultipleOf(schema) || CheckMultipleOf(stack, context, schema, value))) && (!IsRef(schema) || CheckRef(stack, context, schema, value)) && (!IsRecursiveRef(schema) || CheckRecursiveRef(stack, context, schema, value)) && (!IsDynamicRef(schema) || CheckDynamicRef(stack, context, schema, value)) && (!IsConst(schema) || CheckConst(stack, context, schema, value)) && (!IsEnum(schema) || CheckEnum(stack, context, schema, value)) && (!IsIf(schema) || CheckIf(stack, context, schema, value)) && (!IsNot(schema) || CheckNot(stack, context, schema, value)) && (!IsAllOf(schema) || CheckAllOf(stack, context, schema, value)) && (!IsAnyOf(schema) || CheckAnyOf(stack, context, schema, value)) && (!IsOneOf(schema) || CheckOneOf(stack, context, schema, value)) && (!IsUnevaluatedItems(schema) || !IsArray$1(value) || CheckUnevaluatedItems(stack, context, schema, value)) && (!IsUnevaluatedProperties(schema) || !IsObject$1(value) || CheckUnevaluatedProperties(stack, context, schema, value)) && (!IsRefine(schema) || CheckRefine(stack, context, schema, value)); stack.Pop(schema); return result; } @@ -6407,12 +6291,12 @@ function ErrorSchemaPushStack(stack, context, schemaPath, instancePath, schema, } function ErrorSchema(stack, context, schemaPath, instancePath, schema, value) { stack.Push(schema); - const result = IsBooleanSchema(schema) ? ErrorBooleanSchema(stack, context, schemaPath, instancePath, schema, value) : !!(+(!IsType(schema) || ErrorType(stack, context, schemaPath, instancePath, schema, value)) & +(!(IsObject$1(value) && !IsArray$1(value)) || !!(+(!IsRequired(schema) || ErrorRequired(stack, context, schemaPath, instancePath, schema, value)) & +(!IsAdditionalProperties(schema) || ErrorAdditionalProperties(stack, context, schemaPath, instancePath, schema, value)) & +(!IsDependencies(schema) || ErrorDependencies(stack, context, schemaPath, instancePath, schema, value)) & +(!IsDependentRequired(schema) || ErrorDependentRequired(stack, context, schemaPath, instancePath, schema, value)) & +(!IsDependentSchemas(schema) || ErrorDependentSchemas(stack, context, schemaPath, instancePath, schema, value)) & +(!IsPatternProperties(schema) || ErrorPatternProperties(stack, context, schemaPath, instancePath, schema, value)) & +(!IsProperties(schema) || ErrorProperties(stack, context, schemaPath, instancePath, schema, value)) & +(!IsPropertyNames(schema) || ErrorPropertyNames(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMinProperties(schema) || ErrorMinProperties(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMaxProperties(schema) || ErrorMaxProperties(stack, context, schemaPath, instancePath, schema, value)))) & +(!IsArray$1(value) || !!(+(!IsAdditionalItems(schema) || ErrorAdditionalItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsContains(schema) || ErrorContains(stack, context, schemaPath, instancePath, schema, value)) & +(!IsItems(schema) || ErrorItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMaxContains(schema) || ErrorMaxContains(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMaxItems(schema) || ErrorMaxItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMinContains(schema) || ErrorMinContains(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMinItems(schema) || ErrorMinItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsPrefixItems(schema) || ErrorPrefixItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsUniqueItems(schema) || ErrorUniqueItems(stack, context, schemaPath, instancePath, schema, value)))) & +(!IsString$2(value) || !!(+(!IsMaxLength(schema) || ErrorMaxLength(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMinLength(schema) || ErrorMinLength(stack, context, schemaPath, instancePath, schema, value)) & +(!IsFormat(schema) || ErrorFormat(stack, context, schemaPath, instancePath, schema, value)) & +(!IsPattern(schema) || ErrorPattern(stack, context, schemaPath, instancePath, schema, value)))) & +(!(IsNumber$2(value) || IsBigInt$1(value)) || !!(+(!IsExclusiveMaximum(schema) || ErrorExclusiveMaximum(stack, context, schemaPath, instancePath, schema, value)) & +(!IsExclusiveMinimum(schema) || ErrorExclusiveMinimum(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMaximum(schema) || ErrorMaximum(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMinimum(schema) || ErrorMinimum(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMultipleOf(schema) || ErrorMultipleOf(stack, context, schemaPath, instancePath, schema, value)))) & +(!IsRef(schema) || ErrorRef(stack, context, schemaPath, instancePath, schema, value)) & +(!IsRecursiveRef(schema) || ErrorRecursiveRef(stack, context, schemaPath, instancePath, schema, value)) & +(!IsDynamicRef(schema) || ErrorDynamicRef(stack, context, schemaPath, instancePath, schema, value)) & +(!IsGuard(schema) || ErrorGuard(stack, context, schemaPath, instancePath, schema, value)) & +(!IsConst(schema) || ErrorConst(stack, context, schemaPath, instancePath, schema, value)) & +(!IsEnum(schema) || ErrorEnum(stack, context, schemaPath, instancePath, schema, value)) & +(!IsIf(schema) || ErrorIf(stack, context, schemaPath, instancePath, schema, value)) & +(!IsNot(schema) || ErrorNot(stack, context, schemaPath, instancePath, schema, value)) & +(!IsAllOf(schema) || ErrorAllOf(stack, context, schemaPath, instancePath, schema, value)) & +(!IsAnyOf(schema) || ErrorAnyOf(stack, context, schemaPath, instancePath, schema, value)) & +(!IsOneOf(schema) || ErrorOneOf(stack, context, schemaPath, instancePath, schema, value)) & +(!IsUnevaluatedItems(schema) || !IsArray$1(value) || ErrorUnevaluatedItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsUnevaluatedProperties(schema) || !IsObject$1(value) || ErrorUnevaluatedProperties(stack, context, schemaPath, instancePath, schema, value))) && (!IsRefine(schema) || ErrorRefine(stack, context, schemaPath, instancePath, schema, value)); + const result = IsBooleanSchema(schema) ? ErrorBooleanSchema(stack, context, schemaPath, instancePath, schema, value) : !!(+(!IsType(schema) || ErrorType(stack, context, schemaPath, instancePath, schema, value)) & +(!(IsObject$1(value) && !IsArray$1(value)) || !!(+(!IsRequired(schema) || ErrorRequired(stack, context, schemaPath, instancePath, schema, value)) & +(!IsAdditionalProperties(schema) || ErrorAdditionalProperties(stack, context, schemaPath, instancePath, schema, value)) & +(!IsDependencies(schema) || ErrorDependencies(stack, context, schemaPath, instancePath, schema, value)) & +(!IsDependentRequired(schema) || ErrorDependentRequired(stack, context, schemaPath, instancePath, schema, value)) & +(!IsDependentSchemas(schema) || ErrorDependentSchemas(stack, context, schemaPath, instancePath, schema, value)) & +(!IsPatternProperties(schema) || ErrorPatternProperties(stack, context, schemaPath, instancePath, schema, value)) & +(!IsProperties(schema) || ErrorProperties(stack, context, schemaPath, instancePath, schema, value)) & +(!IsPropertyNames(schema) || ErrorPropertyNames(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMinProperties(schema) || ErrorMinProperties(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMaxProperties(schema) || ErrorMaxProperties(stack, context, schemaPath, instancePath, schema, value)))) & +(!IsArray$1(value) || !!(+(!IsAdditionalItems(schema) || ErrorAdditionalItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsContains(schema) || ErrorContains(stack, context, schemaPath, instancePath, schema, value)) & +(!IsItems(schema) || ErrorItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMaxContains(schema) || ErrorMaxContains(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMaxItems(schema) || ErrorMaxItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMinContains(schema) || ErrorMinContains(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMinItems(schema) || ErrorMinItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsPrefixItems(schema) || ErrorPrefixItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsUniqueItems(schema) || ErrorUniqueItems(stack, context, schemaPath, instancePath, schema, value)))) & +(!IsString$2(value) || !!(+(!IsMaxLength(schema) || ErrorMaxLength(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMinLength(schema) || ErrorMinLength(stack, context, schemaPath, instancePath, schema, value)) & +(!IsFormat(schema) || ErrorFormat(stack, context, schemaPath, instancePath, schema, value)) & +(!IsPattern(schema) || ErrorPattern(stack, context, schemaPath, instancePath, schema, value)))) & +(!(IsNumber$2(value) || IsBigInt$1(value)) || !!(+(!IsExclusiveMaximum(schema) || ErrorExclusiveMaximum(stack, context, schemaPath, instancePath, schema, value)) & +(!IsExclusiveMinimum(schema) || ErrorExclusiveMinimum(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMaximum(schema) || ErrorMaximum(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMinimum(schema) || ErrorMinimum(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMultipleOf(schema) || ErrorMultipleOf(stack, context, schemaPath, instancePath, schema, value)))) & +(!IsRef(schema) || ErrorRef(stack, context, schemaPath, instancePath, schema, value)) & +(!IsRecursiveRef(schema) || ErrorRecursiveRef(stack, context, schemaPath, instancePath, schema, value)) & +(!IsDynamicRef(schema) || ErrorDynamicRef(stack, context, schemaPath, instancePath, schema, value)) & +(!IsConst(schema) || ErrorConst(stack, context, schemaPath, instancePath, schema, value)) & +(!IsEnum(schema) || ErrorEnum(stack, context, schemaPath, instancePath, schema, value)) & +(!IsIf(schema) || ErrorIf(stack, context, schemaPath, instancePath, schema, value)) & +(!IsNot(schema) || ErrorNot(stack, context, schemaPath, instancePath, schema, value)) & +(!IsAllOf(schema) || ErrorAllOf(stack, context, schemaPath, instancePath, schema, value)) & +(!IsAnyOf(schema) || ErrorAnyOf(stack, context, schemaPath, instancePath, schema, value)) & +(!IsOneOf(schema) || ErrorOneOf(stack, context, schemaPath, instancePath, schema, value)) & +(!IsUnevaluatedItems(schema) || !IsArray$1(value) || ErrorUnevaluatedItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsUnevaluatedProperties(schema) || !IsObject$1(value) || ErrorUnevaluatedProperties(stack, context, schemaPath, instancePath, schema, value))) && (!IsRefine(schema) || ErrorRefine(stack, context, schemaPath, instancePath, schema, value)); stack.Pop(schema); return result; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/pointer/pointer.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/pointer/pointer.mjs function GetIndex(index, value) { return IsObject$1(value) && !IsUnsafePropertyKey(index) ? value[index] : void 0; } @@ -6430,7 +6314,7 @@ function Get(value, pointer) { return GetIndices(Indices(pointer), value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/resolve/ref.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/resolve/ref.mjs function MatchId(schema, base, ref) { if (schema.$id === ref.hash) return schema; const absoluteId = new URL(schema.$id, base.href); @@ -6503,7 +6387,7 @@ function DynamicRef(root, base, dynamicRef, dynamicAnchors) { return dynamicAnchors.find((anchor) => anchor.$dynamicAnchor === fragmentTarget.$dynamicAnchor) ?? fragmentTarget; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/_stack.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/_stack.mjs var __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"); @@ -6576,7 +6460,7 @@ _Stack_instances = /* @__PURE__ */ new WeakSet(), _Stack_PushResourceAnchors = f return !ref.$ref.startsWith("#") ? Ref(root, ref.$ref) : Ref(this.Base(), ref.$ref); }; //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/errors.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/errors.mjs /** Checks a value and returns validation errors */ function Errors(...args) { const [context, schema, value] = Match$3(args, { @@ -6603,7 +6487,7 @@ function Errors(...args) { }), "#", "", schema, value), errors]; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/check.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/check.mjs /** Checks a value against the provided schema */ function Check(...args) { const [context, schema, value] = Match$3(args, { @@ -6621,7 +6505,7 @@ function Check(...args) { return CheckSchema(new Stack(context, schema), new CheckContext(), schema, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/parse.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/parse.mjs var ParseError = class { constructor(schema, value, errors) { this.schema = schema; diff --git a/schemas/libraries/typebox/download_compiled/unminified.js b/schemas/libraries/typebox/download_compiled/unminified.js index 4ee798ad..149d2051 100644 --- a/schemas/libraries/typebox/download_compiled/unminified.js +++ b/schemas/libraries/typebox/download_compiled/unminified.js @@ -10,7 +10,7 @@ var __exportAll = (all, no_symbols) => { return target; }; //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/memory/metrics.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/memory/metrics.mjs /** TypeBox instantiation metrics */ const Metrics = { assign: 0, @@ -20,7 +20,7 @@ const Metrics = { update: 0 }; //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/memory/assign.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/memory/assign.mjs /** * Performs an Object assign using the Left and Right object types. We track this operation as it * creates a new GC handle per assignment. @@ -33,7 +33,7 @@ function Assign(left, right) { }; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/guard/string.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/guard/string.mjs function IsBetween(value, min, max) { return value >= min && value <= max; } @@ -127,7 +127,7 @@ function IsMaxLengthFast(value, maxLength) { return true; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/guard/guard.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/guard/guard.mjs var guard_exports = /* @__PURE__ */ __exportAll({ Entries: () => Entries, EntriesRegExp: () => EntriesRegExp, @@ -136,7 +136,6 @@ var guard_exports = /* @__PURE__ */ __exportAll({ GraphemeCount: () => GraphemeCount, HasPropertyKey: () => HasPropertyKey, IsArray: () => IsArray$1, - IsAsyncIterator: () => IsAsyncIterator$1, IsBigInt: () => IsBigInt$1, IsBoolean: () => IsBoolean$2, IsClassInstance: () => IsClassInstance, @@ -147,7 +146,6 @@ var guard_exports = /* @__PURE__ */ __exportAll({ IsGreaterEqualThan: () => IsGreaterEqualThan, IsGreaterThan: () => IsGreaterThan, IsInteger: () => IsInteger$1, - IsIterator: () => IsIterator$1, IsLessEqualThan: () => IsLessEqualThan, IsLessThan: () => IsLessThan, IsMaxLength: () => IsMaxLength$1, @@ -171,10 +169,6 @@ var guard_exports = /* @__PURE__ */ __exportAll({ function IsArray$1(value) { return Array.isArray(value); } -/** Returns true if this value is an async iterator */ -function IsAsyncIterator$1(value) { - return IsObject$1(value) && Symbol.asyncIterator in value; -} /** Returns true if this value is bigint */ function IsBigInt$1(value) { return IsEqual(typeof value, "bigint"); @@ -199,10 +193,6 @@ function IsFunction$1(value) { function IsInteger$1(value) { return Number.isInteger(value); } -/** Returns true if this value is an iterator */ -function IsIterator$1(value) { - return IsObject$1(value) && Symbol.iterator in value; -} /** Returns true if this value is null */ function IsNull$1(value) { return IsEqual(value, null); @@ -332,7 +322,7 @@ function IsDeepEqual(left, right) { return IsArray$1(left) ? DeepEqualArray(left, right) : IsObject$1(left) ? DeepEqualObject(left, right) : IsEqual(left, right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/guard/globals.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/guard/globals.mjs function IsBoolean$1(value) { return value instanceof Boolean; } @@ -362,51 +352,69 @@ function IsMap(value) { return value instanceof globalThis.Map; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/guard/index.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/guard/index.mjs var guard_default = guard_exports; //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/memory/clone.mjs -function IsGuard$1(value) { - return IsObject$1(value) && HasPropertyKey(value, "~guard"); -} -function FromGuard(value) { +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/memory/clone.mjs +function FromClassInstance(value) { return value; } -function FromArray$10(value) { - return value.map((value) => FromValue$3(value)); +function IsKindedObject(value) { + return HasPropertyKey(value, "~kind"); } -function FromObject$14(value) { +function FromKindedObject(value) { const result = {}; const descriptors = Object.getOwnPropertyDescriptors(value); for (const key of Object.keys(descriptors)) { + if (IsUnsafePropertyKey(key)) continue; const descriptor = descriptors[key]; if (HasPropertyKey(descriptor, "value")) Object.defineProperty(result, key, { ...descriptor, - value: FromValue$3(descriptor.value) + value: FromValue$2(descriptor.value) }); } return result; } +function FromPlainObject(value) { + const result = {}; + for (const key of Keys(value)) { + if (IsUnsafePropertyKey(key)) continue; + result[key] = FromValue$2(value[key]); + } + for (const key of Symbols(value)) result[key] = FromValue$2(value[key]); + return result; +} +function FromObject$13(value) { + return IsClassInstance(value) ? FromClassInstance(value) : IsKindedObject(value) ? FromKindedObject(value) : FromPlainObject(value); +} +function FromArray$9(value) { + return value.map((element) => FromValue$2(element)); +} +function FromTypedArray(value) { + return value.slice(); +} function FromRegExp$1(value) { return new RegExp(value.source, value.flags); } -function FromUnknown(value) { - return value; +function FromMap(value) { + return new Map(FromValue$2([...value.entries()])); } -function FromValue$3(value) { - return value instanceof RegExp ? FromRegExp$1(value) : IsGuard$1(value) ? FromGuard(value) : IsArray$1(value) ? FromArray$10(value) : IsObject$1(value) ? FromObject$14(value) : FromUnknown(value); +function FromSet(value) { + return new Set(FromValue$2([...value.values()])); +} +function FromValue$2(value) { + return IsTypeArray(value) ? FromTypedArray(value) : IsRegExp(value) ? FromRegExp$1(value) : IsMap(value) ? FromMap(value) : IsSet(value) ? FromSet(value) : IsArray$1(value) ? FromArray$9(value) : IsObject$1(value) ? FromObject$13(value) : value; } /** -* Clones a value using the TypeBox type cloning strategy. This function preserves non-enumerable -* properties from the source value. This is to ensure cloned types retain discriminable -* hidden properties. +* Returns a Clone of the given value. This function is similar to structuredClone() +* but also supports deep cloning instances of Map, Set and TypeArray. */ function Clone$1(value) { Metrics.clone += 1; - return FromValue$3(value); + return FromValue$2(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/settings/settings.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/settings/settings.mjs const settings = { immutableTypes: false, maxErrors: 8, @@ -421,7 +429,7 @@ function Get$2() { return settings; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/memory/create.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/memory/create.mjs function MergeHidden(left, right) { for (const key of Object.keys(right)) Object.defineProperty(left, key, { configurable: true, @@ -450,7 +458,7 @@ function Create(hidden, enumerable, options = {}) { return settings.immutableTypes ? Object.freeze(withHidden) : withHidden; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/memory/discard.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/memory/discard.mjs /** Discards multiple property keys from the given object value */ function Discard(value, propertyKeys) { Metrics.discard += 1; @@ -464,7 +472,7 @@ function Discard(value, propertyKeys) { return result; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/memory/update.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/memory/update.mjs /** * Updates a value with new properties while preserving property enumerability. Use this function to modify * existing types without altering their configuration. @@ -488,7 +496,7 @@ function Update$1(current, hidden, enumerable) { return result; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/schema.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/schema.mjs function IsKind(value, kind) { return IsObject$1(value) && HasPropertyKey(value, "~kind") && IsEqual(value["~kind"], kind); } @@ -496,7 +504,7 @@ function IsSchema$1(value) { return IsObject$1(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/deferred.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/deferred.mjs /** Creates a Deferred action. */ function Deferred(action, parameters, options) { return Create({ "~kind": "Deferred" }, { @@ -511,84 +519,29 @@ function IsDeferred(value) { return IsKind(value, "Deferred"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/base.mjs -function BaseProperty(value) { - return { - enumerable: Get$2().enumerableKind, - writable: false, - configurable: false, - value - }; +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/readonly/instantiate_add.mjs +function AddReadonlyOperation(type) { + return Update$1(type, { "~readonly": true }, {}); } -/** -* @deprecated Use Type.Refine() + Type.Unsafe() instead. -* -* -* **Reason:** It is noted that JavaScript class instances do not behave like -* plain objects during structural clone or when the TB compositor needs to -* assign dynamic modifier properties (such as '~optional'). -* -* Because the TypeBox compositor needs to transform schematics via object clone / -* property spread, these operations can result in class instance types losing -* methods on the prototype (via clone), which can lead to unexpected structures being -* returned. This has led to special-case (non-clone) handling for Base which needs -* to be removed as it has proven orthogonal to the TypeBox 1.x design. -* -* The Base type was introduced in 1.x to try integrate / embed Standard Schema into JSON -* Schema; however, support for integrated Standard Schema embedding will not be continued -* in TypeBox. This type will be removed in the next minor revision of TypeBox. -* -* ```typescript -* // (Deprecated) -* class DateType extends Type.Base { Check(value) { return value instanceof Date } } -* -* // (Future) -* const DateType = Type.Refine(Type.Unsafe({}), value => value instanceof Date) -* ``` -*/ -var Base$1 = class { - constructor() { - globalThis.Object.defineProperty(this, "~kind", BaseProperty("Base")); - globalThis.Object.defineProperty(this, "~guard", BaseProperty({ - check: (value) => this.Check(value), - errors: (value) => this.Errors(value) - })); - } - /** Checks a value or returns false if invalid */ - Check(_value) { - return true; - } - /** Returns errors for a value. Return an empty array if valid. */ - Errors(_value) { - return []; - } - /** Converts a value into this type */ - Convert(value) { - return value; - } - /** Cleans a value according to this type */ - Clean(value) { - return value; - } - /** Returns a default value for this type */ - Default(value) { - return value; - } - /** Creates a new instance of this type */ - Create() { - throw new Error("Create not implemented"); - } - /** Clones this type */ - Clone() { - throw Error("Clone not implemented"); - } -}; -/** Returns true if the given value is a Base type. */ -function IsBase(value) { - return IsKind(value, "Base"); +function AddReadonlyAction(type, options) { + return Update$1(AddReadonlyOperation(type), {}, options); +} +function AddReadonlyInstantiate(context, state, type, options) { + return AddReadonlyAction(InstantiateType(context, state, type), options); +} +//#endregion +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/optional/instantiate_add.mjs +function AddOptionalOperation(type) { + return Update$1(type, { "~optional": true }, {}); +} +function AddOptionalAction(type, options) { + return Update$1(AddOptionalOperation(type), {}, options); +} +function AddOptionalInstantiate(context, state, type, options) { + return AddOptionalAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/array.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/array.mjs /** Creates an Array type. */ function _Array_(items, options) { return Create({ "~kind": "Array" }, { @@ -609,32 +562,7 @@ function ArrayOptions(type) { ]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/async_iterator.mjs -/** -* Creates a AsyncIterator type. -* -* @deprecated This type is being removed in the next version of TypeBox. A fallback will be provided under examples. -*/ -function AsyncIterator(iteratorItems, options) { - return Create({ "~kind": "AsyncIterator" }, { - type: "asyncIterator", - iteratorItems - }, options); -} -/** Returns true if the given value is a TAsyncIterator */ -function IsAsyncIterator(value) { - return IsKind(value, "AsyncIterator"); -} -/** Extracts options from a TAsyncIterator. */ -function AsyncIteratorOptions(type) { - return Discard(type, [ - "~kind", - "type", - "iteratorItems" - ]); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/constructor.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/constructor.mjs /** Creates a Constructor type. */ function Constructor(parameters, instanceType, options = {}) { return Create({ "~kind": "Constructor" }, { @@ -657,7 +585,7 @@ function ConstructorOptions(type) { ]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/function.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/function.mjs /** Creates a Function type. */ function _Function_$1(parameters, returnType, options = {}) { return Create({ ["~kind"]: "Function" }, { @@ -680,7 +608,7 @@ function FunctionOptions(type) { ]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/ref.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/ref.mjs /** Creates a Ref type. */ function Ref$1(ref, options) { return Create({ ["~kind"]: "Ref" }, { $ref: ref }, options); @@ -690,7 +618,7 @@ function IsRef$1(value) { return IsKind(value, "Ref"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/generic.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/generic.mjs /** Creates a Generic type. */ function Generic(parameters, expression) { return Create({ "~kind": "Generic" }, { @@ -704,7 +632,7 @@ function IsGeneric(value) { return IsKind(value, "Generic"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/any.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/any.mjs /** Creates a Any type. */ function Any(options) { return Create({ ["~kind"]: "Any" }, {}, options); @@ -714,7 +642,7 @@ function IsAny(value) { return IsKind(value, "Any"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/never.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/never.mjs const NeverPattern = "(?!)"; /** Creates a Never type. */ function Never(options) { @@ -725,18 +653,7 @@ function IsNever(value) { return IsKind(value, "Never"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/optional/instantiate_add.mjs -function AddOptionalOperation(type) { - return Update$1(type, { "~optional": true }, {}); -} -function AddOptionalAction(type, options) { - return Update$1(AddOptionalOperation(type), {}, options); -} -function AddOptionalInstantiate(context, state, type, options) { - return AddOptionalAction(InstantiateType(context, state, type), options); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/_add_optional.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/_add_optional.mjs /** Creates a deferred AddOptional action. */ function AddOptionalDeferred(type, options = {}) { return Deferred("AddOptional", [type], options); @@ -746,7 +663,7 @@ function AddOptional(type, options = {}) { return AddOptionalAction(type, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/_optional.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/_optional.mjs /** Applies an Optional modifier to the given type. */ function Optional$2(type) { return AddOptional(type); @@ -756,7 +673,7 @@ function IsOptional(value) { return IsSchema$1(value) && HasPropertyKey(value, "~optional"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/properties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/properties.mjs /** Creates a RequiredArray derived from the given TProperties value. */ function RequiredArray(properties) { return Keys(properties).filter((key) => !IsOptional(properties[key])); @@ -770,7 +687,7 @@ function PropertyValues(properties) { return Values(properties); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/object.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/object.mjs /** Creates an Object type. */ function _Object_$1(properties, options = {}) { const requiredKeys = RequiredArray(properties); @@ -794,7 +711,7 @@ function ObjectOptions(type) { ]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/unknown.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/unknown.mjs /** Creates an Unknown type. */ function Unknown(options) { return Create({ ["~kind"]: "Unknown" }, {}, options); @@ -804,7 +721,7 @@ function IsUnknown(value) { return IsKind(value, "Unknown"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/cyclic.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/cyclic.mjs /** Creates a Cyclic type. */ function Cyclic($defs, $ref, options) { const defs = Keys($defs).reduce((result, key) => { @@ -823,7 +740,7 @@ function IsCyclic(value) { return IsKind(value, "Cyclic"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/unsafe.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/unsafe.mjs /** Creates a Unsafe type. */ function Unsafe(schema) { return Update$1(schema, { ["~unsafe"]: null }, {}); @@ -833,7 +750,7 @@ function IsUnsafe(value) { return IsObjectNotArray(value) && HasPropertyKey(value, "~unsafe") && IsNull$1(value["~unsafe"]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/arguments/arguments.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/arguments/arguments.mjs /** * Match arguments for overloaded functions that use the `...args: unknown[]` pattern. Arguments * are parsed using argument length only. @@ -844,7 +761,7 @@ function Match$3(args, match) { })(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/infer.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/infer.mjs /** Creates an Infer instruction. */ function Infer(...args) { const [name, extends_] = Match$3(args, { @@ -870,7 +787,7 @@ function IsInfer(value) { return IsKind(value, "Infer"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/dependent.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/dependent.mjs /** Creates a Dependent type */ function Dependent$1(if_, then_, else_, options = {}) { return Create({ "~kind": "Dependent" }, { @@ -893,7 +810,7 @@ function DependentOptions(type) { ]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/enum/typescript_enum_to_enum_values.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/enum/typescript_enum_to_enum_values.mjs function IsTypeScriptEnumLike(value) { return IsObjectNotArray(value); } @@ -901,7 +818,7 @@ function TypeScriptEnumToEnumValues(type) { return Keys(type).filter((key) => isNaN(key)).reduce((result, key) => [...result, type[key]], []); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/enum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/enum.mjs /** Creates an Enum type. */ function Enum(value, options) { return Create({ "~kind": "Enum" }, { enum: IsTypeScriptEnumLike(value) ? TypeScriptEnumToEnumValues(value) : value }, options); @@ -911,7 +828,7 @@ function IsEnum$1(value) { return IsKind(value, "Enum"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/intersect.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/intersect.mjs /** Creates a Intersect type. */ function Intersect(types, options = {}) { return Create({ "~kind": "Intersect" }, { allOf: types }, options); @@ -925,13 +842,13 @@ function IntersectOptions(type) { return Discard(type, ["~kind", "allOf"]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/unreachable/unreachable.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/unreachable/unreachable.mjs /** Used for unreachable logic */ function Unreachable$1() { throw new Error("Unreachable"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/hashing/hash.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/hashing/hash.mjs function InstanceKeys(value) { const propertyKeys = /* @__PURE__ */ new Set(); let current = value; @@ -971,9 +888,9 @@ function FNV1A64_OP(byte) { Accumulator = Accumulator ^ Bytes[byte]; Accumulator = Accumulator * Prime % Size; } -function FromArray$9(value) { +function FromArray$8(value) { FNV1A64_OP(ByteMarker.Array); - for (const item of value) FromValue$2(item); + for (const item of value) FromValue$1(item); } function FromBigInt$5(value) { FNV1A64_OP(ByteMarker.BigInt); @@ -986,15 +903,15 @@ function FromBoolean$5(value) { } function FromConstructor(value) { FNV1A64_OP(ByteMarker.Constructor); - FromValue$2(value.toString()); + FromValue$1(value.toString()); } function FromDate(value) { FNV1A64_OP(ByteMarker.Date); - FromValue$2(value.getTime()); + FromValue$1(value.getTime()); } function FromFunction(value) { FNV1A64_OP(ByteMarker.Function); - FromValue$2(value.toString()); + FromValue$1(value.toString()); } function FromNull$1(_value) { FNV1A64_OP(ByteMarker.Null); @@ -1004,11 +921,11 @@ function FromNumber$4(value) { F64In.setFloat64(0, value, true); for (const byte of F64Out) FNV1A64_OP(byte); } -function FromObject$13(value) { +function FromObject$12(value) { FNV1A64_OP(ByteMarker.Object); for (const key of InstanceKeys(value).sort()) { - FromValue$2(key); - FromValue$2(value[key]); + FromValue$1(key); + FromValue$1(value[key]); } } function FromRegExp(value) { @@ -1022,7 +939,7 @@ function FromString$6(value) { } function FromSymbol(value) { FNV1A64_OP(ByteMarker.Symbol); - FromValue$2(value.toString()); + FromValue$1(value.toString()); } function FromTypeArray(value) { FNV1A64_OP(ByteMarker.TypeArray); @@ -1032,13 +949,13 @@ function FromTypeArray(value) { function FromUndefined$1(_value) { return FNV1A64_OP(ByteMarker.Undefined); } -function FromValue$2(value) { - return IsTypeArray(value) ? FromTypeArray(value) : IsDate$1(value) ? FromDate(value) : IsRegExp(value) ? FromRegExp(value) : IsBoolean$1(value) ? FromBoolean$5(value.valueOf()) : IsString$1(value) ? FromString$6(value.valueOf()) : IsNumber$1(value) ? FromNumber$4(value.valueOf()) : IsIEEE754(value) ? FromNumber$4(value) : IsArray$1(value) ? FromArray$9(value) : IsBoolean$2(value) ? FromBoolean$5(value) : IsBigInt$1(value) ? FromBigInt$5(value) : IsConstructor$1(value) ? FromConstructor(value) : IsNull$1(value) ? FromNull$1(value) : IsObject$1(value) ? FromObject$13(value) : IsString$2(value) ? FromString$6(value) : IsSymbol$1(value) ? FromSymbol(value) : IsUndefined$1(value) ? FromUndefined$1(value) : IsFunction$1(value) ? FromFunction(value) : Unreachable$1(); +function FromValue$1(value) { + return IsTypeArray(value) ? FromTypeArray(value) : IsDate$1(value) ? FromDate(value) : IsRegExp(value) ? FromRegExp(value) : IsBoolean$1(value) ? FromBoolean$5(value.valueOf()) : IsString$1(value) ? FromString$6(value.valueOf()) : IsNumber$1(value) ? FromNumber$4(value.valueOf()) : IsIEEE754(value) ? FromNumber$4(value) : IsArray$1(value) ? FromArray$8(value) : IsBoolean$2(value) ? FromBoolean$5(value) : IsBigInt$1(value) ? FromBigInt$5(value) : IsConstructor$1(value) ? FromConstructor(value) : IsNull$1(value) ? FromNull$1(value) : IsObject$1(value) ? FromObject$12(value) : IsString$2(value) ? FromString$6(value) : IsSymbol$1(value) ? FromSymbol(value) : IsUndefined$1(value) ? FromUndefined$1(value) : IsFunction$1(value) ? FromFunction(value) : Unreachable$1(); } /** Generates a FNV1A-64 non cryptographic hash of the given value */ function HashCode(value) { Accumulator = BigInt("14695981039346656037"); - FromValue$2(value); + FromValue$1(value); return Accumulator; } /** Generates a FNV1A-64 non cryptographic hash of the given value */ @@ -1046,7 +963,7 @@ function Hash(value) { return HashCode(value).toString(16).padStart(16, "0"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/locale/en_US.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/locale/en_US.mjs /** en_US: English (United States) - ISO 639-1 language code 'en' with ISO 3166-1 alpha-2 country code 'US' for United States. */ function en_US(error) { switch (error.keyword) { @@ -1080,20 +997,19 @@ function en_US(error) { case "unevaluatedItems": return "must not have unevaluated items"; case "unevaluatedProperties": return "must not have unevaluated properties"; case "uniqueItems": return `must not have duplicate items`; - case "~guard": return `must match check function`; case "~refine": return error.params.message; default: return "an unknown validation error occurred"; } } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/system/locale/_config.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/system/locale/_config.mjs let locale = en_US; /** Gets the locale */ function Get$1() { return locale; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/_codec.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/_codec.mjs var EncodeBuilder = class { constructor(type, decode) { this.type = type; @@ -1136,7 +1052,7 @@ function IsCodec(value) { return IsSchema$1(value) && HasPropertyKey(value, "~codec") && IsObject$1(value["~codec"]) && HasPropertyKey(value["~codec"], "encode") && HasPropertyKey(value["~codec"], "decode"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/_immutable.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/_immutable.mjs /** Applies an Immutable modifier to the given type. */ function Immutable(type) { return AddImmutable(type); @@ -1146,18 +1062,7 @@ function IsImmutable(value) { return IsSchema$1(value) && HasPropertyKey(value, "~immutable"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/readonly/instantiate_add.mjs -function AddReadonlyOperation(type) { - return Update$1(type, { "~readonly": true }, {}); -} -function AddReadonlyAction(type, options) { - return Update$1(AddReadonlyOperation(type), {}, options); -} -function AddReadonlyInstantiate(context, state, type, options) { - return AddReadonlyAction(InstantiateType(context, state, type), options); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/_add_readonly.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/_add_readonly.mjs /** Creates a deferred AddReadonly action. */ function AddReadonlyDeferred(type, options = {}) { return Deferred("AddReadonly", [type], options); @@ -1167,7 +1072,7 @@ function AddReadonly(type, options = {}) { return AddReadonlyAction(type, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/_readonly.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/_readonly.mjs /** Applies an Readonly property modifier to the given type. */ function Readonly$1(type) { return AddReadonly(type); @@ -1177,14 +1082,14 @@ function IsReadonly(value) { return IsSchema$1(value) && HasPropertyKey(value, "~readonly"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/_refine.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/_refine.mjs /** Applies a Refine check to the given type. */ function RefineAdd(type, refinement) { return Update$1(type, { "~refine": IsRefine$1(type) ? [...type["~refine"], refinement] : [refinement] }, {}); } /** Refines a type with an explicit check */ function Refine(...args) { - const [type, check, error_or_message] = Match$3(args, { + const [type, check, error] = Match$3(args, { 3: (type, check, error) => [ type, check, @@ -1198,7 +1103,7 @@ function Refine(...args) { }); return RefineAdd(type, { check, - error: IsString$2(error_or_message) ? () => error_or_message : error_or_message + error }); } /** Returns true if the given value is a TRefinement. */ @@ -1210,7 +1115,7 @@ function IsRefine$1(value) { return IsSchema$1(value) && HasPropertyKey(value, "~refine") && IsArray$1(value["~refine"]) && Every(value["~refine"], 0, (value) => IsRefinement(value)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/bigint.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/bigint.mjs const BigIntPattern = "-?(?:0|[1-9][0-9]*)n"; /** Creates a BigInt type. */ function BigInt$2(options) { @@ -1221,7 +1126,7 @@ function IsBigInt(value) { return IsKind(value, "BigInt"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/boolean.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/boolean.mjs /** Creates a Boolean type. */ function Boolean$1(options) { return Create({ "~kind": "Boolean" }, { type: "boolean" }, options); @@ -1231,7 +1136,7 @@ function IsBoolean(value) { return IsKind(value, "Boolean"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/identifier.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/identifier.mjs /** Creates an Identifier. */ function Identifier(name) { return Create({ "~kind": "Identifier" }, { name }); @@ -1241,7 +1146,7 @@ function IsIdentifier(value) { return IsKind(value, "Identifier"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/integer.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/integer.mjs const IntegerPattern = "-?(?:0|[1-9][0-9]*)"; /** Creates a Integer type. */ function Integer$1(options) { @@ -1252,32 +1157,7 @@ function IsInteger(value) { return IsKind(value, "Integer"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/iterator.mjs -/** -* Creates a Iterator type. -* -* @deprecated This type is being removed in the next version of TypeBox. A fallback will be provided under examples. -*/ -function Iterator(iteratorItems, options) { - return Create({ "~kind": "Iterator" }, { - type: "iterator", - iteratorItems - }, options); -} -/** Returns true if the given value is TIterator. */ -function IsIterator(value) { - return IsKind(value, "Iterator"); -} -/** Extracts options from a TIterator. */ -function IteratorOptions(type) { - return Discard(type, [ - "~kind", - "type", - "iteratorItems" - ]); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/literal.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/literal.mjs var InvalidLiteralValue = class extends Error { constructor(value) { super(`Invalid Literal value`); @@ -1326,7 +1206,7 @@ function IsLiteral(value) { return IsKind(value, "Literal"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/null.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/null.mjs /** Creates a Null type. */ function Null(options) { return Create({ "~kind": "Null" }, { type: "null" }, options); @@ -1336,7 +1216,7 @@ function IsNull(value) { return IsKind(value, "Null"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/number.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/number.mjs const NumberPattern = "-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?"; /** Creates a Number type. */ function Number$2(options) { @@ -1347,7 +1227,7 @@ function IsNumber(value) { return IsKind(value, "Number"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/symbol.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/symbol.mjs /** Creates a Symbol type. */ function Symbol$1(options) { return Create({ "~kind": "Symbol" }, { type: "symbol" }, options); @@ -1357,7 +1237,7 @@ function IsSymbol(value) { return IsKind(value, "Symbol"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/parameter.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/parameter.mjs /** Creates a Parameter type. */ function Parameter$1(...args) { const [name, extends_, equals] = Match$3(args, { @@ -1388,32 +1268,7 @@ function IsParameter(value) { return IsKind(value, "Parameter"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/promise.mjs -/** -* Creates a Promise type. -* -* @deprecated This type is being removed in the next version of TypeBox. A fallback will be provided under examples. -*/ -function _Promise_(item, options) { - return Create({ ["~kind"]: "Promise" }, { - type: "promise", - item - }, options); -} -/** Returns true if the given type is TPromise. */ -function IsPromise(value) { - return IsKind(value, "Promise"); -} -/** Extracts options from a TPromise. */ -function PromiseOptions(type) { - return Discard(type, [ - "~kind", - "type", - "item" - ]); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/string.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/string.mjs /** Creates a String type. */ function String$2(options) { return Create({ "~kind": "String" }, { type: "string" }, options); @@ -1423,7 +1278,7 @@ function IsString(value) { return IsKind(value, "String"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/union.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/union.mjs /** Creates a Union type. */ function Union(anyOf, options = {}) { return Create({ "~kind": "Union" }, { anyOf }, options); @@ -1437,14 +1292,14 @@ function UnionOptions(type) { return Discard(type, ["~kind", "anyOf"]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/patterns/pattern.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/patterns/pattern.mjs /** Parses a Pattern into a sequence of TemplateLiteral types. A result of [] indicates failure to parse. */ function ParsePatternIntoTypes(pattern) { const parsed = Pattern(pattern); return IsEqual(parsed.length, 2) ? parsed[0] : []; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/template_literal/is_finite.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/template_literal/is_finite.mjs function FromLiteral$5(_value) { return true; } @@ -1462,7 +1317,7 @@ function IsTemplateLiteralFinite(types) { return FromTypes$5(types); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/template_literal/create.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/template_literal/create.mjs function TemplateLiteralCreate(pattern) { return Create({ ["~kind"]: "TemplateLiteral" }, { type: "string", @@ -1470,7 +1325,7 @@ function TemplateLiteralCreate(pattern) { }, {}); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/template_literal/decode.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/template_literal/decode.mjs function FromLiteralPush(variants, value, result = []) { return ShiftLeft(variants, (left, right) => FromLiteralPush(right, value, [...result, `${left}${value}`]), () => result); } @@ -1511,7 +1366,7 @@ function TemplateLiteralDecode(pattern) { return IsTemplateLiteral(decoded) ? String$2() : decoded; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/record/record_create.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/record/record_create.mjs function CreateRecord(key, value) { const type = "object"; const patternProperties = { [key]: value }; @@ -1521,12 +1376,12 @@ function CreateRecord(key, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/record/from_key_any.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/record/from_key_any.mjs function FromAnyKey(value) { return CreateRecord(StringKey, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/record/from_key_boolean.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/record/from_key_boolean.mjs function FromBooleanKey(value) { return _Object_$1({ true: value, @@ -1534,7 +1389,7 @@ function FromBooleanKey(value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/tuple.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/tuple.mjs /** Creates a Tuple type. */ function Tuple(types, options = {}) { const [items, minItems, additionalItems] = [ @@ -1564,7 +1419,7 @@ function TupleOptions(type) { ]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/readonly/instantiate_remove.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/readonly/instantiate_remove.mjs function RemoveReadonlyOperation(type) { return Discard(type, ["~readonly"]); } @@ -1575,7 +1430,7 @@ function RemoveReadonlyInstantiate(context, state, type, options) { return RemoveReadonlyAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/_remove_readonly.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/_remove_readonly.mjs /** Creates a deferred RemoveReadonly action. */ function RemoveReadonlyDeferred(type, options = {}) { return Deferred("RemoveReadonly", [type], options); @@ -1585,7 +1440,7 @@ function RemoveReadonly(type, options = {}) { return RemoveReadonlyAction(type, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/optional/instantiate_remove.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/optional/instantiate_remove.mjs function RemoveOptionalOperation(type) { return Discard(type, ["~optional"]); } @@ -1596,7 +1451,7 @@ function RemoveOptionalInstantiate(context, state, type, options) { return RemoveOptionalAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/_remove_optional.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/_remove_optional.mjs /** Creates a deferred RemoveOptional action. */ function RemoveOptionalDeferred(type, options = {}) { return Deferred("RemoveOptional", [type], options); @@ -1606,7 +1461,7 @@ function RemoveOptional(type, options = {}) { return RemoveOptionalAction(type, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/tuple/to_object.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/tuple/to_object.mjs function TupleElementsToProperties(types) { return types.reduceRight((result, right, index) => { return { @@ -1619,7 +1474,7 @@ function TupleToObject(type) { return _Object_$1(TupleElementsToProperties(type.items)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/evaluate/composite.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/evaluate/composite.mjs function IsReadonlyProperty(left, right) { return IsReadonly(left) ? IsReadonly(right) ? true : false : false; } @@ -1650,13 +1505,13 @@ function Composite(left, right) { return _Object_$1(CompositeProperties(GetProperties(left), GetProperties(right))); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/evaluate/narrow.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/evaluate/narrow.mjs function Narrow(left, right) { const result = Compare(left, right); return IsEqual(result, "left-inside") ? left : IsEqual(result, "right-inside") ? right : IsEqual(result, "equal") ? right : Never(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/evaluate/distribute.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/evaluate/distribute.mjs function IsObjectLike(type) { return IsObject(type) || IsTuple(type); } @@ -1683,7 +1538,7 @@ function Distribute$1(types, result = []) { return ShiftLeft(types, (left, right) => IsUnion(left) ? Distribute$1(right, DistributeUnion(left.anyOf, result)) : Distribute$1(right, DistributeType(left, result)), () => result); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/exclude/operation.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/exclude/operation.mjs function ExcludeType(left, right) { return IsExtendsTrueLike(Extends({}, left, right)) ? [] : [left]; } @@ -1697,7 +1552,7 @@ function ExcludeOperation(left, right) { return EvaluateUnion(ExcludeUnion(IsUnion(evaluated) ? evaluated.anyOf : [evaluated], right)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/evaluate/evaluate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/evaluate/evaluate.mjs function EvaluateDependent(if_, then_, else_) { return EvaluateUnion([Intersect([if_, then_]), ExcludeOperation(else_, if_)]); } @@ -1720,42 +1575,42 @@ function EvaluateUnionFast(types) { return IsEqual(types.length, 1) ? types[0] : IsEqual(types.length, 0) ? Never() : Union(types); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/record/from_key_enum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/record/from_key_enum.mjs function FromEnumKey(values, value) { return FromKey(EvaluateEnum(values), value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/record/from_key_integer.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/record/from_key_integer.mjs function FromIntegerKey(_key, value) { return CreateRecord(IntegerKey, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/record/from_key_intersect.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/record/from_key_intersect.mjs function FromIntersectKey(types, value) { return FromKey(EvaluateIntersect(types), value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/record/from_key_literal.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/record/from_key_literal.mjs function FromLiteralKey(key, value) { return IsString$2(key) || IsNumber$2(key) ? _Object_$1({ [key]: value }) : IsEqual(key, false) ? _Object_$1({ false: value }) : IsEqual(key, true) ? _Object_$1({ true: value }) : _Object_$1({}); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/record/from_key_number.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/record/from_key_number.mjs function FromNumberKey(_key, value) { return CreateRecord(NumberKey, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/record/from_key_string.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/record/from_key_string.mjs function FromStringKey(key, value) { return HasPropertyKey(key, "pattern") && (IsString$2(key.pattern) || key.pattern instanceof RegExp) ? CreateRecord(key.pattern.toString(), value) : CreateRecord(StringKey, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/record/from_key_template_literal.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/record/from_key_template_literal.mjs function FromTemplateKey(pattern, value) { return IsTemplateLiteralFinite(ParsePatternIntoTypes(pattern)) ? FromKey(EvaluateTemplateLiteral(pattern), value) : CreateRecord(pattern, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/evaluate/flatten.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/evaluate/flatten.mjs function FlattenType(type) { return IsUnion(type) ? Flatten(type.anyOf) : [type]; } @@ -1765,7 +1620,7 @@ function Flatten(types) { }, []); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/record/from_key_union.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/record/from_key_union.mjs function StringOrNumberCheck(types) { return types.some((type) => IsString(type) || IsNumber(type) || IsInteger(type)); } @@ -1789,12 +1644,12 @@ function FromUnionKey(types, value) { return IsSchema$1(record) ? record : CreateObject(flattened, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/record/from_key.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/record/from_key.mjs function FromKey(key, value) { return IsAny(key) ? FromAnyKey(value) : IsBoolean(key) ? FromBooleanKey(value) : IsEnum$1(key) ? FromEnumKey(key.enum, value) : IsInteger(key) ? FromIntegerKey(key, value) : IsIntersect(key) ? FromIntersectKey(key.allOf, value) : IsLiteral(key) ? FromLiteralKey(key.const, value) : IsNumber(key) ? FromNumberKey(key, value) : IsUnion(key) ? FromUnionKey(key.anyOf, value) : IsString(key) ? FromStringKey(key, value) : IsTemplateLiteral(key) ? FromTemplateKey(key.pattern, value) : _Object_$1({}); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/record/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/record/instantiate.mjs function RecordAction(key, value, options) { return CanInstantiate([key]) ? Update$1(FromKey(key, value), {}, options) : RecordDeferred(key, value, options); } @@ -1802,7 +1657,7 @@ function RecordInstantiate(context, state, key, value, options) { return RecordAction(InstantiateType(context, state, key), InstantiateType(context, state, value), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/record.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/record.mjs const IntegerKey = `^${IntegerPattern}$`; const NumberKey = `^${NumberPattern}$`; const StringKey = `^.*$`; @@ -1838,7 +1693,7 @@ function IsRecord(value) { return IsKind(value, "Record"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/rest.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/rest.mjs /** Creates a Rest instruction type. */ function Rest(type) { return Create({ "~kind": "Rest" }, { @@ -1851,7 +1706,7 @@ function IsRest(value) { return IsKind(value, "Rest"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/this.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/this.mjs /** Creates a This type. */ function This(options) { return Create({ ["~kind"]: "This" }, { $ref: "#" }, options); @@ -1861,7 +1716,7 @@ function IsThis(value) { return IsKind(value, "This"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/undefined.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/undefined.mjs /** Creates a Undefined type. */ function Undefined(options) { return Create({ "~kind": "Undefined" }, { type: "undefined" }, options); @@ -1871,7 +1726,7 @@ function IsUndefined(value) { return IsKind(value, "Undefined"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/void.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/void.mjs /** Creates a Void type. */ function Void(options) { return Create({ "~kind": "Void" }, { type: "void" }, options); @@ -1881,9 +1736,9 @@ function IsVoid(value) { return IsKind(value, "Void"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/mapping.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/mapping.mjs function IntrinsicOrCall(ref, parameters) { - return IsEqual(ref, "Array") ? _Array_(parameters[0]) : IsEqual(ref, "AsyncIterator") ? AsyncIterator(parameters[0]) : IsEqual(ref, "Iterator") ? Iterator(parameters[0]) : IsEqual(ref, "Promise") ? _Promise_(parameters[0]) : IsEqual(ref, "Awaited") ? AwaitedDeferred(parameters[0]) : IsEqual(ref, "Capitalize") ? CapitalizeDeferred(parameters[0]) : IsEqual(ref, "ConstructorParameters") ? ConstructorParametersDeferred(parameters[0]) : IsEqual(ref, "Evaluate") ? EvaluateDeferred(parameters[0]) : IsEqual(ref, "Exclude") ? ExcludeDeferred(parameters[0], parameters[1]) : IsEqual(ref, "Extract") ? ExtractDeferred(parameters[0], parameters[1]) : IsEqual(ref, "Index") ? IndexDeferred(parameters[0], parameters[1]) : IsEqual(ref, "InstanceType") ? InstanceTypeDeferred(parameters[0]) : IsEqual(ref, "Lowercase") ? LowercaseDeferred(parameters[0]) : IsEqual(ref, "NonNullable") ? NonNullableDeferred(parameters[0]) : IsEqual(ref, "Omit") ? OmitDeferred(parameters[0], parameters[1]) : IsEqual(ref, "Parameters") ? ParametersDeferred(parameters[0]) : IsEqual(ref, "Partial") ? PartialDeferred(parameters[0]) : IsEqual(ref, "Pick") ? PickDeferred(parameters[0], parameters[1]) : IsEqual(ref, "Readonly") ? ReadonlyObjectDeferred(parameters[0]) : IsEqual(ref, "KeyOf") ? KeyOfDeferred(parameters[0]) : IsEqual(ref, "Record") ? RecordDeferred(parameters[0], parameters[1]) : IsEqual(ref, "Required") ? RequiredDeferred(parameters[0]) : IsEqual(ref, "ReturnType") ? ReturnTypeDeferred(parameters[0]) : IsEqual(ref, "Uncapitalize") ? UncapitalizeDeferred(parameters[0]) : IsEqual(ref, "Uppercase") ? UppercaseDeferred(parameters[0]) : CallConstruct(Ref$1(ref), parameters); + return IsEqual(ref, "Array") ? _Array_(parameters[0]) : IsEqual(ref, "Capitalize") ? CapitalizeDeferred(parameters[0]) : IsEqual(ref, "ConstructorParameters") ? ConstructorParametersDeferred(parameters[0]) : IsEqual(ref, "Evaluate") ? EvaluateDeferred(parameters[0]) : IsEqual(ref, "Exclude") ? ExcludeDeferred(parameters[0], parameters[1]) : IsEqual(ref, "Extract") ? ExtractDeferred(parameters[0], parameters[1]) : IsEqual(ref, "Index") ? IndexDeferred(parameters[0], parameters[1]) : IsEqual(ref, "InstanceType") ? InstanceTypeDeferred(parameters[0]) : IsEqual(ref, "Lowercase") ? LowercaseDeferred(parameters[0]) : IsEqual(ref, "NonNullable") ? NonNullableDeferred(parameters[0]) : IsEqual(ref, "Omit") ? OmitDeferred(parameters[0], parameters[1]) : IsEqual(ref, "Parameters") ? ParametersDeferred(parameters[0]) : IsEqual(ref, "Partial") ? PartialDeferred(parameters[0]) : IsEqual(ref, "Pick") ? PickDeferred(parameters[0], parameters[1]) : IsEqual(ref, "Readonly") ? ReadonlyObjectDeferred(parameters[0]) : IsEqual(ref, "KeyOf") ? KeyOfDeferred(parameters[0]) : IsEqual(ref, "Record") ? RecordDeferred(parameters[0], parameters[1]) : IsEqual(ref, "Required") ? RequiredDeferred(parameters[0]) : IsEqual(ref, "ReturnType") ? ReturnTypeDeferred(parameters[0]) : IsEqual(ref, "Uncapitalize") ? UncapitalizeDeferred(parameters[0]) : IsEqual(ref, "Uppercase") ? UppercaseDeferred(parameters[0]) : CallConstruct(Ref$1(ref), parameters); } function Unreachable() { throw Error("Unreachable"); @@ -2316,7 +2171,7 @@ function ScriptMapping(input) { return input; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/token/internal/match.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/token/internal/match.mjs /** Checks the value is a Tuple-2 [string, string] result */ function IsMatch(value) { return IsEqual(value.length, 2); @@ -2326,7 +2181,7 @@ function Match$2(input, ok, fail) { return IsMatch(input) ? ok(input[0], input[1]) : fail(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/token/internal/take.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/token/internal/take.mjs function TakeVariant(variant, input) { return IsEqual(input.indexOf(variant), 0) ? [variant, input.slice(variant.length)] : []; } @@ -2339,7 +2194,7 @@ function Take(variants, input) { return []; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/token/internal/char.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/token/internal/char.mjs function Range(start, end) { return Array.from({ length: end - start + 1 }, (_, i) => String.fromCharCode(start + i)); } @@ -2347,7 +2202,7 @@ const Alpha = [...Range(97, 122), ...Range(65, 90)]; const NonZero = Range(49, 57); const Digit = ["0", ...NonZero]; //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/token/internal/trim.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/token/internal/trim.mjs const LineComment = "//"; const OpenComment = "/*"; const CloseComment = "*/"; @@ -2371,13 +2226,13 @@ function Trim(input) { return trimmed.startsWith(OpenComment) ? Trim(DiscardMultilineComment(trimmed.slice(2))) : trimmed.startsWith(LineComment) ? Trim(DiscardLineComment(trimmed.slice(2))) : trimmed; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/token/internal/optional.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/token/internal/optional.mjs /** Matches the given Value or empty string if no match. This function never fails */ function Optional$1(value, input) { return Match$2(Take([value], input), (Optional, Rest) => [Optional, Rest], () => ["", input]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/token/internal/many.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/token/internal/many.mjs function IsDiscard(discard, input) { return discard.includes(input); } @@ -2386,7 +2241,7 @@ function Many(allowed, discard, input, result = "") { return Match$2(Take(allowed, input), (Char, Rest) => IsDiscard(discard, Char) ? Many(allowed, discard, Rest, result) : Many(allowed, discard, Rest, `${result}${Char}`), () => [result, input]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/token/unsigned_integer.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/token/unsigned_integer.mjs function TakeNonZero(input) { return Take(NonZero, input); } @@ -2402,7 +2257,7 @@ function UnsignedInteger(input) { return TakeUnsignedInteger(Trim(input)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/token/integer.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/token/integer.mjs function TakeSign$1(input) { return Optional$1("-", input); } @@ -2414,7 +2269,7 @@ function Integer(input) { return TakeSignedInteger(Trim(input)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/token/bigint.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/token/bigint.mjs function TakeBigInt(input) { return Match$2(Integer(input), (Integer, IntegerRest) => Match$2(Take(["n"], IntegerRest), (_N, NRest) => [`${Integer}`, NRest], () => []), () => []); } @@ -2423,7 +2278,7 @@ function BigInt$1(input) { return TakeBigInt(input); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/token/const.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/token/const.mjs function TakeConst(const_, input) { return Take([const_], input); } @@ -2432,7 +2287,7 @@ function Const(const_, input) { return IsEqual(const_, "") ? ["", input] : const_.startsWith("\n") ? TakeConst(const_, TrimWhitespace(input)) : const_.startsWith(" ") ? TakeConst(const_, input) : TakeConst(const_, Trim(input)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/token/ident.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/token/ident.mjs const Initial = [ ...Alpha, "_", @@ -2453,7 +2308,7 @@ function Ident(input) { return TakeIdent(Trim(input)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/token/unsigned_number.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/token/unsigned_number.mjs const AllowedDigits = [...Digit, "_"]; function IsLeadingDot(input) { return IsMatch(Take(["."], input)); @@ -2475,7 +2330,7 @@ function UnsignedNumber(input) { return TakeUnsignedNumber(Trim(input)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/token/number.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/token/number.mjs function TakeSign(input) { return Optional$1("-", input); } @@ -2487,7 +2342,7 @@ function Number$1(input) { return TakeSignedNumber(Trim(input)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/token/until.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/token/until.mjs function TakeOne(input) { return IsEqual(input, "") ? [] : [input.slice(0, 1), input.slice(1)]; } @@ -2499,7 +2354,7 @@ function Until(end, input, result = "") { return Match$2(TakeOne(input), (One, Rest) => IsInputMatchSentinal(end, input) ? [result, input] : Until(end, Rest, `${result}${One}`), () => []); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/token/span.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/token/span.mjs function MultiLine(start, end, input) { return Match$2(Take([start], input), (_, Rest) => Match$2(Until([end], Rest), (Until, UntilRest) => Match$2(Take([end], UntilRest), (_, Rest) => [`${Until}`, Rest], () => []), () => []), () => []); } @@ -2511,7 +2366,7 @@ function Span(start, end, multiLine, input) { return multiLine ? MultiLine(start, end, Trim(input)) : SingleLine(start, end, Trim(input)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/token/string.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/token/string.mjs function TakeInitial(quotes, input) { return Take(quotes, input); } @@ -2526,13 +2381,13 @@ function String$1(quotes, input) { return TakeString(quotes, Trim(input)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/token/until_1.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/token/until_1.mjs /** Match Input until but not including End. No match if End not found or match is zero-length. */ function Until_1(end, input) { return Match$2(Until(end, input), (Until, UntilRest) => IsEqual(Until, "") ? [] : [Until, UntilRest], () => []); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/parser.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/parser.mjs const If = (result, left, right = () => []) => result.length === 2 ? left(result) : right(); const GenericParameterExtendsEquals = (input) => If(If(Ident(input), ([_0, input]) => If(Const("extends", input), ([_1, input]) => If(Type(input), ([_2, input]) => If(Const("=", input), ([_3, input]) => If(Type(input), ([_4, input]) => [[ _0, @@ -2900,14 +2755,14 @@ const ModuleDeclaration = (input) => If(If(ExportKeyword(input), ([_0, input]) = const Module$1 = (input) => If(If(ModuleDeclaration(input), ([_0, input]) => If(ModuleDeclarationList(input), ([_1, input]) => [[_0, _1], input])), ([_0, input]) => [ModuleMapping(_0), input]); const Script$1 = (input) => If(If(Module$1(input), ([_0, input]) => [_0, input], () => If(GenericType(input), ([_0, input]) => [_0, input], () => If(Type(input), ([_0, input]) => [_0, input], () => []))), ([_0, input]) => [ScriptMapping(_0), input]); //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/patterns/template.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/patterns/template.mjs /** Parses a Template into a TemplateLiteral types */ function ParseTemplateIntoTypes(template) { const parsed = TemplateLiteralTypes(`\`${template}\``); return IsEqual(parsed.length, 2) ? parsed[0] : Unreachable$1(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/template_literal/encode.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/template_literal/encode.mjs function JoinString(input) { return input.join("|"); } @@ -2958,7 +2813,7 @@ function TemplateLiteralEncode(types) { return TemplateLiteralCreate(EncodePattern(types)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/template_literal/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/template_literal/instantiate.mjs function TemplateLiteralAction(types, options) { return CanInstantiate(types) ? Update$1(TemplateLiteralEncode(types), {}, options) : TemplateLiteralDeferred(types, options); } @@ -2966,7 +2821,7 @@ function TemplateLiteralInstantiate(context, state, types, options) { return TemplateLiteralAction(InstantiateTypes(context, state, types), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/template_literal.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/template_literal.mjs /** Creates a deferred TemplateLiteral action. */ function TemplateLiteralDeferred(types, options = {}) { return Deferred("TemplateLiteral", [types], options); @@ -2990,7 +2845,7 @@ function IsTemplateLiteral(value) { return IsKind(value, "TemplateLiteral"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/result.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/result.mjs var result_exports = /* @__PURE__ */ __exportAll({ ExtendsFalse: () => ExtendsFalse, ExtendsTrue: () => ExtendsTrue, @@ -3026,7 +2881,7 @@ function Match$1(result, true_, false_) { return IsExtendsTrueLike(result) ? true_(result.inferred) : false_(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/extends_right.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/extends_right.mjs function ExtendsRightInfer(inferred, name, left, right) { return Match$1(ExtendsLeft(inferred, left, right), (checkInferred) => ExtendsTrue(Assign(Assign(inferred, checkInferred), { [name]: left })), () => ExtendsFalse()); } @@ -3052,12 +2907,12 @@ function ExtendsRight(inferred, left, right) { return IsAny(right) ? ExtendsRightAny(inferred, left) : IsDependent(right) ? ExtendsRightDependent(inferred, left, right.if, right.then, right.else) : IsEnum$1(right) ? ExtendsRightEnum(inferred, left, right.enum) : IsInfer(right) ? ExtendsRightInfer(inferred, right.name, left, right.extends) : IsIntersect(right) ? ExtendsRightIntersect(inferred, left, right.allOf) : IsTemplateLiteral(right) ? ExtendsRightTemplateLiteral(inferred, left, right.pattern) : IsUnion(right) ? ExtendsRightUnion(inferred, left, right.anyOf) : IsUnknown(right) ? ExtendsTrue(inferred) : ExtendsFalse(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/any.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/any.mjs function ExtendsAny(inferred, left, right) { return IsInfer(right) ? ExtendsRight(inferred, left, right) : IsAny(right) ? ExtendsTrue(inferred) : IsUnknown(right) ? ExtendsTrue(inferred) : ExtendsUnion$1(inferred); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/array.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/array.mjs function ExtendsImmutable(left, right) { const isImmutableLeft = IsImmutable(left); const isImmutableRight = IsImmutable(right); @@ -3067,22 +2922,17 @@ function ExtendsArray(inferred, arrayLeft, left, right) { return IsArray(right) ? ExtendsImmutable(arrayLeft, right) ? ExtendsLeft(inferred, left, right.items) : ExtendsFalse() : ExtendsRight(inferred, arrayLeft, right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/async_iterator.mjs -function ExtendsAsyncIterator(inferred, left, right) { - return IsAsyncIterator(right) ? ExtendsLeft(inferred, left, right.iteratorItems) : ExtendsRight(inferred, AsyncIterator(left), right); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/bigint.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/bigint.mjs function ExtendsBigInt(inferred, left, right) { return IsBigInt(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/boolean.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/boolean.mjs function ExtendsBoolean(inferred, left, right) { return IsBoolean(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/parameters.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/parameters.mjs function ParameterCompare(inferred, left, leftRest, right, rightRest) { const checkLeft = IsInfer(right) ? left : right; const checkRight = IsInfer(right) ? right : left; @@ -3100,47 +2950,42 @@ function ExtendsParameters(inferred, left, right) { return ParametersLeft(inferred, left, right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/return_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/return_type.mjs function ExtendsReturnType(inferred, left, right) { return IsVoid(right) ? ExtendsTrue(inferred) : ExtendsLeft(inferred, left, right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/constructor.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/constructor.mjs function ExtendsConstructor(inferred, parameters, returnType, right) { return IsAny(right) ? ExtendsTrue(inferred) : IsUnknown(right) ? ExtendsTrue(inferred) : IsConstructor(right) ? Match$1(ExtendsParameters(inferred, parameters, right["parameters"]), (inferred) => ExtendsReturnType(inferred, returnType, right["instanceType"]), () => ExtendsFalse()) : ExtendsFalse(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/dependent.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/dependent.mjs function ExtendsDependent(inferred, if_, then_, else_, right) { return Match$1(ExtendsLeft(inferred, if_, right), () => ExtendsLeft(inferred, then_, right), () => ExtendsLeft(inferred, else_, right)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/enum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/enum.mjs function ExtendsEnum(inferred, left, right) { return ExtendsLeft(inferred, EvaluateEnum(left), right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/function.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/function.mjs function ExtendsFunction(inferred, parameters, returnType, right) { return IsAny(right) ? ExtendsTrue(inferred) : IsUnknown(right) ? ExtendsTrue(inferred) : IsFunction(right) ? Match$1(ExtendsParameters(inferred, parameters, right["parameters"]), (inferred) => ExtendsReturnType(inferred, returnType, right["returnType"]), () => ExtendsFalse()) : ExtendsFalse(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/integer.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/integer.mjs function ExtendsInteger(inferred, left, right) { return IsInteger(right) ? ExtendsTrue(inferred) : IsNumber(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/intersect.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/intersect.mjs function ExtendsIntersect(inferred, left, right) { return ExtendsLeft(inferred, EvaluateIntersect(left), right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/iterator.mjs -function ExtendsIterator(inferred, left, right) { - return IsIterator(right) ? ExtendsLeft(inferred, left, right.iteratorItems) : ExtendsRight(inferred, Iterator(left), right); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/literal.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/literal.mjs function ExtendsLiteralValue(inferred, left, right) { return left === right ? ExtendsTrue(inferred) : ExtendsFalse(); } @@ -3160,22 +3005,22 @@ function ExtendsLiteral(inferred, left, right) { return IsBigInt$1(left.const) ? ExtendsLiteralBigInt(inferred, left.const, right) : IsBoolean$2(left.const) ? ExtendsLiteralBoolean(inferred, left.const, right) : IsNumber$2(left.const) ? ExtendsLiteralNumber(inferred, left.const, right) : IsString$2(left.const) ? ExtendsLiteralString(inferred, left.const, right) : Unreachable$1(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/never.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/never.mjs function ExtendsNever(inferred, left, right) { return IsInfer(right) ? ExtendsRight(inferred, left, right) : ExtendsTrue(inferred); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/null.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/null.mjs function ExtendsNull(inferred, left, right) { return IsNull(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/number.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/number.mjs function ExtendsNumber(inferred, left, right) { return IsNumber(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/object.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/object.mjs function ExtendsPropertyOptional(inferred, left, right) { return IsOptional(left) ? IsOptional(right) ? ExtendsTrue(inferred) : ExtendsFalse() : ExtendsTrue(inferred); } @@ -3222,38 +3067,33 @@ function ExtendsObject(inferred, left, right) { return IsRecord(right) ? ExtendsObjectToRecord(inferred, left, RecordPattern(right), RecordValue(right)) : IsObject(right) ? ExtendsObjectToObject(inferred, left, right.properties) : ExtendsRight(inferred, _Object_$1(left), right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/promise.mjs -function ExtendsPromise(inferred, left, right) { - return IsPromise(right) ? ExtendsLeft(inferred, left, right.item) : ExtendsRight(inferred, _Promise_(left), right); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/record.mjs -function FromObject$12(inferred, properties) { +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/record.mjs +function FromObject$11(inferred, properties) { return IsEqual(Keys(properties).length, 0) ? ExtendsTrue(inferred) : ExtendsFalse(); } function FromRecord$5(inferred, _leftKey, leftValue, _rightKey, rightValue) { return ExtendsLeft(inferred, leftValue, rightValue); } function ExtendsRecord(inferred, leftPattern, leftValue, right) { - return IsRecord(right) ? FromRecord$5(inferred, RecordPatternToType(leftPattern), leftValue, RecordPatternToType(RecordPattern(right)), RecordValue(right)) : IsObject(right) ? FromObject$12(inferred, right.properties) : IsAny(right) ? ExtendsTrue(inferred) : IsUnknown(right) ? ExtendsTrue(inferred) : ExtendsFalse(); + return IsRecord(right) ? FromRecord$5(inferred, RecordPatternToType(leftPattern), leftValue, RecordPatternToType(RecordPattern(right)), RecordValue(right)) : IsObject(right) ? FromObject$11(inferred, right.properties) : IsAny(right) ? ExtendsTrue(inferred) : IsUnknown(right) ? ExtendsTrue(inferred) : ExtendsFalse(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/string.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/string.mjs function ExtendsString(inferred, left, right) { return IsString(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/symbol.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/symbol.mjs function ExtendsSymbol(inferred, left, right) { return IsSymbol(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/template_literal.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/template_literal.mjs function ExtendsTemplateLiteral(inferred, left, right) { return ExtendsLeft(inferred, EvaluateTemplateLiteral(left), right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/inference.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/inference.mjs function Inferrable(name, type) { return Create({ "~kind": "Inferrable" }, { name, @@ -3281,7 +3121,7 @@ function InferUnionResult(inferred, name, left, right) { return IsArray$1(results) ? ExtendsTrue(Assign(inferred, { [name]: Union(results) })) : ExtendsFalse(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/tuple.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/tuple.mjs function Reverse(types) { return [...types].reverse(); } @@ -3319,12 +3159,12 @@ function ExtendsTuple(inferred, left, right) { return IsTuple(right) ? ExtendsTupleToTuple(inferred, instantiatedLeft, right.items) : IsArray(right) ? ExtendsTupleToArray(inferred, instantiatedLeft, right.items) : ExtendsRight(inferred, Tuple(instantiatedLeft), right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/undefined.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/undefined.mjs function ExtendsUndefined(inferred, left, right) { return IsVoid(right) ? ExtendsTrue(inferred) : IsUndefined(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/union.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/union.mjs function ExtendsUnionSome(inferred, type, unionTypes) { return ShiftLeft(unionTypes, (head, tail) => Match$1(ExtendsLeft(inferred, type, head), (inferred) => ExtendsTrue(inferred), () => ExtendsUnionSome(inferred, type, tail)), () => ExtendsFalse()); } @@ -3336,22 +3176,22 @@ function ExtendsUnion(inferred, left, right) { return IsInferable(inferrable) ? InferUnionResult(inferred, inferrable.name, left, inferrable.type) : IsUnion(right) ? ExtendsUnionLeft(inferred, left, right.anyOf) : ExtendsUnionLeft(inferred, left, [right]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/unknown.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/unknown.mjs function ExtendsUnknown(inferred, left, right) { return IsInfer(right) ? ExtendsRight(inferred, left, right) : IsAny(right) ? ExtendsTrue(inferred) : IsUnknown(right) ? ExtendsTrue(inferred) : ExtendsFalse(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/void.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/void.mjs function ExtendsVoid(inferred, left, right) { return IsVoid(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/extends_left.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/extends_left.mjs function ExtendsLeft(inferred, left, right) { - return IsAny(left) ? ExtendsAny(inferred, left, right) : IsArray(left) ? ExtendsArray(inferred, left, left.items, right) : IsAsyncIterator(left) ? ExtendsAsyncIterator(inferred, left.iteratorItems, right) : IsBigInt(left) ? ExtendsBigInt(inferred, left, right) : IsBoolean(left) ? ExtendsBoolean(inferred, left, right) : IsConstructor(left) ? ExtendsConstructor(inferred, left.parameters, left.instanceType, right) : IsDependent(left) ? ExtendsDependent(inferred, left.if, left.then, left.else, right) : IsEnum$1(left) ? ExtendsEnum(inferred, left.enum, right) : IsFunction(left) ? ExtendsFunction(inferred, left.parameters, left.returnType, right) : IsInteger(left) ? ExtendsInteger(inferred, left, right) : IsIntersect(left) ? ExtendsIntersect(inferred, left.allOf, right) : IsIterator(left) ? ExtendsIterator(inferred, left.iteratorItems, right) : IsLiteral(left) ? ExtendsLiteral(inferred, left, right) : IsNever(left) ? ExtendsNever(inferred, left, right) : IsNull(left) ? ExtendsNull(inferred, left, right) : IsNumber(left) ? ExtendsNumber(inferred, left, right) : IsObject(left) ? ExtendsObject(inferred, left.properties, right) : IsPromise(left) ? ExtendsPromise(inferred, left.item, right) : IsRecord(left) ? ExtendsRecord(inferred, RecordPattern(left), RecordValue(left), right) : IsString(left) ? ExtendsString(inferred, left, right) : IsSymbol(left) ? ExtendsSymbol(inferred, left, right) : IsTemplateLiteral(left) ? ExtendsTemplateLiteral(inferred, left.pattern, right) : IsTuple(left) ? ExtendsTuple(inferred, left.items, right) : IsUndefined(left) ? ExtendsUndefined(inferred, left, right) : IsUnion(left) ? ExtendsUnion(inferred, left.anyOf, right) : IsUnknown(left) ? ExtendsUnknown(inferred, left, right) : IsVoid(left) ? ExtendsVoid(inferred, left, right) : ExtendsFalse(); + return IsAny(left) ? ExtendsAny(inferred, left, right) : IsArray(left) ? ExtendsArray(inferred, left, left.items, right) : IsBigInt(left) ? ExtendsBigInt(inferred, left, right) : IsBoolean(left) ? ExtendsBoolean(inferred, left, right) : IsConstructor(left) ? ExtendsConstructor(inferred, left.parameters, left.instanceType, right) : IsDependent(left) ? ExtendsDependent(inferred, left.if, left.then, left.else, right) : IsEnum$1(left) ? ExtendsEnum(inferred, left.enum, right) : IsFunction(left) ? ExtendsFunction(inferred, left.parameters, left.returnType, right) : IsInteger(left) ? ExtendsInteger(inferred, left, right) : IsIntersect(left) ? ExtendsIntersect(inferred, left.allOf, right) : IsLiteral(left) ? ExtendsLiteral(inferred, left, right) : IsNever(left) ? ExtendsNever(inferred, left, right) : IsNull(left) ? ExtendsNull(inferred, left, right) : IsNumber(left) ? ExtendsNumber(inferred, left, right) : IsObject(left) ? ExtendsObject(inferred, left.properties, right) : IsRecord(left) ? ExtendsRecord(inferred, RecordPattern(left), RecordValue(left), right) : IsString(left) ? ExtendsString(inferred, left, right) : IsSymbol(left) ? ExtendsSymbol(inferred, left, right) : IsTemplateLiteral(left) ? ExtendsTemplateLiteral(inferred, left.pattern, right) : IsTuple(left) ? ExtendsTuple(inferred, left.items, right) : IsUndefined(left) ? ExtendsUndefined(inferred, left, right) : IsUnion(left) ? ExtendsUnion(inferred, left.anyOf, right) : IsUnknown(left) ? ExtendsUnknown(inferred, left, right) : IsVoid(left) ? ExtendsVoid(inferred, left, right) : ExtendsFalse(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/interface/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/interface/instantiate.mjs function InterfaceOperation(heritage, properties) { return EvaluateIntersect([...heritage, _Object_$1(properties)]); } @@ -3362,7 +3202,7 @@ function InterfaceInstantiate(context, state, heritage, properties, options) { return InterfaceAction(InstantiateTypes(context, state, heritage), InstantiateProperties(context, state, properties), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/interface.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/interface.mjs /** Creates a deferred Interface action. */ function InterfaceDeferred(heritage, properties, options = {}) { return Deferred("Interface", [heritage, properties], options); @@ -3376,7 +3216,7 @@ function Interface(heritage, properties, options = {}) { return InterfaceAction(heritage, properties, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/cyclic/check.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/cyclic/check.mjs function FromRef$7(stack, context, ref) { return stack.includes(ref) ? true : FromType$20([...stack, ref], context, context[ref]); } @@ -3387,14 +3227,14 @@ function FromTypes$4(stack, context, types) { return ShiftLeft(types, (left, right) => FromType$20(stack, context, left) ? true : FromTypes$4(stack, context, right), () => false); } function FromType$20(stack, context, type) { - return IsRef$1(type) ? FromRef$7(stack, context, type.$ref) : IsArray(type) ? FromType$20(stack, context, type.items) : IsAsyncIterator(type) ? FromType$20(stack, context, type.iteratorItems) : IsConstructor(type) ? FromTypes$4(stack, context, [...type.parameters, type.instanceType]) : IsFunction(type) ? FromTypes$4(stack, context, [...type.parameters, type.returnType]) : IsInterfaceDeferred(type) ? FromProperties$4(stack, context, type.parameters[1]) : IsIntersect(type) ? FromTypes$4(stack, context, type.allOf) : IsIterator(type) ? FromType$20(stack, context, type.iteratorItems) : IsObject(type) ? FromProperties$4(stack, context, type.properties) : IsPromise(type) ? FromType$20(stack, context, type.item) : IsUnion(type) ? FromTypes$4(stack, context, type.anyOf) : IsTuple(type) ? FromTypes$4(stack, context, type.items) : IsRecord(type) ? FromType$20(stack, context, RecordValue(type)) : false; + return IsRef$1(type) ? FromRef$7(stack, context, type.$ref) : IsArray(type) ? FromType$20(stack, context, type.items) : IsConstructor(type) ? FromTypes$4(stack, context, [...type.parameters, type.instanceType]) : IsFunction(type) ? FromTypes$4(stack, context, [...type.parameters, type.returnType]) : IsInterfaceDeferred(type) ? FromProperties$4(stack, context, type.parameters[1]) : IsIntersect(type) ? FromTypes$4(stack, context, type.allOf) : IsObject(type) ? FromProperties$4(stack, context, type.properties) : IsUnion(type) ? FromTypes$4(stack, context, type.anyOf) : IsTuple(type) ? FromTypes$4(stack, context, type.items) : IsRecord(type) ? FromType$20(stack, context, RecordValue(type)) : false; } /** Performs a cyclic check on the given type. Initial key stack can be empty, but faster if specified */ function CyclicCheck(stack, context, type) { return FromType$20(stack, context, type); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/cyclic/candidates.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/cyclic/candidates.mjs function ResolveCandidateKeys(context, keys) { return keys.reduce((result, left) => { return CyclicCheck([left], context, context[left]) ? [...result, left] : result; @@ -3405,7 +3245,7 @@ function CyclicCandidates(context) { return ResolveCandidateKeys(context, PropertyKeys(context)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/cyclic/dependencies.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/cyclic/dependencies.mjs function FromRef$6(context, ref, result) { return result.includes(ref) ? result : ref in context ? FromType$19(context, context[ref], [...result, ref]) : Unreachable$1(); } @@ -3418,14 +3258,14 @@ function FromTypes$3(context, types, result) { }, result); } function FromType$19(context, type, result) { - return IsRef$1(type) ? FromRef$6(context, type.$ref, result) : IsArray(type) ? FromType$19(context, type.items, result) : IsAsyncIterator(type) ? FromType$19(context, type.iteratorItems, result) : IsConstructor(type) ? FromTypes$3(context, [...type.parameters, type.instanceType], result) : IsFunction(type) ? FromTypes$3(context, [...type.parameters, type.returnType], result) : IsInterfaceDeferred(type) ? FromProperties$3(context, type.parameters[1], result) : IsIntersect(type) ? FromTypes$3(context, type.allOf, result) : IsIterator(type) ? FromType$19(context, type.iteratorItems, result) : IsObject(type) ? FromProperties$3(context, type.properties, result) : IsPromise(type) ? FromType$19(context, type.item, result) : IsUnion(type) ? FromTypes$3(context, type.anyOf, result) : IsTuple(type) ? FromTypes$3(context, type.items, result) : IsRecord(type) ? FromType$19(context, RecordValue(type), result) : result; + return IsRef$1(type) ? FromRef$6(context, type.$ref, result) : IsArray(type) ? FromType$19(context, type.items, result) : IsConstructor(type) ? FromTypes$3(context, [...type.parameters, type.instanceType], result) : IsFunction(type) ? FromTypes$3(context, [...type.parameters, type.returnType], result) : IsInterfaceDeferred(type) ? FromProperties$3(context, type.parameters[1], result) : IsIntersect(type) ? FromTypes$3(context, type.allOf, result) : IsObject(type) ? FromProperties$3(context, type.properties, result) : IsUnion(type) ? FromTypes$3(context, type.anyOf, result) : IsTuple(type) ? FromTypes$3(context, type.items, result) : IsRecord(type) ? FromType$19(context, RecordValue(type), result) : result; } /** Returns dependent cyclic keys for the given type. This function is used to dead-type-eliminate (DTE) for initializing TCyclic types. */ function CyclicDependencies(context, key, type) { return FromType$19(context, type, [key]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/cyclic/extends.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/cyclic/extends.mjs function FromRef$5(_ref) { return Any(); } @@ -3443,7 +3283,7 @@ function FromTypes$2(types) { }, []); } function FromType$18(type) { - return IsRef$1(type) ? FromRef$5(type.$ref) : IsArray(type) ? _Array_(FromType$18(type.items), ArrayOptions(type)) : IsAsyncIterator(type) ? AsyncIterator(FromType$18(type.iteratorItems)) : IsConstructor(type) ? Constructor(FromTypes$2(type.parameters), FromType$18(type.instanceType)) : IsFunction(type) ? _Function_$1(FromTypes$2(type.parameters), FromType$18(type.returnType)) : IsIntersect(type) ? Intersect(FromTypes$2(type.allOf)) : IsIterator(type) ? Iterator(FromType$18(type.iteratorItems)) : IsObject(type) ? _Object_$1(FromProperties$2(type.properties)) : IsPromise(type) ? _Promise_(FromType$18(type.item)) : IsRecord(type) ? Record(RecordKey(type), FromType$18(RecordValue(type))) : IsUnion(type) ? Union(FromTypes$2(type.anyOf)) : IsTuple(type) ? Tuple(FromTypes$2(type.items)) : type; + return IsRef$1(type) ? FromRef$5(type.$ref) : IsArray(type) ? _Array_(FromType$18(type.items), ArrayOptions(type)) : IsConstructor(type) ? Constructor(FromTypes$2(type.parameters), FromType$18(type.instanceType)) : IsFunction(type) ? _Function_$1(FromTypes$2(type.parameters), FromType$18(type.returnType)) : IsIntersect(type) ? Intersect(FromTypes$2(type.allOf)) : IsObject(type) ? _Object_$1(FromProperties$2(type.properties)) : IsRecord(type) ? Record(RecordKey(type), FromType$18(RecordValue(type))) : IsUnion(type) ? Union(FromTypes$2(type.anyOf)) : IsTuple(type) ? Tuple(FromTypes$2(type.items)) : type; } function CyclicAnyFromParameters(defs, ref) { return ref in defs ? FromType$18(defs[ref]) : Unknown(); @@ -3453,7 +3293,7 @@ function CyclicExtends(type) { return CyclicAnyFromParameters(type.$defs, type.$ref); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/cyclic/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/cyclic/instantiate.mjs function CyclicInterface(context, heritage, properties) { const instantiatedHeritage = InstantiateTypes(context, State([], []), heritage); const instantiatedProperties = InstantiateProperties({}, State([], []), properties); @@ -3473,7 +3313,7 @@ function InstantiateCyclic(context, ref, type) { return Cyclic(CyclicDefinitions(context, CyclicDependencies(context, ref, type)), ref); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/cyclic/target.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/cyclic/target.mjs function Resolve(defs, ref) { return ref in defs ? IsRef$1(defs[ref]) ? Resolve(defs, defs[ref].$ref) : defs[ref] : Never(); } @@ -3482,7 +3322,7 @@ function CyclicTarget(defs, ref) { return Resolve(defs, ref); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/extends/extends.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/extends/extends.mjs function Canonical(type) { return IsCyclic(type) ? CyclicExtends(type) : IsUnsafe(type) ? Unknown() : type; } @@ -3491,7 +3331,7 @@ function Extends(inferred, left, right) { return ExtendsLeft(inferred, Canonical(left), Canonical(right)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/evaluate/compare.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/evaluate/compare.mjs const ResultEqual = "equal"; const ResultDisjoint = "disjoint"; const ResultLeftInside = "left-inside"; @@ -3502,7 +3342,7 @@ function Compare(left, right) { return IsExtendsTrueLike(extendsCheck[0]) && IsExtendsTrueLike(extendsCheck[1]) ? ResultEqual : IsExtendsTrueLike(extendsCheck[0]) && IsExtendsFalse(extendsCheck[1]) ? ResultLeftInside : IsExtendsFalse(extendsCheck[0]) && IsExtendsTrueLike(extendsCheck[1]) ? ResultRightInside : ResultDisjoint; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/evaluate/broaden.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/evaluate/broaden.mjs function BroadFilter(type, types) { return types.filter((left) => { return Compare(type, left) === "right-inside" ? false : true; @@ -3528,7 +3368,7 @@ function Broaden(types) { return Flatten(BroadenTypes(types)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/evaluate/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/evaluate/instantiate.mjs function EvaluateAction(type, options) { return Update$1(EvaluateType(type), {}, options); } @@ -3536,7 +3376,7 @@ function EvaluateInstantiate(context, state, type, options) { return EvaluateAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/call/distribute_arguments.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/call/distribute_arguments.mjs function CollectDistributionNames(expression, result = []) { return IsDeferred(expression) && IsEqual(expression.action, "Conditional") ? IsRef$1(expression.parameters[0]) ? CollectDistributionNames(expression.parameters[2], CollectDistributionNames(expression.parameters[3], [...result, expression.parameters[0]["$ref"]])) : CollectDistributionNames(expression.parameters[2], CollectDistributionNames(expression.parameters[3], result)) : IsDeferred(expression) && IsEqual(expression.action, "Mapped") ? IsDeferred(expression.parameters[1]) && IsEqual(expression.parameters[1].action, "KeyOf") && IsRef$1(expression.parameters[1].parameters[0]) ? [...result, expression.parameters[1].parameters[0]["$ref"]] : result : result; } @@ -3567,7 +3407,7 @@ function DistributeArguments(parameters, arguments_, expression) { return IsDeferred(expression) && IsEqual(expression.action, "Conditional") ? Distribute(zippedArguments) : IsDeferred(expression) && IsEqual(expression.action, "Mapped") ? Distribute(zippedArguments) : [arguments_]; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/call/resolve_target.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/call/resolve_target.mjs function FromNotResolvable() { return ["(not-resolvable)", Never()]; } @@ -3588,7 +3428,7 @@ function ResolveTarget(context, target, arguments_) { return FromType$17(context, "(anonymous)", target, arguments_); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/call/resolve_arguments.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/call/resolve_arguments.mjs function AssertArgumentExtends(name, type, extends_) { if (IsInfer(type) || IsCall(type) || IsExtendsTrueLike(Extends({}, type, extends_))) return; const cause = { @@ -3615,7 +3455,7 @@ function ResolveArgumentsContext(context, state, parameters, arguments_) { return BindParameters(context, state, parameters, arguments_); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/call/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/call/instantiate.mjs function Peek(state) { return IsGreaterThan(state.callstack.length, 0) ? state.callstack[state.callstack.length - 1] : ""; } @@ -3642,7 +3482,7 @@ function CallInstantiate(context, state, target, arguments_) { return IsGeneric(type) ? IsTailCall(state, name) ? CallConstruct(Ref$1(name), instantiatedArguments) : CallImmediate(context, state, Ref$1(name), type.parameters, type.expression, instantiatedArguments) : CallConstruct(target, instantiatedArguments); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/types/call.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/types/call.mjs function CallConstruct(target, arguments_) { return Create({ ["~kind"]: "Call" }, { type: "call", @@ -3659,7 +3499,7 @@ function IsCall(value) { return IsKind(value, "Call"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/immutable/instantiate_remove.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/immutable/instantiate_remove.mjs function RemoveImmutableOperation(type) { return Discard(type, ["~immutable"]); } @@ -3670,57 +3510,32 @@ function RemoveImmutableInstantiate(context, state, type, options) { return RemoveImmutableAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/awaited.mjs -/** Creates a deferred Awaited action. */ -function AwaitedDeferred(type, options = {}) { - return Deferred("Awaited", [type], options); -} -/** -* Applies an Awaited action to a type. -* -* @deprecated This action is being removed in the next version of TypeBox. -*/ -function Awaited(type, options = {}) { - return AwaitedAction(type, options); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/awaited/instantiate.mjs -function AwaitedOperation(type) { - return IsPromise(type) ? AwaitedOperation(type.item) : type; -} -function AwaitedAction(type, options) { - return CanInstantiate([type]) ? Update$1(AwaitedOperation(type), {}, options) : AwaitedDeferred(type, options); -} -function AwaitedInstantiate(context, state, type, options) { - return AwaitedAction(InstantiateType(context, state, type), options); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/intrinsics/mapping.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/intrinsics/mapping.mjs function ApplyMapping(mapping, value) { return mapping(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/intrinsics/from_literal.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/intrinsics/from_literal.mjs function FromLiteral$3(mapping, value) { return IsString$2(value) ? Literal(ApplyMapping(mapping, value)) : Literal(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/intrinsics/from_template_literal.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/intrinsics/from_template_literal.mjs function FromTemplateLiteral$3(mapping, pattern) { return FromType$16(mapping, EvaluateTemplateLiteral(pattern)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/intrinsics/from_union.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/intrinsics/from_union.mjs function FromUnion$10(mapping, types) { return Union(types.map((type) => FromType$16(mapping, type))); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/intrinsics/from_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/intrinsics/from_type.mjs function FromType$16(mapping, type) { return IsLiteral(type) ? FromLiteral$3(mapping, type.const) : IsTemplateLiteral(type) ? FromTemplateLiteral$3(mapping, type.pattern) : IsUnion(type) ? FromUnion$10(mapping, type.anyOf) : type; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/capitalize.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/capitalize.mjs /** Creates a deferred Capitalize action. */ function CapitalizeDeferred(type, options = {}) { return Deferred("Capitalize", [type], options); @@ -3730,7 +3545,7 @@ function Capitalize(type, options = {}) { return CapitalizeAction(type, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/lowercase.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/lowercase.mjs /** Creates a deferred Lowercase action. */ function LowercaseDeferred(type, options = {}) { return Deferred("Lowercase", [type], options); @@ -3740,7 +3555,7 @@ function Lowercase(type, options = {}) { return LowercaseAction(type, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/uncapitalize.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/uncapitalize.mjs /** Creates a deferred Uncapitalize action. */ function UncapitalizeDeferred(type, options = {}) { return Deferred("Uncapitalize", [type], options); @@ -3750,7 +3565,7 @@ function Uncapitalize(type, options = {}) { return UncapitalizeAction(type, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/uppercase.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/uppercase.mjs /** Creates a deferred Uppercase action. */ function UppercaseDeferred(type, options = {}) { return Deferred("Uppercase", [type], options); @@ -3760,7 +3575,7 @@ function Uppercase(type, options = {}) { return UppercaseAction(type, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/intrinsics/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/intrinsics/instantiate.mjs const CapitalizeMapping = (input) => input[0].toUpperCase() + input.slice(1); const LowercaseMapping = (input) => input.toLowerCase(); const UncapitalizeMapping = (input) => input[0].toLowerCase() + input.slice(1); @@ -3790,7 +3605,7 @@ function UppercaseInstantiate(context, state, type, options) { return UppercaseAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/conditional.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/conditional.mjs /** Creates a deferred Conditional action. */ function ConditionalDeferred(left, right, true_, false_, options = {}) { return Deferred("Conditional", [ @@ -3805,7 +3620,7 @@ function Conditional(left, right, true_, false_, options = {}) { return ConditionalAction({}, State([], []), left, right, true_, false_, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/conditional/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/conditional/instantiate.mjs function ConditionalOperation(context, state, left, right, true_, false_) { const extendsResult = Extends(context, left, right); return IsExtendsUnion(extendsResult) ? Union([InstantiateType(extendsResult.inferred, state, true_), InstantiateType(context, state, false_)]) : IsExtendsTrue(extendsResult) ? InstantiateType(extendsResult.inferred, state, true_) : InstantiateType(context, state, false_); @@ -3817,7 +3632,7 @@ function ConditionalInstantiate(context, state, left, right, true_, false_, opti return ConditionalAction(context, state, InstantiateType(context, state, left), InstantiateType(context, state, right), true_, false_, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/constructor_parameters.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/constructor_parameters.mjs /** Creates a deferred ConstructorParameters action. */ function ConstructorParametersDeferred(type, options = {}) { return Deferred("ConstructorParameters", [type], options); @@ -3827,7 +3642,7 @@ function ConstructorParameters(type, options = {}) { return ConstructorParametersAction(type, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/constructor_parameters/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/constructor_parameters/instantiate.mjs function ConstructorParametersOperation(type) { const parameters = IsConstructor(type) ? type["parameters"] : []; return Tuple(InstantiateElements({}, State([], []), parameters)); @@ -3839,7 +3654,7 @@ function ConstructorParametersInstantiate(context, state, type, options) { return ConstructorParametersAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/exclude.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/exclude.mjs /** Creates a deferred Exclude action. */ function ExcludeDeferred(left, right, options = {}) { return Deferred("Exclude", [left, right], options); @@ -3849,7 +3664,7 @@ function Exclude(left, right, options = {}) { return ExcludeAction(left, right, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/exclude/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/exclude/instantiate.mjs function ExcludeAction(left, right, options) { return CanInstantiate([left, right]) ? Update$1(ExcludeOperation(left, right), {}, options) : ExcludeDeferred(left, right, options); } @@ -3857,7 +3672,7 @@ function ExcludeInstantiate(context, state, left, right, options) { return ExcludeAction(InstantiateType(context, state, left), InstantiateType(context, state, right), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/extract.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/extract.mjs /** Creates a deferred Extract action. */ function ExtractDeferred(left, right, options = {}) { return Deferred("Extract", [left, right], options); @@ -3867,7 +3682,7 @@ function Extract(left, right, options = {}) { return ExtractAction(left, right, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/extract/operation.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/extract/operation.mjs function ExtractType(left, right) { return IsExtendsTrueLike(Extends({}, left, right)) ? [left] : []; } @@ -3881,7 +3696,7 @@ function ExtractOperation(left, right) { return EvaluateUnion(ExtractUnion(IsUnion(evaluated) ? evaluated.anyOf : [evaluated], right)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/extract/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/extract/instantiate.mjs function ExtractAction(left, right, options) { return CanInstantiate([left, right]) ? Update$1(ExtractOperation(left, right), {}, options) : ExtractDeferred(left, right, options); } @@ -3889,7 +3704,7 @@ function ExtractInstantiate(context, state, left, right, options) { return ExtractAction(InstantiateType(context, state, left), InstantiateType(context, state, right), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/helpers/keys_to_indexer.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/helpers/keys_to_indexer.mjs function KeysToLiterals(keys) { return keys.reduce((result, left) => { return IsLiteralValue(left) ? [...result, Literal(left)] : result; @@ -3899,7 +3714,7 @@ function KeysToIndexer(keys) { return Union(KeysToLiterals(keys)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/indexed.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/indexed.mjs /** Creates a deferred Index action. */ function IndexDeferred(type, indexer, options = {}) { return Deferred("Index", [type, indexer], options); @@ -3909,17 +3724,17 @@ function Index(type, indexer_or_keys, options = {}) { return IndexAction(type, IsArray$1(indexer_or_keys) ? KeysToIndexer(indexer_or_keys) : indexer_or_keys, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/object/from_cyclic.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/object/from_cyclic.mjs function FromCyclic$8(defs, ref) { return FromType$15(CyclicTarget(defs, ref)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/object/from_dependent.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/object/from_dependent.mjs function FromDependent$4(if_, then_, else_) { return FromType$15(EvaluateDependent(if_, then_, else_)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/object/from_intersect.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/object/from_intersect.mjs function CollapseIntersectProperties(left, right) { const leftKeys = Keys(left).filter((key) => !HasPropertyKey(right, key)); const rightKeys = Keys(right).filter((key) => !HasPropertyKey(left, key)); @@ -3944,17 +3759,17 @@ function FromIntersect$8(types) { }, {}); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/object/from_object.mjs -function FromObject$11(properties) { +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/object/from_object.mjs +function FromObject$10(properties) { return properties; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/object/from_tuple.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/object/from_tuple.mjs function FromTuple$7(types) { return FromType$15(TupleToObject(Tuple(types))); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/object/from_union.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/object/from_union.mjs function CollapseUnionProperties(left, right) { return Keys(left).filter((key) => key in right).reduce((result, key) => { return { @@ -3970,12 +3785,12 @@ function FromUnion$9(types) { return ShiftLeft(types, (left, right) => ReduceVariants(right, FromType$15(left)), () => Unreachable$1()); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/object/from_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/object/from_type.mjs function FromType$15(type) { - return IsCyclic(type) ? FromCyclic$8(type.$defs, type.$ref) : IsDependent(type) ? FromDependent$4(type.if, type.then, type.else) : IsIntersect(type) ? FromIntersect$8(type.allOf) : IsUnion(type) ? FromUnion$9(type.anyOf) : IsTuple(type) ? FromTuple$7(type.items) : IsObject(type) ? FromObject$11(type.properties) : {}; + return IsCyclic(type) ? FromCyclic$8(type.$defs, type.$ref) : IsDependent(type) ? FromDependent$4(type.if, type.then, type.else) : IsIntersect(type) ? FromIntersect$8(type.allOf) : IsUnion(type) ? FromUnion$9(type.anyOf) : IsTuple(type) ? FromTuple$7(type.items) : IsObject(type) ? FromObject$10(type.properties) : {}; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/object/collapse.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/object/collapse.mjs /** * Collapses a type into a TObject schema. This is a lossy fast path used to * normalize arbitrary TSchema types into a TObject structure. This function is @@ -3986,14 +3801,14 @@ function CollapseToObject(type) { return _Object_$1(FromType$15(type)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/helpers/keys.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/helpers/keys.mjs const integerKeyPattern = /* @__PURE__ */ new RegExp("^(?:0|[1-9][0-9]*)$"); function ConvertToIntegerKey(value) { const normal = `${value}`; return integerKeyPattern.test(normal) ? parseInt(normal) : value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexed/from_array.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexed/from_array.mjs function NormalizeLiteral(value) { return Literal(ConvertToIntegerKey(value)); } @@ -4003,53 +3818,53 @@ function NormalizeIndexerTypes(types) { function NormalizeIndexer(type) { return IsIntersect(type) ? Intersect(NormalizeIndexerTypes(type.allOf)) : IsUnion(type) ? Union(NormalizeIndexerTypes(type.anyOf)) : IsLiteral(type) ? NormalizeLiteral(type.const) : type; } -function FromArray$8(type, indexer) { +function FromArray$7(type, indexer) { return IsExtendsTrueLike(Extends({}, NormalizeIndexer(indexer), Number$2())) ? type : IsLiteral(indexer) && IsEqual(indexer.const, "length") ? Number$2() : Never(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexable/from_cyclic.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexable/from_cyclic.mjs function FromCyclic$7(defs, ref) { return FromType$14(CyclicTarget(defs, ref)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexable/from_dependent.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexable/from_dependent.mjs function FromDependent$3(if_, then_, else_) { return FromType$14(EvaluateDependent(if_, then_, else_)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexable/from_enum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexable/from_enum.mjs function FromEnum$2(values) { return FromType$14(EvaluateEnum(values)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexable/from_intersect.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexable/from_intersect.mjs function FromIntersect$7(types) { return FromType$14(EvaluateIntersect(types)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexable/from_literal.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexable/from_literal.mjs function FromLiteral$2(value) { return [`${value}`]; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexable/from_template_literal.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexable/from_template_literal.mjs function FromTemplateLiteral$2(pattern) { return FromType$14(EvaluateTemplateLiteral(pattern)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexable/from_union.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexable/from_union.mjs function FromUnion$8(types) { return types.reduce((result, left) => { return [...result, ...FromType$14(left)]; }, []); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexable/from_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexable/from_type.mjs function FromType$14(type) { return IsCyclic(type) ? FromCyclic$7(type.$defs, type.$ref) : IsDependent(type) ? FromDependent$3(type.if, type.then, type.else) : IsEnum$1(type) ? FromEnum$2(type.enum) : IsIntersect(type) ? FromIntersect$7(type.allOf) : IsLiteral(type) ? FromLiteral$2(type.const) : IsTemplateLiteral(type) ? FromTemplateLiteral$2(type.pattern) : IsUnion(type) ? FromUnion$8(type.anyOf) : []; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexable/to_indexable_keys.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexable/to_indexable_keys.mjs /** * Transforms a type meant as an Indexer into string[] array which is used by Indexable types * like Index, Pick and Omit to select from property keys. This function should only be used @@ -4060,18 +3875,18 @@ function ToIndexableKeys(type) { return FromType$14(type); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/this/expand_this.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/this/expand_this.mjs function FromTypes$1(properties, types) { return types.map((type) => FromType$13(properties, type)); } function FromType$13(properties, type) { - return IsArray(type) ? _Array_(FromType$13(properties, type.items)) : IsAsyncIterator(type) ? AsyncIterator(FromType$13(properties, type.iteratorItems)) : IsConstructor(type) ? Constructor(FromTypes$1(properties, type.parameters), FromType$13(properties, type.instanceType)) : IsFunction(type) ? _Function_$1(FromTypes$1(properties, type.parameters), FromType$13(properties, type.returnType)) : IsIterator(type) ? Iterator(FromType$13(properties, type.iteratorItems)) : IsPromise(type) ? _Promise_(FromType$13(properties, type.item)) : IsTuple(type) ? Tuple(FromTypes$1(properties, type.items)) : IsUnion(type) ? Union(FromTypes$1(properties, type.anyOf)) : IsIntersect(type) ? Intersect(FromTypes$1(properties, type.allOf)) : IsThis(type) ? _Object_$1(properties) : type; + return IsArray(type) ? _Array_(FromType$13(properties, type.items)) : IsConstructor(type) ? Constructor(FromTypes$1(properties, type.parameters), FromType$13(properties, type.instanceType)) : IsFunction(type) ? _Function_$1(FromTypes$1(properties, type.parameters), FromType$13(properties, type.returnType)) : IsTuple(type) ? Tuple(FromTypes$1(properties, type.items)) : IsUnion(type) ? Union(FromTypes$1(properties, type.anyOf)) : IsIntersect(type) ? Intersect(FromTypes$1(properties, type.allOf)) : IsThis(type) ? _Object_$1(properties) : type; } function ExpandThis(properties, type) { return FromType$13(properties, type); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexed/from_object.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexed/from_object.mjs function IndexProperty(properties, key) { return ExpandThis(properties, key in properties ? properties[key] : Never()); } @@ -4090,11 +3905,11 @@ function NumericKeys(keys) { function FromIndexerNumber(properties) { return EvaluateUnion(IndexProperties(properties, NumericKeys(PropertyKeys(properties)))); } -function FromObject$10(properties, indexer) { +function FromObject$9(properties, indexer) { return IsNumber(indexer) ? FromIndexerNumber(properties) : FromIndexer(properties, indexer); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexed/array_indexer.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexed/array_indexer.mjs function ConvertLiteral(value) { return Literal(ConvertToIntegerKey(value)); } @@ -4106,7 +3921,7 @@ function FormatArrayIndexer(type) { return IsIntersect(type) ? Intersect(ArrayIndexerTypes(type.allOf)) : IsUnion(type) ? Union(ArrayIndexerTypes(type.anyOf)) : IsLiteral(type) ? ConvertLiteral(type.const) : type; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexed/from_tuple.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexed/from_tuple.mjs function IndexElementsWithIndexer(types, indexer) { return types.reduceRight((result, right, index) => { return IsExtendsTrueLike(Extends({}, Literal(index), indexer)) ? [right, ...result] : result; @@ -4122,12 +3937,12 @@ function FromTuple$6(types, indexer) { return IsLiteral(indexer) && IsEqual(indexer.const, "length") ? Literal(types.length) : IsNumber(indexer) || IsInteger(indexer) ? FromTupleWithoutIndexer(types) : FromTupleWithIndexer(types, indexer); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexed/from_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexed/from_type.mjs function FromType$12(type, indexer) { - return IsArray(type) ? FromArray$8(type.items, indexer) : IsObject(type) ? FromObject$10(type.properties, indexer) : IsTuple(type) ? FromTuple$6(type.items, indexer) : Never(); + return IsArray(type) ? FromArray$7(type.items, indexer) : IsObject(type) ? FromObject$9(type.properties, indexer) : IsTuple(type) ? FromTuple$6(type.items, indexer) : Never(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexed/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexed/instantiate.mjs function NormalizeType$1(type) { return IsCyclic(type) || IsDependent(type) || IsIntersect(type) || IsUnion(type) ? CollapseToObject(type) : type; } @@ -4138,7 +3953,7 @@ function IndexInstantiate(context, state, type, indexer, options) { return IndexAction(InstantiateType(context, state, type), InstantiateType(context, state, indexer), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/instance_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/instance_type.mjs /** Creates a deferred InstanceType action. */ function InstanceTypeDeferred(type, options = {}) { return Deferred("InstanceType", [type], options); @@ -4148,7 +3963,7 @@ function InstanceType(type, options = {}) { return InstanceTypeAction(type, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/instance_type/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/instance_type/instantiate.mjs function InstanceTypeOperation(type) { return IsConstructor(type) ? type["instanceType"] : Never(); } @@ -4159,7 +3974,7 @@ function InstanceTypeInstantiate(context, state, type, options = {}) { return InstanceTypeAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/keyof.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/keyof.mjs /** Creates a deferred KeyOf action. */ function KeyOfDeferred(type, options = {}) { return Deferred("KeyOf", [type], options); @@ -4169,7 +3984,7 @@ function KeyOf(type, options = {}) { return KeyOfAction(type, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/keyof/from_any.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/keyof/from_any.mjs function FromAny() { return Union([ Number$2(), @@ -4178,37 +3993,37 @@ function FromAny() { ]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/keyof/from_array.mjs -function FromArray$7(_type) { +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/keyof/from_array.mjs +function FromArray$6(_type) { return Number$2(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/keyof/from_object.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/keyof/from_object.mjs function FromPropertyKeys(keys) { return keys.reduce((result, left) => { return IsLiteralValue(left) ? [...result, Literal(ConvertToIntegerKey(left))] : Unreachable$1(); }, []); } -function FromObject$9(properties) { +function FromObject$8(properties) { return EvaluateUnionFast(FromPropertyKeys(Keys(properties))); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/keyof/from_record.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/keyof/from_record.mjs function FromRecord$4(type) { return RecordKey(type); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/keyof/from_tuple.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/keyof/from_tuple.mjs function FromTuple$5(types) { return EvaluateUnionFast(types.map((_, index) => Literal(index))); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/keyof/from_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/keyof/from_type.mjs function FromType$11(type) { - return IsAny(type) ? FromAny() : IsArray(type) ? FromArray$7(type.items) : IsObject(type) ? FromObject$9(type.properties) : IsRecord(type) ? FromRecord$4(type) : IsTuple(type) ? FromTuple$5(type.items) : Never(); + return IsAny(type) ? FromAny() : IsArray(type) ? FromArray$6(type.items) : IsObject(type) ? FromObject$8(type.properties) : IsRecord(type) ? FromRecord$4(type) : IsTuple(type) ? FromTuple$5(type.items) : Never(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/keyof/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/keyof/instantiate.mjs function NormalizeType(type) { return IsCyclic(type) || IsDependent(type) || IsIntersect(type) || IsUnion(type) ? CollapseToObject(type) : type; } @@ -4219,7 +4034,7 @@ function KeyOfInstantiate(context, state, type, options) { return KeyOfAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/mapped.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/mapped.mjs /** Creates a deferred Mapped action. */ function MappedDeferred(identifier, type, as, property, options = {}) { return Deferred("Mapped", [ @@ -4234,7 +4049,7 @@ function Mapped(identifier, type, as, property, options = {}) { return MappedAction({}, State([], []), identifier, type, as, property, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/mapped/mapped_variants.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/mapped/mapped_variants.mjs function FromTemplateLiteral$1(pattern) { return FromType$10(EvaluateTemplateLiteral(pattern)); } @@ -4256,7 +4071,7 @@ function MappedVariants(type) { return FromType$10(type); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/mapped/mapped_operation.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/mapped/mapped_operation.mjs function CanonicalAs(instantiatedAs) { return IsTemplateLiteral(instantiatedAs) ? EvaluateTemplateLiteral(instantiatedAs.pattern) : instantiatedAs; } @@ -4280,7 +4095,7 @@ function MappedOperation(context, state, identifier, type, as, property) { return EvaluateIntersect(MappedObjects(MappedProperties(context, state, identifier, MappedVariants(type), as, property))); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/mapped/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/mapped/instantiate.mjs function MappedAction(context, state, identifier, type, as, property, options) { return CanInstantiate([type]) ? Update$1(MappedOperation(context, state, identifier, type, as, property), {}, options) : MappedDeferred(identifier, type, as, property, options); } @@ -4288,7 +4103,7 @@ function MappedInstantiate(context, state, identifier, type, as, property, optio return MappedAction(context, state, identifier, InstantiateType(context, state, type), as, property, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/module/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/module/instantiate.mjs function InstantiateCyclics(context, declarations, cyclicKeys) { const declarationContext = Assign(context, declarations); return Keys(declarations).filter((key) => cyclicKeys.includes(key)).reduce((result, key) => { @@ -4320,7 +4135,7 @@ function ModuleInstantiate(context, _state, declarations, options) { return InstantiateModule(context, declarations, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/non_nullable.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/non_nullable.mjs /** Creates a deferred NonNullable action. */ function NonNullableDeferred(type, options = {}) { return Deferred("NonNullable", [type], options); @@ -4330,7 +4145,7 @@ function NonNullable(type, options = {}) { return NonNullableAction(type, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/non_nullable/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/non_nullable/instantiate.mjs function NonNullableOperation(type) { return ExcludeAction(type, Union([Null(), Undefined()]), {}); } @@ -4341,7 +4156,7 @@ function NonNullableInstantiate(context, state, type, options) { return NonNullableAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/omit.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/omit.mjs /** Creates a deferred Omit action. */ function OmitDeferred(type, indexer, options = {}) { return Deferred("Omit", [type, indexer], options); @@ -4351,14 +4166,14 @@ function Omit(type, indexer_or_keys, options = {}) { return OmitAction(type, IsArray$1(indexer_or_keys) ? KeysToIndexer(indexer_or_keys) : indexer_or_keys, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/indexable/to_indexable.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/indexable/to_indexable.mjs /** Transforms a type into a TProperties used for indexing operations */ function ToIndexable(type) { const collapsed = CollapseToObject(type); return IsObject(collapsed) ? collapsed.properties : Unreachable$1(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/omit/from_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/omit/from_type.mjs function FromKeys$1(properties, keys) { return Keys(properties).reduce((result, key) => { return keys.includes(key) ? result : { @@ -4371,7 +4186,7 @@ function FromType$9(type, indexer) { return _Object_$1(FromKeys$1(ToIndexable(type), ToIndexableKeys(indexer))); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/omit/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/omit/instantiate.mjs function OmitAction(type, indexer, options) { return CanInstantiate([type, indexer]) ? Update$1(FromType$9(type, indexer), {}, options) : OmitDeferred(type, indexer, options); } @@ -4379,7 +4194,7 @@ function OmitInstantiate(context, state, type, indexer, options) { return OmitAction(InstantiateType(context, state, type), InstantiateType(context, state, indexer), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/parameters.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/parameters.mjs /** Creates a deferred Parameters action. */ function ParametersDeferred(type, options = {}) { return Deferred("Parameters", [type], options); @@ -4389,7 +4204,7 @@ function Parameters(type, options = {}) { return ParametersAction(type, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/parameters/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/parameters/instantiate.mjs function ParametersOperation(type) { const parameters = IsFunction(type) ? type["parameters"] : []; return Tuple(InstantiateElements({}, State([], []), parameters)); @@ -4401,7 +4216,7 @@ function ParametersInstantiate(context, state, type, options) { return ParametersAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/partial.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/partial.mjs /** Creates a deferred Partial action. */ function PartialDeferred(type, options = {}) { return Deferred("Partial", [type], options); @@ -4411,29 +4226,29 @@ function Partial(type, options = {}) { return PartialAction(type, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/partial/from_cyclic.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/partial/from_cyclic.mjs function FromCyclic$6(defs, ref) { const partial = FromType$8(CyclicTarget(defs, ref)); return Cyclic(Assign(defs, { [ref]: partial }), ref); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/partial/from_dependent.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/partial/from_dependent.mjs function FromDependent$2(if_, then_, else_) { return FromType$8(EvaluateDependent(if_, then_, else_)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/partial/from_intersect.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/partial/from_intersect.mjs function FromIntersect$6(types) { return FromType$8(EvaluateIntersect(types)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/partial/from_union.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/partial/from_union.mjs function FromUnion$6(types) { return Union(types.map((type) => FromType$8(type))); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/partial/from_object.mjs -function FromObject$8(properties) { +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/partial/from_object.mjs +function FromObject$7(properties) { return _Object_$1(Keys(properties).reduce((result, left) => { return { ...result, @@ -4442,12 +4257,12 @@ function FromObject$8(properties) { }, {})); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/partial/from_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/partial/from_type.mjs function FromType$8(type) { - return IsCyclic(type) ? FromCyclic$6(type.$defs, type.$ref) : IsDependent(type) ? FromDependent$2(type.if, type.then, type.else) : IsIntersect(type) ? FromIntersect$6(type.allOf) : IsUnion(type) ? FromUnion$6(type.anyOf) : IsObject(type) ? FromObject$8(type.properties) : _Object_$1({}); + return IsCyclic(type) ? FromCyclic$6(type.$defs, type.$ref) : IsDependent(type) ? FromDependent$2(type.if, type.then, type.else) : IsIntersect(type) ? FromIntersect$6(type.allOf) : IsUnion(type) ? FromUnion$6(type.anyOf) : IsObject(type) ? FromObject$7(type.properties) : _Object_$1({}); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/partial/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/partial/instantiate.mjs function PartialAction(type, options) { return CanInstantiate([type]) ? Update$1(FromType$8(type), {}, options) : PartialDeferred(type, options); } @@ -4455,7 +4270,7 @@ function PartialInstantiate(context, state, type, options) { return PartialAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/pick.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/pick.mjs /** Creates a deferred Pick action. */ function PickDeferred(type, indexer, options = {}) { return Deferred("Pick", [type, indexer], options); @@ -4465,7 +4280,7 @@ function Pick(type, indexer_or_keys, options = {}) { return PickAction(type, IsArray$1(indexer_or_keys) ? KeysToIndexer(indexer_or_keys) : indexer_or_keys, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/pick/from_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/pick/from_type.mjs function FromKeys(properties, keys) { return Keys(properties).reduce((result, key) => { return keys.includes(key) ? Assign(result, { [key]: properties[key] }) : result; @@ -4475,7 +4290,7 @@ function FromType$7(type, indexer) { return _Object_$1(FromKeys(ToIndexable(type), ToIndexableKeys(indexer))); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/pick/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/pick/instantiate.mjs function PickAction(type, indexer, options) { return CanInstantiate([type, indexer]) ? Update$1(FromType$7(type, indexer), {}, options) : PickDeferred(type, indexer, options); } @@ -4483,7 +4298,7 @@ function PickInstantiate(context, state, type, indexer, options) { return PickAction(InstantiateType(context, state, type), InstantiateType(context, state, indexer), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/readonly_object.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/readonly_object.mjs /** Creates a deferred ReadonlyType action. */ function ReadonlyObjectDeferred(type, options = {}) { return Deferred("ReadonlyObject", [type], options); @@ -4492,35 +4307,30 @@ function ReadonlyObjectDeferred(type, options = {}) { function ReadonlyObject(type, options = {}) { return ReadonlyObjectAction(type, options); } -/** -* This type has been renamed to ReadonlyObject. -* @deprecated -*/ -const ReadonlyType = ReadonlyObject; //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/readonly_object/from_array.mjs -function FromArray$6(type) { +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/readonly_object/from_array.mjs +function FromArray$5(type) { return AddImmutable(_Array_(type)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/readonly_object/from_cyclic.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/readonly_object/from_cyclic.mjs function FromCyclic$5(defs, ref) { const partial = FromType$6(CyclicTarget(defs, ref)); return Cyclic(Assign(defs, { [ref]: partial }), ref); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/readonly_object/from_dependent.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/readonly_object/from_dependent.mjs function FromDependent$1(if_, then_, else_) { return FromType$6(EvaluateDependent(if_, then_, else_)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/readonly_object/from_intersect.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/readonly_object/from_intersect.mjs function FromIntersect$5(types) { return FromType$6(EvaluateIntersect(types)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/readonly_object/from_object.mjs -function FromObject$7(properties) { +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/readonly_object/from_object.mjs +function FromObject$6(properties) { return _Object_$1(Keys(properties).reduce((result, left) => { return { ...result, @@ -4529,22 +4339,22 @@ function FromObject$7(properties) { }, {})); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/readonly_object/from_tuple.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/readonly_object/from_tuple.mjs function FromTuple$4(types) { return AddImmutable(Tuple(types)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/readonly_object/from_union.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/readonly_object/from_union.mjs function FromUnion$5(types) { return Union(types.map((type) => FromType$6(type))); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/readonly_object/from_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/readonly_object/from_type.mjs function FromType$6(type) { - return IsArray(type) ? FromArray$6(type.items) : IsCyclic(type) ? FromCyclic$5(type.$defs, type.$ref) : IsDependent(type) ? FromDependent$1(type.if, type.then, type.else) : IsIntersect(type) ? FromIntersect$5(type.allOf) : IsObject(type) ? FromObject$7(type.properties) : IsTuple(type) ? FromTuple$4(type.items) : IsUnion(type) ? FromUnion$5(type.anyOf) : type; + return IsArray(type) ? FromArray$5(type.items) : IsCyclic(type) ? FromCyclic$5(type.$defs, type.$ref) : IsDependent(type) ? FromDependent$1(type.if, type.then, type.else) : IsIntersect(type) ? FromIntersect$5(type.allOf) : IsObject(type) ? FromObject$6(type.properties) : IsTuple(type) ? FromTuple$4(type.items) : IsUnion(type) ? FromUnion$5(type.anyOf) : type; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/readonly_object/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/readonly_object/instantiate.mjs function ReadonlyObjectAction(type, options) { return CanInstantiate([type]) ? Update$1(FromType$6(type), {}, options) : ReadonlyObjectDeferred(type); } @@ -4552,34 +4362,34 @@ function ReadonlyObjectInstantiate(context, state, type, options) { return ReadonlyObjectAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/ref/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/ref/instantiate.mjs function RefInstantiate(context, state, type, ref) { return state.visited.includes(ref) ? type : ref in context ? InstantiateType(context, State(state["callstack"], [...state["visited"], ref]), context[ref]) : type; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/required/from_cyclic.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/required/from_cyclic.mjs function FromCyclic$4(defs, ref) { const partial = FromType$5(CyclicTarget(defs, ref)); return Cyclic(Assign(defs, { [ref]: partial }), ref); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/required/from_dependent.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/required/from_dependent.mjs function FromDependent(if_, then_, else_) { return FromType$5(EvaluateDependent(if_, then_, else_)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/required/from_intersect.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/required/from_intersect.mjs function FromIntersect$4(types) { return FromType$5(EvaluateIntersect(types)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/required/from_union.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/required/from_union.mjs function FromUnion$4(types) { return Union(types.map((type) => FromType$5(type))); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/required/from_object.mjs -function FromObject$6(properties) { +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/required/from_object.mjs +function FromObject$5(properties) { return _Object_$1(Keys(properties).reduce((result, left) => { return { ...result, @@ -4588,12 +4398,12 @@ function FromObject$6(properties) { }, {})); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/required/from_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/required/from_type.mjs function FromType$5(type) { - return IsCyclic(type) ? FromCyclic$4(type.$defs, type.$ref) : IsDependent(type) ? FromDependent(type.if, type.then, type.else) : IsIntersect(type) ? FromIntersect$4(type.allOf) : IsUnion(type) ? FromUnion$4(type.anyOf) : IsObject(type) ? FromObject$6(type.properties) : _Object_$1({}); + return IsCyclic(type) ? FromCyclic$4(type.$defs, type.$ref) : IsDependent(type) ? FromDependent(type.if, type.then, type.else) : IsIntersect(type) ? FromIntersect$4(type.allOf) : IsUnion(type) ? FromUnion$4(type.anyOf) : IsObject(type) ? FromObject$5(type.properties) : _Object_$1({}); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/required.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/required.mjs /** Creates a deferred Required action. */ function RequiredDeferred(type, options = {}) { return Deferred("Required", [type], options); @@ -4603,7 +4413,7 @@ function Required(type, options = {}) { return RequiredAction(type, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/required/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/required/instantiate.mjs function RequiredAction(type, options) { return CanInstantiate([type]) ? Update$1(FromType$5(type), {}, options) : RequiredDeferred(type, options); } @@ -4611,7 +4421,7 @@ function RequiredInstantiate(context, state, type, options) { return RequiredAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/return_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/return_type.mjs /** Creates a deferred ReturnType action. */ function ReturnTypeDeferred(type, options = {}) { return Deferred("ReturnType", [type], options); @@ -4621,7 +4431,7 @@ function ReturnType(type, options = {}) { return ReturnTypeAction(type, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/return_type/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/return_type/instantiate.mjs function ReturnTypeOperation(type) { return IsFunction(type) ? type["returnType"] : Never(); } @@ -4632,7 +4442,7 @@ function ReturnTypeInstantiate(context, state, type, options = {}) { return ReturnTypeAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/with.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/with.mjs /** Creates a deferred With action. */ function WithDeferred(type, options) { return Deferred("With", [type, options], {}); @@ -4641,15 +4451,8 @@ function WithDeferred(type, options) { function With(type, options) { return WithAction(type, options); } -/** -* @deprecated Type.Options\ has been renamed to Type.With\. This type will be removed in the -* next version of TypeBox. -*/ -function Options(type, options) { - return With(type, options); -} //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/with/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/with/instantiate.mjs function WithAction(type, options) { return CanInstantiate([type]) ? Update$1(type, {}, options) : WithDeferred(type, options); } @@ -4657,7 +4460,7 @@ function WithInstantiate(context, state, type, options) { return WithAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/rest/spread.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/rest/spread.mjs function SpreadElement(type) { return IsRest(type) ? IsTuple(type.items) ? RestSpread(type.items.items) : IsInfer(type.items) ? [type] : IsRef$1(type.items) ? [type] : [Never()] : [type]; } @@ -4667,7 +4470,7 @@ function RestSpread(types) { }, []); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/instantiate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/instantiate.mjs function State(callstack, visited) { return { callstack, @@ -4691,28 +4494,26 @@ function InstantiateElements(context, state, types) { function InstantiateTypes(context, state, types) { return types.map((type) => InstantiateType(context, state, type)); } +function WithModifiers(type, instantiatedType) { + const withOptional = IsOptional(type) ? AddOptionalAction(instantiatedType, {}) : instantiatedType; + const withReadonly = IsReadonly(type) ? AddReadonlyAction(withOptional, {}) : withOptional; + return IsImmutable(type) ? AddImmutableAction(withReadonly, {}) : withReadonly; +} function InstantiateDeferred(context, state, action, parameters, options) { - return IsEqual(action, "AddImmutable") ? AddImmutableInstantiate(context, state, parameters[0], options) : IsEqual(action, "RemoveImmutable") ? RemoveImmutableInstantiate(context, state, parameters[0], options) : IsEqual(action, "AddReadonly") ? AddReadonlyInstantiate(context, state, parameters[0], options) : IsEqual(action, "RemoveReadonly") ? RemoveReadonlyInstantiate(context, state, parameters[0], options) : IsEqual(action, "AddOptional") ? AddOptionalInstantiate(context, state, parameters[0], options) : IsEqual(action, "RemoveOptional") ? RemoveOptionalInstantiate(context, state, parameters[0], options) : IsEqual(action, "Awaited") ? AwaitedInstantiate(context, state, parameters[0], options) : IsEqual(action, "Capitalize") ? CapitalizeInstantiate(context, state, parameters[0], options) : IsEqual(action, "Conditional") ? ConditionalInstantiate(context, state, parameters[0], parameters[1], parameters[2], parameters[3], options) : IsEqual(action, "ConstructorParameters") ? ConstructorParametersInstantiate(context, state, parameters[0], options) : IsEqual(action, "Evaluate") ? EvaluateInstantiate(context, state, parameters[0], options) : IsEqual(action, "Exclude") ? ExcludeInstantiate(context, state, parameters[0], parameters[1], options) : IsEqual(action, "Extract") ? ExtractInstantiate(context, state, parameters[0], parameters[1], options) : IsEqual(action, "Index") ? IndexInstantiate(context, state, parameters[0], parameters[1], options) : IsEqual(action, "InstanceType") ? InstanceTypeInstantiate(context, state, parameters[0], options) : IsEqual(action, "Interface") ? InterfaceInstantiate(context, state, parameters[0], parameters[1], options) : IsEqual(action, "KeyOf") ? KeyOfInstantiate(context, state, parameters[0], options) : IsEqual(action, "Lowercase") ? LowercaseInstantiate(context, state, parameters[0], options) : IsEqual(action, "Mapped") ? MappedInstantiate(context, state, parameters[0], parameters[1], parameters[2], parameters[3], options) : IsEqual(action, "Module") ? ModuleInstantiate(context, state, parameters[0], options) : IsEqual(action, "NonNullable") ? NonNullableInstantiate(context, state, parameters[0], options) : IsEqual(action, "Pick") ? PickInstantiate(context, state, parameters[0], parameters[1], options) : IsEqual(action, "Parameters") ? ParametersInstantiate(context, state, parameters[0], options) : IsEqual(action, "Partial") ? PartialInstantiate(context, state, parameters[0], options) : IsEqual(action, "Omit") ? OmitInstantiate(context, state, parameters[0], parameters[1], options) : IsEqual(action, "ReadonlyObject") ? ReadonlyObjectInstantiate(context, state, parameters[0], options) : IsEqual(action, "Record") ? RecordInstantiate(context, state, parameters[0], parameters[1], options) : IsEqual(action, "Required") ? RequiredInstantiate(context, state, parameters[0], options) : IsEqual(action, "ReturnType") ? ReturnTypeInstantiate(context, state, parameters[0], options) : IsEqual(action, "TemplateLiteral") ? TemplateLiteralInstantiate(context, state, parameters[0], options) : IsEqual(action, "Uncapitalize") ? UncapitalizeInstantiate(context, state, parameters[0], options) : IsEqual(action, "Uppercase") ? UppercaseInstantiate(context, state, parameters[0], options) : IsEqual(action, "With") ? WithInstantiate(context, state, parameters[0], parameters[1]) : Deferred(action, parameters, options); + return IsEqual(action, "AddImmutable") ? AddImmutableInstantiate(context, state, parameters[0], options) : IsEqual(action, "RemoveImmutable") ? RemoveImmutableInstantiate(context, state, parameters[0], options) : IsEqual(action, "AddReadonly") ? AddReadonlyInstantiate(context, state, parameters[0], options) : IsEqual(action, "RemoveReadonly") ? RemoveReadonlyInstantiate(context, state, parameters[0], options) : IsEqual(action, "AddOptional") ? AddOptionalInstantiate(context, state, parameters[0], options) : IsEqual(action, "RemoveOptional") ? RemoveOptionalInstantiate(context, state, parameters[0], options) : IsEqual(action, "Capitalize") ? CapitalizeInstantiate(context, state, parameters[0], options) : IsEqual(action, "Conditional") ? ConditionalInstantiate(context, state, parameters[0], parameters[1], parameters[2], parameters[3], options) : IsEqual(action, "ConstructorParameters") ? ConstructorParametersInstantiate(context, state, parameters[0], options) : IsEqual(action, "Evaluate") ? EvaluateInstantiate(context, state, parameters[0], options) : IsEqual(action, "Exclude") ? ExcludeInstantiate(context, state, parameters[0], parameters[1], options) : IsEqual(action, "Extract") ? ExtractInstantiate(context, state, parameters[0], parameters[1], options) : IsEqual(action, "Index") ? IndexInstantiate(context, state, parameters[0], parameters[1], options) : IsEqual(action, "InstanceType") ? InstanceTypeInstantiate(context, state, parameters[0], options) : IsEqual(action, "Interface") ? InterfaceInstantiate(context, state, parameters[0], parameters[1], options) : IsEqual(action, "KeyOf") ? KeyOfInstantiate(context, state, parameters[0], options) : IsEqual(action, "Lowercase") ? LowercaseInstantiate(context, state, parameters[0], options) : IsEqual(action, "Mapped") ? MappedInstantiate(context, state, parameters[0], parameters[1], parameters[2], parameters[3], options) : IsEqual(action, "Module") ? ModuleInstantiate(context, state, parameters[0], options) : IsEqual(action, "NonNullable") ? NonNullableInstantiate(context, state, parameters[0], options) : IsEqual(action, "Pick") ? PickInstantiate(context, state, parameters[0], parameters[1], options) : IsEqual(action, "Parameters") ? ParametersInstantiate(context, state, parameters[0], options) : IsEqual(action, "Partial") ? PartialInstantiate(context, state, parameters[0], options) : IsEqual(action, "Omit") ? OmitInstantiate(context, state, parameters[0], parameters[1], options) : IsEqual(action, "ReadonlyObject") ? ReadonlyObjectInstantiate(context, state, parameters[0], options) : IsEqual(action, "Record") ? RecordInstantiate(context, state, parameters[0], parameters[1], options) : IsEqual(action, "Required") ? RequiredInstantiate(context, state, parameters[0], options) : IsEqual(action, "ReturnType") ? ReturnTypeInstantiate(context, state, parameters[0], options) : IsEqual(action, "TemplateLiteral") ? TemplateLiteralInstantiate(context, state, parameters[0], options) : IsEqual(action, "Uncapitalize") ? UncapitalizeInstantiate(context, state, parameters[0], options) : IsEqual(action, "Uppercase") ? UppercaseInstantiate(context, state, parameters[0], options) : IsEqual(action, "With") ? WithInstantiate(context, state, parameters[0], parameters[1]) : Deferred(action, parameters, options); } function InstantiateImmediate(context, state, type) { - type = IsBase(type) ? type.Clone() : type; - return IsRef$1(type) ? RefInstantiate(context, state, type, type.$ref) : IsArray(type) ? _Array_(InstantiateType(context, state, type.items), ArrayOptions(type)) : IsAsyncIterator(type) ? AsyncIterator(InstantiateType(context, state, type.iteratorItems), AsyncIteratorOptions(type)) : IsCall(type) ? CallInstantiate(context, state, type.target, type.arguments) : IsConstructor(type) ? Constructor(InstantiateTypes(context, state, type.parameters), InstantiateType(context, state, type.instanceType), ConstructorOptions(type)) : IsDeferred(type) ? InstantiateDeferred(context, state, type.action, type.parameters, type.options) : IsFunction(type) ? _Function_$1(InstantiateTypes(context, state, type.parameters), InstantiateType(context, state, type.returnType), FunctionOptions(type)) : IsDependent(type) ? Dependent$1(InstantiateType(context, state, type.if), InstantiateType(context, state, type.then), InstantiateType(context, state, type.else), DependentOptions(type)) : IsIntersect(type) ? Intersect(InstantiateTypes(context, state, type.allOf), IntersectOptions(type)) : IsIterator(type) ? Iterator(InstantiateType(context, state, type.iteratorItems), IteratorOptions(type)) : IsObject(type) ? _Object_$1(InstantiateProperties(context, state, type.properties), ObjectOptions(type)) : IsPromise(type) ? _Promise_(InstantiateType(context, state, type.item), PromiseOptions(type)) : IsRecord(type) ? RecordFromPattern(RecordPattern(type), InstantiateType(context, state, RecordValue(type))) : IsRest(type) ? Rest(InstantiateType(context, state, type.items)) : IsTuple(type) ? Tuple(InstantiateElements(context, state, type.items), TupleOptions(type)) : IsUnion(type) ? Union(InstantiateTypes(context, state, type.anyOf), UnionOptions(type)) : type; -} -function WithModifiers(type, instantiatedType) { - const withImmutable = IsImmutable(type) ? Immutable(instantiatedType) : instantiatedType; - const withReadonly = IsReadonly(type) ? Readonly$1(withImmutable) : withImmutable; - return IsOptional(type) ? Optional$2(withReadonly) : withReadonly; + return WithModifiers(type, IsRef$1(type) ? RefInstantiate(context, state, type, type.$ref) : IsArray(type) ? _Array_(InstantiateType(context, state, type.items), ArrayOptions(type)) : IsCall(type) ? CallInstantiate(context, state, type.target, type.arguments) : IsConstructor(type) ? Constructor(InstantiateTypes(context, state, type.parameters), InstantiateType(context, state, type.instanceType), ConstructorOptions(type)) : IsFunction(type) ? _Function_$1(InstantiateTypes(context, state, type.parameters), InstantiateType(context, state, type.returnType), FunctionOptions(type)) : IsDependent(type) ? Dependent$1(InstantiateType(context, state, type.if), InstantiateType(context, state, type.then), InstantiateType(context, state, type.else), DependentOptions(type)) : IsIntersect(type) ? Intersect(InstantiateTypes(context, state, type.allOf), IntersectOptions(type)) : IsObject(type) ? _Object_$1(InstantiateProperties(context, state, type.properties), ObjectOptions(type)) : IsRecord(type) ? RecordFromPattern(RecordPattern(type), InstantiateType(context, state, RecordValue(type))) : IsRest(type) ? Rest(InstantiateType(context, state, type.items)) : IsTuple(type) ? Tuple(InstantiateElements(context, state, type.items), TupleOptions(type)) : IsUnion(type) ? Union(InstantiateTypes(context, state, type.anyOf), UnionOptions(type)) : type); } function InstantiateType(context, state, type) { - const instantiatedType = InstantiateImmediate(context, state, type); - return IsDeferred(type) ? instantiatedType : WithModifiers(type, instantiatedType); + return IsDeferred(type) ? InstantiateDeferred(context, state, type.action, type.parameters, type.options) : InstantiateImmediate(context, state, type); } /** Instantiates computed schematics using the given context and type. */ function Instantiate(context, type) { return InstantiateType(context, State([], []), type); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/immutable/instantiate_add.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/immutable/instantiate_add.mjs function AddImmutableOperation(type) { return Update$1(type, { "~immutable": true }, {}); } @@ -4723,7 +4524,7 @@ function AddImmutableInstantiate(context, state, type, options) { return AddImmutableAction(InstantiateType(context, state, type), options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/_add_immutable.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/_add_immutable.mjs /** Creates a deferred AddImmutable action. */ function AddImmutableDeferred(type, options = {}) { return Deferred("AddImmutable", [type], options); @@ -4733,7 +4534,7 @@ function AddImmutable(type, options = {}) { return AddImmutableAction(type, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/evaluate.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/evaluate.mjs /** Creates a deferred Evaluate action. */ function EvaluateDeferred(type, options = {}) { return Deferred("Evaluate", [type], options); @@ -4743,7 +4544,7 @@ function Evaluate(type, options = {}) { return EvaluateAction(type, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/action/module.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/action/module.mjs /** Creates a deferred Module action. */ function ModuleDeferred(declarations, options = {}) { return Deferred("Module", [declarations], options); @@ -4753,7 +4554,7 @@ function Module(declarations, options = {}) { return ModuleInstantiate({}, State([], []), declarations, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/engine/priority/priority.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/engine/priority/priority.mjs function Comparer(left, right) { const compareResult = Compare(left, right); return IsEqual(compareResult, "right-inside") ? 1 : IsEqual(compareResult, "disjoint") ? 1 : 0; @@ -4778,7 +4579,7 @@ function Priority(types) { return Sort(types); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/type/script/script.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/script/script.mjs /** Parses a type from a TypeScript type expression */ function Script(...args) { const [context, input, options] = Match$3(args, { @@ -4806,13 +4607,10 @@ function Script(...args) { return Update$1(IsArray$1(result) && IsEqual(result.length, 2) ? InstantiateType(context, State([], []), result[0]) : Never(), {}, options); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/index.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/index.mjs var build_default = /* @__PURE__ */ __exportAll({ Any: () => Any, Array: () => _Array_, - AsyncIterator: () => AsyncIterator, - Awaited: () => Awaited, - Base: () => Base$1, BigInt: () => BigInt$2, Boolean: () => Boolean$1, Call: () => Call, @@ -4846,8 +4644,6 @@ var build_default = /* @__PURE__ */ __exportAll({ Intersect: () => Intersect, IsAny: () => IsAny, IsArray: () => IsArray, - IsAsyncIterator: () => IsAsyncIterator, - IsBase: () => IsBase, IsBigInt: () => IsBigInt, IsBoolean: () => IsBoolean, IsCall: () => IsCall, @@ -4863,7 +4659,6 @@ var build_default = /* @__PURE__ */ __exportAll({ IsInfer: () => IsInfer, IsInteger: () => IsInteger, IsIntersect: () => IsIntersect, - IsIterator: () => IsIterator, IsKind: () => IsKind, IsLiteral: () => IsLiteral, IsNever: () => IsNever, @@ -4872,7 +4667,6 @@ var build_default = /* @__PURE__ */ __exportAll({ IsObject: () => IsObject, IsOptional: () => IsOptional, IsParameter: () => IsParameter, - IsPromise: () => IsPromise, IsReadonly: () => IsReadonly, IsRecord: () => IsRecord, IsRef: () => IsRef$1, @@ -4889,7 +4683,6 @@ var build_default = /* @__PURE__ */ __exportAll({ IsUnknown: () => IsUnknown, IsUnsafe: () => IsUnsafe, IsVoid: () => IsVoid, - Iterator: () => Iterator, KeyOf: () => KeyOf, Literal: () => Literal, Lowercase: () => Lowercase, @@ -4902,15 +4695,12 @@ var build_default = /* @__PURE__ */ __exportAll({ Object: () => _Object_$1, Omit: () => Omit, Optional: () => Optional$2, - Options: () => Options, Parameter: () => Parameter$1, Parameters: () => Parameters, Partial: () => Partial, Pick: () => Pick, - Promise: () => _Promise_, Readonly: () => Readonly$1, ReadonlyObject: () => ReadonlyObject, - ReadonlyType: () => ReadonlyType, Record: () => Record, RecordKey: () => RecordKey, RecordPattern: () => RecordPattern, @@ -4936,15 +4726,7 @@ var build_default = /* @__PURE__ */ __exportAll({ With: () => With }); //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/_guard.mjs -function IsGuardInterface(value) { - return IsObject$1(value) && HasPropertyKey(value, "check") && HasPropertyKey(value, "errors") && IsFunction$1(value.check) && IsFunction$1(value.errors); -} -function IsGuard(value) { - return HasPropertyKey(value, "~guard") && IsGuardInterface(value["~guard"]); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/_refine.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/_refine.mjs /** * Returns true if the schema contains an '~refine` keyword * @specification None @@ -4953,7 +4735,7 @@ function IsRefine(value) { return HasPropertyKey(value, "~refine") && IsArray$1(value["~refine"]) && Every(value["~refine"], 0, (value) => IsObject$1(value) && HasPropertyKey(value, "check") && HasPropertyKey(value, "error") && IsFunction$1(value.check) && IsFunction$1(value.error)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/schema.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/schema.mjs /** Returns true if this value is object like */ function IsSchemaObject(value) { return IsObject$1(value) && !IsArray$1(value); @@ -4967,7 +4749,7 @@ function IsSchema(value) { return IsSchemaObject(value) || IsBooleanSchema(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/additionalItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/additionalItems.mjs /** * Returns true if the schema contains a valid additionalItems property * @specification Json Schema 7 @@ -4976,7 +4758,7 @@ function IsAdditionalItems(schema) { return HasPropertyKey(schema, "additionalItems") && IsSchema(schema.additionalItems); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/additionalProperties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/additionalProperties.mjs /** * Returns true if the schema contains a valid additionalProperties property * @specification Json Schema 7 @@ -4985,7 +4767,7 @@ function IsAdditionalProperties(schema) { return HasPropertyKey(schema, "additionalProperties") && IsSchema(schema.additionalProperties); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/allOf.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/allOf.mjs /** * Returns true if the schema contains a valid allOf property * @specification Json Schema 7 @@ -4994,7 +4776,7 @@ function IsAllOf(schema) { return HasPropertyKey(schema, "allOf") && IsArray$1(schema.allOf) && schema.allOf.every((value) => IsSchema(value)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/anchor.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/anchor.mjs /** * Returns true if the schema contains a valid $anchor property */ @@ -5002,7 +4784,7 @@ function IsAnchor(schema) { return HasPropertyKey(schema, "$anchor") && IsString$2(schema.$anchor); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/anyOf.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/anyOf.mjs /** * Returns true if the schema contains a valid anyOf property * @specification Json Schema 7 @@ -5011,7 +4793,7 @@ function IsAnyOf(schema) { return HasPropertyKey(schema, "anyOf") && IsArray$1(schema.anyOf) && schema.anyOf.every((value) => IsSchema(value)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/const.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/const.mjs /** * Returns true if the schema contains a valid const property * @specification Json Schema 7 @@ -5020,7 +4802,7 @@ function IsConst(value) { return HasPropertyKey(value, "const"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/contains.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/contains.mjs /** * Returns true if the schema contains a valid contains property * @specification Json Schema 7 @@ -5029,7 +4811,7 @@ function IsContains(schema) { return HasPropertyKey(schema, "contains") && IsSchema(schema.contains); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/default.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/default.mjs /** * Returns true if the schema contains a valid contentMediaType property * @specification Json Schema 7 @@ -5038,7 +4820,7 @@ function IsDefault(schema) { return HasPropertyKey(schema, "default"); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/dependencies.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/dependencies.mjs /** * Returns true if the schema contains a valid dependencies property * @specification Json Schema 7 @@ -5047,7 +4829,7 @@ function IsDependencies(schema) { return HasPropertyKey(schema, "dependencies") && IsObject$1(schema.dependencies) && Object.values(schema.dependencies).every((value) => IsSchema(value) || IsArray$1(value) && value.every((value) => IsString$2(value))); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/dependentRequired.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/dependentRequired.mjs /** * Returns true if the schema contains a valid dependentRequired property * @specification Json Schema 2019-09 @@ -5056,7 +4838,7 @@ function IsDependentRequired(schema) { return HasPropertyKey(schema, "dependentRequired") && IsObject$1(schema.dependentRequired) && Object.values(schema.dependentRequired).every((value) => IsArray$1(value) && value.every((value) => IsString$2(value))); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/dependentSchemas.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/dependentSchemas.mjs /** * Returns true if the schema contains a valid dependentRequired property * @specification Json Schema 2019-09 @@ -5065,7 +4847,7 @@ function IsDependentSchemas(schema) { return HasPropertyKey(schema, "dependentSchemas") && IsObject$1(schema.dependentSchemas) && Object.values(schema.dependentSchemas).every((value) => IsSchema(value)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/dynamicAnchor.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/dynamicAnchor.mjs /** * Returns true if the schema contains a valid $dynamicAnchor property */ @@ -5073,7 +4855,7 @@ function IsDynamicAnchor(schema) { return HasPropertyKey(schema, "$dynamicAnchor") && IsString$2(schema.$dynamicAnchor); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/dynamicRef.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/dynamicRef.mjs /** * Returns true if the schema contains a valid $dynamicRef property */ @@ -5081,7 +4863,7 @@ function IsDynamicRef(schema) { return HasPropertyKey(schema, "$dynamicRef") && IsString$2(schema.$dynamicRef); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/else.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/else.mjs /** * Returns true if the schema contains a valid else property * @specification Json Schema 7 @@ -5090,7 +4872,7 @@ function IsElse(schema) { return HasPropertyKey(schema, "else") && IsSchema(schema.else); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/enum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/enum.mjs /** * Returns true if the schema contains a valid enum property * @specification Json Schema 7 @@ -5099,7 +4881,7 @@ function IsEnum(schema) { return HasPropertyKey(schema, "enum") && IsArray$1(schema.enum); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/exclusiveMaximum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/exclusiveMaximum.mjs /** * Returns true if the schema contains a valid exclusiveMaximum property * @specification Json Schema 7 @@ -5108,7 +4890,7 @@ function IsExclusiveMaximum(schema) { return HasPropertyKey(schema, "exclusiveMaximum") && (IsNumber$2(schema.exclusiveMaximum) || IsBigInt$1(schema.exclusiveMaximum)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/exclusiveMinimum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/exclusiveMinimum.mjs /** * Returns true if the schema contains a valid exclusiveMinimum property * @specification Json Schema 7 @@ -5117,7 +4899,7 @@ function IsExclusiveMinimum(schema) { return HasPropertyKey(schema, "exclusiveMinimum") && (IsNumber$2(schema.exclusiveMinimum) || IsBigInt$1(schema.exclusiveMinimum)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/format.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/format.mjs /** * Returns true if the schema contains a valid format property * @specification Json Schema 7 @@ -5126,7 +4908,7 @@ function IsFormat(schema) { return HasPropertyKey(schema, "format") && IsString$2(schema.format); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/id.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/id.mjs /** * Returns true if the schema contains a valid $id property * @specification Json Schema 7 @@ -5135,7 +4917,7 @@ function IsId(schema) { return HasPropertyKey(schema, "$id") && IsString$2(schema.$id); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/if.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/if.mjs /** * Returns true if the schema contains a valid $id property * @specification Json Schema 7 @@ -5144,7 +4926,7 @@ function IsIf(schema) { return HasPropertyKey(schema, "if") && IsSchema(schema.if); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/items.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/items.mjs /** * Returns true if the schema contains a valid items property * @specification Json Schema 7 @@ -5159,7 +4941,7 @@ function IsItemsSized(schema) { return IsItems(schema) && IsArray$1(schema.items); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/maximum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/maximum.mjs /** * Returns true if the schema contains a valid maximum property * @specification Json Schema 7 @@ -5168,7 +4950,7 @@ function IsMaximum(schema) { return HasPropertyKey(schema, "maximum") && (IsNumber$2(schema.maximum) || IsBigInt$1(schema.maximum)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/maxContains.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/maxContains.mjs /** * Returns true if the schema contains a valid maxContains property * @specification Json Schema 2019-09 @@ -5177,7 +4959,7 @@ function IsMaxContains(schema) { return HasPropertyKey(schema, "maxContains") && IsNumber$2(schema.maxContains); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/maxItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/maxItems.mjs /** * Returns true if the schema contains a valid maxItems property * @specification Json Schema 7 @@ -5186,7 +4968,7 @@ function IsMaxItems(schema) { return HasPropertyKey(schema, "maxItems") && IsNumber$2(schema.maxItems); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/maxLength.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/maxLength.mjs /** * Returns true if the schema contains a valid maxLength property * @specification Json Schema 7 @@ -5195,7 +4977,7 @@ function IsMaxLength(schema) { return HasPropertyKey(schema, "maxLength") && IsNumber$2(schema.maxLength); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/maxProperties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/maxProperties.mjs /** * Returns true if the schema contains a valid maxProperties property * @specification Json Schema 7 @@ -5204,7 +4986,7 @@ function IsMaxProperties(schema) { return HasPropertyKey(schema, "maxProperties") && IsNumber$2(schema.maxProperties); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/minimum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/minimum.mjs /** * Returns true if the schema contains a valid minimum property * @specification Json Schema 7 @@ -5213,7 +4995,7 @@ function IsMinimum(schema) { return HasPropertyKey(schema, "minimum") && (IsNumber$2(schema.minimum) || IsBigInt$1(schema.minimum)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/minContains.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/minContains.mjs /** * Returns true if the schema contains a valid maxContains property * @specification Json Schema 2019-09 @@ -5222,7 +5004,7 @@ function IsMinContains(schema) { return HasPropertyKey(schema, "minContains") && IsNumber$2(schema.minContains); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/minItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/minItems.mjs /** * Returns true if the schema contains a valid minItems property * @specification Json Schema 7 @@ -5231,7 +5013,7 @@ function IsMinItems(schema) { return HasPropertyKey(schema, "minItems") && IsNumber$2(schema.minItems); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/minLength.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/minLength.mjs /** * Returns true if the schema contains a valid minLength property * @specification Json Schema 7 @@ -5240,7 +5022,7 @@ function IsMinLength(schema) { return HasPropertyKey(schema, "minLength") && IsNumber$2(schema.minLength); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/minProperties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/minProperties.mjs /** * Returns true if the schema contains a valid minProperties property * @specification Json Schema 7 @@ -5249,7 +5031,7 @@ function IsMinProperties(schema) { return HasPropertyKey(schema, "minProperties") && IsNumber$2(schema.minProperties); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/multipleOf.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/multipleOf.mjs /** * Returns true if the schema contains a valid multipleOf property * @specification Json Schema 7 @@ -5258,7 +5040,7 @@ function IsMultipleOf(schema) { return HasPropertyKey(schema, "multipleOf") && (IsNumber$2(schema.multipleOf) || IsBigInt$1(schema.multipleOf)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/not.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/not.mjs /** * Returns true if the schema contains a valid not property * @specification Json Schema 7 @@ -5267,7 +5049,7 @@ function IsNot(schema) { return HasPropertyKey(schema, "not") && IsSchema(schema.not); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/oneOf.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/oneOf.mjs /** * Returns true if the schema contains a valid oneOf property * @specification Json Schema 7 @@ -5276,7 +5058,7 @@ function IsOneOf(schema) { return HasPropertyKey(schema, "oneOf") && IsArray$1(schema.oneOf) && schema.oneOf.every((value) => IsSchema(value)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/pattern.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/pattern.mjs /** * Returns true if the schema contains a valid pattern property * @specification Json Schema 7 @@ -5285,7 +5067,7 @@ function IsPattern(schema) { return HasPropertyKey(schema, "pattern") && (IsString$2(schema.pattern) || schema.pattern instanceof RegExp); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/patternProperties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/patternProperties.mjs /** * Returns true if the schema contains a valid patternProperties property * @specification Json Schema 7 @@ -5294,7 +5076,7 @@ function IsPatternProperties(schema) { return HasPropertyKey(schema, "patternProperties") && IsObject$1(schema.patternProperties) && Object.values(schema.patternProperties).every((value) => IsSchema(value)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/prefixItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/prefixItems.mjs /** * Returns true if the schema contains a valid prefixItems property */ @@ -5302,7 +5084,7 @@ function IsPrefixItems(schema) { return HasPropertyKey(schema, "prefixItems") && IsArray$1(schema.prefixItems) && schema.prefixItems.every((schema) => IsSchema(schema)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/properties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/properties.mjs /** * Returns true if the schema contains a valid properties property * @specification Json Schema 7 @@ -5311,7 +5093,7 @@ function IsProperties(schema) { return HasPropertyKey(schema, "properties") && IsObject$1(schema.properties) && Object.values(schema.properties).every((value) => IsSchema(value)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/propertyNames.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/propertyNames.mjs /** * Returns true if the schema contains a valid propertyNames property * @specification Json Schema 7 @@ -5320,7 +5102,7 @@ function IsPropertyNames(schema) { return HasPropertyKey(schema, "propertyNames") && (IsObject$1(schema.propertyNames) || IsSchema(schema.propertyNames)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/recursiveAnchor.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/recursiveAnchor.mjs /** * Returns true if the schema contains a valid $recursiveAnchor property */ @@ -5334,7 +5116,7 @@ function IsRecursiveAnchorTrue(schema) { return IsRecursiveAnchor(schema) && IsEqual(schema.$recursiveAnchor, true); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/recursiveRef.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/recursiveRef.mjs /** * Returns true if the schema contains a valid $recursiveRef property */ @@ -5342,7 +5124,7 @@ function IsRecursiveRef(schema) { return HasPropertyKey(schema, "$recursiveRef") && IsString$2(schema.$recursiveRef); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/ref.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/ref.mjs /** * Returns true if the schema contains a valid $ref property * @specification Json Schema 7 @@ -5351,7 +5133,7 @@ function IsRef(schema) { return HasPropertyKey(schema, "$ref") && IsString$2(schema.$ref); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/required.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/required.mjs /** * Returns true if the schema contains a valid required property * @specification Json Schema 7 @@ -5360,7 +5142,7 @@ function IsRequired(schema) { return HasPropertyKey(schema, "required") && IsArray$1(schema.required) && schema.required.every((value) => IsString$2(value)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/then.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/then.mjs /** * Returns true if the schema contains a valid then property * @specification Json Schema 7 @@ -5369,7 +5151,7 @@ function IsThen(schema) { return HasPropertyKey(schema, "then") && IsSchema(schema.then); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/type.mjs /** * Returns true if the schema contains a valid type property * @specification Json Schema 7 @@ -5378,7 +5160,7 @@ function IsType(schema) { return HasPropertyKey(schema, "type") && (IsString$2(schema.type) || IsArray$1(schema.type) && schema.type.every((value) => IsString$2(value))); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/uniqueItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/uniqueItems.mjs /** * Returns true if the schema contains a valid uniqueItems property * @specification Json Schema 7 @@ -5387,7 +5169,7 @@ function IsUniqueItems(schema) { return HasPropertyKey(schema, "uniqueItems") && IsBoolean$2(schema.uniqueItems); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/unevaluatedItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/unevaluatedItems.mjs /** * Returns true if the schema contains a valid unevaluatedItems property * @specification Json Schema 2019-09 @@ -5396,7 +5178,7 @@ function IsUnevaluatedItems(schema) { return HasPropertyKey(schema, "unevaluatedItems") && IsSchema(schema.unevaluatedItems); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/types/unevaluatedProperties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/unevaluatedProperties.mjs /** * Returns true if the schema contains a valid unevaluatedProperties property * @specification Json Schema 2019-09 @@ -5405,7 +5187,7 @@ function IsUnevaluatedProperties(schema) { return HasPropertyKey(schema, "unevaluatedProperties") && IsSchema(schema.unevaluatedProperties); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/_context.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/_context.mjs var CheckContext = class { constructor() { const indices = /* @__PURE__ */ new Set(); @@ -5474,20 +5256,7 @@ var AccumulatedErrorContext = class extends ErrorContext { } }; //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/_guard.mjs -function CheckGuard(_stack, _context, schema, value) { - return schema["~guard"].check(value); -} -function ErrorGuard(_stack, context, schemaPath, instancePath, schema, value) { - return schema["~guard"].check(value) || context.AddError({ - keyword: "~guard", - schemaPath, - instancePath, - params: { errors: schema["~guard"].errors(value) } - }); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/_refine.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/_refine.mjs function CheckRefine(_stack, _context, schema, value) { return Every(schema["~refine"], 0, (refinement, _) => refinement.check(value)); } @@ -5505,7 +5274,7 @@ function ErrorRefine(_stack, context, schemaPath, instancePath, schema, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/additionalItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/additionalItems.mjs function IsValid$4(schema) { return IsItems(schema) && IsArray$1(schema.items); } @@ -5524,7 +5293,7 @@ function ErrorAdditionalItems(stack, context, schemaPath, instancePath, schema, }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/additionalProperties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/additionalProperties.mjs function GetPropertyKeyAsPattern(key) { return `^${key.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}$`; } @@ -5558,7 +5327,7 @@ function ErrorAdditionalProperties(stack, context, schemaPath, instancePath, sch }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/allOf.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/allOf.mjs function CheckAllOf(stack, context, schema, value) { const results = schema.allOf.reduce((result, schema) => { const nextContext = new CheckContext(); @@ -5580,7 +5349,7 @@ function ErrorAllOf(stack, context, schemaPath, instancePath, schema, value) { return isAllOf; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/anyOf.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/anyOf.mjs function CheckAnyOf(stack, context, schema, value) { const results = schema.anyOf.reduce((result, schema) => { const nextContext = new CheckContext(); @@ -5606,7 +5375,7 @@ function ErrorAnyOf(stack, context, schemaPath, instancePath, schema, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/boolean.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/boolean.mjs function CheckBooleanSchema(_stack, _context, schema, _value) { return schema; } @@ -5619,7 +5388,7 @@ function ErrorBooleanSchema(stack, context, schemaPath, instancePath, schema, va }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/const.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/const.mjs function CheckConst(_stack, _context, schema, value) { return IsValueLike(schema.const) ? IsEqual(value, schema.const) : IsDeepEqual(value, schema.const); } @@ -5632,7 +5401,7 @@ function ErrorConst(stack, context, schemaPath, instancePath, schema, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/contains.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/contains.mjs function IsValid$3(schema) { return !(IsMinContains(schema) && IsEqual(schema.minContains, 0)); } @@ -5649,7 +5418,7 @@ function ErrorContains(stack, context, schemaPath, instancePath, schema, value) }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/dependencies.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/dependencies.mjs function CheckDependencies(stack, context, schema, value) { const isLength = IsEqual(Keys(value).length, 0); const isEvery = Every(Entries(schema.dependencies), 0, ([key, schema]) => { @@ -5674,7 +5443,7 @@ function ErrorDependencies(stack, context, schemaPath, instancePath, schema, val return isLength || isEvery; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/dependentRequired.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/dependentRequired.mjs function CheckDependentRequired(_stack, _context, schema, value) { const isLength = IsEqual(Keys(value).length, 0); const isEvery = Every(Entries(schema.dependentRequired), 0, ([key, keys]) => { @@ -5698,7 +5467,7 @@ function ErrorDependentRequired(_stack, context, schemaPath, instancePath, schem return isLength || isEveryEntry; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/dependentSchemas.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/dependentSchemas.mjs function CheckDependentSchemas(stack, context, schema, value) { const isLength = IsEqual(Keys(value).length, 0); const isEvery = Every(Entries(schema.dependentSchemas), 0, ([key, schema]) => { @@ -5715,7 +5484,7 @@ function ErrorDependentSchemas(stack, context, schemaPath, instancePath, schema, return isLength || isEvery; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/dynamicRef.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/dynamicRef.mjs function CheckDynamicRef(stack, context, schema, value) { const target = stack.DynamicRef(schema) ?? false; return IsSchema(target) && CheckSchema(stack, context, target, value); @@ -5725,7 +5494,7 @@ function ErrorDynamicRef(stack, context, _schemaPath, instancePath, schema, valu return IsSchema(target) && ErrorSchema(stack, context, "#", instancePath, target, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/enum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/enum.mjs function CheckEnum(_stack, _context, schema, value) { return schema.enum.some((option) => IsValueLike(option) ? IsEqual(value, option) : IsDeepEqual(value, option)); } @@ -5738,7 +5507,7 @@ function ErrorEnum(stack, context, schemaPath, instancePath, schema, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/exclusiveMaximum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/exclusiveMaximum.mjs function CheckExclusiveMaximum(_stack, _context, schema, value) { return IsLessThan(value, schema.exclusiveMaximum); } @@ -5754,7 +5523,7 @@ function ErrorExclusiveMaximum(stack, context, schemaPath, instancePath, schema, }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/exclusiveMinimum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/exclusiveMinimum.mjs function CheckExclusiveMinimum(_stack, _context, schema, value) { return IsGreaterThan(value, schema.exclusiveMinimum); } @@ -5770,7 +5539,7 @@ function ErrorExclusiveMinimum(stack, context, schemaPath, instancePath, schema, }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/date.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/date.mjs const DAYS = [ 0, 31, @@ -5804,7 +5573,7 @@ function IsDate(value) { return month >= 1 && month <= 12 && day >= 1 && day <= (month === 2 && IsLeapYear(year) ? 29 : DAYS[month]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/time.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/time.mjs const TIME = /^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(?:Z|([+-])(\d\d):(\d\d))?$/i; /** * Returns true if the value is a ISO time string @@ -5827,7 +5596,7 @@ function IsTime(value, strictTimeZone = true) { return (utcHr === 23 || utcHr === -1) && (utcMin === 59 || utcMin === -1) && sec < 61; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/date_time.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/date_time.mjs /** * Returns true if the value is a ISO8601 DateTime string * @source ajv-formats @@ -5838,7 +5607,7 @@ function IsDateTime(value, strictTimeZone = true) { return dateTime.length === 2 && IsDate(dateTime[0]) && IsTime(dateTime[1], strictTimeZone); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/duration.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/duration.mjs const Duration = /^P((\d+Y(\d+M(\d+D)?)?|\d+M(\d+D)?|\d+D)(T(\d+H(\d+M(\d+S)?)?|\d+M(\d+S)?|\d+S))?|T(\d+H(\d+M(\d+S)?)?|\d+M(\d+S)?|\d+S)|\d+W)$/; /** * Returns true if the value is a valid ISO-8601 duration. @@ -5848,7 +5617,7 @@ function IsDuration(value) { return Duration.test(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/email.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/email.mjs const Email = /^(?!.*\.\.)[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i; /** * Returns true if the value is an Email @@ -5858,7 +5627,7 @@ function IsEmail(value) { return Email.test(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/_puny.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/_puny.mjs const PUNYCODE_BASE = 36; const PUNYCODE_TMIN = 1; const PUNYCODE_TMAX = 26; @@ -5916,7 +5685,7 @@ function Decode$7(value) { return globalThis.String.fromCodePoint(...output); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/_idna.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/_idna.mjs function IsNonspacingMark(cp) { return /\p{Mn}/u.test(String.fromCodePoint(cp)); } @@ -6051,7 +5820,11 @@ function IsPuny(value) { } function IsPunyLabel(value) { try { - return IsUnicodeLabel(Decode$7(value.slice(4))); + const payload = value.slice(4).toLowerCase(); + if (payload.lastIndexOf("-") === 0) return false; + const decoded = Decode$7(payload); + if (!decoded) return false; + return IsUnicodeLabel(decoded); } catch { return false; } @@ -6065,7 +5838,7 @@ function IsLabel(value) { return IsPuny(value) ? IsPunyLabel(value) : IsAsciiLabel(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/hostname.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/hostname.mjs /** * Returns true if the value is a valid hostname. * @specification https://tools.ietf.org/html/rfc1123 @@ -6079,7 +5852,7 @@ function IsHostname(value) { return true; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/idn_email.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/idn_email.mjs const IdnEmail = /^(?!.*\.\.)[\p{L}\p{N}!#$%&'*+/=?^_`{|}~-]+(?:\.[\p{L}\p{N}!#$%&'*+/=?^_`{|}~-]+)*@[\p{L}\p{N}](?:[\p{L}\p{N}-]{0,61}[\p{L}\p{N}])?(?:\.[\p{L}\p{N}](?:[\p{L}\p{N}-]{0,61}[\p{L}\p{N}])?)*$/iu; /** * Returns true if the value is an IdnEmail @@ -6089,7 +5862,7 @@ function IsIdnEmail(value) { return IdnEmail.test(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/idn_hostname.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/idn_hostname.mjs /** * Returns true if the value is a valid internationalized (IDN) hostname. * @specification https://tools.ietf.org/html/rfc3490 @@ -6104,7 +5877,7 @@ function IsIdnHostname(value) { return true; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/ipv4.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/ipv4.mjs function IsIPv4Internal(value, start, end) { let dots = 0; let num = 0; @@ -6134,7 +5907,7 @@ function IsIPv4(value) { return IsIPv4Internal(value, 0, value.length); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/ipv6.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/ipv6.mjs function InRange(ch) { return ch >= 48 && ch <= 57 || ch >= 65 && ch <= 70 || ch >= 97 && ch <= 102; } @@ -6184,7 +5957,7 @@ function IsIPv6(value) { return compressed ? groups <= 7 : groups === 8; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/iri_reference.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/iri_reference.mjs function TryUrl(value) { try { new URL(value, "http://example.com"); @@ -6211,7 +5984,7 @@ function IsIriReference(value) { } } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/iri.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/iri.mjs /** * Returns true if the value is a Iri * @specification @@ -6225,7 +5998,7 @@ function IsIri(value) { } } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/json_pointer_uri_fragment.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/json_pointer_uri_fragment.mjs const JsonPointerUriFragment = /^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i; /** * Returns true if the value is a json pointer uri fragment @@ -6236,7 +6009,7 @@ function IsJsonPointerUriFragment(value) { return JsonPointerUriFragment.test(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/json_pointer.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/json_pointer.mjs const JsonPointer = /^(?:\/(?:[^~/]|~0|~1)*)*$/; /** * Returns true if the value is a json pointer @@ -6247,7 +6020,7 @@ function IsJsonPointer(value) { return JsonPointer.test(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/regex.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/regex.mjs /** * Returns true if the value is a regular expression string pattern * @specification @@ -6263,7 +6036,7 @@ function IsRegex(value) { } } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/relative_json_pointer.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/relative_json_pointer.mjs const RelativeJsonPointer = /^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/; /** * Returns true if the value is a relative json pointer @@ -6274,7 +6047,7 @@ function IsRelativeJsonPointer(value) { return RelativeJsonPointer.test(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/uri_reference.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/uri_reference.mjs const UriReference = /^(?!.*[^\x00-\x7F])(?!.*\\)(?:(?:[a-z][a-z0-9+\-.]*:)?(?:\/\/[^\s[\]{}<>^`|]*)?|[^\s[\]{}<>^`|]*)(?:\?[^\s[\]{}<>^`|]*)?(?:#[^\s[\]{}<>^`|]*)?$/i; /** * Returns true if the value is a valid URI Reference. @@ -6284,7 +6057,7 @@ function IsUriReference(value) { return UriReference.test(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/uri_template.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/uri_template.mjs const UriTemplate = /^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i; /** * Returns true if the value is a uri template @@ -6295,7 +6068,7 @@ function IsUriTemplate(value) { return UriTemplate.test(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/uri.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/uri.mjs function IsAlpha(ch) { return ch >= 97 && ch <= 122 || ch >= 65 && ch <= 90; } @@ -6390,7 +6163,7 @@ function IsUri(value) { return true; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/url.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/url.mjs const Url = /^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu; /** * Returns true if the value is a Url @@ -6401,7 +6174,7 @@ function IsUrl(value) { return Url.test(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/uuid.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/uuid.mjs const Uuid = /^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i; /** * Returns true if the value is a uuid @@ -6412,7 +6185,7 @@ function IsUuid(value) { return Uuid.test(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/format/_registry.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/_registry.mjs const formats = /* @__PURE__ */ new Map(); /** Clears all entries */ function Clear() { @@ -6449,7 +6222,7 @@ function Reset() { } Reset(); //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/format.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/format.mjs function CheckFormat(_stack, _context, schema, value) { return Test(schema.format, value); } @@ -6462,7 +6235,7 @@ function ErrorFormat(stack, context, schemaPath, instancePath, schema, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/if.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/if.mjs function CheckIf(stack, context, schema, value) { const thenSchema = IsThen(schema) ? schema.then : true; const elseSchema = IsElse(schema) ? schema.else : true; @@ -6487,7 +6260,7 @@ function ErrorIf(stack, context, schemaPath, instancePath, schema, value) { return isIf; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/items.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/items.mjs function CheckItemsSized(stack, context, schema, value) { return Every(schema.items, 0, (schema, index) => { return IsLessEqualThan(value.length, index) || CheckSchemaPushStack(stack, context, schema, value[index]) && context.AddIndex(index); @@ -6517,7 +6290,7 @@ function ErrorItems(stack, context, schemaPath, instancePath, schema, value) { return IsItemsSized(schema) ? ErrorItemsSized(stack, context, schemaPath, instancePath, schema, value) : ErrorItemsUnsized(stack, context, schemaPath, instancePath, schema, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/maxContains.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/maxContains.mjs function IsValid$2(schema) { return IsContains(schema); } @@ -6538,7 +6311,7 @@ function ErrorMaxContains(stack, context, schemaPath, instancePath, schema, valu }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/maximum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/maximum.mjs function CheckMaximum(_stack, _context, schema, value) { return IsLessEqualThan(value, schema.maximum); } @@ -6554,7 +6327,7 @@ function ErrorMaximum(stack, context, schemaPath, instancePath, schema, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/maxItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/maxItems.mjs function CheckMaxItems(_stack, _context, schema, value) { return IsLessEqualThan(value.length, schema.maxItems); } @@ -6567,7 +6340,7 @@ function ErrorMaxItems(stack, context, schemaPath, instancePath, schema, value) }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/maxLength.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/maxLength.mjs function CheckMaxLength(_stack, _context, schema, value) { return IsMaxLength$1(value, schema.maxLength); } @@ -6580,7 +6353,7 @@ function ErrorMaxLength(stack, context, schemaPath, instancePath, schema, value) }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/maxProperties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/maxProperties.mjs function CheckMaxProperties(_stack, _context, schema, value) { return IsLessEqualThan(Keys(value).length, schema.maxProperties); } @@ -6593,7 +6366,7 @@ function ErrorMaxProperties(stack, context, schemaPath, instancePath, schema, va }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/minContains.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/minContains.mjs function IsValid$1(schema) { return IsContains(schema); } @@ -6610,7 +6383,7 @@ function ErrorMinContains(stack, context, schemaPath, instancePath, schema, valu }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/minimum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/minimum.mjs function CheckMinimum(_stack, _context, schema, value) { return IsGreaterEqualThan(value, schema.minimum); } @@ -6626,7 +6399,7 @@ function ErrorMinimum(stack, context, schemaPath, instancePath, schema, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/minItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/minItems.mjs function CheckMinItems(_stack, _context, schema, value) { return IsGreaterEqualThan(value.length, schema.minItems); } @@ -6639,7 +6412,7 @@ function ErrorMinItems(stack, context, schemaPath, instancePath, schema, value) }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/minLength.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/minLength.mjs function CheckMinLength(_stack, _context, schema, value) { return IsMinLength$1(value, schema.minLength); } @@ -6652,7 +6425,7 @@ function ErrorMinLength(stack, context, schemaPath, instancePath, schema, value) }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/minProperties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/minProperties.mjs function CheckMinProperties(_stack, _context, schema, value) { return IsGreaterEqualThan(Keys(value).length, schema.minProperties); } @@ -6665,7 +6438,7 @@ function ErrorMinProperties(stack, context, schemaPath, instancePath, schema, va }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/multipleOf.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/multipleOf.mjs function CheckMultipleOf(_stack, _context, schema, value) { return IsMultipleOf$1(value, schema.multipleOf); } @@ -6678,7 +6451,7 @@ function ErrorMultipleOf(stack, context, schemaPath, instancePath, schema, value }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/not.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/not.mjs function CheckNot(stack, context, schema, value) { const nextContext = new CheckContext(); return !CheckSchema(stack, nextContext, schema.not, value) && context.Merge([nextContext]); @@ -6692,7 +6465,7 @@ function ErrorNot(stack, context, schemaPath, instancePath, schema, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/oneOf.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/oneOf.mjs function CheckOneOf(stack, context, schema, value) { const passedContexts = schema.oneOf.reduce((result, schema) => { const nextContext = new CheckContext(); @@ -6720,7 +6493,7 @@ function ErrorOneOf(stack, context, schemaPath, instancePath, schema, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/pattern.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/pattern.mjs function CheckPattern(_stack, _context, schema, value) { return (IsString$2(schema.pattern) ? new RegExp(schema.pattern, "u") : schema.pattern).test(value); } @@ -6733,7 +6506,7 @@ function ErrorPattern(stack, context, schemaPath, instancePath, schema, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/patternProperties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/patternProperties.mjs function CheckPatternProperties(stack, context, schema, value) { return Every(Entries(schema.patternProperties), 0, ([pattern, schema]) => { const regexp = new RegExp(pattern, "u"); @@ -6753,7 +6526,7 @@ function ErrorPatternProperties(stack, context, schemaPath, instancePath, schema }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/prefixItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/prefixItems.mjs function CheckPrefixItems(stack, context, schema, value) { return IsEqual(value.length, 0) || Every(schema.prefixItems, 0, (schema, index) => { return IsLessEqualThan(value.length, index) || CheckSchemaPushStack(stack, context, schema, value[index]) && context.AddIndex(index); @@ -6767,7 +6540,7 @@ function ErrorPrefixItems(stack, context, schemaPath, instancePath, schema, valu }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/_exact_optional.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/_exact_optional.mjs function IsExactOptional(required, key) { return required.includes(key) || Get$2().exactOptionalPropertyTypes; } @@ -6775,7 +6548,7 @@ function InexactOptionalCheck(value, key) { return IsUndefined$1(value[key]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/properties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/properties.mjs function CheckProperties(stack, context, schema, value) { const required = IsRequired(schema) ? schema.required : []; return Every(Entries(schema.properties), 0, ([key, schema]) => { @@ -6793,7 +6566,7 @@ function ErrorProperties(stack, context, schemaPath, instancePath, schema, value }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/propertyNames.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/propertyNames.mjs function CheckPropertyNames(stack, context, schema, value) { return Every(Keys(value), 0, (key, _index) => CheckSchema(stack, context, schema.propertyNames, key)); } @@ -6813,7 +6586,7 @@ function ErrorPropertyNames(stack, context, schemaPath, instancePath, schema, va }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/recursiveRef.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/recursiveRef.mjs function CheckRecursiveRef(stack, context, schema, value) { const target = stack.RecursiveRef(schema) ?? false; return IsSchema(target) && CheckSchema(stack, context, target, value); @@ -6823,7 +6596,7 @@ function ErrorRecursiveRef(stack, context, _schemaPath, instancePath, schema, va return IsSchema(target) && ErrorSchema(stack, context, "#", instancePath, target, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/ref.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/ref.mjs function CheckRef(stack, context, schema, value) { const target = stack.Ref(schema) ?? false; const nextContext = new CheckContext(); @@ -6840,7 +6613,7 @@ function ErrorRef(stack, context, _schemaPath, instancePath, schema, value) { return result; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/required.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/required.mjs function CheckRequired(_stack, _context, schema, value) { return Every(schema.required, 0, (key) => HasPropertyKey(value, key)); } @@ -6858,9 +6631,9 @@ function ErrorRequired(_stack, context, schemaPath, instancePath, schema, value) }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/type.mjs function CheckTypeName(_stack, _context, type, _schema, value) { - return IsEqual(type, "object") ? IsObjectNotArray(value) : IsEqual(type, "array") ? IsArray$1(value) : IsEqual(type, "boolean") ? IsBoolean$2(value) : IsEqual(type, "integer") ? IsInteger$1(value) : IsEqual(type, "number") ? IsNumber$2(value) : IsEqual(type, "null") ? IsNull$1(value) : IsEqual(type, "string") ? IsString$2(value) : IsEqual(type, "asyncIterator") ? IsAsyncIterator$1(value) : IsEqual(type, "bigint") ? IsBigInt$1(value) : IsEqual(type, "constructor") ? IsConstructor$1(value) : IsEqual(type, "function") ? IsFunction$1(value) : IsEqual(type, "iterator") ? IsIterator$1(value) : IsEqual(type, "symbol") ? IsSymbol$1(value) : IsEqual(type, "undefined") ? IsUndefined$1(value) : IsEqual(type, "void") ? IsUndefined$1(value) : true; + return IsEqual(type, "object") ? IsObjectNotArray(value) : IsEqual(type, "array") ? IsArray$1(value) : IsEqual(type, "boolean") ? IsBoolean$2(value) : IsEqual(type, "integer") ? IsInteger$1(value) : IsEqual(type, "number") ? IsNumber$2(value) : IsEqual(type, "null") ? IsNull$1(value) : IsEqual(type, "string") ? IsString$2(value) : IsEqual(type, "bigint") ? IsBigInt$1(value) : IsEqual(type, "constructor") ? IsConstructor$1(value) : IsEqual(type, "function") ? IsFunction$1(value) : IsEqual(type, "symbol") ? IsSymbol$1(value) : IsEqual(type, "undefined") ? IsUndefined$1(value) : IsEqual(type, "void") ? IsUndefined$1(value) : true; } function CheckTypeNames(stack, context, types, schema, value) { return types.some((type) => CheckTypeName(stack, context, type, schema, value)); @@ -6877,7 +6650,7 @@ function ErrorType(stack, context, schemaPath, instancePath, schema, value) { }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/unevaluatedItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/unevaluatedItems.mjs function CheckUnevaluatedItems(stack, context, schema, value) { const indices = context.GetIndices(); return Every(value, 0, (item, index) => { @@ -6900,7 +6673,7 @@ function ErrorUnevaluatedItems(stack, context, schemaPath, instancePath, schema, }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/unevaluatedProperties.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/unevaluatedProperties.mjs function CheckUnevaluatedProperties(stack, context, schema, value) { const keys = context.GetKeys(); return Every(Entries(value), 0, ([key, prop]) => { @@ -6923,7 +6696,7 @@ function ErrorUnevaluatedProperties(stack, context, schemaPath, instancePath, sc }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/uniqueItems.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/uniqueItems.mjs function IsValid(schema) { return !IsEqual(schema.uniqueItems, false); } @@ -6950,13 +6723,13 @@ function ErrorUniqueItems(_stack, context, schemaPath, instancePath, schema, val }); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/schema.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/schema.mjs function CheckSchemaPushStack(stack, context, schema, value) { return context.Push() && CheckSchema(stack, context, schema, value) && context.Pop(); } function CheckSchema(stack, context, schema, value) { stack.Push(schema); - const result = IsBooleanSchema(schema) ? CheckBooleanSchema(stack, context, schema, value) : (!IsType(schema) || CheckType(stack, context, schema, value)) && (!(IsObject$1(value) && !IsArray$1(value)) || (!IsRequired(schema) || CheckRequired(stack, context, schema, value)) && (!IsAdditionalProperties(schema) || CheckAdditionalProperties(stack, context, schema, value)) && (!IsDependencies(schema) || CheckDependencies(stack, context, schema, value)) && (!IsDependentRequired(schema) || CheckDependentRequired(stack, context, schema, value)) && (!IsDependentSchemas(schema) || CheckDependentSchemas(stack, context, schema, value)) && (!IsPatternProperties(schema) || CheckPatternProperties(stack, context, schema, value)) && (!IsProperties(schema) || CheckProperties(stack, context, schema, value)) && (!IsPropertyNames(schema) || CheckPropertyNames(stack, context, schema, value)) && (!IsMinProperties(schema) || CheckMinProperties(stack, context, schema, value)) && (!IsMaxProperties(schema) || CheckMaxProperties(stack, context, schema, value))) && (!IsArray$1(value) || (!IsAdditionalItems(schema) || CheckAdditionalItems(stack, context, schema, value)) && (!IsContains(schema) || CheckContains(stack, context, schema, value)) && (!IsItems(schema) || CheckItems(stack, context, schema, value)) && (!IsMaxContains(schema) || CheckMaxContains(stack, context, schema, value)) && (!IsMaxItems(schema) || CheckMaxItems(stack, context, schema, value)) && (!IsMinContains(schema) || CheckMinContains(stack, context, schema, value)) && (!IsMinItems(schema) || CheckMinItems(stack, context, schema, value)) && (!IsPrefixItems(schema) || CheckPrefixItems(stack, context, schema, value)) && (!IsUniqueItems(schema) || CheckUniqueItems(stack, context, schema, value))) && (!IsString$2(value) || (!IsMaxLength(schema) || CheckMaxLength(stack, context, schema, value)) && (!IsMinLength(schema) || CheckMinLength(stack, context, schema, value)) && (!IsFormat(schema) || CheckFormat(stack, context, schema, value)) && (!IsPattern(schema) || CheckPattern(stack, context, schema, value))) && (!(IsNumber$2(value) || IsBigInt$1(value)) || (!IsExclusiveMaximum(schema) || CheckExclusiveMaximum(stack, context, schema, value)) && (!IsExclusiveMinimum(schema) || CheckExclusiveMinimum(stack, context, schema, value)) && (!IsMaximum(schema) || CheckMaximum(stack, context, schema, value)) && (!IsMinimum(schema) || CheckMinimum(stack, context, schema, value)) && (!IsMultipleOf(schema) || CheckMultipleOf(stack, context, schema, value))) && (!IsRef(schema) || CheckRef(stack, context, schema, value)) && (!IsRecursiveRef(schema) || CheckRecursiveRef(stack, context, schema, value)) && (!IsDynamicRef(schema) || CheckDynamicRef(stack, context, schema, value)) && (!IsGuard(schema) || CheckGuard(stack, context, schema, value)) && (!IsConst(schema) || CheckConst(stack, context, schema, value)) && (!IsEnum(schema) || CheckEnum(stack, context, schema, value)) && (!IsIf(schema) || CheckIf(stack, context, schema, value)) && (!IsNot(schema) || CheckNot(stack, context, schema, value)) && (!IsAllOf(schema) || CheckAllOf(stack, context, schema, value)) && (!IsAnyOf(schema) || CheckAnyOf(stack, context, schema, value)) && (!IsOneOf(schema) || CheckOneOf(stack, context, schema, value)) && (!IsUnevaluatedItems(schema) || !IsArray$1(value) || CheckUnevaluatedItems(stack, context, schema, value)) && (!IsUnevaluatedProperties(schema) || !IsObject$1(value) || CheckUnevaluatedProperties(stack, context, schema, value)) && (!IsRefine(schema) || CheckRefine(stack, context, schema, value)); + const result = IsBooleanSchema(schema) ? CheckBooleanSchema(stack, context, schema, value) : (!IsType(schema) || CheckType(stack, context, schema, value)) && (!(IsObject$1(value) && !IsArray$1(value)) || (!IsRequired(schema) || CheckRequired(stack, context, schema, value)) && (!IsAdditionalProperties(schema) || CheckAdditionalProperties(stack, context, schema, value)) && (!IsDependencies(schema) || CheckDependencies(stack, context, schema, value)) && (!IsDependentRequired(schema) || CheckDependentRequired(stack, context, schema, value)) && (!IsDependentSchemas(schema) || CheckDependentSchemas(stack, context, schema, value)) && (!IsPatternProperties(schema) || CheckPatternProperties(stack, context, schema, value)) && (!IsProperties(schema) || CheckProperties(stack, context, schema, value)) && (!IsPropertyNames(schema) || CheckPropertyNames(stack, context, schema, value)) && (!IsMinProperties(schema) || CheckMinProperties(stack, context, schema, value)) && (!IsMaxProperties(schema) || CheckMaxProperties(stack, context, schema, value))) && (!IsArray$1(value) || (!IsAdditionalItems(schema) || CheckAdditionalItems(stack, context, schema, value)) && (!IsContains(schema) || CheckContains(stack, context, schema, value)) && (!IsItems(schema) || CheckItems(stack, context, schema, value)) && (!IsMaxContains(schema) || CheckMaxContains(stack, context, schema, value)) && (!IsMaxItems(schema) || CheckMaxItems(stack, context, schema, value)) && (!IsMinContains(schema) || CheckMinContains(stack, context, schema, value)) && (!IsMinItems(schema) || CheckMinItems(stack, context, schema, value)) && (!IsPrefixItems(schema) || CheckPrefixItems(stack, context, schema, value)) && (!IsUniqueItems(schema) || CheckUniqueItems(stack, context, schema, value))) && (!IsString$2(value) || (!IsMaxLength(schema) || CheckMaxLength(stack, context, schema, value)) && (!IsMinLength(schema) || CheckMinLength(stack, context, schema, value)) && (!IsFormat(schema) || CheckFormat(stack, context, schema, value)) && (!IsPattern(schema) || CheckPattern(stack, context, schema, value))) && (!(IsNumber$2(value) || IsBigInt$1(value)) || (!IsExclusiveMaximum(schema) || CheckExclusiveMaximum(stack, context, schema, value)) && (!IsExclusiveMinimum(schema) || CheckExclusiveMinimum(stack, context, schema, value)) && (!IsMaximum(schema) || CheckMaximum(stack, context, schema, value)) && (!IsMinimum(schema) || CheckMinimum(stack, context, schema, value)) && (!IsMultipleOf(schema) || CheckMultipleOf(stack, context, schema, value))) && (!IsRef(schema) || CheckRef(stack, context, schema, value)) && (!IsRecursiveRef(schema) || CheckRecursiveRef(stack, context, schema, value)) && (!IsDynamicRef(schema) || CheckDynamicRef(stack, context, schema, value)) && (!IsConst(schema) || CheckConst(stack, context, schema, value)) && (!IsEnum(schema) || CheckEnum(stack, context, schema, value)) && (!IsIf(schema) || CheckIf(stack, context, schema, value)) && (!IsNot(schema) || CheckNot(stack, context, schema, value)) && (!IsAllOf(schema) || CheckAllOf(stack, context, schema, value)) && (!IsAnyOf(schema) || CheckAnyOf(stack, context, schema, value)) && (!IsOneOf(schema) || CheckOneOf(stack, context, schema, value)) && (!IsUnevaluatedItems(schema) || !IsArray$1(value) || CheckUnevaluatedItems(stack, context, schema, value)) && (!IsUnevaluatedProperties(schema) || !IsObject$1(value) || CheckUnevaluatedProperties(stack, context, schema, value)) && (!IsRefine(schema) || CheckRefine(stack, context, schema, value)); stack.Pop(schema); return result; } @@ -6965,12 +6738,12 @@ function ErrorSchemaPushStack(stack, context, schemaPath, instancePath, schema, } function ErrorSchema(stack, context, schemaPath, instancePath, schema, value) { stack.Push(schema); - const result = IsBooleanSchema(schema) ? ErrorBooleanSchema(stack, context, schemaPath, instancePath, schema, value) : !!(+(!IsType(schema) || ErrorType(stack, context, schemaPath, instancePath, schema, value)) & +(!(IsObject$1(value) && !IsArray$1(value)) || !!(+(!IsRequired(schema) || ErrorRequired(stack, context, schemaPath, instancePath, schema, value)) & +(!IsAdditionalProperties(schema) || ErrorAdditionalProperties(stack, context, schemaPath, instancePath, schema, value)) & +(!IsDependencies(schema) || ErrorDependencies(stack, context, schemaPath, instancePath, schema, value)) & +(!IsDependentRequired(schema) || ErrorDependentRequired(stack, context, schemaPath, instancePath, schema, value)) & +(!IsDependentSchemas(schema) || ErrorDependentSchemas(stack, context, schemaPath, instancePath, schema, value)) & +(!IsPatternProperties(schema) || ErrorPatternProperties(stack, context, schemaPath, instancePath, schema, value)) & +(!IsProperties(schema) || ErrorProperties(stack, context, schemaPath, instancePath, schema, value)) & +(!IsPropertyNames(schema) || ErrorPropertyNames(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMinProperties(schema) || ErrorMinProperties(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMaxProperties(schema) || ErrorMaxProperties(stack, context, schemaPath, instancePath, schema, value)))) & +(!IsArray$1(value) || !!(+(!IsAdditionalItems(schema) || ErrorAdditionalItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsContains(schema) || ErrorContains(stack, context, schemaPath, instancePath, schema, value)) & +(!IsItems(schema) || ErrorItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMaxContains(schema) || ErrorMaxContains(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMaxItems(schema) || ErrorMaxItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMinContains(schema) || ErrorMinContains(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMinItems(schema) || ErrorMinItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsPrefixItems(schema) || ErrorPrefixItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsUniqueItems(schema) || ErrorUniqueItems(stack, context, schemaPath, instancePath, schema, value)))) & +(!IsString$2(value) || !!(+(!IsMaxLength(schema) || ErrorMaxLength(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMinLength(schema) || ErrorMinLength(stack, context, schemaPath, instancePath, schema, value)) & +(!IsFormat(schema) || ErrorFormat(stack, context, schemaPath, instancePath, schema, value)) & +(!IsPattern(schema) || ErrorPattern(stack, context, schemaPath, instancePath, schema, value)))) & +(!(IsNumber$2(value) || IsBigInt$1(value)) || !!(+(!IsExclusiveMaximum(schema) || ErrorExclusiveMaximum(stack, context, schemaPath, instancePath, schema, value)) & +(!IsExclusiveMinimum(schema) || ErrorExclusiveMinimum(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMaximum(schema) || ErrorMaximum(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMinimum(schema) || ErrorMinimum(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMultipleOf(schema) || ErrorMultipleOf(stack, context, schemaPath, instancePath, schema, value)))) & +(!IsRef(schema) || ErrorRef(stack, context, schemaPath, instancePath, schema, value)) & +(!IsRecursiveRef(schema) || ErrorRecursiveRef(stack, context, schemaPath, instancePath, schema, value)) & +(!IsDynamicRef(schema) || ErrorDynamicRef(stack, context, schemaPath, instancePath, schema, value)) & +(!IsGuard(schema) || ErrorGuard(stack, context, schemaPath, instancePath, schema, value)) & +(!IsConst(schema) || ErrorConst(stack, context, schemaPath, instancePath, schema, value)) & +(!IsEnum(schema) || ErrorEnum(stack, context, schemaPath, instancePath, schema, value)) & +(!IsIf(schema) || ErrorIf(stack, context, schemaPath, instancePath, schema, value)) & +(!IsNot(schema) || ErrorNot(stack, context, schemaPath, instancePath, schema, value)) & +(!IsAllOf(schema) || ErrorAllOf(stack, context, schemaPath, instancePath, schema, value)) & +(!IsAnyOf(schema) || ErrorAnyOf(stack, context, schemaPath, instancePath, schema, value)) & +(!IsOneOf(schema) || ErrorOneOf(stack, context, schemaPath, instancePath, schema, value)) & +(!IsUnevaluatedItems(schema) || !IsArray$1(value) || ErrorUnevaluatedItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsUnevaluatedProperties(schema) || !IsObject$1(value) || ErrorUnevaluatedProperties(stack, context, schemaPath, instancePath, schema, value))) && (!IsRefine(schema) || ErrorRefine(stack, context, schemaPath, instancePath, schema, value)); + const result = IsBooleanSchema(schema) ? ErrorBooleanSchema(stack, context, schemaPath, instancePath, schema, value) : !!(+(!IsType(schema) || ErrorType(stack, context, schemaPath, instancePath, schema, value)) & +(!(IsObject$1(value) && !IsArray$1(value)) || !!(+(!IsRequired(schema) || ErrorRequired(stack, context, schemaPath, instancePath, schema, value)) & +(!IsAdditionalProperties(schema) || ErrorAdditionalProperties(stack, context, schemaPath, instancePath, schema, value)) & +(!IsDependencies(schema) || ErrorDependencies(stack, context, schemaPath, instancePath, schema, value)) & +(!IsDependentRequired(schema) || ErrorDependentRequired(stack, context, schemaPath, instancePath, schema, value)) & +(!IsDependentSchemas(schema) || ErrorDependentSchemas(stack, context, schemaPath, instancePath, schema, value)) & +(!IsPatternProperties(schema) || ErrorPatternProperties(stack, context, schemaPath, instancePath, schema, value)) & +(!IsProperties(schema) || ErrorProperties(stack, context, schemaPath, instancePath, schema, value)) & +(!IsPropertyNames(schema) || ErrorPropertyNames(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMinProperties(schema) || ErrorMinProperties(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMaxProperties(schema) || ErrorMaxProperties(stack, context, schemaPath, instancePath, schema, value)))) & +(!IsArray$1(value) || !!(+(!IsAdditionalItems(schema) || ErrorAdditionalItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsContains(schema) || ErrorContains(stack, context, schemaPath, instancePath, schema, value)) & +(!IsItems(schema) || ErrorItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMaxContains(schema) || ErrorMaxContains(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMaxItems(schema) || ErrorMaxItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMinContains(schema) || ErrorMinContains(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMinItems(schema) || ErrorMinItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsPrefixItems(schema) || ErrorPrefixItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsUniqueItems(schema) || ErrorUniqueItems(stack, context, schemaPath, instancePath, schema, value)))) & +(!IsString$2(value) || !!(+(!IsMaxLength(schema) || ErrorMaxLength(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMinLength(schema) || ErrorMinLength(stack, context, schemaPath, instancePath, schema, value)) & +(!IsFormat(schema) || ErrorFormat(stack, context, schemaPath, instancePath, schema, value)) & +(!IsPattern(schema) || ErrorPattern(stack, context, schemaPath, instancePath, schema, value)))) & +(!(IsNumber$2(value) || IsBigInt$1(value)) || !!(+(!IsExclusiveMaximum(schema) || ErrorExclusiveMaximum(stack, context, schemaPath, instancePath, schema, value)) & +(!IsExclusiveMinimum(schema) || ErrorExclusiveMinimum(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMaximum(schema) || ErrorMaximum(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMinimum(schema) || ErrorMinimum(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMultipleOf(schema) || ErrorMultipleOf(stack, context, schemaPath, instancePath, schema, value)))) & +(!IsRef(schema) || ErrorRef(stack, context, schemaPath, instancePath, schema, value)) & +(!IsRecursiveRef(schema) || ErrorRecursiveRef(stack, context, schemaPath, instancePath, schema, value)) & +(!IsDynamicRef(schema) || ErrorDynamicRef(stack, context, schemaPath, instancePath, schema, value)) & +(!IsConst(schema) || ErrorConst(stack, context, schemaPath, instancePath, schema, value)) & +(!IsEnum(schema) || ErrorEnum(stack, context, schemaPath, instancePath, schema, value)) & +(!IsIf(schema) || ErrorIf(stack, context, schemaPath, instancePath, schema, value)) & +(!IsNot(schema) || ErrorNot(stack, context, schemaPath, instancePath, schema, value)) & +(!IsAllOf(schema) || ErrorAllOf(stack, context, schemaPath, instancePath, schema, value)) & +(!IsAnyOf(schema) || ErrorAnyOf(stack, context, schemaPath, instancePath, schema, value)) & +(!IsOneOf(schema) || ErrorOneOf(stack, context, schemaPath, instancePath, schema, value)) & +(!IsUnevaluatedItems(schema) || !IsArray$1(value) || ErrorUnevaluatedItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsUnevaluatedProperties(schema) || !IsObject$1(value) || ErrorUnevaluatedProperties(stack, context, schemaPath, instancePath, schema, value))) && (!IsRefine(schema) || ErrorRefine(stack, context, schemaPath, instancePath, schema, value)); stack.Pop(schema); return result; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/pointer/pointer.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/pointer/pointer.mjs function GetIndex(index, value) { return IsObject$1(value) && !IsUnsafePropertyKey(index) ? value[index] : void 0; } @@ -6988,7 +6761,7 @@ function Get(value, pointer) { return GetIndices(Indices(pointer), value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/resolve/ref.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/resolve/ref.mjs function MatchId(schema, base, ref) { if (schema.$id === ref.hash) return schema; const absoluteId = new URL(schema.$id, base.href); @@ -7027,31 +6800,31 @@ function Match(schema, base, ref) { } return MatchHash(schema, base, ref); } -function FromArray$5(schema, base, ref) { +function FromArray$4(schema, base, ref) { return schema.reduce((result, item) => { - const match = FromValue$1(item, base, ref); + const match = FromValue(item, base, ref); return !IsUndefined$1(match) ? match : result; }, void 0); } -function FromObject$5(schema, base, ref) { +function FromObject$4(schema, base, ref) { return Keys(schema).reduce((result, key) => { - const match = FromValue$1(schema[key], base, ref); + const match = FromValue(schema[key], base, ref); return !IsUndefined$1(match) ? match : result; }, void 0); } -function FromValue$1(schema, base, ref) { +function FromValue(schema, base, ref) { const nextBase = IsSchemaObject(schema) && IsId(schema) ? new URL(schema.$id, base.href) : base; if (IsSchemaObject(schema)) { const result = Match(schema, nextBase, ref); if (!IsUndefined$1(result)) return result; } - if (IsArray$1(schema)) return FromArray$5(schema, nextBase, ref); - if (IsObject$1(schema)) return FromObject$5(schema, nextBase, ref); + if (IsArray$1(schema)) return FromArray$4(schema, nextBase, ref); + if (IsObject$1(schema)) return FromObject$4(schema, nextBase, ref); } function Ref(schema, ref) { const defaultBase = new URL("http://unknown/"); const initialBase = IsId(schema) ? new URL(schema.$id, defaultBase.href) : defaultBase; - return FromValue$1(schema, initialBase, new URL(ref, initialBase.href)); + return FromValue(schema, initialBase, new URL(ref, initialBase.href)); } function DynamicRef(root, base, dynamicRef, dynamicAnchors) { const fragmentTarget = dynamicRef.$dynamicRef.startsWith("#") ? Ref(base, dynamicRef.$dynamicRef) : Ref(root, dynamicRef.$dynamicRef); @@ -7061,7 +6834,7 @@ function DynamicRef(root, base, dynamicRef, dynamicAnchors) { return dynamicAnchors.find((anchor) => anchor.$dynamicAnchor === fragmentTarget.$dynamicAnchor) ?? fragmentTarget; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/engine/_stack.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/_stack.mjs var __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"); @@ -7134,7 +6907,7 @@ _Stack_instances = /* @__PURE__ */ new WeakSet(), _Stack_PushResourceAnchors = f return !ref.$ref.startsWith("#") ? Ref(root, ref.$ref) : Ref(this.Base(), ref.$ref); }; //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/errors.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/errors.mjs /** Checks a value and returns validation errors */ function Errors$1(...args) { const [context, schema, value] = Match$3(args, { @@ -7161,7 +6934,7 @@ function Errors$1(...args) { }), "#", "", schema, value), errors]; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/schema/check.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/check.mjs /** Checks a value against the provided schema */ function Check$1(...args) { const [context, schema, value] = Match$3(args, { @@ -7179,7 +6952,7 @@ function Check$1(...args) { return CheckSchema(new Stack(context, schema), new CheckContext(), schema, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/check/check.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/check/check.mjs /** Checks a value matches the provided type. */ function Check(...args) { const [context, type, value] = Match$3(args, { @@ -7197,7 +6970,7 @@ function Check(...args) { return Check$1(context, type, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/errors/errors.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/errors/errors.mjs /** * Performs an exhaustive Check on the specified value and reports any errors found. * If no errors are found, an empty array is returned. Unlike Check, this function @@ -7221,7 +6994,7 @@ function Errors(...args) { return errors; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/assert/assert.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/assert/assert.mjs var AssertError = class extends Error { constructor(source, value, errors) { super(source); @@ -7238,18 +7011,13 @@ var AssertError = class extends Error { } }; //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/clean/from_array.mjs -function FromArray$4(context, type, value) { +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/clean/from_array.mjs +function FromArray$3(context, type, value) { if (!IsArray$1(value)) return value; return value.map((value) => FromType$4(context, type.items, value)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/clean/from_base.mjs -function FromBase$2(_context, type, value) { - return type.Clean(value); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/clean/from_cyclic.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/clean/from_cyclic.mjs function FromCyclic$3(context, type, value) { return FromType$4({ ...context, @@ -7257,7 +7025,7 @@ function FromCyclic$3(context, type, value) { }, Ref$1(type.$ref), value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/clean/from_intersect.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/clean/from_intersect.mjs function EvaluateIntersection(context, type) { const additionalProperties = HasPropertyKey(type, "unevaluatedProperties") ? { additionalProperties: type.unevaluatedProperties } : {}; const evaluated = Evaluate(Instantiate(context, type)); @@ -7267,13 +7035,13 @@ function FromIntersect$3(context, type, value) { return FromType$4(context, EvaluateIntersection(context, type), value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/clean/additional.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/clean/additional.mjs function GetAdditionalProperties(type) { return HasPropertyKey(type, "additionalProperties") ? type.additionalProperties : void 0; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/clean/from_object.mjs -function FromObject$4(context, type, value) { +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/clean/from_object.mjs +function FromObject$3(context, type, value) { if (!IsObject$1(value) || IsArray$1(value)) return value; const additionalProperties = GetAdditionalProperties(type); for (const key of Keys(value)) { @@ -7290,7 +7058,7 @@ function FromObject$4(context, type, value) { return value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/clean/from_record.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/clean/from_record.mjs function FromRecord$3(context, type, value) { if (!IsObject$1(value)) return value; const additionalProperties = GetAdditionalProperties(type); @@ -7309,12 +7077,12 @@ function FromRecord$3(context, type, value) { return value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/clean/from_ref.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/clean/from_ref.mjs function FromRef$3(context, type, value) { return HasPropertyKey(context, type.$ref) ? FromType$4(context, context[type.$ref], value) : value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/clean/from_tuple.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/clean/from_tuple.mjs function FromTuple$3(context, schema, value) { if (!IsArray$1(value)) return value; const length = Math.min(value.length, schema.items.length); @@ -7322,52 +7090,16 @@ function FromTuple$3(context, schema, value) { return IsGreaterThan(value.length, length) ? value.slice(0, length) : value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/clone/clone.mjs -function FromClassInstance(value) { - return value; -} -function IsTypeInstance(value) { - return HasPropertyKey(value, "~kind"); -} -function FromTypeInstance(value) { - return Clone$1(value); -} -function FromObjectInstance(value) { - const result = {}; - for (const key of Keys(value)) { - if (IsUnsafePropertyKey(key)) continue; - result[key] = Clone(value[key]); - } - for (const key of Symbols(value)) result[key] = Clone(value[key]); - return result; -} -function FromObject$3(value) { - return IsClassInstance(value) ? FromClassInstance(value) : IsTypeInstance(value) ? FromTypeInstance(value) : FromObjectInstance(value); -} -function FromArray$3(value) { - return value.map((element) => Clone(element)); -} -function FromTypedArray(value) { - return value.slice(); -} -function FromMap(value) { - return new Map(Clone([...value.entries()])); -} -function FromSet(value) { - return new Set(Clone([...value.values()])); -} -function FromValue(value) { - return value; -} +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/clone/clone.mjs /** * Returns a Clone of the given value. This function is similar to structuredClone() * but also supports deep cloning instances of Map, Set and TypeArray. */ function Clone(value) { - return IsTypeArray(value) ? FromTypedArray(value) : IsMap(value) ? FromMap(value) : IsSet(value) ? FromSet(value) : IsArray$1(value) ? FromArray$3(value) : IsObject$1(value) ? FromObject$3(value) : FromValue(value); + return Clone$1(value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/clean/from_union.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/clean/from_union.mjs function FromUnion$3(context, type, value) { for (const schema of type.anyOf) { const clean = FromType$4(context, schema, Clone(value)); @@ -7376,12 +7108,12 @@ function FromUnion$3(context, type, value) { return value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/clean/from_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/clean/from_type.mjs function FromType$4(context, type, value) { - return IsArray(type) ? FromArray$4(context, type, value) : IsBase(type) ? FromBase$2(context, type, value) : IsCyclic(type) ? FromCyclic$3(context, type, value) : IsIntersect(type) ? FromIntersect$3(context, type, value) : IsObject(type) ? FromObject$4(context, type, value) : IsRecord(type) ? FromRecord$3(context, type, value) : IsRef$1(type) ? FromRef$3(context, type, value) : IsTuple(type) ? FromTuple$3(context, type, value) : IsUnion(type) ? FromUnion$3(context, type, value) : value; + return IsArray(type) ? FromArray$3(context, type, value) : IsCyclic(type) ? FromCyclic$3(context, type, value) : IsIntersect(type) ? FromIntersect$3(context, type, value) : IsObject(type) ? FromObject$3(context, type, value) : IsRecord(type) ? FromRecord$3(context, type, value) : IsRef$1(type) ? FromRef$3(context, type, value) : IsTuple(type) ? FromTuple$3(context, type, value) : IsUnion(type) ? FromUnion$3(context, type, value) : value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/shared/union_priority_sort.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/shared/union_priority_sort.mjs function Modifiers(type, next) { for (const key of guard_default.Keys(type)) { if (guard_default.HasPropertyKey(next, key)) continue; @@ -7412,7 +7144,7 @@ function UnionPrioritySort(type) { return FromType$3(type); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/clean/clean.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/clean/clean.mjs /** * Cleans a value by removing non-evaluated properties and elements as derived from the provided type. * This function returns unknown so callers should Check the return value before use. This function @@ -7435,7 +7167,7 @@ function Clean(...args) { return FromType$4(context, Get$2().unionPrioritySort ? UnionPrioritySort(type) : type, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/try/try_result.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/try/try_result.mjs function IsOk(value) { return IsObject$1(value) && HasPropertyKey(value, "value"); } @@ -7443,12 +7175,12 @@ function Ok(value) { return { value }; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/try/try_array.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/try/try_array.mjs function TryArray(value) { return IsArray$1(value) ? Ok(value) : Ok([value]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/try/try_bigint.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/try/try_bigint.mjs function FromBoolean$4(value) { return IsEqual(value, true) ? Ok(BigInt(1)) : Ok(BigInt(0)); } @@ -7472,7 +7204,7 @@ function TryBigInt(value) { return IsBigInt$1(value) ? Ok(value) : IsBoolean$2(value) ? FromBoolean$4(value) : IsNumber$2(value) ? Ok(BigInt(Math.trunc(value))) : IsNull$1(value) ? Ok(BigInt(0)) : IsString$2(value) ? FromString$5(value) : IsUndefined$1(value) ? Ok(BigInt(0)) : void 0; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/try/try_boolean.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/try/try_boolean.mjs function FromBigInt$4(value) { return IsEqual(value, BigInt(0)) ? Ok(false) : IsEqual(value, BigInt(1)) ? Ok(true) : void 0; } @@ -7486,7 +7218,7 @@ function TryBoolean(value) { return IsBigInt$1(value) ? FromBigInt$4(value) : IsBoolean$2(value) ? Ok(value) : IsNumber$2(value) ? FromNumber$3(value) : IsNull$1(value) ? Ok(false) : IsString$2(value) ? FromString$4(value) : IsUndefined$1(value) ? Ok(false) : void 0; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/try/try_null.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/try/try_null.mjs function FromBigInt$3(value) { return IsEqual(value, BigInt(0)) ? Ok(null) : void 0; } @@ -7504,7 +7236,7 @@ function TryNull(value) { return IsBigInt$1(value) ? FromBigInt$3(value) : IsBoolean$2(value) ? FromBoolean$3(value) : IsNumber$2(value) ? FromNumber$2(value) : IsNull$1(value) ? Ok(null) : IsString$2(value) ? FromString$3(value) : IsUndefined$1(value) ? Ok(null) : void 0; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/try/try_number.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/try/try_number.mjs const maxBigInt = BigInt(Number.MAX_SAFE_INTEGER); const minBigInt = BigInt(Number.MIN_SAFE_INTEGER); function FromBigInt$2(value) { @@ -7526,12 +7258,12 @@ function TryNumber(value) { return IsBigInt$1(value) ? FromBigInt$2(value) : IsBoolean$2(value) ? FromBoolean$2(value) : IsNumber$2(value) ? Ok(value) : IsNull$1(value) ? Ok(0) : IsString$2(value) ? FromString$2(value) : IsUndefined$1(value) ? Ok(0) : void 0; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/try/try_string.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/try/try_string.mjs function TryString(value) { return IsBigInt$1(value) ? Ok(value.toString()) : IsBoolean$2(value) ? Ok(value.toString()) : IsNumber$2(value) ? Ok(value.toString()) : IsNull$1(value) ? Ok("null") : IsString$2(value) ? Ok(value) : IsUndefined$1(value) ? Ok("") : void 0; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/try/try_undefined.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/try/try_undefined.mjs function FromBigInt$1(value) { return IsEqual(value, BigInt(0)) ? Ok(void 0) : void 0; } @@ -7549,29 +7281,24 @@ function TryUndefined(value) { return IsBigInt$1(value) ? FromBigInt$1(value) : IsBoolean$2(value) ? FromBoolean$1(value) : IsNumber$2(value) ? FromNumber$1(value) : IsNull$1(value) ? Ok(void 0) : IsString$2(value) ? FromString$1(value) : IsUndefined$1(value) ? Ok(value) : void 0; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_array.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_array.mjs function FromArray$2(context, type, value) { return TryArray(value).value.map((value) => FromType$2(context, type.items, value)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_base.mjs -function FromBase$1(_context, type, value) { - return type.Convert(value); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_bigint.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_bigint.mjs function FromBigInt(_context, _type, value) { const result = TryBigInt(value); return IsOk(result) ? result.value : value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_boolean.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_boolean.mjs function FromBoolean(_context, _type, value) { const result = TryBoolean(value); return IsOk(result) ? result.value : value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_cyclic.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_cyclic.mjs function FromCyclic$2(context, type, value) { return FromType$2({ ...context, @@ -7579,23 +7306,23 @@ function FromCyclic$2(context, type, value) { }, Ref$1(type.$ref), value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_enum.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_enum.mjs function FromEnum(context, type, value) { return FromType$2(context, Evaluate(type), value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_integer.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_integer.mjs function FromInteger(_context, _type, value) { const result = TryNumber(value); return IsOk(result) ? Math.trunc(result.value) : value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_intersect.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_intersect.mjs function FromIntersect$2(context, type, value) { return FromType$2(context, Evaluate(Instantiate(context, type)), value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_literal.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_literal.mjs function FromLiteralBigInt(_context, type, value) { const result = TryBigInt(value); return IsOk(result) && IsEqual(type.const, result.value) ? result.value : value; @@ -7617,19 +7344,19 @@ function FromLiteral(context, type, value) { return IsLiteralBigInt(type) ? FromLiteralBigInt(context, type, value) : IsLiteralBoolean(type) ? FromLiteralBoolean(context, type, value) : IsLiteralNumber(type) ? FromLiteralNumber(context, type, value) : IsLiteralString(type) ? FromLiteralString(context, type, value) : Unreachable$1(); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_null.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_null.mjs function FromNull(_context, _type, value) { const result = TryNull(value); return IsOk(result) ? result.value : value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_number.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_number.mjs function FromNumber(_context, _type, value) { const result = TryNumber(value); return IsOk(result) ? result.value : value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_additional.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_additional.mjs /** * Used by Object and Record Types. The entries are derived from the known * properties obtained from 'properties' and 'patternProperties' respectively. @@ -7640,12 +7367,12 @@ function FromAdditionalProperties(context, entries, additionalProperties, value) return value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/shared/optional_undefined.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/shared/optional_undefined.mjs function IsOptionalUndefined(property, key, value) { return IsOptional(property) && IsUndefined$1(value[key]); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_object.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_object.mjs function FromProperties(context, type, value) { const entries = EntriesRegExp(type.properties); const keys = Keys(value); @@ -7659,7 +7386,7 @@ function FromObject$2(context, type, value) { return IsObjectNotArray(value) ? FromProperties(context, type, value) : value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_record.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_record.mjs function FromPatternProperties(context, type, value) { const entries = EntriesRegExp(type.patternProperties); const keys = Keys(value); @@ -7670,53 +7397,53 @@ function FromRecord$2(context, type, value) { return IsObjectNotArray(value) ? FromPatternProperties(context, type, value) : value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_ref.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_ref.mjs function FromRef$2(context, type, value) { return HasPropertyKey(context, type.$ref) ? FromType$2(context, context[type.$ref], value) : value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_string.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_string.mjs function FromString(_context, _type, value) { const result = TryString(value); return IsOk(result) ? result.value : value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_template_literal.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_template_literal.mjs function FromTemplateLiteral(context, type, value) { return FromType$2(context, Evaluate(type), value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_tuple.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_tuple.mjs function FromTuple$2(context, type, value) { if (!IsArray$1(value)) return value; for (let index = 0; index < Math.min(type.items.length, value.length); index++) value[index] = FromType$2(context, type.items[index], value[index]); return value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_undefined.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_undefined.mjs function FromUndefined(_context, _type, value) { const result = TryUndefined(value); return IsOk(result) ? result.value : value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_union.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_union.mjs function FromUnion$2(context, type, value) { if (type.anyOf.some((type) => Check(context, type, value))) return value; const selected = type.anyOf.map((type) => FromType$2(context, type, Clone(value))).find((value) => Check(context, type, value)); return IsUndefined$1(selected) ? value : selected; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_void.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_void.mjs function FromVoid(_context, _type, value) { return IsOk(TryUndefined(value)) ? void 0 : value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/from_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_type.mjs function FromType$2(context, type, value) { - return IsArray(type) ? FromArray$2(context, type, value) : IsBase(type) ? FromBase$1(context, type, value) : IsBigInt(type) ? FromBigInt(context, type, value) : IsBoolean(type) ? FromBoolean(context, type, value) : IsCyclic(type) ? FromCyclic$2(context, type, value) : IsEnum$1(type) ? FromEnum(context, type, value) : IsInteger(type) ? FromInteger(context, type, value) : IsIntersect(type) ? FromIntersect$2(context, type, value) : IsLiteral(type) ? FromLiteral(context, type, value) : IsNull(type) ? FromNull(context, type, value) : IsNumber(type) ? FromNumber(context, type, value) : IsObject(type) ? FromObject$2(context, type, value) : IsRecord(type) ? FromRecord$2(context, type, value) : IsRef$1(type) ? FromRef$2(context, type, value) : IsString(type) ? FromString(context, type, value) : IsTemplateLiteral(type) ? FromTemplateLiteral(context, type, value) : IsTuple(type) ? FromTuple$2(context, type, value) : IsUndefined(type) ? FromUndefined(context, type, value) : IsUnion(type) ? FromUnion$2(context, type, value) : IsVoid(type) ? FromVoid(context, type, value) : value; + return IsArray(type) ? FromArray$2(context, type, value) : IsBigInt(type) ? FromBigInt(context, type, value) : IsBoolean(type) ? FromBoolean(context, type, value) : IsCyclic(type) ? FromCyclic$2(context, type, value) : IsEnum$1(type) ? FromEnum(context, type, value) : IsInteger(type) ? FromInteger(context, type, value) : IsIntersect(type) ? FromIntersect$2(context, type, value) : IsLiteral(type) ? FromLiteral(context, type, value) : IsNull(type) ? FromNull(context, type, value) : IsNumber(type) ? FromNumber(context, type, value) : IsObject(type) ? FromObject$2(context, type, value) : IsRecord(type) ? FromRecord$2(context, type, value) : IsRef$1(type) ? FromRef$2(context, type, value) : IsString(type) ? FromString(context, type, value) : IsTemplateLiteral(type) ? FromTemplateLiteral(context, type, value) : IsTuple(type) ? FromTuple$2(context, type, value) : IsUndefined(type) ? FromUndefined(context, type, value) : IsUnion(type) ? FromUnion$2(context, type, value) : IsVoid(type) ? FromVoid(context, type, value) : value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/convert/convert.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/convert.mjs /** * Converts a value to the given type, coercing interior values if a reasonable conversion is possible. This * function returns unknown so callers should Check the return value before use. This function mutates the @@ -7738,19 +7465,14 @@ function Convert(...args) { return FromType$2(context, type, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/default/from_array.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/default/from_array.mjs function FromArray$1(context, type, value) { if (!IsArray$1(value)) return value; for (let i = 0; i < value.length; i++) value[i] = FromType$1(context, type.items, value[i]); return value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/default/from_base.mjs -function FromBase(context, type, value) { - return type.Default(value); -} -//#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/default/from_cyclic.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/default/from_cyclic.mjs function FromCyclic$1(context, type, value) { return FromType$1({ ...context, @@ -7758,18 +7480,18 @@ function FromCyclic$1(context, type, value) { }, Ref$1(type.$ref), value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/default/from_default.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/default/from_default.mjs function FromDefault(type, value) { if (!IsUndefined$1(value)) return value; return IsFunction$1(type.default) ? type.default() : Clone(type.default); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/default/from_intersect.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/default/from_intersect.mjs function FromIntersect$1(context, type, value) { return FromType$1(context, Evaluate(Instantiate(context, type)), value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/default/from_object.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/default/from_object.mjs function FromObject$1(context, type, value) { if (!IsObject$1(value)) return value; const knownPropertyKeys = Keys(type.properties); @@ -7786,7 +7508,7 @@ function FromObject$1(context, type, value) { return value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/default/from_record.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/default/from_record.mjs function FromRecord$1(context, type, value) { if (!IsObject$1(value)) return value; const [recordKey, recordValue] = [new RegExp(RecordPattern(type)), RecordValue(type)]; @@ -7802,12 +7524,12 @@ function FromRecord$1(context, type, value) { return value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/default/from_ref.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/default/from_ref.mjs function FromRef$1(context, type, value) { return HasPropertyKey(context, type.$ref) ? FromType$1(context, context[type.$ref], value) : value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/default/from_tuple.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/default/from_tuple.mjs function FromTuple$1(context, schema, value) { if (!IsArray$1(value)) return value; const [items, max] = [schema.items, Math.max(schema.items.length, value.length)]; @@ -7815,7 +7537,7 @@ function FromTuple$1(context, schema, value) { return value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/default/from_union.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/default/from_union.mjs function FromUnion$1(context, schema, value) { for (const inner of schema.anyOf) { const result = FromType$1(context, inner, Clone(value)); @@ -7824,13 +7546,13 @@ function FromUnion$1(context, schema, value) { return value; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/default/from_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/default/from_type.mjs function FromType$1(context, type, value) { const defaulted = IsDefault(type) ? FromDefault(type, value) : value; - return IsArray(type) ? FromArray$1(context, type, defaulted) : IsBase(type) ? FromBase(context, type, defaulted) : IsCyclic(type) ? FromCyclic$1(context, type, defaulted) : IsIntersect(type) ? FromIntersect$1(context, type, defaulted) : IsObject(type) ? FromObject$1(context, type, defaulted) : IsRecord(type) ? FromRecord$1(context, type, defaulted) : IsRef$1(type) ? FromRef$1(context, type, defaulted) : IsTuple(type) ? FromTuple$1(context, type, defaulted) : IsUnion(type) ? FromUnion$1(context, type, defaulted) : defaulted; + return IsArray(type) ? FromArray$1(context, type, defaulted) : IsCyclic(type) ? FromCyclic$1(context, type, defaulted) : IsIntersect(type) ? FromIntersect$1(context, type, defaulted) : IsObject(type) ? FromObject$1(context, type, defaulted) : IsRecord(type) ? FromRecord$1(context, type, defaulted) : IsRef$1(type) ? FromRef$1(context, type, defaulted) : IsTuple(type) ? FromTuple$1(context, type, defaulted) : IsUnion(type) ? FromUnion$1(context, type, defaulted) : defaulted; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/default/default.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/default/default.mjs /** * Patches missing properties on the value using default annotations specified on the provided type. This * function returns unknown so callers should Check the return value before use. This function mutates the @@ -7852,7 +7574,7 @@ function Default(...args) { return FromType$1(context, type, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/pipeline/pipeline.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/pipeline/pipeline.mjs /** Creates a value processing pipeline. */ function Pipeline(pipeline) { return (...args) => { @@ -7872,7 +7594,7 @@ function Pipeline(pipeline) { }; } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/codec/callback.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/codec/callback.mjs function Decode$6(_context, type, value) { return type["~codec"].decode(value); } @@ -7884,7 +7606,7 @@ function Callback(direction, context, type, value) { return IsEqual(direction, "Decode") ? Decode$6(context, type, value) : Encode$6(context, type, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/codec/from_array.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/codec/from_array.mjs function Decode$5(direction, context, type, value) { if (!IsArray$1(value)) return value; for (let i = 0; i < value.length; i++) value[i] = FromType(direction, context, type.items, value[i]); @@ -7900,7 +7622,7 @@ function FromArray(direction, context, type, value) { return IsEqual(direction, "Decode") ? Decode$5(direction, context, type, value) : Encode$5(direction, context, type, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/codec/from_cyclic.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/codec/from_cyclic.mjs function FromCyclic(direction, context, type, value) { value = FromType(direction, { ...context, @@ -7909,7 +7631,7 @@ function FromCyclic(direction, context, type, value) { return Callback(direction, context, type, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/codec/from_intersect.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/codec/from_intersect.mjs function MergeInteriors(interiors) { return interiors.reduce((results, interior) => ({ ...results, @@ -7936,7 +7658,7 @@ function FromIntersect(direction, context, type, value) { return IsEqual(direction, "Decode") ? Decode$4(direction, context, type, value) : Encode$4(direction, context, type, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/codec/from_object.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/codec/from_object.mjs function Decode$3(direction, context, type, value) { if (!IsObjectNotArray(value)) return value; for (const key of Keys(type.properties)) { @@ -7958,7 +7680,7 @@ function FromObject(direction, context, type, value) { return IsEqual(direction, "Decode") ? Decode$3(direction, context, type, value) : Encode$3(direction, context, type, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/codec/from_record.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/codec/from_record.mjs function Decode$2(direction, context, type, value) { if (!IsObjectNotArray(value)) return value; const regexp = new RegExp(RecordPattern(type)); @@ -7982,7 +7704,7 @@ function FromRecord(direction, context, type, value) { return IsEqual(direction, "Decode") ? Decode$2(direction, context, type, value) : Encode$2(direction, context, type, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/codec/from_ref.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/codec/from_ref.mjs function ResolveRef(direction, context, type, value) { return HasPropertyKey(context, type.$ref) ? FromType(direction, context, context[type.$ref], value) : value; } @@ -7990,7 +7712,7 @@ function FromRef(direction, context, type, value) { return IsEqual(direction, "Decode") ? Callback(direction, context, type, ResolveRef(direction, context, type, value)) : ResolveRef(direction, context, type, Callback(direction, context, type, value)); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/codec/from_tuple.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/codec/from_tuple.mjs function Decode$1(direction, context, type, value) { if (!IsArray$1(value)) return value; for (let i = 0; i < Math.min(type.items.length, value.length); i++) value[i] = FromType(direction, context, type.items[i], value[i]); @@ -8006,7 +7728,7 @@ function FromTuple(direction, context, type, value) { return IsEqual(direction, "Decode") ? Decode$1(direction, context, type, value) : Encode$1(direction, context, type, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/codec/from_union.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/codec/from_union.mjs function Decode(direction, context, type, value) { for (const schema of type.anyOf) { if (!Check(context, schema, value)) continue; @@ -8027,12 +7749,12 @@ function FromUnion(direction, context, type, value) { return IsEqual(direction, "Decode") ? Decode(direction, context, type, value) : Encode(direction, context, type, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/codec/from_type.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/codec/from_type.mjs function FromType(direction, context, type, value) { return IsArray(type) ? FromArray(direction, context, type, value) : IsCyclic(type) ? FromCyclic(direction, context, type, value) : IsIntersect(type) ? FromIntersect(direction, context, type, value) : IsObject(type) ? FromObject(direction, context, type, value) : IsRecord(type) ? FromRecord(direction, context, type, value) : IsRef$1(type) ? FromRef(direction, context, type, value) : IsTuple(type) ? FromTuple(direction, context, type, value) : IsUnion(type) ? FromUnion(direction, context, type, value) : Callback(direction, context, type, value); } //#endregion -//#region ../node_modules/.pnpm/typebox@1.2.17/node_modules/typebox/build/value/parse/parse.mjs +//#region ../node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/parse/parse.mjs var ParseError = class extends AssertError { constructor(value, errors) { super("Parse", value, errors); diff --git a/schemas/libraries/typia/download_compiled/unminified.js b/schemas/libraries/typia/download_compiled/unminified.js index 29f2d18a..6c0cd66d 100644 --- a/schemas/libraries/typia/download_compiled/unminified.js +++ b/schemas/libraries/typia/download_compiled/unminified.js @@ -1,8 +1,8 @@ -//#region ../node_modules/.pnpm/typia@12.1.1_@types+node@26.0.0_typescript@6.0.3/node_modules/typia/lib/internal/_isFormatUrl.mjs +//#region ../node_modules/.pnpm/typia@12.1.1_@types+node@24.0.0_typescript@6.0.3/node_modules/typia/lib/internal/_isFormatUrl.mjs const _isFormatUrl = (str) => PATTERN.test(str); const PATTERN = /^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu; //#endregion -//#region ../node_modules/.pnpm/typia@12.1.1_@types+node@26.0.0_typescript@6.0.3/node_modules/typia/lib/internal/_validateReport.mjs +//#region ../node_modules/.pnpm/typia@12.1.1_@types+node@24.0.0_typescript@6.0.3/node_modules/typia/lib/internal/_validateReport.mjs const _validateReport = (array) => { const reportable = (path) => { if (array.length === 0) return true;